I am using OpenHAB 2.4 together with a Fritz!DECT200 to monitor the operation of my washing machine and get reported when it is finished (see also the excellent guide Washing Machine State Machine). Now it happens from time to time that the automatic fuse flies out so that the washing machine is now “dead”, which I sometimes only notice after quite a while.
What I lack now is the possibility of a notification like “Fuse out - please check washing machine”. In the forum and in the documentation I couldn’t find anything useful, so I ask for help now.
I guess I have found a solution which is not ideal but kind of feasible:
rule "FRITZ!DECT200 offline"
Thing 'avmfritz:FRITZ_DECT_200:192_NNN_NNN_N:NNNNNNNNNNN' changed from ONLINE to OFFLINE
logInfo("FRITZ!DECT200Offline", "FRITZ!DECT200 is offline!")
rule "FRITZ!DECT200 online"
Thing 'avmfritz:FRITZ_DECT_200:192_NNN_NNN_N:NNNNNNNNNNN' changed from OFFLINE to ONLINE
logInfo("FRITZ!DECT200Online", "FRITZ!DECT200 is online!")
Unfortunately, this is not that reliable in terms of reaction time. Once an outlet is plugged out, it takes several minutes until the offline state is signalled. But replugging it in requires only some seconds until the online rule will be fired.
I am afraid a faster solution is not possible. The F!Box needs up to 15min to determine the connection state for a device. Let me quote AVM’s support page:
Smart home devices such as FRITZ!DECT radiator controls, FRITZ!DECT sockets, and FRITZ!DECT Repeaters function according to the standard DECT ULE (Ultra Low Energy). Devices that use this radio standard only communicate with the FRITZ!Box at greater intervals. When the FRITZ!Box is restarted, for example after a FRITZ!OS update, it may take up to 15 minutes for the connection to be automatically reestablished.