Adds Virtual Hardware for your Fritz!Box within domoticz. That devices show connection information and enables you to control your WiFi.
Device | Images |
---|---|
guest WiFi | |
normal WiFi (2.4 GHz) | |
counter | |
alarm | ![]() ![]() |
switch |
This is a plugin for Domoticz that works with your Fritz!Box. Therefore it generates three devices.
This plugin only works with Fritz Box and is open source.
It is more or less just a wrapper around python lib fritzconnection from Klaus Bremer. Icons used are from DomoticzIcons see Domoticz Wiki
sudo pip3 install -r requirements.txt
fritzconnection
domoticz/plugins
directory cd domoticz/plugins
git clone https://github.com/belzetrigger/domoticz-FritzBox.git
domoticz/plugins
import sys
sys.path
sys.path.append('/usr/lib/python3/dist-packages')
# for synology python3 from community
# sys.path.append('/volume1/@appstore/python3/lib/python3.5/site-packages')
# for synology sys.path.append('/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages')
# for windows check if installed packages as admin or user...
# sys.path.append('C:\\Program Files (x86)\\Python37-32\\Lib\\site-packages')
Parameter | Information |
---|---|
host | insert host name or Ip - default is fritz.box |
Update time | polling time. Something like 3 or 5 min should work and do not stress the router too much |
Debug | if True, the log will hold a lot more output. Its good if something does not work like expected. |
to control WiFi | |
---|---|
user | name of the user set up in fritz box |
password | keep in mind, domoticz stores it plain in the database!!!! So really create a new user with restricted rights |
Version | Note |
---|---|
0.6.4 | |
0.6.3 | counter for sent/received megabytes switch for standard WiFi |
0.6.2 | now allows you to control your guest WiFi |
0.6.x | works with new fritzconnection 1.2.1 and so without need of lxml but Python >= 3.6 |
<= 0.5.x | worked with fritzconnection 0.6.x and 0.8.x, needs lxml |
In development. Guest WiFi is now more stable especially on refresh status for WPS. Counters are new and behave a bit different than Fritz!Box Online Monitor. Means there is always a delta in the way FritzBox is showing the daily usage.
For TR064 actions codes see AVMs Documentation
Based on https://github.com/ffes/domoticz-buienradar/ there are
fakeDomoticz.py
- used to run it outside of Domoticztest.py
it's the entry point for tests