Fibaro Roller Shutter 2 FHEM + Raspberry 3

Begonnen von Micky, 31 August 2017, 15:49:38

Vorheriges Thema - Nächstes Thema

Micky

#15
Guten Abend,

habe eine kleine kleine Frage ist es normal das die Aktore immer so ein klick Geräusch von sich geben, als ob sie benutzt werden, oder kann es am DOIF liegen der diese ständig abfragt ?

hier mal mein code:
Zitat
([HomeStatus] eq "away" and [{twilight ("LichtWetter","sr_indoor","8:30","10:59")}] and [Wetter:condition] =~ m/Gewitter|Schnee|Regen|Schauer|Hagel|Orkan|Sturm/)
(set Gesamtes_Licht off, set alle_Rollos dim 60)

DOELSEIF
([HomeStatus] eq "away" and [{twilight ("LichtWetter","sr_indoor","8:30","10:59")}] and [Wetter:condition] =~ m/Sonne|Bewölkt|Klar|Sonnig|Wechselhaft/)
(set Gesamtes_Licht off, set alle_Rollos up)

DOELSEIF
([HomeStatus] eq "away" and [{twilight ("LichtWetter","ss_civil","19:00","21:00")}])
(set Gesamtes_Licht off, set alle_Rollos dim 30)

DOELSEIF
([HomeStatus] eq "away" and [{twilight ("LichtWetter","ss_astro","21:00","22:45")}])
(set Gesamtes_Licht off, set alle_Rollos dim 60)

DOELSEIF
([HomeStatus] eq "away" and [22:37-22:45])
(set Flur_Lampe on)

DOELSEIF
([HomeStatus] eq "away" and [22:46-22:50])
(set Gesamtes_Licht off)

DOELSEIF
([HomeStatus] eq "away" and [23:02-08:29] or [23:02-08:29] and [Wetter:condition] =~ m/Gewitter|Schnee|Regen|Schauer|Hagel|Orkan|Sturm/)
(set Gesamtes_Licht off, set alle_Rollos dim 99)

DOELSE
(set Gesamtes_Licht off)

hier mal die list:

Internals:
   DEF
([HomeStatus] eq "away" and [{twilight ("LichtWetter","sr_indoor","8:30","10:59")}] and [Wetter:condition] =~ m/Gewitter|Schnee|Regen|Schauer|Hagel|Orkan|Sturm/)
(set Gesamtes_Licht off, set alle_Rollos dim 60)

DOELSEIF
([HomeStatus] eq "away" and [{twilight ("LichtWetter","sr_indoor","8:30","10:59")}] and [Wetter:condition] =~ m/Sonne|Bewölkt|Klar|Sonnig|Wechselhaft/)
(set Gesamtes_Licht off, set alle_Rollos up)

DOELSEIF
([HomeStatus] eq "away" and [{twilight ("LichtWetter","ss_civil","19:00","21:00")}])
(set Gesamtes_Licht off, set alle_Rollos dim 30)

DOELSEIF
([HomeStatus] eq "away" and [{twilight ("LichtWetter","ss_astro","21:00","22:45")}])
(set Gesamtes_Licht off, set alle_Rollos dim 60)

DOELSEIF
([HomeStatus] eq "away" and [22:37-22:45])
(set Flur_Lampe on)

DOELSEIF
([HomeStatus] eq "away" and [22:46-22:50])
(set Gesamtes_Licht off)

DOELSEIF
([HomeStatus] eq "away" and [23:02-08:29] or [23:02-08:29] and [Wetter:condition] =~ m/Gewitter|Schnee|Regen|Schauer|Hagel|Orkan|Sturm/)
(set Gesamtes_Licht off, set alle_Rollos dim 99)

