FHEM Forum

FHEM => Automatisierung => Thema gestartet von: selfarian am 16 April 2015, 15:08:37

Titel: Hilfe für Presence / Watchdog
Beitrag von: selfarian am 16 April 2015, 15:08:37
Hallo zusammen,

nachdem die Android-Smartphones (HTC One) scheinbar immer wieder für ca. 2 Minuten in eine Art Standby fahren und somit per WLAN nicht anpingbar sind, dachte ich mir, ich baue einen Watchdog, der eine Statusänderung (absent) nur macht, wenn das Handy länger als drei Minuten nicht erreichbar ist. Present dann aber wiederum als notify, da ich ja möchte, das fhem sofort reagiert, wenn ich nachhause komme. Die Definition vom Watchdog sieht wie folgt aus:
alex.handy:absent 00:03:10 alex.handy:present set rr_Alex state absent; setstate pr_AlexAbsent defined
Mein Problem ist jetzt, das ich trotzdem alle 2 Minuten an/abwesend hin und her wechsle.
Kann mir da jemand nen Tipp geben? Liegt es vielleicht am present notify?

Danke!
Titel: Antw:Hilfe für Presence / Watchdog
Beitrag von: hyper2910 am 16 April 2015, 21:57:44
Habe ein ähnliches Problem,  im log sehe ich das noch

2015.04.16 21:29:03 2: PRESENCE (DirkAnwesend) - error while processing check: unexpected function output (expected 0 or 1): error on Fritzbox communication: command timed-out , shutting down
Titel: Antw:Hilfe für Presence / Watchdog
Beitrag von: selfarian am 16 April 2015, 22:01:16
Den Fehler habe ich nicht, da ich über lan-ping gehe.
Titel: Antw:Hilfe für Presence / Watchdog
Beitrag von: der-Lolo am 18 April 2015, 10:02:53
Ich habe das ganze Konstrkt hier
http://forum.fhem.de/index.php/topic,30586.msg234013.html#msg234013 (http://forum.fhem.de/index.php/topic,30586.msg234013.html#msg234013)
mal beschrieben - ich setze zwar Bluetooth ein, das sollte aber keinen unterschied machen.
Vielleicht hilft euch das...