eval: Waschmaschine_Fertig: warning in condition c01

Begonnen von gloob, 07 September 2017, 17:16:08

Vorheriges Thema - Nächstes Thema

gloob

Hallo,

Folgendes DOIF soll mich eigentlich dran erinnern, wenn die Waschmaschine fertig ist. Allerdings bekomme ich nur folgende Fehlermeldung im Log:

017.09.07 16:40:10 1: PERL WARNING: Bareword found where operator expected at (eval 556829) line 1, near ")ReadingValDoIf"
2017.09.07 16:40:10 3: eval: Waschmaschine_Fertig: warning in condition c01


Jemand eine Idee woran es liegen könnte?

defmod Waschmaschine_Fertig DOIF (Waschmaschine_Fertig DOIF ()[HM_325D5B_Pwr:power] > 10 and [?Waschmaschine_Fertig] =~ "cmd_4|initialized")\
(({Log 3, "Waschmaschine: Ein"}))\
DOELSEIF ([HM_325D5B_Pwr:power] > 20 and [?Waschmaschine_Fertig] eq "cmd_1")\
(({Log 3, "Waschmaschine: Programmstart"}))\
DOELSEIF ([HM_325D5B_Pwr:power] > 20 and [?Waschmaschine_Fertig] eq "cmd_2")\
(({Log 3, "Waschmaschine: Programmende"}))\
DOELSEIF ([HM_325D5B_Pwr:power] < 10 or [HM_325D5B_Pwr:power] > 20 and [?Waschmaschine_Fertig] eq "cmd_3")\
(({Log 3, "Waschmaschine: Aus"}))
attr Waschmaschine_Fertig do resetwait
attr Waschmaschine_Fertig repeatcmd 0:0:300:0
attr Waschmaschine_Fertig room CUL_HM
attr Waschmaschine_Fertig wait 0:0:300:0

setstate Waschmaschine_Fertig 2017-09-07 17:14:59 wait_timer no timer
Raspberry Pi 3 | miniCUL 433MHz | nanoCUL 868 MHz | nanoCUL 433 MHz | MySensors WLAN Gateway | LaCrosse WLAN Gateway | SignalESP 433 MHz | SignalESP 868 MHz | HM-MOD-UART WLAN Gateway | IR - 360 Grad WLAN Gateway

CoolTux

Das ist doch sicher nicht so gewollt

defmod Waschmaschine_Fertig DOIF (Waschmaschine_Fertig DOIF ()[HM_325D5B_Pwr:power] > 10


oder?
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

gloob

Komisch in der FHEM GUI war das so nicht sichtbar beim DEF.
Hab es jetzt mal abgeändert.

Beim nächsten Waschgang weiß ich mehr.
Raspberry Pi 3 | miniCUL 433MHz | nanoCUL 868 MHz | nanoCUL 433 MHz | MySensors WLAN Gateway | LaCrosse WLAN Gateway | SignalESP 433 MHz | SignalESP 868 MHz | HM-MOD-UART WLAN Gateway | IR - 360 Grad WLAN Gateway