outdated in favor of https://github.com/mammuth/ha-fritzbox-tools
- turn on/off Guest Wifi in Home Assistant
- senses external on/off of Guest Wifi
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.
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.
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.