doif code kürzen rolladen bei status away

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

Vorheriges Thema - Nächstes Thema

amenomade

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

#16
kommt sofort sorry ....

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

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 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:21])
(set Gesamtes_Licht off; set alle_Rollos position 40)

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

DOELSE
(set Gesamtes_Licht off; set alle_Rollos closed)

   NAME       DOIF_HomeS_AWAY
   NR         53
   NTFY_ORDER 50-DOIF_HomeS_AWAY
   STATE      cmd_5
   TYPE       DOIF
   READINGS:
     2017-08-27 21:35:16   Device          Wetter
     2017-08-27 21:21:00   cmd             5
     2017-08-27 21:21:00   cmd_event       timer_7
     2017-08-27 21:21:00   cmd_nr          5
     2017-08-27 21:20:23   e_HomeStatus_events away
     2017-08-27 21:35:16   e_Wetter_condition überwiegend wolkig
     2017-08-27 21:35:16   e_Wetter_events lastError: ,pubDateComment: okay,pubDate: Sun, 27 Aug 2017 08:00 PM CEST,pubDateRemote: Sun, 27 Aug 2017 08:00 PM CEST,pubDateTs: 1503856800,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: 11,wind_speed: 11,wind_chill: 24,wind_direction: 15,wind_condition: Wind: NNO 11 km/h,humidity: 59,pressure: 1002,visibility: 16,pressure_trend: 0,pressure_trend_txt: gleichbleibend,pressure_trend_sym: =,current_date_time: Sun, 27 Aug 2017 08:00 PM CEST,day_of_week: So,code: 28,condition: überwiegend wolkig,icon: mostlycloudy,temp_c: 23,temperature: 23,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: 23  H: 59  W: 11  P: 1002
     2017-08-27 21:21:00   state           cmd_5
     2017-08-27 21:20:18   timer_01_c01    28.08.2017 09:00:00
     2017-08-27 21:20:18   timer_02_c01    28.08.2017 19:59:00
     2017-08-27 21:20:18   timer_03_c02    28.08.2017 09:00:00
     2017-08-27 21:20:18   timer_04_c02    28.08.2017 20:29:00
     2017-08-27 21:21:00   timer_05_c03    28.08.2017 20:30:00
     2017-08-27 21:21:00   timer_06_c03    28.08.2017 21:21:00
     2017-08-27 21:20:18   timer_07_c04    27.08.2017 21:21:00
     2017-08-27 21:20:18   timer_08_c04    27.08.2017 23:00: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 DOIF_time($hash,2,3,$wday,$hms)
     2          EventDoIf('HomeStatus',$hash,'away',1) and DOIF_time($hash,4,5,$wday,$hms)
     3          EventDoIf('HomeStatus',$hash,'away',1) and DOIF_time($hash,6,7,$wday,$hms)
   days:
   devices:
     0           HomeStatus Wetter
     1           HomeStatus
     2           HomeStatus
     3           HomeStatus
     all         HomeStatus Wetter
   do:
     0:
       0          set Gesamtes_Licht off; set alle_Rollos position 70
     1:
       0          set Gesamtes_Licht off; set alle_Rollos open
     2:
       0          set Gesamtes_Licht off; set alle_Rollos position 40
     3:
       0          set Flur_Lampe on
     4:
       0          set Gesamtes_Licht off; set alle_Rollos closed
   helper:
     event      lastError: ,pubDateComment: okay,pubDate: Sun, 27 Aug 2017 08:00 PM CEST,pubDateRemote: Sun, 27 Aug 2017 08:00 PM CEST,pubDateTs: 1503856800,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: 11,wind_speed: 11,wind_chill: 24,wind_direction: 15,wind_condition: Wind: NNO 11 km/h,humidity: 59,pressure: 1002,visibility: 16,pressure_trend: 0,pressure_trend_txt: gleichbleibend,pressure_trend_sym: =,current_date_time: Sun, 27 Aug 2017 08:00 PM CEST,day_of_week: So,code: 28,condition: überwiegend wolkig,icon: mostlycloudy,temp_c: 23,temperature: 23,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: 23  H: 59  W: 11  P: 1002
     globalinit 1
     last_timer 8
     sleeptimer -1
     timerdev   Wetter
     timerevent lastError: ,pubDateComment: okay,pubDate: Sun, 27 Aug 2017 08:00 PM CEST,pubDateRemote: Sun, 27 Aug 2017 08:00 PM CEST,pubDateTs: 1503856800,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: 11,wind_speed: 11,wind_chill: 24,wind_direction: 15,wind_condition: Wind: NNO 11 km/h,humidity: 59,pressure: 1002,visibility: 16,pressure_trend: 0,pressure_trend_txt: gleichbleibend,pressure_trend_sym: =,current_date_time: Sun, 27 Aug 2017 08:00 PM CEST,day_of_week: So,code: 28,condition: überwiegend wolkig,icon: mostlycloudy,temp_c: 23,temperature: 23,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: 23  H: 59  W: 11  P: 1002
     triggerDev Wetter
     timerevents:
       lastError:
       pubDateComment: okay
       pubDate: Sun, 27 Aug 2017 08:00 PM CEST
       pubDateRemote: Sun, 27 Aug 2017 08:00 PM CEST
       pubDateTs: 1503856800
       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: 11
       wind_speed: 11
       wind_chill: 24
       wind_direction: 15
       wind_condition: Wind: NNO 11 km/h
       humidity: 59
       pressure: 1002
       visibility: 16
       pressure_trend: 0
       pressure_trend_txt: gleichbleibend
       pressure_trend_sym: =
       current_date_time: Sun, 27 Aug 2017 08:00 PM CEST
       day_of_week: So
       code: 28
       condition: überwiegend wolkig
       icon: mostlycloudy
       temp_c: 23
       temperature: 23
       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: 23  H: 59  W: 11  P: 1002
     timereventsState:
       lastError:
       pubDateComment: okay
       pubDate: Sun, 27 Aug 2017 08:00 PM CEST
       pubDateRemote: Sun, 27 Aug 2017 08:00 PM CEST
       pubDateTs: 1503856800
       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: 11
       wind_speed: 11
       wind_chill: 24
       wind_direction: 15
       wind_condition: Wind: NNO 11 km/h
       humidity: 59
       pressure: 1002
       visibility: 16
       pressure_trend: 0
       pressure_trend_txt: gleichbleibend
       pressure_trend_sym: =
       current_date_time: Sun, 27 Aug 2017 08:00 PM CEST
       day_of_week: So
       code: 28
       condition: überwiegend wolkig
       icon: mostlycloudy
       temp_c: 23
       temperature: 23
       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
       state: T: 23  H: 59  W: 11  P: 1002
     triggerEvents:
       lastError:
       pubDateComment: okay
       pubDate: Sun, 27 Aug 2017 08:00 PM CEST
       pubDateRemote: Sun, 27 Aug 2017 08:00 PM CEST
       pubDateTs: 1503856800
       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: 11
       wind_speed: 11
       wind_chill: 24
       wind_direction: 15
       wind_condition: Wind: NNO 11 km/h
       humidity: 59
       pressure: 1002
       visibility: 16
       pressure_trend: 0
       pressure_trend_txt: gleichbleibend
       pressure_trend_sym: =
       current_date_time: Sun, 27 Aug 2017 08:00 PM CEST
       day_of_week: So
       code: 28
       condition: überwiegend wolkig
       icon: mostlycloudy
       temp_c: 23
       temperature: 23
       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: 23  H: 59  W: 11  P: 1002
     triggerEventsState:
       lastError:
       pubDateComment: okay
       pubDate: Sun, 27 Aug 2017 08:00 PM CEST
       pubDateRemote: Sun, 27 Aug 2017 08:00 PM CEST
       pubDateTs: 1503856800
       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: 11
       wind_speed: 11
       wind_chill: 24
       wind_direction: 15
       wind_condition: Wind: NNO 11 km/h
       humidity: 59
       pressure: 1002
       visibility: 16
       pressure_trend: 0
       pressure_trend_txt: gleichbleibend
       pressure_trend_sym: =
       current_date_time: Sun, 27 Aug 2017 08:00 PM CEST
       day_of_week: So
       code: 28
       condition: überwiegend wolkig
       icon: mostlycloudy
       temp_c: 23
       temperature: 23
       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
       state: T: 23  H: 59  W: 11  P: 1002
   internals:
   interval:
     0          -1
     1          0
     2          -1
     3          2
     4          -1
     5          4
     6          -1
     7          6
   itimer:
   localtime:
     0          1503903600
     1          1503943140
     2          1503903600
     3          1503944940
     4          1503945000
     5          1503948060
     6          1503861660
     7          1503867600
   readings:
     0           Wetter:condition
     all         Wetter:condition
   realtime:
     0          09:00:00
     1          19:59:00
     2          09:00:00
     3          20:29:00
     4          20:30:00
     5          21:21:00
     6          21:21:00
     7          23:00:00
   regexp:
     0:
     1:
     2:
     3:
     all:
   state:
     STATE:
   time:
     0          09:00:00
     1          19:59:00
     2          09:00:00
     3          20:29:00
     4          20:30:00
     5          21:21:00
     6          21:21:00
     7          23:00:00
   timeCond:
     0          0
     1          0
     2          1
     3          1
     4          2
     5          2
     6          3
     7          3
   timer:
     0          0
     1          0
     2          0
     3          0
     4          0
     5          0
     6          0
     7          0
   timers:
     0           0  1
     1           2  3
     2           4  5
     3           6  7
   trigger:
     all         HomeStatus
   triggertime:
     1503867600:
       localtime  1503867600
       hash:
     1503903600:
       localtime  1503903600
       hash:
     1503943140:
       localtime  1503943140
       hash:
     1503944940:
       localtime  1503944940
       hash:
     1503945000:
       localtime  1503945000
       hash:
     1503948060:
       localtime  1503948060
       hash:
Attributes:
   room       Logik


was sagt dieser Fehler aus ?

2017-08-27 21:35:16   e_Wetter_events lastError: ,pubDateComment: okay,pubDate: Sun, 27 Aug 2017 08:00 PM CEST,pu


amenomade

Dieser Fehler ist tatsächlich komisch. Kannst versuchen, zum Test dieses Wetter Device aus dem DOIF zu nehmen.

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

Wie kann ich das Wetter device aus dem Doif rausnehmen

amenomade

Indem du diese Bedingung erstmal rausnimmstand [Wetter:condition] =~ m/(Gewitter|Schnee|Regen|Schauer|Hagel|Orkan|sturm)
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

#20
Springt immernoch von cmd3 auf cmd5

([HomeStatus:"away"] and [09:00-19:59])
(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-22:50])
(set Gesamtes_Licht off; set alle_Rollos position 40)

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

DOELSE
(set Gesamtes_Licht off; set alle_Rollos closed)

amenomade

Zitat von: amenomade am 27 August 2017, 21:33:40
Bitte ein list des DOIFs immer liefern.

Ausserdem würde ich sagen, dass er zwischen 22:50:01 und 22:50:59 nicht weiss, was er machen soll.

Übrigens: die Befhele in einem DOIF muss man mit Koma statt Semikolon trennen.
(set Gesamtes_Licht off, set alle_Rollos position 70)

