doif code kürzen rolladen bei status away

Begonnen von Micky, 26 August 2017, 18:02:56

Vorheriges Thema - Nächstes Thema

Micky

Hi

möchte eine Homestatus nutzen, folgendes soll passieren

1. wenn irgendwas mit regen , gewitter , sturm fährt er die rolladen
Halb runtet
Sonst
2. rolladen offen lassen bis 19:59 uhr
3. bei dämmerung auf 70% runter
4.alles schliessen

irgendwie spirngt er immer auf 2 dann direkt nach paar
Min auf 4 wenn ich away drücke erst cmd2 dann komischerweise cmd4 (also rolladen runter)

Kann ich mein Bluethooth mit einbinden also wenn ich das aus verlasse und abwesend bin stell automatisch auf away. Es gibt im
Homestatus folgende : away holiday home night

([mickyGtag:state] eq "absent")
(Set HomeStatus away)

So schaut mein code aus evtl kann man es noch kürzen und verbessern:

([HomeStatus:"away"] and [09:00-19:59]and [Wetter:condition] eq "Gewitter"
or
[HomeStatus:"away"] and [09:00-19:59] and [Wetter:condition] eq "Schnee"
or
[HomeStatus:"away"] and [09:00-19:59] and [Wetter:condition] eq "Regen"
or
[HomeStatus:"away"] and [09:00-19:59] and [Wetter:condition] eq "Schauer"
or
[HomeStatus:"away"] and [09:00-19:59] and [Wetter:condition] eq "Hagel"
or
[HomeStatus:"away"] and [09:00-19:59] and [Wetter:condition] eq "Orkan"
or
[HomeStatus:"away"] and [09:00-19:59] and [Wetter:condition] eq "sturm"
or
[HomeStatus:"away"] and [09:00-19:59] and [Wetter:condition] eq "vereinzelt Gewitter")

(set Gesamtes_Licht off; set alle_Rollos half)

DOELSEIF
([HomeStatus:"away"] and [09:00-19:59])
(set Gesamtes_Licht off; set alle_Rollos open)

DOELSEIF
([HomeStatus:"away"] and [LichtWetter:twilight]<3 and [LichtWetter:twilight] >7 and [20:00-22:45])
(set Flur_Lampe on; set alle_Rollos position 70)

DOELSE
(set Gesamtes_Licht off; set alle_Rollos closed)


Danke und sorry schreibe vom
Smartphone


Otto123

Kann etwas gleichzeitig kleiner als 3 und größer als 7 sein? -> [LichtWetter:twilight]<3 and [LichtWetter:twilight] >7

Gruß Otto
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz

Icinger

[HomeStatus:"away"] and [09:00-19:59] and [Wetter:condition] eq "Hagel"
Bei Hagel würde ich nicht unbedingt die Rollos runterfahren......Die sind um einiges weicher (->Dellen) als das Fenster :)

lg, Stefan
Verwende deine Zeit nicht mit Erklärungen. Die Menschen hören (lesen) nur, was sie hören (lesen) wollen. (c) Paulo Coelho

amenomade

#3
[Wetter:condition] =~ m/(Gewitter|Schnee|Regen|Schauer|Hagel|Orkan|sturm)/ sollte auch gehen

Hast Du andere Attribute auf dem DOIF?
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

Micky

Hi erstmal danke!
@Otto
Stimmt sollte Or sein!

@icinger
Rollos sind bei mir sehr stabil

@amenomade
Super vielen dank werde ich später testen

Meinst du andere atribute im Wetter?

Danke nochma

Otto123

Rollos werden bei Hagel sehr viel früher zerstört als normale moderne Fenster (Thermoscheiben).
Also ich würde die Bedingung setzen, aber: Wenn Hagel dann Rollo auf  :D
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz

amenomade

ZitatMeinst du andere atribute im Wetter?
Nein, ich meine andere Attribute im DOIF, wie do always o.ä, die das Verhalten vom DOIF ändern können. In solchen Fälle ist es immer besser ein "list <doifname>" zu liefern, damit man alles hat.
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

Micky

#7
Morgen,

