Hi,
Ich weiss leider nicht, ob ich hier im richtigen Board bin, da meine Frage überall so ein bisschen dazugehört.
Ich hatte folgendes DOIF definiert:
Internals:
DEF ([06:00-07:00] or [18:00-21:00] or (([SGS5_Stephan] eq "present" or [SGS5_Nadine] eq "present") and [({sunset()}+900)]) )
(
set FS20_Weihnacht_.* on
) DOELSE
(
set FS20_Weihnacht_.* off
)
NAME DF_Weihnacht
NR 655
NTFY_ORDER 50-DF_presence
STATE initialized
TYPE DOIF
Readings:
2016-12-07 01:51:18 cmd 0
2016-12-07 01:51:18 state initialized
2016-12-07 01:51:18 timer_1_c1 07.12.2016 06:00:00
2016-12-07 01:51:18 timer_2_c1 07.12.2016 07:00:00
2016-12-07 01:51:18 timer_3_c1 07.12.2016 18:00:00
2016-12-07 01:51:18 timer_4_c1 07.12.2016 21:00:00
2016-12-07 01:51:18 timer_5_c1 07.12.2016 17:16:33
Condition:
0 DOIF_time($hash,$hash->{realtime}{0},$hash->{realtime}{1},$wday,$hms,"") or DOIF_time($hash,$hash->{realtime}{2},$hash->{realtime}{3},$wday,$hms,"") or ((InternalDoIf($hash,'SGS5_Stephan','STATE','','',AttrVal($hash->{NAME},'notexist',undef)) eq "present" or InternalDoIf($hash,'SGS5_Nadine','STATE','','',AttrVal($hash->{NAME},'notexist',undef)) eq "present") and DOIF_time_once($hash,$hash->{timer}{4},$wday,""))
Days:
Devices:
0 SGS5_Stephan SGS5_Nadine
all SGS5_Stephan SGS5_Nadine
Do:
0:
0 set FS20_Weihnacht_.* on
1:
0 set FS20_Weihnacht_.* off
Helper:
globalinit 1
last_timer 5
sleeptimer -1
Internals:
0 SGS5_Stephan:STATE SGS5_Nadine:STATE
all SGS5_Stephan:STATE SGS5_Nadine:STATE
Interval:
0 -1
1 0
2 -1
3 2
Itimer:
Localtime:
0 1481086800
1 1481090400
2 1481130000
3 1481140800
4 1481127393
Realtime:
0 06:00:00
1 07:00:00
2 18:00:00
3 21:00:00
4 17:16:33
Regexp:
All:
State:
Time:
0 06:00:00
1 07:00:00
2 18:00:00
3 21:00:00
4 ({sunset()}+900)
Timecond:
0 0
1 0
2 0
3 0
4 0
Timer:
0 0
1 0
2 0
3 0
4 0
Timers:
0 0 1 2 3 4
Triggertime:
1481086800:
localtime 1481086800
Hash:
1481090400:
localtime 1481090400
Hash:
1481127393:
localtime 1481127393
Hash:
1481130000:
localtime 1481130000
Hash:
1481140800:
localtime 1481140800
Hash:
Attributes:
room Weihnachtsbeleuchtung,_doif,presence
Dieses zeigt als Probably associated with nur die beiden Handys an.
Internals:
DEF ([06:00-07:00] or [18:00-21:00] or (([SGS5_Stephan] eq "present" or [SGS5_Nadine] eq "present") and [({sunset()}+900)]) )
(
set FS20_Weihnacht_Dach on,
set FS20_Weihnacht_FlurOG on,
set FS20_Weihnacht_Wozi on
) DOELSE
(
set FS20_Weihnacht_Dach off,
set FS20_Weihnacht_FlurOG off,
set FS20_Weihnacht_Wozi off
)
NAME DF_Weihnacht
NR 655
NTFY_ORDER 50-DF_presence
STATE initialized
TYPE DOIF
Readings:
2016-12-07 01:52:10 cmd 0
2016-12-07 01:52:10 state initialized
2016-12-07 01:52:10 timer_1_c1 07.12.2016 06:00:00
2016-12-07 01:52:10 timer_2_c1 07.12.2016 07:00:00
2016-12-07 01:52:10 timer_3_c1 07.12.2016 18:00:00
2016-12-07 01:52:10 timer_4_c1 07.12.2016 21:00:00
2016-12-07 01:52:10 timer_5_c1 07.12.2016 17:16:33
Condition:
0 DOIF_time($hash,$hash->{realtime}{0},$hash->{realtime}{1},$wday,$hms,"") or DOIF_time($hash,$hash->{realtime}{2},$hash->{realtime}{3},$wday,$hms,"") or ((InternalDoIf($hash,'SGS5_Stephan','STATE','','',AttrVal($hash->{NAME},'notexist',undef)) eq "present" or InternalDoIf($hash,'SGS5_Nadine','STATE','','',AttrVal($hash->{NAME},'notexist',undef)) eq "present") and DOIF_time_once($hash,$hash->{timer}{4},$wday,""))
Days:
Devices:
0 SGS5_Stephan SGS5_Nadine
all SGS5_Stephan SGS5_Nadine
Do:
0:
0 set FS20_Weihnacht_Dach on, set FS20_Weihnacht_FlurOG on, set FS20_Weihnacht_Wozi on
1:
0 set FS20_Weihnacht_Dach off, set FS20_Weihnacht_FlurOG off, set FS20_Weihnacht_Wozi off
Helper:
globalinit 1
last_timer 5
sleeptimer -1
Internals:
0 SGS5_Stephan:STATE SGS5_Nadine:STATE
all SGS5_Stephan:STATE SGS5_Nadine:STATE
Interval:
0 -1
1 0
2 -1
3 2
Itimer:
Localtime:
0 1481086800
1 1481090400
2 1481130000
3 1481140800
4 1481127393
Realtime:
0 06:00:00
1 07:00:00
2 18:00:00
3 21:00:00
4 17:16:33
Regexp:
All:
State:
Time:
0 06:00:00
1 07:00:00
2 18:00:00
3 21:00:00
4 ({sunset()}+900)
Timecond:
0 0
1 0
2 0
3 0
4 0
Timer:
0 0
1 0
2 0
3 0
4 0
Timers:
0 0 1 2 3 4
Triggertime:
1481086800:
localtime 1481086800
Hash:
1481090400:
localtime 1481090400
Hash:
1481127393:
localtime 1481127393
Hash:
1481130000:
localtime 1481130000
Hash:
1481140800:
localtime 1481140800
Hash:
Attributes:
room Weihnachtsbeleuchtung,_doif,presence
Dieses zeigt alle Devices an.
Ist das Absicht?
Wenn ja, würde ich gerne verstehen, warum,
wenn nein, möchte ich den Vorschlag unterbreiten, das aufzunehmen.
Grüße und Danke!
Stephan