DOELSE
(set Gesamtes_Licht off)
   NAME       DOIF_HomeS_AWAY
   NR         50
   NTFY_ORDER 50-DOIF_HomeS_AWAY
   STATE      cmd_8
   TYPE       DOIF
   READINGS:
     2017-09-03 18:14:16   Device          Wetter
     2017-09-03 11:42:16   cmd             8
     2017-09-03 11:42:16   cmd_event       HomeStatus
     2017-09-03 11:42:16   cmd_nr          8
     2017-09-03 11:52:44   e_HomeStatus_STATE night
     2017-09-03 18:14:16   e_Wetter_condition teilweise wolkig
     2017-09-03 11:42:16   state           cmd_8
     2017-09-03 11:43:27   timer_01_c01    04.09.2017 08:53:39
     2017-09-03 11:43:27   timer_02_c02    04.09.2017 08:53:39
     2017-09-03 11:43:27   timer_03_c03    03.09.2017 20:39:40
     2017-09-03 11:43:27   timer_04_c04    03.09.2017 22:04:39
     2017-09-03 11:43:27   timer_05_c05    03.09.2017 22:37:00
     2017-09-03 11:43:27   timer_06_c05    03.09.2017 22:45:00
     2017-09-03 11:43:27   timer_07_c06    03.09.2017 22:46:00
     2017-09-03 11:43:27   timer_08_c06    03.09.2017 22:50:00
     2017-09-03 11:43:27   timer_09_c07    03.09.2017 23:02:00
     2017-09-03 11:43:27   timer_10_c07    04.09.2017 08:29:00
     2017-09-03 11:43:27   timer_11_c07    03.09.2017 23:02:00
     2017-09-03 11:43:27   timer_12_c07    04.09.2017 08:29:00
   condition:
     0          InternalDoIf($hash,'HomeStatus','STATE') eq "away" and DOIF_time_once($hash,0,$wday) and ReadingValDoIf($hash,'Wetter','condition') =~ m/Gewitter|Schnee|Regen|Schauer|Hagel|Orkan|Sturm/
     1          InternalDoIf($hash,'HomeStatus','STATE') eq "away" and DOIF_time_once($hash,1,$wday) and ReadingValDoIf($hash,'Wetter','condition') =~ m/Sonne|Bewölkt|Klar|Sonnig|Wechselhaft/
     2          InternalDoIf($hash,'HomeStatus','STATE') eq "away" and DOIF_time_once($hash,2,$wday)
     3          InternalDoIf($hash,'HomeStatus','STATE') eq "away" and DOIF_time_once($hash,3,$wday)
     4          InternalDoIf($hash,'HomeStatus','STATE') eq "away" and DOIF_time($hash,4,5,$wday,$hms)
     5          InternalDoIf($hash,'HomeStatus','STATE') eq "away" and DOIF_time($hash,6,7,$wday,$hms)
     6          InternalDoIf($hash,'HomeStatus','STATE') eq "away" and DOIF_time($hash,8,9,$wday,$hms) or DOIF_time($hash,10,11,$wday,$hms) and ReadingValDoIf($hash,'Wetter','condition') =~ m/Gewitter|Schnee|Regen|Schauer|Hagel|Orkan|Sturm/
   days:
   devices:
     0           HomeStatus Wetter
     1           HomeStatus Wetter
     2           HomeStatus
     3           HomeStatus
     4           HomeStatus
     5           HomeStatus
     6           HomeStatus Wetter
     all         HomeStatus Wetter
   do:
     0:
       0          set Gesamtes_Licht off, set alle_Rollos dim 60
     1:
       0          set Gesamtes_Licht off, set alle_Rollos up
     2:
       0          set Gesamtes_Licht off, set alle_Rollos dim 30
     3:
       0          set Gesamtes_Licht off, set alle_Rollos dim 60
     4:
       0          set Flur_Lampe on
     5:
       0          set Gesamtes_Licht off
     6:
       0          set Gesamtes_Licht off, set alle_Rollos dim 99
     7:
       0          set Gesamtes_Licht off
   helper:
     event      lastError: ,pubDateComment: okay,pubDate: Sun, 03 Sep 2017 05:00 PM CEST,pubDateRemote: Sun, 03 Sep 2017 05:00 PM CEST,pubDateTs: 1504450800,isConverted: 0,validity: up-to-date,description: Yahoo! Weather for Frankfurt, HE, DE,city: Frankfurt,region:  HE,country: Germany,lat: 51.3432432,long: 9.3341,wind: 0,wind_speed: 0,wind_chill: 20,wind_direction: 180,wind_condition: Wind: S 0 km/h,humidity: 41,pressure: 999,visibility: 16,pressure_trend: 0,pressure_trend_txt: gleichbleibend,pressure_trend_sym: =,current_date_time: Sun, 03 Sep 2017 05:00 PM CEST,day_of_week: So,code: 30,condition: teilweise wolkig,icon: partly_cloudy,temp_c: 20,temperature: 20,fc1_day_of_week: So,fc1_date: 03 Sep 2017,fc1_low_c: 8,fc1_high_c: 20,fc1_code: 30,fc1_condition: teilweise wolkig,fc1_icon: partly_cloudy,fc2_day_of_week: Mo,fc2_date: 04 Sep 2017,fc2_low_c: 11,fc2_high_c: 22,fc2_code: 30,fc2_condition: teilweise wolkig,fc2_icon: partly_cloudy,fc3_day_of_week: Di,fc3_date: 05 Sep 2017,fc3_low_c: 12,fc3_high_c: 22,fc3_code: 28,fc3_condition: überwiegend wolkig,fc3_icon: mostlycloudy,fc4_day_of_week: Mi,fc4_date: 06 Sep 2017,fc4_low_c: 14,fc4_high_c: 20,fc4_code: 12,fc4_condition: Schauer,fc4_icon: chance_of_rain,fc5_day_of_week: Do,fc5_date: 07 Sep 2017,fc5_low_c: 10,fc5_high_c: 17,fc5_code: 28,fc5_condition: überwiegend wolkig,fc5_icon: mostlycloudy,fc6_day_of_week: Fr,fc6_date: 08 Sep 2017,fc6_low_c: 10,fc6_high_c: 19,fc6_code: 28,fc6_condition: überwiegend wolkig,fc6_icon: mostlycloudy,fc7_day_of_week: Sa,fc7_date: 09 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: 10 Sep 2017,fc8_low_c: 12,fc8_high_c: 18,fc8_code: 39,fc8_condition: vereinzelt Gewitter,fc8_icon: scatteredthunderstorms,fc9_day_of_week: Mo,fc9_date: 11 Sep 2017,fc9_low_c: 12,fc9_high_c: 18,fc9_code: 28,fc9_condition: überwiegend wolkig,fc9_icon: mostlycloudy,fc10_day_of_week: Di,fc10_date: 12 Sep 2017,fc10_low_c: 11,fc10_high_c: 19,fc10_code: 28,fc10_condition: überwiegend wolkig,fc10_icon: mostlycloudy,T: 20  H: 41  W: 0  P: 999
     globalinit 1
     last_timer 12
     sleeptimer -1
     timerdev   Wetter
     timerevent lastError: ,pubDateComment: okay,pubDate: Sun, 03 Sep 2017 05:00 PM CEST,pubDateRemote: Sun, 03 Sep 2017 05:00 PM CEST,pubDateTs: 1504450800,isConverted: 0,validity: up-to-date,description: Yahoo! Weather for Frankfurt, HE, DE,city: Frankfurt,region:  HE,country: Germany,lat: 51.3432432,long: 9.3341,wind: 0,wind_speed: 0,wind_chill: 20,wind_direction: 180,wind_condition: Wind: S 0 km/h,humidity: 41,pressure: 999,visibility: 16,pressure_trend: 0,pressure_trend_txt: gleichbleibend,pressure_trend_sym: =,current_date_time: Sun, 03 Sep 2017 05:00 PM CEST,day_of_week: So,code: 30,condition: teilweise wolkig,icon: partly_cloudy,temp_c: 20,temperature: 20,fc1_day_of_week: So,fc1_date: 03 Sep 2017,fc1_low_c: 8,fc1_high_c: 20,fc1_code: 30,fc1_condition: teilweise wolkig,fc1_icon: partly_cloudy,fc2_day_of_week: Mo,fc2_date: 04 Sep 2017,fc2_low_c: 11,fc2_high_c: 22,fc2_code: 30,fc2_condition: teilweise wolkig,fc2_icon: partly_cloudy,fc3_day_of_week: Di,fc3_date: 05 Sep 2017,fc3_low_c: 12,fc3_high_c: 22,fc3_code: 28,fc3_condition: überwiegend wolkig,fc3_icon: mostlycloudy,fc4_day_of_week: Mi,fc4_date: 06 Sep 2017,fc4_low_c: 14,fc4_high_c: 20,fc4_code: 12,fc4_condition: Schauer,fc4_icon: chance_of_rain,fc5_day_of_week: Do,fc5_date: 07 Sep 2017,fc5_low_c: 10,fc5_high_c: 17,fc5_code: 28,fc5_condition: überwiegend wolkig,fc5_icon: mostlycloudy,fc6_day_of_week: Fr,fc6_date: 08 Sep 2017,fc6_low_c: 10,fc6_high_c: 19,fc6_code: 28,fc6_condition: überwiegend wolkig,fc6_icon: mostlycloudy,fc7_day_of_week: Sa,fc7_date: 09 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: 10 Sep 2017,fc8_low_c: 12,fc8_high_c: 18,fc8_code: 39,fc8_condition: vereinzelt Gewitter,fc8_icon: scatteredthunderstorms,fc9_day_of_week: Mo,fc9_date: 11 Sep 2017,fc9_low_c: 12,fc9_high_c: 18,fc9_code: 28,fc9_condition: überwiegend wolkig,fc9_icon: mostlycloudy,fc10_day_of_week: Di,fc10_date: 12 Sep 2017,fc10_low_c: 11,fc10_high_c: 19,fc10_code: 28,fc10_condition: überwiegend wolkig,fc10_icon: mostlycloudy,T: 20  H: 41  W: 0  P: 999
     triggerDev Wetter
     timerevents:
       lastError:
       pubDateComment: okay
       pubDate: Sun, 03 Sep 2017 05:00 PM CEST
       pubDateRemote: Sun, 03 Sep 2017 05:00 PM CEST
       pubDateTs: 1504450800
       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: 0
       wind_speed: 0
       wind_chill: 20
       wind_direction: 180
       wind_condition: Wind: S 0 km/h
       humidity: 41
       pressure: 999
       visibility: 16
       pressure_trend: 0
       pressure_trend_txt: gleichbleibend
       pressure_trend_sym: =
       current_date_time: Sun, 03 Sep 2017 05:00 PM CEST
       day_of_week: So
       code: 30
       condition: teilweise wolkig
       icon: partly_cloudy
       temp_c: 20
       temperature: 20
       fc1_day_of_week: So
       fc1_date: 03 Sep 2017
       fc1_low_c: 8
       fc1_high_c: 20
       fc1_code: 30
       fc1_condition: teilweise wolkig
       fc1_icon: partly_cloudy
       fc2_day_of_week: Mo
       fc2_date: 04 Sep 2017
       fc2_low_c: 11
       fc2_high_c: 22
       fc2_code: 30
       fc2_condition: teilweise wolkig
       fc2_icon: partly_cloudy
       fc3_day_of_week: Di
       fc3_date: 05 Sep 2017
       fc3_low_c: 12
       fc3_high_c: 22
       fc3_code: 28
       fc3_condition: überwiegend wolkig
       fc3_icon: mostlycloudy
       fc4_day_of_week: Mi
       fc4_date: 06 Sep 2017
       fc4_low_c: 14
       fc4_high_c: 20
       fc4_code: 12
       fc4_condition: Schauer
       fc4_icon: chance_of_rain
       fc5_day_of_week: Do
       fc5_date: 07 Sep 2017
       fc5_low_c: 10
       fc5_high_c: 17
       fc5_code: 28
       fc5_condition: überwiegend wolkig
       fc5_icon: mostlycloudy
       fc6_day_of_week: Fr
       fc6_date: 08 Sep 2017
       fc6_low_c: 10
       fc6_high_c: 19
       fc6_code: 28
       fc6_condition: überwiegend wolkig
       fc6_icon: mostlycloudy
       fc7_day_of_week: Sa
       fc7_date: 09 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: 10 Sep 2017
       fc8_low_c: 12
       fc8_high_c: 18
       fc8_code: 39
       fc8_condition: vereinzelt Gewitter
       fc8_icon: scatteredthunderstorms
       fc9_day_of_week: Mo
       fc9_date: 11 Sep 2017
       fc9_low_c: 12
       fc9_high_c: 18
       fc9_code: 28
       fc9_condition: überwiegend wolkig
       fc9_icon: mostlycloudy
       fc10_day_of_week: Di
       fc10_date: 12 Sep 2017
       fc10_low_c: 11
       fc10_high_c: 19
       fc10_code: 28
       fc10_condition: überwiegend wolkig
       fc10_icon: mostlycloudy
       T: 20  H: 41  W: 0  P: 999
     timereventsState:
       lastError:
       pubDateComment: okay
       pubDate: Sun, 03 Sep 2017 05:00 PM CEST
       pubDateRemote: Sun, 03 Sep 2017 05:00 PM CEST
       pubDateTs: 1504450800
       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: 0
       wind_speed: 0
       wind_chill: 20
       wind_direction: 180
       wind_condition: Wind: S 0 km/h
       humidity: 41
       pressure: 999
       visibility: 16
       pressure_trend: 0
       pressure_trend_txt: gleichbleibend
       pressure_trend_sym: =
       current_date_time: Sun, 03 Sep 2017 05:00 PM CEST
       day_of_week: So
       code: 30
       condition: teilweise wolkig
       icon: partly_cloudy
       temp_c: 20
       temperature: 20
       fc1_day_of_week: So
       fc1_date: 03 Sep 2017
       fc1_low_c: 8
       fc1_high_c: 20
       fc1_code: 30
       fc1_condition: teilweise wolkig
       fc1_icon: partly_cloudy
       fc2_day_of_week: Mo
       fc2_date: 04 Sep 2017
       fc2_low_c: 11
       fc2_high_c: 22
       fc2_code: 30
       fc2_condition: teilweise wolkig
       fc2_icon: partly_cloudy
       fc3_day_of_week: Di
       fc3_date: 05 Sep 2017
       fc3_low_c: 12
       fc3_high_c: 22
       fc3_code: 28
       fc3_condition: überwiegend wolkig
       fc3_icon: mostlycloudy
       fc4_day_of_week: Mi
       fc4_date: 06 Sep 2017
       fc4_low_c: 14
       fc4_high_c: 20
       fc4_code: 12
       fc4_condition: Schauer
       fc4_icon: chance_of_rain
       fc5_day_of_week: Do
       fc5_date: 07 Sep 2017
       fc5_low_c: 10
       fc5_high_c: 17
       fc5_code: 28
       fc5_condition: überwiegend wolkig
       fc5_icon: mostlycloudy
       fc6_day_of_week: Fr
       fc6_date: 08 Sep 2017
       fc6_low_c: 10
       fc6_high_c: 19
       fc6_code: 28
       fc6_condition: überwiegend wolkig
       fc6_icon: mostlycloudy
       fc7_day_of_week: Sa
       fc7_date: 09 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: 10 Sep 2017
       fc8_low_c: 12
       fc8_high_c: 18
       fc8_code: 39
       fc8_condition: vereinzelt Gewitter
       fc8_icon: scatteredthunderstorms
       fc9_day_of_week: Mo
       fc9_date: 11 Sep 2017
       fc9_low_c: 12
       fc9_high_c: 18
       fc9_code: 28
       fc9_condition: überwiegend wolkig
       fc9_icon: mostlycloudy
       fc10_day_of_week: Di
       fc10_date: 12 Sep 2017
       fc10_low_c: 11
       fc10_high_c: 19
       fc10_code: 28
       fc10_condition: überwiegend wolkig
       fc10_icon: mostlycloudy
       state: T: 20  H: 41  W: 0  P: 999
     triggerEvents:
       lastError:
       pubDateComment: okay
       pubDate: Sun, 03 Sep 2017 05:00 PM CEST
       pubDateRemote: Sun, 03 Sep 2017 05:00 PM CEST
       pubDateTs: 1504450800
       isConverted: 0
       validity: up-to-date
       description: Yahoo! Weather for Frankfurt, HE, DE
       city: Frankfurt
       region:  HE
       country: Germany
       lat: 51.11208
       long: 9.68341
       wind: 0
       wind_speed: 0
       wind_chill: 20
       wind_direction: 180
       wind_condition: Wind: S 0 km/h
       humidity: 41
       pressure: 999
       visibility: 16
       pressure_trend: 0
       pressure_trend_txt: gleichbleibend
       pressure_trend_sym: =
       current_date_time: Sun, 03 Sep 2017 05:00 PM CEST
       day_of_week: So
       code: 30
       condition: teilweise wolkig
       icon: partly_cloudy
       temp_c: 20
       temperature: 20
       fc1_day_of_week: So
       fc1_date: 03 Sep 2017
       fc1_low_c: 8
       fc1_high_c: 20
       fc1_code: 30
       fc1_condition: teilweise wolkig
       fc1_icon: partly_cloudy
       fc2_day_of_week: Mo
       fc2_date: 04 Sep 2017
       fc2_low_c: 11
       fc2_high_c: 22
       fc2_code: 30
       fc2_condition: teilweise wolkig
       fc2_icon: partly_cloudy
       fc3_day_of_week: Di
       fc3_date: 05 Sep 2017
       fc3_low_c: 12
       fc3_high_c: 22
       fc3_code: 28
       fc3_condition: überwiegend wolkig
       fc3_icon: mostlycloudy
       fc4_day_of_week: Mi
       fc4_date: 06 Sep 2017
       fc4_low_c: 14
       fc4_high_c: 20
       fc4_code: 12
       fc4_condition: Schauer
       fc4_icon: chance_of_rain
       fc5_day_of_week: Do
       fc5_date: 07 Sep 2017
       fc5_low_c: 10
       fc5_high_c: 17
       fc5_code: 28
       fc5_condition: überwiegend wolkig
       fc5_icon: mostlycloudy
       fc6_day_of_week: Fr
       fc6_date: 08 Sep 2017
       fc6_low_c: 10
       fc6_high_c: 19
       fc6_code: 28
       fc6_condition: überwiegend wolkig
       fc6_icon: mostlycloudy
       fc7_day_of_week: Sa
       fc7_date: 09 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: 10 Sep 2017
       fc8_low_c: 12
       fc8_high_c: 18
       fc8_code: 39
       fc8_condition: vereinzelt Gewitter
       fc8_icon: scatteredthunderstorms
       fc9_day_of_week: Mo
       fc9_date: 11 Sep 2017
       fc9_low_c: 12
       fc9_high_c: 18
       fc9_code: 28
       fc9_condition: überwiegend wolkig
       fc9_icon: mostlycloudy
       fc10_day_of_week: Di
       fc10_date: 12 Sep 2017
       fc10_low_c: 11
       fc10_high_c: 19
       fc10_code: 28
       fc10_condition: überwiegend wolkig
       fc10_icon: mostlycloudy
       T: 20  H: 41  W: 0  P: 999
     triggerEventsState:
       lastError:
       pubDateComment: okay
       pubDate: Sun, 03 Sep 2017 05:00 PM CEST
       pubDateRemote: Sun, 03 Sep 2017 05:00 PM CEST
       pubDateTs: 1504450800
       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: 0
       wind_speed: 0
       wind_chill: 20
       wind_direction: 180
       wind_condition: Wind: S 0 km/h
       humidity: 41
       pressure: 999
       visibility: 16
       pressure_trend: 0
       pressure_trend_txt: gleichbleibend
       pressure_trend_sym: =
       current_date_time: Sun, 03 Sep 2017 05:00 PM CEST
       day_of_week: So
       code: 30
       condition: teilweise wolkig
       icon: partly_cloudy
       temp_c: 20
       temperature: 20
       fc1_day_of_week: So
       fc1_date: 03 Sep 2017
       fc1_low_c: 8
       fc1_high_c: 20
       fc1_code: 30
       fc1_condition: teilweise wolkig
       fc1_icon: partly_cloudy
       fc2_day_of_week: Mo
       fc2_date: 04 Sep 2017
       fc2_low_c: 11
       fc2_high_c: 22
       fc2_code: 30
       fc2_condition: teilweise wolkig
       fc2_icon: partly_cloudy
       fc3_day_of_week: Di
       fc3_date: 05 Sep 2017
       fc3_low_c: 12
       fc3_high_c: 22
       fc3_code: 28
       fc3_condition: überwiegend wolkig
       fc3_icon: mostlycloudy
       fc4_day_of_week: Mi
       fc4_date: 06 Sep 2017
       fc4_low_c: 14
       fc4_high_c: 20
       fc4_code: 12
       fc4_condition: Schauer
       fc4_icon: chance_of_rain
       fc5_day_of_week: Do
       fc5_date: 07 Sep 2017
       fc5_low_c: 10
       fc5_high_c: 17
       fc5_code: 28
       fc5_condition: überwiegend wolkig
       fc5_icon: mostlycloudy
       fc6_day_of_week: Fr
       fc6_date: 08 Sep 2017
       fc6_low_c: 10
       fc6_high_c: 19
       fc6_code: 28
       fc6_condition: überwiegend wolkig
       fc6_icon: mostlycloudy
       fc7_day_of_week: Sa
       fc7_date: 09 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: 10 Sep 2017
       fc8_low_c: 12
       fc8_high_c: 18
       fc8_code: 39
       fc8_condition: vereinzelt Gewitter
       fc8_icon: scatteredthunderstorms
       fc9_day_of_week: Mo
       fc9_date: 11 Sep 2017
       fc9_low_c: 12
       fc9_high_c: 18
       fc9_code: 28
       fc9_condition: überwiegend wolkig
       fc9_icon: mostlycloudy
       fc10_day_of_week: Di
       fc10_date: 12 Sep 2017
       fc10_low_c: 11
       fc10_high_c: 19
       fc10_code: 28
       fc10_condition: überwiegend wolkig
       fc10_icon: mostlycloudy
       state: T: 20  H: 41  W: 0  P: 999
   internals:
     0           HomeStatus:STATE
     1           HomeStatus:STATE
     2           HomeStatus:STATE
     3           HomeStatus:STATE
     4           HomeStatus:STATE
     5           HomeStatus:STATE
     6           HomeStatus:STATE
     all         HomeStatus:STATE
   interval:
     10         -1
     11         10
     4          -1
     5          4
     6          -1
     7          6
     8          -1
     9          8
   itimer:
   localtime:
     0          1504508019
     1          1504508019
     10         1504472520
     11         1504506540
     2          1504463980
     3          1504469079
     4          1504471020
     5          1504471500
     6          1504471560
     7          1504471800
     8          1504472520
     9          1504506540
   readings:
     0           Wetter:condition
     1           Wetter:condition
     6           Wetter:condition
     all         Wetter:condition
   realtime:
     0          08:53:39
     1          08:53:39
     10         23:02:00
     11         08:29:00
     2          20:39:40
     3          22:04:39
     4          22:37:00
     5          22:45:00
     6          22:46:00
     7          22:50:00
     8          23:02:00
     9          08:29:00
   regexp:
     0:
     1:
     2:
     3:
     4:
     5:
     6:
     all:
   state:
     STATE:
   time:
     0          {twilight("LichtWetter","sr_indoor","8:30","10:59")}
     1          {twilight("LichtWetter","sr_indoor","8:30","10:59")}
     10         23:02:00
     11         08:29:00
     2          {twilight("LichtWetter","ss_civil","19:00","21:00")}
     3          {twilight("LichtWetter","ss_astro","21:00","22:45")}
     4          22:37:00
     5          22:45:00
     6          22:46:00
     7          22:50:00
     8          23:02:00
     9          08:29:00
   timeCond:
     0          0
     1          1
     10         6
     11         6
     2          2
     3          3
     4          4
     5          4
     6          5
     7          5
     8          6
     9          6
   timer:
     0          0
     1          0
     10         0
     11         0
     2          0
     3          0
     4          0
     5          0
     6          0
     7          0
     8          0
     9          0
   timers:
     0           0
     1           1
     2           2
     3           3
     4           4  5
     5           6  7
     6           8  9  10  11
   trigger:
   triggertime:
     1504463980:
       localtime  1504463980
       hash:
     1504469079:
       localtime  1504469079
       hash:
     1504471020:
       localtime  1504471020
       hash:
     1504471500:
       localtime  1504471500
       hash:
     1504471560:
       localtime  1504471560
       hash:
     1504471800:
       localtime  1504471800
       hash:
     1504472520:
       localtime  1504472520
       hash:
     1504506540:
       localtime  1504506540
       hash:
     1504508019:
       localtime  1504508019
       hash:
Attributes:

krikan

Zitat von: Micky am 03 September 2017, 18:20:18
habe eine kleine kleine Frage ist es normal das die Aktore immer so ein klick Geräusch von sich geben,
Meine Klicken nur, wenn sie geschaltet werden. Zum DOIF und eventuell dadurch verursachten unnötigen Schaltvorgaengen kann ich Dir nichts schreiben.

Gruß, Christian

Micky

#17
Hi krikan,

ja denke auch das evtl. DOIF ständig anfragen sendet.
Und die aktore deshalb abwechselnd klicken.

Ich versuche mal heute Abend den DOIF ROLLO abzuschalten mal sehen ob das dann aufhört.

CODE:
([HomeStatus] eq "away" and [{twilight ("LichtWetter","sr_indoor","8:30","10:59")}] and [Wetter:condition] =~ m/Gewitter|Schnee|Regen|Schauer|Hagel|Orkan|Sturm/)
(set Gesamtes_Licht off, set alle_Rollos dim 60)

DOELSEIF
([HomeStatus] eq "away" and [{twilight ("LichtWetter","sr_indoor","8:30","10:59")}] and [Wetter:condition] =~ m/Sonne|Bewölkt|Klar|Sonnig|Wechselhaft/)
(set Gesamtes_Licht off, set alle_Rollos up)