ne keine Attribute mehr gesetzt bis auf Raum!

DEF
([HomeStatus:"away"] and [09:00-19:59]and [Wetter:condition] =~ m/(Gewitter|Schnee|Regen|Schauer|Hagel|Orkan|sturm)/)
(set Gesamtes_Licht off; set alle_Rollos half)

DOELSEIF
([HomeStatus:"away"] and ([LichtWetter:twilight]>=3 and [LichtWetter:twilight] <=7) and [09:00-19:59])
(set Gesamtes_Licht off; set alle_Rollos open)

DOELSEIF
([HomeStatus:"away"] and ([LichtWetter:twilight]<=3 or [LichtWetter:twilight] >=7) and [20:00-22:45])
(set Flur_Lampe on; set alle_Rollos position 70)

DOELSE
(set Gesamtes_Licht off; set alle_Rollos closed)


Springt weiterhin auf cmd4 und rollos bleiben geschlossen.

Da seht folgende fehlermeldung:


E_wetter_event:

lastError: ,pubDateComment: okay,pubDate: Sun, 27 Aug 2017 10:00 AM CEST,pubDateRemote: Sun, 27 Aug 2017 10:00 AM CEST,pubDateTs: 1503820800,isConverted: 0,validity: up-to-date,description: Yahoo! Weather for Frankfurt, HE, DE,city: Frankfurt,region: HE,country: Germany,lat: 50.114030,long: 8.68141,wind: 4,wind_speed: 4,wind_chill: 21,wind_direction: 65,wind_condition: Wind: ONO 4 km/h,humidity: 80,pressure: 1002,visibility: 16,pressure_trend: 0,pressure_trend_txt: gleichbleibend,pressure_trend_sym: =,current_date_time: Sun, 27 Aug 2017 10:00 AM CEST,day_of_week: So,code: 26,condition: wolkig,icon: cloudy,temp_c: 20,temperature: 20,fc1_day_of_week: So,fc1_date: 27 Aug 2017,fc1_low_c: 16,fc1_high_c: 26,fc1_code: 28,fc1_condition: überwiegend wolkig,fc1_icon: mostlycloudy,fc2_day_of_week: Mo,fc2_date: 28 Aug 2017,fc2_low_c: 16,fc2_high_c: 25,fc2_code: 30,fc2_condition: teilweise wolkig,fc2_icon: partly_cloudy,fc3_day_of_week: Di,fc3_date: 29 Aug 2017,fc3_low_c: 14,fc3_high_c: 27,fc3_code: 30,fc3_condition: teilweise wolkig,fc3_icon: partly_cloudy,fc4_day_of_week: Mi,fc4_date: 30 Aug 2017,fc4_low_c: 16,fc4_high_c: 28,fc4_code: 30,fc4_condition: teilweise wolkig,fc4_icon: partly_cloudy,fc5_day_of_week: Do,fc5_date: 31 Aug 2017,fc5_low_c: 17,fc5_high_c: 21,fc5_code: 12,fc5_condition: Schauer,fc5_icon: chance_of_rain,fc6_day_of_week: Fr,fc6_date: 01 Sep 2017,fc6_low_c: 15,fc6_high_c: 20,fc6_code: 12,fc6_condition: Schauer,fc6_icon: chance_of_rain,fc7_day_of_week: Sa,fc7_date: 02 Sep 2017,fc7_low_c: 12,fc7_high_c: 19,fc7_code: 12,fc7_condition: Schauer,fc7_icon: chance_of_rain,fc8_day_of_week: So,fc8_date: 03 Sep 2017,fc8_low_c: 12,fc8_high_c: 21,fc8_code: 30,fc8_condition: teilweise wolkig,fc8_icon: partly_cloudy,fc9_day_of_week: Mo,fc9_date: 04 Sep 2017,fc9_low_c: 12,fc9_high_c: 22,fc9_code: 30,fc9_condition: teilweise wolkig,fc9_icon: partly_cloudy,fc10_day_of_week: Di,fc10_date: 05 Sep 2017,fc10_low_c: 12,fc10_high_c: 22,fc10_code: 30,fc10_condition: teilweise wolkig,fc10_icon: partly_cloudy,T: 20 H: 80 W: 4 P: 1002


