Hallo,
mir ist ein kleines "Problem" aufgefallen.
Ich habe folgendes DOIF:
([?09:00-18:00] and [Coolstream] eq "present" and [Helligkeit:state] > 900) (set Jalo_WZ_TV_vorne:FILTER=pct=100 pct 80)
DOELSE
([Coolstream] eq "absent") (set Jalo_WZ_TV_vorne:FILTER=pct=80 pct 100)
Wenn die Coolstream absent geht bekomme ich einen Fehler LOG:
2016.05.15 10:01:59 2: Coolstream_hoch_runter: absent eq "absent": Unknown command absent, try help.
Hier die List von dem DOIF:
Internals:
DEF ([?09:00-18:00] and [Coolstream] eq "present" and [Helligkeit:state] > 900) (set Jalo_WZ_TV_vorne:FILTER=pct=100 pct 80)
DOELSE
([Coolstream] eq "absent") (set Jalo_WZ_TV_vorne:FILTER=pct=80 pct 100)
NAME Coolstream_hoch_runter
NR 261
NTFY_ORDER 50-Coolstream_hoch_runter
STATE cmd_1
TYPE DOIF
Readings:
2016-05-15 10:07:59 Device Helligkeit
2016-05-15 10:07:59 cmd 1
2016-05-15 10:07:59 cmd_count 1
2016-05-15 10:07:59 cmd_event Helligkeit
2016-05-15 10:07:59 cmd_nr 1
2016-05-15 10:03:19 e_Coolstream_STATE present
2016-05-15 10:07:59 e_Helligkeit_state 1320.8
2016-05-15 10:07:59 state cmd_1
2016-05-15 10:01:15 timer_1_c1 16.05.2016 09:00:00
2016-05-15 10:01:15 timer_2_c1 15.05.2016 18:00:00
2016-05-15 10:07:06 wait_timer no timer
Condition:
0 DOIF_time($hash,$hash->{realtime}{0},$hash->{realtime}{1},$wday,$hms,"") and InternalDoIf($hash,'Coolstream','STATE','','',AttrVal($hash->{NAME},'notexist',undef)) eq "present" and ReadingValDoIf($hash,'Helligkeit','state','','',AttrVal($hash->{NAME},'notexist',undef)) > 900
Days:
Devices:
0 Coolstream Helligkeit
all Coolstream Helligkeit
Do:
0:
0 set Jalo_WZ_TV_vorne:FILTER=pct=100 pct 80
1:
0 [Coolstream] eq "absent"
1 set Jalo_WZ_TV_vorne:FILTER=pct=80 pct 100
Helper:
event 1320.8
globalinit 1
last_timer 2
sleepdevice Coolstream
sleepsubtimer -1
sleeptimer -1
timerdev Helligkeit
timerevent 1320.8
triggerDev Helligkeit
timerevents:
1320.8
timereventsState:
state: 1320.8
triggerEvents:
1320.8
triggerEventsState:
state: 1320.8
Internals:
0 Coolstream:STATE
all Coolstream:STATE
Interval:
0 -1
1 0
Itimer:
Localtime:
0 1463382000
1 1463328000
Readings:
0 Helligkeit:state
all Helligkeit:state
Realtime:
0 09:00:00
1 18:00:00
Regexp:
0:
All:
State:
Time:
0 09:00:00
1 18:00:00
Timecond:
0 0
1 0
Timer:
0 0
1 0
Trigger:
Triggertime:
1463328000:
localtime 1463328000
Hash:
1463382000:
localtime 1463382000
Hash:
Attributes:
repeatsame 1:0
room Wohnzimmer
und List von Coolstream:
Internals:
ADDRESS 192.168.2.7
DEF lan-ping 192.168.2.7 180 300
MODE lan-ping
NAME Coolstream
NR 136
STATE absent
TIMEOUT_NORMAL 180
TIMEOUT_PRESENT 300
TYPE PRESENCE
Readings:
2016-04-11 09:37:24 absent 0
2016-05-15 10:09:40 presence absent
2016-05-15 10:09:40 state absent
Helper:
Attributes:
event-on-change-reading presence
userattr room_map structexclude
Vielen Dank
Hoffi
Statt DOELSE DOELSEIF angeben.