mcktr / check_tr64_fritz

Icinga 2 Plugin to check a Fritz!Box
GNU General Public License v2.0
30 stars 10 forks source link

Add new function for the Fritz!Box Smart Home thermometers #14

Closed mcktr closed 6 years ago

mcktr commented 7 years ago

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

mcktr commented 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.

mcktr commented 6 years ago
/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.

mcktr commented 6 years ago

Preview Icinga Web 2: bild1png