Und es fällt mir gerade ein:[HomeStatus:"away"] triggert nur auf dem Event. Wenn Du den Status testen möchtest, solltest Du [HomeStatus] eq "away" schreiben.
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

#22
hi,

habe gelesen das DOIF nur einmal den zustand annimmt und anschliessend immer auf DOELSE geht.

EDIT: jetzt scheint es zu klappen!!

Internals:
   CFGFN
   DEF        ([HomeStatus] eq "away" and [09:00-11:59])
(set Gesamtes_Licht off, set alle_Rollos open)

DOELSEIF
([HomeStatus] eq "away"and [11:59-12:17])
(set Gesamtes_Licht off, set alle_Rollos position 40)

DOELSEIF
([HomeStatus] eq "away" and [12:18-23:00])
(set Flur_Lampe on)

DOELSE
(set Gesamtes_Licht off, set alle_Rollos closed)
   NAME       DOIF_HomeS_AWAY
   NR         593
   NTFY_ORDER 50-DOIF_HomeS_AWAY
   STATE      cmd_3
   TYPE       DOIF
   READINGS:
     2017-08-28 12:16:03   Device          HomeStatus
     2017-08-28 12:18:00   cmd             3
     2017-08-28 12:18:00   cmd_event       timer_5
     2017-08-28 12:18:00   cmd_nr          3
     2017-08-28 12:16:03   e_HomeStatus_STATE away
     2017-08-28 12:18:00   state           cmd_3
     2017-08-28 12:15:50   timer_01_c01    29.08.2017 09:00:00
     2017-08-28 12:15:50   timer_02_c01    29.08.2017 11:59:00
     2017-08-28 12:17:00   timer_03_c02    29.08.2017 11:59:00
     2017-08-28 12:17:00   timer_04_c02    29.08.2017 12:17:00
     2017-08-28 12:15:50   timer_05_c03    28.08.2017 12:18:00
     2017-08-28 12:15:50   timer_06_c03    28.08.2017 23:00:00
   condition:
     0          InternalDoIf($hash,'HomeStatus','STATE') eq "away" and DOIF_time($hash,0,1,$wday,$hms)
     1          InternalDoIf($hash,'HomeStatus','STATE') eq "away"and DOIF_time($hash,2,3,$wday,$hms)
     2          InternalDoIf($hash,'HomeStatus','STATE') eq "away" and DOIF_time($hash,4,5,$wday,$hms)
   days:
   devices:
     0           HomeStatus
     1           HomeStatus
     2           HomeStatus
     all         HomeStatus
   do:
     0:
       0          set Gesamtes_Licht off, set alle_Rollos open
     1:
       0          set Gesamtes_Licht off, set alle_Rollos position 40
     2:
       0          set Flur_Lampe on
     3:
       0          set Gesamtes_Licht off, set alle_Rollos closed
   helper:
     event      timer_5
     globalinit 1
     last_timer 6
     sleeptimer -1
     timerdev
     timerevent timer_5
     triggerDev
     timerevents:
       timer_5
     timereventsState:
       state: away
     triggerEvents:
       timer_5
     triggerEventsState:
       state: away
   internals:
     0           HomeStatus:STATE
     1           HomeStatus:STATE
     2           HomeStatus:STATE
     all         HomeStatus:STATE
   interval:
     0          -1
     1          0
     2          -1
     3          2
     4          -1
     5          4
   itimer:
   localtime:
     0          1503990000
     1          1504000740
     2          1504000740
     3          1504001820
     4          1503915480
     5          1503954000
   readings:
   realtime:
     0          09:00:00
     1          11:59:00
     2          11:59:00
     3          12:17:00
     4          12:18:00
     5          23:00:00
   regexp:
     0:
     1:
     all:
   state:
     STATE:
   time:
     0          09:00:00
     1          11:59:00
     2          11:59:00
     3          12:17:00
     4          12:18:00
     5          23:00: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:
   triggertime:
     1503954000:
       localtime  1503954000
       hash:
     1503990000:
       localtime  1503990000
       hash:
     1504000740:
       localtime  1504000740
       hash:
     1504001820:
       localtime  1504001820
       hash:
