Query information from your FRITZ!Box (mostly energy)
Project description
fritzbox-smarthome
==================
Python-Bibliothek um FRITZ!Box SmartHome-Geräte (DECT 200, PowerLine 546E, ...) zu steuern und die Energiewerte auszulesen.
Getestet mit:
* FRITZ!Box 7390 (Firmware 06.23)
* FRITZ!DECT 200
* FRITZ!Powerline 546E
Installation
------------
```
virtualenv ~/fritzenv
source ~/fritzenv/bin/activate
pip install fritzhome
```
SmartHome-Benutzer
------------------
Aus Sicherheisgründen ist es empfehlenswert, einen eigenen Benutzer zum SmartHome-Zugriff zu verwenden. Dazu in der FRITZ!Box:
1. Die Benutzer-basierte Anmeldung aktivieren (unter "System" -> "FRITZ!Box Benutzer")
2. Und einen neuen Benutzer Benutzer "smarthome" erstellen. Dieser braucht nur Rechte auf den Bereich "Smart Home".
Verwendung
----------
Beispiele zur Verwendung der API befindet sich in der Datei __main__.py.
Nach der Installation steht das fritzhome Tool zur Verfügung, mit dem die Energiedaten auf der CLI angezeigt und nach Graphite exportiert werden können.
Befehle:
```
$ fritzhome [--server fritz.box] energy
PowerEingang (087600000000): 35.76 Watt current, 91.500 wH total
SmartHome Wohnzimmer (24:65:11:00:00:00): 56.21 Watt current, 1122.840 wH total
```
```
$ fritzhome [--server fritz.box] [switch-on|switch-off] 24:65:11:00:00:00
Switching SmartHome Wohnzimmer on
```
```
$ fritzhome [--server ip] graphite localhost [--port 2003] [--interval 10] [--prefix smarthome]
```
Referenzen
----------
* [AHA-HTTP-Interface](https://avm.de/fileadmin/user_upload/Global/Service/Schnittstellen/AHA-HTTP-Interface.pdf)
* [PHP AHA Reader](http://www.tdressler.net/ipsymcon/download/fritz_aha_reader2.phps)
==================
Python-Bibliothek um FRITZ!Box SmartHome-Geräte (DECT 200, PowerLine 546E, ...) zu steuern und die Energiewerte auszulesen.
Getestet mit:
* FRITZ!Box 7390 (Firmware 06.23)
* FRITZ!DECT 200
* FRITZ!Powerline 546E
Installation
------------
```
virtualenv ~/fritzenv
source ~/fritzenv/bin/activate
pip install fritzhome
```
SmartHome-Benutzer
------------------
Aus Sicherheisgründen ist es empfehlenswert, einen eigenen Benutzer zum SmartHome-Zugriff zu verwenden. Dazu in der FRITZ!Box:
1. Die Benutzer-basierte Anmeldung aktivieren (unter "System" -> "FRITZ!Box Benutzer")
2. Und einen neuen Benutzer Benutzer "smarthome" erstellen. Dieser braucht nur Rechte auf den Bereich "Smart Home".
Verwendung
----------
Beispiele zur Verwendung der API befindet sich in der Datei __main__.py.
Nach der Installation steht das fritzhome Tool zur Verfügung, mit dem die Energiedaten auf der CLI angezeigt und nach Graphite exportiert werden können.
Befehle:
```
$ fritzhome [--server fritz.box] energy
PowerEingang (087600000000): 35.76 Watt current, 91.500 wH total
SmartHome Wohnzimmer (24:65:11:00:00:00): 56.21 Watt current, 1122.840 wH total
```
```
$ fritzhome [--server fritz.box] [switch-on|switch-off] 24:65:11:00:00:00
Switching SmartHome Wohnzimmer on
```
```
$ fritzhome [--server ip] graphite localhost [--port 2003] [--interval 10] [--prefix smarthome]
```
Referenzen
----------
* [AHA-HTTP-Interface](https://avm.de/fileadmin/user_upload/Global/Service/Schnittstellen/AHA-HTTP-Interface.pdf)
* [PHP AHA Reader](http://www.tdressler.net/ipsymcon/download/fritz_aha_reader2.phps)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fritzhome-1.0.2.tar.gz
(7.3 kB
view hashes)
Built Distribution
Close
Hashes for fritzhome-1.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd47ffacfe3db993d3dc43687b74fda60a01ce930b9fc0860aa5550f03572e83 |
|
MD5 | 2e949d1dcf3365c207089a02a224626e |
|
BLAKE2b-256 | 3911cc41db8421fbfe764f3b86a2dad12d8555dd20c42eb734b34e0ca0cafe37 |