Syntax Fehler Einzeiler - komme nicht drauf

Begonnen von hafmnk, 21 November 2013, 23:14:14

Vorheriges Thema - Nächstes Thema

hafmnk

Hallo,

bekomme einen Syntaxfehler in diesem Einzeiler:

define MD_Notify notify motionDetector_1 { if (Value("ANLAGE_STATUS") eq "on" && Value("ALARM_STATUS") ne "alarm") { FB_mail('xx@@test.de','ALERT','ALERT SN5');;set ALARM_STATUS "alarm";; define resetAlarmStatus at +00:01:00 set ALARM_STATUS "idle"}}

Log sagt: Bareword found where operator expected at (eval 151) line 1, near "00 set"
   (Missing operator before set?)
2013.11.21 23:08:59 3: MD_Notify return value: syntax error at (eval 151) line 1, near "00:"

Was mache ich da falsch?

jenscz

define MD_Notify notify motionDetector_1 { if (Value("ANLAGE_STATUS") eq "on" && Value("ALARM_STATUS") ne "alarm") { FB_mail('xx@@test.de','ALERT','ALERT SN5');;fhem("set ALARM_STATUS alarm; define resetAlarmStatus at +00:01:00 set ALARM_STATUS idle"}}

glaube ich
CCU3 mit 6xHMW-IO-12-Sw7-DR,1x HMW-LC-Bl1-DR, Bewegungsmeldern .....
Gardena Smart IrrigationControl (ic24)