FHEM Forum

FHEM => Anfängerfragen => Thema gestartet von: Kaspi am 29 Juli 2019, 10:16:28

Titel: [GELÖST] Ich komme mit notify einfach nicht klar :-(
Beitrag von: Kaspi am 29 Juli 2019, 10:16:28
Hallo

Notify bringt mich um..

Ich versuche abhängig vom Solarertrag kleiner gleich -250W eine Poolpumpe einzuschalten.


define Pool_Solar_Ein notify E_ZAEHLER_SOLAR:Power_Sum__W ≤ -250 set AB_AB_POOL on


Warum geht das nicht?


Danke im voraus


Kaspi :)
Titel: Antw:Ich komme mit notify einfach nicht klar :-(
Beitrag von: DeeSPe am 29 Juli 2019, 10:19:18
define Pool_Solar_Ein notify E_ZAEHLER_SOLAR:Power_Sum__W { fhem "set AB_AB_POOL on" if ($EVTPART1 <= -250)}

Gruß
Dan
Titel: Antw:Ich komme mit notify einfach nicht klar :-(
Beitrag von: Otto123 am 29 Juli 2019, 10:29:48
Zitat von: Kaspi am 29 Juli 2019, 10:16:28
Notify bringt mich um..
Für die nächste Aufgabe -> https://wiki.fhem.de/wiki/Notify  ;)

Gruß Otto
Titel: Antw:Ich komme mit notify einfach nicht klar :-(
Beitrag von: CoolTux am 29 Juli 2019, 10:41:43
Zitat von: DeeSPe am 29 Juli 2019, 10:19:18
define Pool_Solar_Ein notify E_ZAEHLER_SOLAR:Power_Sum__W { fhem "set AB_AB_POOL on" if ($EVTPART1 <= -250)}

Gruß
Dan

Das dürfte so nicht triggern
define Pool_Solar_Ein notify E_ZAEHLER_SOLAR:Power_Sum__W:.* { fhem "set AB_AB_POOL on" if ($EVTPART1 <= -250)}
So sollte es triggern.
Notify arbeitet auf Basis von RegEx was das triggern an geht. Das <= -250 kann man auch als RegEx ausdrücken wenn man denn mag. Ist aber schwierig.

Grüße
Titel: Antw:Ich komme mit notify einfach nicht klar :-(
Beitrag von: Otto123 am 29 Juli 2019, 10:52:11
Zitat von: CoolTux am 29 Juli 2019, 10:41:43
Das <= -250 kann man auch als RegEx ausdrücken wenn man denn mag. Ist aber schwierig.
Komm - hör auf  ;D  ;D ;D
Titel: Antw:Ich komme mit notify einfach nicht klar :-(
Beitrag von: Kaspi am 29 Juli 2019, 10:53:01
Das erste hat nicht funktioniert. Das zweite ja.
Danke an alle.