Git Product home page Git Product logo

fritz_guestwifi's Introduction

Fritzbox Guestwifi Switch

Custom component for use with Home Assistant

outdated in favor of https://github.com/mammuth/ha-fritzbox-tools

Features:

  • turn on/off Guest Wifi in Home Assistant
  • senses external on/off of Guest Wifi

Installation:

put folder fritz_guestwifi (with files __init__.py and switch.py) to the custom_components folder in the config directory of your home assistant installation. Create custom_components if nescessary.

Example Configuration:

switch:
  - platform: fritz_guestwifi
    host: "192.168.178.1"                 # ip adress of fritzbox
    username: "pi"                        # username of fritzboxuser
    password: !secret fritzbox_password   # password of fritzboxuser (string or secret)

I use this switch together with the automatic disable setting in the fritzbox. It turns of the guest wifi if no one was connected for X minutes.

Example Automation:

automation:
  - id: guestwifi_qr_notify
    alias: send credentials of Guest Wifi to phone
    trigger:
      platform: state
      entity_id: switch.guestwifi
      to: "on"
    action:
    - service: notify.ios_aarons_iphone
      data:
        message: !secret guestwifi_password
        title: "Guest Wifi --> on!"
        data:
          attachment:
            url: "/local/QR-Guestwifi.png"
            content-type: png
            hide-thumbnail: false

Where I put the QR Code in a www folder in my config directory (see e.g. https://community.home-assistant.io/t/help-with-entity-picture-and-file-location/38547/2). The QR Code is automatically generated by the fritzbox.

fritz_guestwifi's People

Contributors

aarondavidschneider avatar conorsham avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.