DOELSEIF
([HomeStatus] eq "away" and [{twilight ("LichtWetter","ss_civil","19:00","21:00")}])
(set Gesamtes_Licht off, set alle_Rollos dim 30)

DOELSEIF
([HomeStatus] eq "away" and [{twilight ("LichtWetter","ss_astro","21:00","22:45")}])
(set Gesamtes_Licht off, set alle_Rollos dim 60)

DOELSEIF
([HomeStatus] eq "away" and [22:37-22:45])
(set Flur_Lampe on)

DOELSEIF
([HomeStatus] eq "away" and [22:46-22:50])
(set Gesamtes_Licht off)

DOELSEIF
([HomeStatus] eq "away" and [23:02-08:29] or [23:02-08:29] and [Wetter:condition] =~ m/Gewitter|Schnee|Regen|Schauer|Hagel|Orkan|Sturm/)
(set Gesamtes_Licht off, set alle_Rollos dim 99)

DOELSE
(set Gesamtes_Licht off)


Falls jemand einen besseren DOIF kürzen und verbessern kann, gerne !?!

Danke und schönen Sonntag

pc1246

#18
Moin
Du solltest mal darueber nachdenken, was Deine wirkliche Schaltbedingung sein soll!
Ich versuche mal zu erklaeren warum. Alle Deine Bedingungen triggern Dein DOIF, was wiederum bedeutet, dass auch der Befehl an die Aktoren rausgeht. In der Comandref vom DOIF kannst Du problemlos nachlesen, wie Du Abfragen und Bedingungen unterscheidest. (kleiner Tipp: ! ? )
Wenn Du das beruecksichtigst, enlastest du auch Deinen Stick, da der nicht staendig senden muss!
Gruss Christoph

