HTTPMOD: Set state if timeout

Begonnen von marcel.schulz.961, 19 September 2015, 12:12:17

Vorheriges Thema - Nächstes Thema

marcel.schulz.961

Hi,
Im using HTTPMOD to collect sensor values from an Arduino with an Ethernet shield. That works verry good.
But if the Ethernet Shield is not responding, the last received value is stored until fhem reboots.
The question is: Is there a way to set the State if a timeout occures on requesting an URL?
I couldn't find any information for this!

Thanks a lot for your help!


Gesendet von meinem iPhone mit Tapatalk

StefanStrobel

Hello,

check out Watchdog:
http://fhem.de/commandref.html#watchdog
It might solve your problem.
If a timeout occurs, HTTPMOD does not update the reading. The watchdog can watch if a reading is not updated for a defined time and then reacts on this.

regards,
    Stefan