Jemand eine idee?

amenomade

Wiederum wäre ein list des DOIFs hilfreich. Am besten einmal im original Zustand, und dann im "falschen" Zustand.
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

Micky

Stimmt sorry vergessen

Mit falschen zustand

Zitat
Save config
Tablet-UI
2.0_Draussen
9.6_System
Home-Status
Homekit
Logik
Unsorted
Wohnung
icoEverything Everything
Logfile
Commandref
Remote doc
Edit files
Select style
Event monitor

Internals:
   DEF        ([HomeStatus:"away"] and [09:00-19:59]and [Wetter:condition] =~ m/(Gewitter|Schnee|Regen|Schauer|Hagel|Orkan|sturm)/)
(set Gesamtes_Licht off; set alle_Rollos half)

DOELSEIF
([HomeStatus:"away"] and ([LichtWetter:twilight]>=3 and [LichtWetter:twilight] <=7) and [09:00-19:59])
(set Gesamtes_Licht off; set alle_Rollos open)

DOELSEIF
([HomeStatus:"away"] and ([LichtWetter:twilight]<=3 or [LichtWetter:twilight] >=7) and [20:00-22:45])
(set Flur_Lampe on; set alle_Rollos position 70)

DOELSE
(set Gesamtes_Licht off; set alle_Rollos closed)

   NAME       DOIF_HomeS_AWAY
   NR         53
   NTFY_ORDER 50-DOIF_HomeS_AWAY
   STATE      cmd_4
   TYPE       DOIF
   READINGS:
     2017-08-27 15:56:38   Device          LichtWetter
     2017-08-27 05:05:31   cmd             4
     2017-08-27 05:05:31   cmd_event       HomeStatus
     2017-08-27 05:05:31   cmd_nr          4
     2017-08-27 11:28:43   e_HomeStatus_events away
     2017-08-27 15:56:38   e_LichtWetter_events azimuth: 230.17,elevation: 38.13,twilight: 100,twilight_weather: 100,compasspoint: southwest
     2017-08-27 15:56:38   e_LichtWetter_twilight 100
     2017-08-27 15:55:47   e_Wetter_condition wolkig
     2017-08-27 15:55:47   e_Wetter_events lastError: ,pubDateComment: okay,pubDate: Sun, 27 Aug 2017 03:00 PM CEST,pubDateRemote: Sun, 27 Aug 2017 03:00 PM CEST,pubDateTs: 1503838800,isConverted: 0,validity: up-to-date,description: Yahoo! Weather for Frankfurt, HE, DE,city: Frankfurt,region:  HE,country: Germany,lat: 50.11208,long: 8.68341,wind: 4,wind_speed: 4,wind_chill: 26,wind_direction: 205,wind_condition: Wind: SSW 4 km/h,humidity: 51,pressure: 1001,visibility: 16,pressure_trend: 0,pressure_trend_txt: gleichbleibend,pressure_trend_sym: =,current_date_time: Sun, 27 Aug 2017 03:00 PM CEST,day_of_week: So,code: 26,condition: wolkig,icon: cloudy,temp_c: 25,temperature: 25,fc1_day_of_week: So,fc1_date: 27 Aug 2017,fc1_low_c: 16,fc1_high_c: 26,fc1_code: 28,fc1_condition: überwiegend wolkig,fc1_icon: mostlycloudy,fc2_day_of_week: Mo,fc2_date: 28 Aug 2017,fc2_low_c: 16,fc2_high_c: 26,fc2_code: 30,fc2_condition: teilweise wolkig,fc2_icon: partly_cloudy,fc3_day_of_week: Di,fc3_date: 29 Aug 2017,fc3_low_c: 14,fc3_high_c: 27,fc3_code: 34,fc3_condition: heiter,fc3_icon: mostly_sunny,fc4_day_of_week: Mi,fc4_date: 30 Aug 2017,fc4_low_c: 16,fc4_high_c: 29,fc4_code: 30,fc4_condition: teilweise wolkig,fc4_icon: partly_cloudy,fc5_day_of_week: Do,fc5_date: 31 Aug 2017,fc5_low_c: 16,fc5_high_c: 20,fc5_code: 12,fc5_condition: Schauer,fc5_icon: chance_of_rain,fc6_day_of_week: Fr,fc6_date: 01 Sep 2017,fc6_low_c: 15,fc6_high_c: 19,fc6_code: 39,fc6_condition: vereinzelt Gewitter,fc6_icon: scatteredthunderstorms,fc7_day_of_week: Sa,fc7_date: 02 Sep 2017,fc7_low_c: 12,fc7_high_c: 18,fc7_code: 39,fc7_condition: vereinzelt Gewitter,fc7_icon: scatteredthunderstorms,fc8_day_of_week: So,fc8_date: 03 Sep 2017,fc8_low_c: 12,fc8_high_c: 19,fc8_code: 12,fc8_condition: Schauer,fc8_icon: chance_of_rain,fc9_day_of_week: Mo,fc9_date: 04 Sep 2017,fc9_low_c: 12,fc9_high_c: 20,fc9_code: 28,fc9_condition: überwiegend wolkig,fc9_icon: mostlycloudy,fc10_day_of_week: Di,fc10_date: 05 Sep 2017,fc10_low_c: 13,fc10_high_c: 21,fc10_code: 28,fc10_condition: überwiegend wolkig,fc10_icon: mostlycloudy,T: 25  H: 51  W: 4  P: 1001
     2017-08-27 05:05:31   state           cmd_4
     2017-08-27 05:05:25   timer_01_c01    27.08.2017 09:00:00
     2017-08-27 05:05:25   timer_02_c01    27.08.2017 19:59:00
     2017-08-27 05:05:25   timer_03_c02    27.08.2017 09:00:00
     2017-08-27 05:05:25   timer_04_c02    27.08.2017 19:59:00
     2017-08-27 05:05:25   timer_05_c03    27.08.2017 20:00:00
     2017-08-27 05:05:25   timer_06_c03    27.08.2017 22:45:00
   condition:
     0          EventDoIf('HomeStatus',$hash,'away',1) and DOIF_time($hash,0,1,$wday,$hms)and ReadingValDoIf($hash,'Wetter','condition') =~ m/(Gewitter|Schnee|Regen|Schauer|Hagel|Orkan|sturm)/
     1          EventDoIf('HomeStatus',$hash,'away',1) and (ReadingValDoIf($hash,'LichtWetter','twilight')>=3 and ReadingValDoIf($hash,'LichtWetter','twilight') <=7) and DOIF_time($hash,2,3,$wday,$hms)
     2          EventDoIf('HomeStatus',$hash,'away',1) and (ReadingValDoIf($hash,'LichtWetter','twilight')<=3 or ReadingValDoIf($hash,'LichtWetter','twilight') >=7) and DOIF_time($hash,4,5,$wday,$hms)
   days:
   devices:
     0           HomeStatus Wetter
     1           HomeStatus LichtWetter
     2           HomeStatus LichtWetter
     all         HomeStatus Wetter LichtWetter
   do:
     0:
       0          set Gesamtes_Licht off; set alle_Rollos half
     1:
       0          set Gesamtes_Licht off; set alle_Rollos open
     2:
       0          set Flur_Lampe on; set alle_Rollos position 70
     3:
       0          set Gesamtes_Licht off; set alle_Rollos closed
   helper:
     event      azimuth: 230.17,elevation: 38.13,twilight: 100,twilight_weather: 100,compasspoint: southwest
     globalinit 1
     last_timer 6
     sleeptimer -1
     timerdev   LichtWetter
     timerevent azimuth: 230.17,elevation: 38.13,twilight: 100,twilight_weather: 100,compasspoint: southwest
     triggerDev LichtWetter
     timerevents:
       azimuth: 230.17
       elevation: 38.13
       twilight: 100
       twilight_weather: 100
       compasspoint: southwest
     timereventsState:
       azimuth: 230.17
       elevation: 38.13
       twilight: 100
       twilight_weather: 100
       compasspoint: southwest
     triggerEvents:
       azimuth: 230.17
       elevation: 38.13
       twilight: 100
       twilight_weather: 100
       compasspoint: southwest
     triggerEventsState:
       azimuth: 230.17
       elevation: 38.13
       twilight: 100
       twilight_weather: 100
       compasspoint: southwest
   internals:
   interval:
     0          -1
     1          0
     2          -1
     3          2
     4          -1
     5          4
   itimer:
   localtime:
     0          1503817200
     1          1503856740
     2          1503817200
     3          1503856740
     4          1503856800
     5          1503866700
   readings:
     0           Wetter:condition
     1           LichtWetter:twilight
     2           LichtWetter:twilight
     all         Wetter:condition LichtWetter:twilight
   realtime:
     0          09:00:00
     1          19:59:00
     2          09:00:00
     3          19:59:00
     4          20:00:00
     5          22:45:00
   regexp:
     0:
     1:
     2:
     all:
   state:
     STATE:
   time:
     0          09:00:00
     1          19:59:00
     2          09:00:00
     3          19:59:00
     4          20:00:00
     5          22:45:00
   timeCond:
     0          0
     1          0
     2          1
     3          1
     4          2
     5          2
   timer:
     0          0
     1          0
     2          0
     3          0
     4          0
     5          0
   timers:
     0           0  1
     1           2  3
     2           4  5
   trigger:
     all         HomeStatus
   triggertime:
     1503856740:
       localtime  1503856740
       hash:
     1503856800:
       localtime  1503856800
       hash:
     1503866700:
       localtime  1503866700
       hash:
