FHEM Forum

FHEM => Automatisierung => DOIF => Thema gestartet von: Burny4600 am 18 Mai 2016, 20:33:54

Titel: [gelöst] Error Einträge in DOIF Definition
Beitrag von: Burny4600 am 18 Mai 2016, 20:33:54
Folgende Konfiguration:
define PSTH2 DOIF ( [10:30-15:30] and [ZLPD] eq "on" and [DL2_T04k] < 20 and [DL2_T11] > 18 and [PSTHD] eg "off" ) (set PSTHD on) DOELSEIF ( [PSTHD] eg "on" )(set PSTHD off)

Diese Errormeldung befindet sich in der DOIF Definition
perl error in condition: DOIF_time($hash,$hash->{realtime}{0},$hash->{realtime}{1},$wday,$hms,"") and InternalDoIf($hash,'ZLPD','STATE','','',AttrVal($hash->{NAME},'notexist',undef)) eq "on" and InternalDoIf($hash,'DL2_T04k','STATE','','',AttrVal($hash->{NAME},'notexist',undef)) < 20 and InternalDoIf($hash,'DL2_T11','STATE','','',AttrVal($hash->{NAME},'notexist',undef)) > 18 and InternalDoIf($hash,'PSTHD','STATE','','',AttrVal($hash->{NAME},'notexist',undef)) eg "off" : syntax error at (eval 17595) line 1, near ") eg "

Alles ist aber vorhanden.
Warum befinden sich diese Error Meldung notexist',undef in der Konfiguration?
Stimmt hier an der schreibweise etwas nicht?
Titel: Antw:Error Einträge in DOIF Definition
Beitrag von: ht am 18 Mai 2016, 20:54:26
Hast Du das direkt kopiert?

[PSTHD] eg "off"

Dann wäre das ein Typo, also eq statt eg.

Volker
Titel: Antw:Error Einträge in DOIF Definition
Beitrag von: Burny4600 am 18 Mai 2016, 21:33:19
Ja daran dürfte der Fehler liegen.

Die einfachsten Dinge übersieht man manchmal.
Danke für den Tipp.