EDITH: Da waren die Finger schneller als der Kopf!
HP T610
Onkyo_AVR;3 Enigma2; SB_Server ; SB_Player; HM-USB mit 15 HM-CC-RT-DN, 3 HM_WDS10_TH_O, 6 HM-Sec-SCo, 4 HM-Sec-MDIR-2, 1 HM-Sen-MDIR-O-2, 8 Ferion 5000 OW ; PhilipsTV; 4 harmony hub; Jeelink mit 9 PCA301; Somfy; S7-300; 3 LGW; HUE; HM-IP auf Charly

Micky

#19
mhh hab mir die commandref_DE.html#DOIF angeschaut, aber ich muss ja für die z.B. Wetter Einbindung schon eine Abfrage erstellen und sollte das Wetter z.B. Strum sein das es dann zutrifft : die Rollos runter fahren .

Wie würdest du die DOIF schreiben ?

danke

pc1246

Moin
Ich kann Dir das nicht schreiben, da ich Deine Module nicht alle kenne, und es Dir persoenlich auch nichts hilft. Du musst Deine Bedingungen und Deine Trigger erkennen, und die Bedingungen dann mit dem "?" als solche markieren!
Ich persoenlich bin der Ueberzeugung, dass ein DOIF nur einen Aktor behandeln sollte. Du verlierst sonst irgendwann den Ueberblick, wer wann was warum geschaltet hat.
Hast du bei dem DOIF keine Attribute gesetzt?
Gruss Christoph

P.S.: Noch ein kleiner Tipp, wie du unnoetige Schaltungen verhinderst.
([?Rollo1] <= 20 and [10:15-10:20])(set Licht1:FILTER=STATE!=off off)
DOELSEIF ([Rollo1] > 20)(set Licht1:FILTER=STATE!=on on)
HP T610
Onkyo_AVR;3 Enigma2; SB_Server ; SB_Player; HM-USB mit 15 HM-CC-RT-DN, 3 HM_WDS10_TH_O, 6 HM-Sec-SCo, 4 HM-Sec-MDIR-2, 1 HM-Sen-MDIR-O-2, 8 Ferion 5000 OW ; PhilipsTV; 4 harmony hub; Jeelink mit 9 PCA301; Somfy; S7-300; 3 LGW; HUE; HM-IP auf Charly