Closed mcktr closed 6 years ago
Current WIP
$ ./check_tr64_fritz -P <PASSWORD> -f smart -i 0
OK - Comet DECT 03.68 - Büro CONNECTED 20.50 °C
The function name smart
is not final yet. The new parameter -i
indicates which device should be checked. An other implementation for selecting the device could be an extension for the function name e.g. -f smart:0
, the number after the :
would indicate, which device should be checked.
There are multiple Smart Home devices out there for the Fritz!Box, but currently I can only test the thermometers.
/check_tr64_fritz -P <PASSWORD> -f thermometer:0
OK - Comet DECT 03.68 - Büro CONNECTED 22.5 °C | thermometer_current_state=1 thermometer_current_temp=22.5
Currently the function only check the state of the device. I am not sure yet, if the temperature should checked by an own function or if it should be integrated into this function.
The -i
parameter got removed and the device number can now be set by adding an :<NUMBER>
to the function name.
Preview Icinga Web 2:
Consider to add new functions for the Fritz!Box Smart Home feature.
AVM Docs: https://avm.de/fileadmin/user_upload/Global/Service/Schnittstellen/x_homeauto.pdf