Irgendwie hab ich mir ein notify "versaut", was jahrelang problemlos lief:
defmod notifier_wetter notify Wetter {\
if (ReadingsVal("ug_rolloautomatik", "state", "on") eq "on") {\
if ($EVENT eq "sonnig") {\
fhem ("attr WzRolloMitte90pct disable 0");;\
fhem ("attr DieterRollo90pct disable 0");;\
fhem ("attr HeikeRollo90pct disable 0");;\
fhem ("attr SzRollo50pct disable 0");;\
fhem ("attr AlleRollosHoch1800 disable 1");;\
if ($month > 4 && $month < 9 && $hour < 16) {\
fhem ("attr AlleRollosHoch1900 disable 0");; \
}\
}\
else {\
fhem ("attr WzRolloMitte90pct disable 1");;\
fhem ("attr DieterRollo90pct disable 1");;\
fhem ("attr HeikeRollo90pct disable 1");;\
fhem ("attr SzRollo50pct disable 1");;\
if ($month > 4 && $month < 9 && $hour < 16) { \
fhem ("attr AlleRollosHoch1800 disable 0");;\
}\
fhem ("attr AlleRollosHoch1900 disable 1");;\
}\
} \
}\
\
Beim Abspeichern der DEF kommt kein Fehler, allerdings beim Durchlaufen der folgende:
2022.04.13 19:23:42 3: notifier_wetter return value: Unknown command {
, try help.
Unknown command fhem, try help.
Unknown command fhem, try help.
Unknown command fhem, try help.
Unknown command fhem, try help.
IF: no left bracket: { fhem ("attr AlleRollosHoch1900 disable 0")
Unknown command }
, try help.
Unknown command fhem, try help.
Unknown command fhem, try help.
Unknown command fhem, try help.
IF: no left bracket: { fhem ("attr AlleRollosHoch1800 disable 0")
Unknown command }
, try help.
Unknown command }
, try help.
Hallo,
das letzten beiden \ sind der Übeltäter-
defmod notifier_wetter notify Wetter {\
if (ReadingsVal("ug_rolloautomatik", "state", "on") eq "on") {\
if ($EVENT eq "sonnig") {\
fhem ("attr WzRolloMitte90pct disable 0");;\
fhem ("attr DieterRollo90pct disable 0");;\
fhem ("attr HeikeRollo90pct disable 0");;\
fhem ("attr SzRollo50pct disable 0");;\
fhem ("attr AlleRollosHoch1800 disable 1");;\
if ($month > 4 && $month < 9 && $hour < 16) {\
fhem ("attr AlleRollosHoch1900 disable 0");;\
}\
}\
else {\
fhem ("attr WzRolloMitte90pct disable 1");;\
fhem ("attr DieterRollo90pct disable 1");;\
fhem ("attr HeikeRollo90pct disable 1");;\
fhem ("attr SzRollo50pct disable 1");;\
if ($month > 4 && $month < 9 && $hour < 16) {\
fhem ("attr AlleRollosHoch1800 disable 0");;\
}\
fhem ("attr AlleRollosHoch1900 disable 1");;\
}\
}\
}
Grüße Jörg