Attributes:


lag also an HomeStatus eq away
danke

kann man es in PERL oder IF Bedingungen  umschreiben ?


amenomade

#23
Also nochmal zur Erklärung: nehmen wir an, dein DOIF würde so aussehen:

([HomeStatus:"away"])
   (set Gesamtes_Licht off)
DOELSEIF ([HomeStatus:"present"])
   (set Gesamtes_Licht on)
DOELSE

So ein DOIF reagiert auf den Events des Devices HomeStatus.
Geht HomeStatus auf away, wird ein Event HomeStatus away generiert, das DOIF reagiert, prüft "Ist das anstossende Event "away"? Ja! Dann cmd_1.

Ändert sich jetzt ein Reading des Devices HomeStatus, das gar nix mit "STATE" zu tun hat (sagen wir mal z.B. das Reading Temperature des Devices HomeStatus). Das DOIF wird getriggert, aber das Event ist NICHT "away" sondern "temperature 18" => Bedingung 1 und 2 sind falsch => Das DOIF geht in Zustand cmd_3!

Nehmen wir jetzt die andere Form:
([HomeStatus] eq "away"])
   (set Gesamtes_Licht off)
DOELSEIF ([HomeStatus] eq "present"])
   (set Gesamtes_Licht on)
DOELSE

So ein DOIF reagiert ebenfalls auf den Events des Devices HomeStatus.
Geht HomeStatus auf away, wird ein Event HomeStatus away generiert, das DOIF reagiert, und prüft: "Ist der Wert von HomeStatus gleich "away"? Ja! Dann cmd_1.

Ändert sich jetzt das Reading Temperature => Das DOIF wird getriggert, und prüft : "Ist der Wert von HomeStatus gleich "away"? Ja! In cmd_1 bin ich schon. Mache nix"
Und ich glaube, das ist tatsächlich das Verhalten, das Du willst.


EDIT: ahah inzwischen hast Du dein Post auch editiert, sehe ich gerade ;) Egal, die Erklärung ist jetzt da!
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

amenomade

Zitatkann man es in PERL oder IF Bedingungen  umschreiben ?
Was möchtest Du jetzt umschreiben?
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

dachte, sollte es nicht umsetzbar sein mit DOIF dann evtl. per PERL if bedinungen.

Aber es scheint zu funktionieren.
Werde heute abend nochmal testen ob es sich mit dem lässt Wetter einbinden
lässt.

danke