notify return value: Unknown command {

Begonnen von grappa24, 13 April 2022, 19:54:14

Vorheriges Thema - Nächstes Thema

grappa24

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.
Gebäudesicherheit/-komfort, PV-Prognose/Verbrauchssteuerung, Heizungssteuerung, Multimedia, ...
KNX, FS20, HM, HUE, Tradfri, Shellies, KLF200, Netatmo, Nuki, SolarForecast, HEOS, Alexa-FHEM, ...
FHEM 6.4, 2 x RasPi 3B+, Debian Bullseye

JoWiemann

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
Jörg Wiemann

Slave: RPi B+ mit 512 MB, COC (868 MHz), CUL V3 (433.92MHz SlowRF); FHEMduino, Aktuelles FHEM

Master: CubieTruck; Debian; Aktuelles FHEM