Attributes:
   room       Logik

Original zustand initialized

Save config ?
Tablet-UI
2.0_Draussen
9.6_System
Home-Status
Homekit
Logik
Unsorted
Wohnung
icoEverything Everything
Logfile
Commandref
Remote doc
Edit files
Select style
Event monitor

Internals:
   DEF        ([HomeStatus:"away"] and [09:00-19:59]and [Wetter:condition] =~ m/(Gewitter|Schnee|Regen|Schauer|Hagel|Orkan|sturm)/)
(set Gesamtes_Licht off; set alle_Rollos half)

DOELSEIF
([HomeStatus:"away"] and ([LichtWetter:twilight]>=3 and [LichtWetter:twilight] <=7) and [09:00-19:59])
(set Gesamtes_Licht off; set alle_Rollos open)

DOELSEIF
([HomeStatus:"away"] and ([LichtWetter:twilight]<=3 or [LichtWetter:twilight] >=7) and [20:00-22:45])
(set Flur_Lampe on; set alle_Rollos position 70)

DOELSE
(set Gesamtes_Licht off; set alle_Rollos closed)

   NAME       DOIF_HomeS_AWAY
   NR         53
   NTFY_ORDER 50-DOIF_HomeS_AWAY
   STATE      initialized
   TYPE       DOIF
   READINGS:
     2017-08-27 16:04:21   cmd             0
     2017-08-27 16:04:21   state           initialized
     2017-08-27 16:04:21   timer_01_c01    28.08.2017 09:00:00
     2017-08-27 16:04:21   timer_02_c01    27.08.2017 19:59:00
     2017-08-27 16:04:21   timer_03_c02    28.08.2017 09:00:00
     2017-08-27 16:04:21   timer_04_c02    27.08.2017 19:59:00
     2017-08-27 16:04:21   timer_05_c03    27.08.2017 20:00:00
     2017-08-27 16:04:21   timer_06_c03    27.08.2017 22:45:00
   condition:
     0          EventDoIf('HomeStatus',$hash,'away',1) and DOIF_time($hash,0,1,$wday,$hms)and ReadingValDoIf($hash,'Wetter','condition') =~ m/(Gewitter|Schnee|Regen|Schauer|Hagel|Orkan|sturm)/
     1          EventDoIf('HomeStatus',$hash,'away',1) and (ReadingValDoIf($hash,'LichtWetter','twilight')>=3 and ReadingValDoIf($hash,'LichtWetter','twilight') <=7) and DOIF_time($hash,2,3,$wday,$hms)
     2          EventDoIf('HomeStatus',$hash,'away',1) and (ReadingValDoIf($hash,'LichtWetter','twilight')<=3 or ReadingValDoIf($hash,'LichtWetter','twilight') >=7) and DOIF_time($hash,4,5,$wday,$hms)
   days:
   devices:
     0           HomeStatus Wetter
     1           HomeStatus LichtWetter
     2           HomeStatus LichtWetter
     all         HomeStatus Wetter LichtWetter
   do:
     0:
       0          set Gesamtes_Licht off; set alle_Rollos half
     1:
       0          set Gesamtes_Licht off; set alle_Rollos open
     2:
       0          set Flur_Lampe on; set alle_Rollos position 70
     3:
       0          set Gesamtes_Licht off; set alle_Rollos closed
   helper:
     globalinit 1
     last_timer 6
     sleeptimer -1
   interval:
     0          -1
     1          0
     2          -1
     3          2
     4          -1
     5          4
   itimer:
   localtime:
     0          1503903600
     1          1503856740
     2          1503903600
     3          1503856740
     4          1503856800
     5          1503866700
   readings:
     0           Wetter:condition
     1           LichtWetter:twilight
     2           LichtWetter:twilight
     all         Wetter:condition LichtWetter:twilight
   realtime:
     0          09:00:00
     1          19:59:00
     2          09:00:00
     3          19:59:00
     4          20:00:00
     5          22:45:00
   regexp:
     all:
   state:
     STATE:
   time:
     0          09:00:00
     1          19:59:00
     2          09:00:00
     3          19:59:00
     4          20:00:00
     5          22:45:00
   timeCond:
     0          0
     1          0
     2          1
     3          1
     4          2
     5          2
   timer:
     0          0
     1          0
     2          0
     3          0
     4          0
     5          0
   timers:
     0           0  1
     1           2  3
     2           4  5
   trigger:
     all         HomeStatus
   triggertime:
     1503856740:
       localtime  1503856740
       hash:
     1503856800:
       localtime  1503856800
       hash:
     1503866700:
       localtime  1503866700
       hash:
     1503903600:
       localtime  1503903600
       hash:
Attributes:
   room       Logik

amenomade

Zitat2017-08-27 15:56:38   e_LichtWetter_twilight 100
     2017-08-27 15:55:47   e_Wetter_condition wolkig
Dann ist cmd_4 normal, oder?
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

Micky

#11
Danke für deine Antwort.

Ach so, also liegt es daran das der zustand LichtWetter:twilight <=3 oder LichtWetter:twilight >=7


Dachte twilight nimmt nur zustände von 1 bis 10 an ?

Danke nochmal

amenomade

Also... twilight liegt bei 100, und wetter bei wolkig. Damit ist keine deiner Bedingungen wahr, und fällt dein DOIF auf DOELSE.
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

Micky

#13
Super danke

Micky

werde noch wahnsinnig,

wenn ich mehrere doifelse habe wieso springt er immer nach einem DOIFELSE nach DOELSE

([HomeStatus:"away"] and [09:00-19:59]and [Wetter:condition] =~ m/(Gewitter|Schnee|Regen|Schauer|Hagel|Orkan|sturm)/)
(set Gesamtes_Licht off; set alle_Rollos position 70)


DOELSEIF
([HomeStatus:"away"] and [09:00-20:29])
(set Gesamtes_Licht off; set alle_Rollos open)

DOELSEIF
([HomeStatus:"away"] and [20:30-21:18])
(set Gesamtes_Licht off; set alle_Rollos position 40)

DOELSEIF
([HomeStatus:"away"] and [21:19-23:00])
(set Flur_Lampe on)

DOELSE
(set Gesamtes_Licht off; set alle_Rollos closed)



er geht nicht nach Uhrzeit cmd3 cmd4 dann DOELSE auf cmd5
sonder spring nach cmd3 Uhrzeit z.B 21:18 direkt auf DOELSE

:(

danke nochmal