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
Kann etwas gleichzeitig kleiner als 3 und größer als 7 sein? -> [LichtWetter:twilight]<3 and [LichtWetter:twilight] >7
Gruß Otto
[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
[Wetter:condition] =~ m/(Gewitter|Schnee|Regen|Schauer|Hagel|Orkan|sturm)/
sollte auch gehen
Hast Du andere Attribute auf dem DOIF?
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
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
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.
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?
Wiederum wäre ein list des DOIFs hilfreich. Am besten einmal im original Zustand, und dann im "falschen" Zustand.
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
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?
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
Also... twilight liegt bei 100, und wetter bei wolkig. Damit ist keine deiner Bedingungen wahr, und fällt dein DOIF auf DOELSE.
Super danke
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
Bitte ein list des DOIFs immer liefern.
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
Dieser Fehler ist tatsächlich komisch. Kannst versuchen, zum Test dieses Wetter Device aus dem DOIF zu nehmen.
Wie kann ich das Wetter device aus dem Doif rausnehmen
Indem du diese Bedingung erstmal rausnimmstand [Wetter:condition] =~ m/(Gewitter|Schnee|Regen|Schauer|Hagel|Orkan|sturm)
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)
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.
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 ?
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!
Zitatkann man es in PERL oder IF Bedingungen umschreiben ?
Was möchtest Du jetzt umschreiben?
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