Hallo
Ich möchte um ein watchdog noch ein at bauen, ist das überhaupt möglich?
Das funktioniert bereits:
define WhatsAppState watchdog WhatsApp:.* 00:00:30 WhatsApp:.*connected.* set teleBot message WhatsApp is disconnected or offline
Das habe ich probiert geht aber nicht:
define WhatsAppStateCheck at +*00:15:00 { if (WhatsApp:.* 00:00:30 WhatsApp:.*connected.*) { fhem "set teleBot message WhatsApp is disconnected or offline" }}
Das steht nach execNow im Logfile:
2016.11.03 21:30:11 1: PERL WARNING: Bareword found where operator expected at (eval 102561) line 1, near "30 WhatsApp"
2016.11.03 21:30:11 3: eval: my $DEV='WhatsAppStateCheck';{ if (WhatsApp:.* 00:00:30 WhatsApp:.*connected.*) { fhem "set teleBot message WhatsApp is disconnected or offline" }}
2016.11.03 21:30:11 3: WhatsAppStateCheck: syntax error at (eval 102561) line 1, near "WhatsApp:" syntax error at (eval 102561) line 1, near "}}"
Beste Grüße
Heinz
DOIF (http://fhem.de/commandref_DE.html#DOIF) stellt Watchdog und at Funktionalität auf FHEM-Ebene bereit. In der Befehlsreferenz gibt es
zahlreiche Beispiele zur Zeit- und Ereignissteuerung.
Um eine Lösung für Dein Problem zu konkretisieren, müsstest Du allerdings erstmal schildern, was Du mit Deinem Konstrukt erreichen möchtest.
War auf dem Holzweg :o
Habe es mit "attr xxx autoRestart 1" gelöst
Danke