Hallo,
Ich habe meine Doif´s zusammen gelegt. Dabei muss sich ein Fehler eingeschlichen haben.
Kann vielleicht bitte einmal rübergeschaut werden, wo der Fehler ist.
([06:45|1235] and [SH_Ferientag] eq "0" and [Jalousie_Automatik] eq "Auto" and [Helligkeit:state] < 200) (set Jalo_Bad 50)
DOELSEIF
([06:45|1235] and [SH_Ferientag] eq "0" and [Jalousie_Automatik] eq "Auto" and [Helligkeit:state] > 200) (set Jalo_Bad on)
DOELSEIF
([07:30|4] and [SH_Ferientag] eq "0" and [Jalousie_Automatik] eq "Auto" and [Helligkeit:state] > 200) (set Jalo_Bad 50)
DOELSEIF
([07:30|4] and [SH_Ferientag] eq "0" and [Jalousie_Automatik] eq "Auto" and [Helligkeit:state] < 200) (set Jalo_Bad on)
DOELSEIF
([15:00-22:00] and [Helligkeit:state] < 0.5) (set Jalo_Bad off)
Im Logfile habe ich seit der Umstellung folgendes stehen:
2015.11.18 17:17:00 3: CUL_HM set Jalo_Bad off
2015.11.18 17:19:00 3: CUL_HM set Jalo_Bad off
2015.11.18 17:21:00 3: CUL_HM set Jalo_Bad off
2015.11.18 17:23:00 3: CUL_HM set Jalo_Bad off
2015.11.18 17:25:00 3: CUL_HM set Jalo_Bad off
2015.11.18 17:26:59 3: CUL_HM set Jalo_Bad off
2015.11.18 17:28:59 3: CUL_HM set Jalo_Bad off
2015.11.18 17:31:00 3: CUL_HM set Jalo_Bad off
2015.11.18 17:32:59 3: CUL_HM set Jalo_Bad off
2015.11.18 17:34:59 1: DEBUG>ts1= 1447858800, ts2= 1447351200
2015.11.18 17:34:59 3: CUL_HM set Jalo_Bad off
2015.11.18 17:37:00 3: CUL_HM set Jalo_Bad off
2015.11.18 17:39:00 3: CUL_HM set Jalo_Bad off
2015.11.18 17:41:00 3: CUL_HM set Jalo_Bad off
2015.11.18 17:43:00 3: CUL_HM set Jalo_Bad off
2015.11.18 17:45:00 3: CUL_HM set Jalo_Bad off
2015.11.18 17:47:00 3: CUL_HM set Jalo_Bad off
2015.11.18 17:49:00 3: CUL_HM set Jalo_Bad off
2015.11.18 17:51:01 3: CUL_HM set Jalo_Bad off
2015.11.18 17:53:00 3: CUL_HM set Jalo_Bad off
2015.11.18 17:54:59 1: DEBUG>ts1= 1447858800, ts2= 1447361940
2015.11.18 17:55:02 3: CUL_HM set Jalo_Bad off
2015.11.18 17:56:59 3: CUL_HM set Jalo_Bad off
2015.11.18 17:58:59 3: CUL_HM set Jalo_Bad off
2015.11.18 18:00:59 3: CUL_HM set Jalo_Bad off
2015.11.18 18:03:00 3: CUL_HM set Jalo_Bad off
2015.11.18 18:05:00 3: CUL_HM set Jalo_Bad off
2015.11.18 18:07:00 3: CUL_HM set Jalo_Bad off
2015.11.18 18:09:00 3: CUL_HM set Jalo_Bad off
2015.11.18 18:11:00 3: CUL_HM set Jalo_Bad off
2015.11.18 18:13:00 3: CUL_HM set Jalo_Bad off
2015.11.18 18:14:59 1: DEBUG>ts1= 1447858800, ts2= 1447307880
Hier die List:
Internals:
DEF ([06:45|1235] and [SH_Ferientag] eq "0" and [Jalousie_Automatik] eq "Auto" and [Helligkeit:state] < 200) (set Jalo_Bad 50)
DOELSEIF
([06:45|1235] and [SH_Ferientag] eq "0" and [Jalousie_Automatik] eq "Auto" and [Helligkeit:state] > 200) (set Jalo_Bad on)
DOELSEIF
([07:30|4] and [SH_Ferientag] eq "0" and [Jalousie_Automatik] eq "Auto" and [Helligkeit:state] > 200) (set Jalo_Bad 50)
DOELSEIF
([07:30|4] and [SH_Ferientag] eq "0" and [Jalousie_Automatik] eq "Auto" and [Helligkeit:state] < 200) (set Jalo_Bad on)
DOELSEIF
([15:00-22:00] and [Helligkeit:state] < 0.5) (set Jalo_Bad off)
NAME di_Bad
NR 201
NTFY_ORDER 50-di_Bad
STATE cmd_4
TYPE DOIF
Readings:
2015-11-19 07:47:04 Device Helligkeit
2015-11-19 07:30:00 cmd_event timer_4
2015-11-19 07:30:00 cmd_nr 4
2015-11-19 07:47:04 e_Helligkeit_state 4.6
2015-11-19 03:45:00 e_SH_Ferientag_STATE 0
2015-11-19 07:30:00 state cmd_4
2015-11-19 06:45:00 timer_1_c1 20.11.2015 06:45:00|1235
2015-11-19 06:45:00 timer_2_c2 20.11.2015 06:45:00|1235
2015-11-19 07:30:00 timer_3_c3 20.11.2015 07:30:00|4
2015-11-19 07:30:00 timer_4_c4 20.11.2015 07:30:00|4
2015-11-18 23:21:33 timer_5_c5 19.11.2015 15:00:00
2015-11-18 23:21:33 timer_6_c5 19.11.2015 22:00:00
Condition:
0 DOIF_time_once($hash,$hash->{timer}{0},$wday,"1235") and InternalDoIf('SH_Ferientag','STATE','') eq "0" and InternalDoIf('Jalousie_Automatik','STATE','') eq "Auto" and ReadingValDoIf('Helligkeit','state','') < 200
1 DOIF_time_once($hash,$hash->{timer}{1},$wday,"1235") and InternalDoIf('SH_Ferientag','STATE','') eq "0" and InternalDoIf('Jalousie_Automatik','STATE','') eq "Auto" and ReadingValDoIf('Helligkeit','state','') > 200
2 DOIF_time_once($hash,$hash->{timer}{2},$wday,"4") and InternalDoIf('SH_Ferientag','STATE','') eq "0" and InternalDoIf('Jalousie_Automatik','STATE','') eq "Auto" and ReadingValDoIf('Helligkeit','state','') > 200
3 DOIF_time_once($hash,$hash->{timer}{3},$wday,"4") and InternalDoIf('SH_Ferientag','STATE','') eq "0" and InternalDoIf('Jalousie_Automatik','STATE','') eq "Auto" and ReadingValDoIf('Helligkeit','state','') < 200
4 DOIF_time($hash,$hash->{realtime}{4},$hash->{realtime}{5},$wday,$hms,"") and ReadingValDoIf('Helligkeit','state','') < 0.5
Days:
0 1235
1 1235
2 4
3 4
Devices:
0 SH_Ferientag Jalousie_Automatik Helligkeit
1 SH_Ferientag Jalousie_Automatik Helligkeit
2 SH_Ferientag Jalousie_Automatik Helligkeit
3 SH_Ferientag Jalousie_Automatik Helligkeit
4 Helligkeit
all SH_Ferientag Jalousie_Automatik Helligkeit
Do:
0:
0 set Jalo_Bad 50
1:
0 set Jalo_Bad on
2:
0 set Jalo_Bad 50
3:
0 set Jalo_Bad on
4:
0 set Jalo_Bad off
5:
Helper:
globalinit 1
last_timer 6
sleeptimer -1
Internals:
0 SH_Ferientag:STATE Jalousie_Automatik:STATE
1 SH_Ferientag:STATE Jalousie_Automatik:STATE
2 SH_Ferientag:STATE Jalousie_Automatik:STATE
3 SH_Ferientag:STATE Jalousie_Automatik:STATE
all SH_Ferientag:STATE Jalousie_Automatik:STATE
Itimer:
Readings:
0 Helligkeit:state
1 Helligkeit:state
2 Helligkeit:state
3 Helligkeit:state
4 Helligkeit:state
all Helligkeit:state
Realtime:
0 06:45:00
1 06:45:00
2 07:30:00
3 07:30:00
4 15:00:00
5 22:00:00
State:
Time:
0 06:45:00
1 06:45:00
2 07:30:00
3 07:30:00
4 15:00:00
5 22:00:00
Timecond:
0 0
1 1
2 2
3 3
4 4
5 4
Timer:
0 0
1 0
2 0
3 0
4 0
5 0
Timerfunc:
Timers:
0 0
1 1
2 2
3 3
4 4 5
Trigger:
Attributes:
do always
eventMap off:Runter on:Hoch
group Jalousien_seite
room Bad,Jalousien
set Rollo_Gruppe
userattr room_map set set_map structexclude
Vielen Dank
Hoffi
DOELSEIF
([15:00-22:00] and [Helligkeit:state] < 0.5) (set Jalo_Bad off)
mit dem gesetzten Attribut do always wird jedes mal zwischen 15:00 und 22:00 Uhr, wenn dein Helligkeitssensor einen Wert kleiner 0,5 sendet "set Jalo_Bad off" ausgeführt. Das Attribut do always macht bei zyklisch sendenden Sensoren keinen Sinn (steht auch so in der Commandref zu DOIF)
Gruß
Damian
Hallo Damian,
vielen Dank für den Tipp.
Nun habe ich "nur noch" folgende Fehlermeldung:
2015.11.19 17:12:45 1: DEBUG>ts1= 1447937940, ts2= 1447398000
2015.11.19 17:32:45 1: DEBUG>ts1= 1447937940, ts2= 1447739880
2015.11.19 17:52:45 1: DEBUG>ts1= 1447937940, ts2= 1447480680
2015.11.19 18:12:45 1: DEBUG>ts1= 1447937940, ts2= 1447948800
2015.11.19 18:32:45 1: DEBUG>ts1= 1447948800, ts2= 1447952400
2015.11.19 18:52:45 1: DEBUG>ts1= 1447952400, ts2= 1447484280
2015.11.19 19:12:45 1: DEBUG>ts1= 1447952400, ts2= 1447307880
2015.11.19 19:32:45 1: DEBUG>ts1= 1447952400, ts2= 1447048680
2015.11.19 19:52:45 1: DEBUG>ts1= 1447952400, ts2= 1447570800
2015.11.19 20:12:45 1: DEBUG>ts1= 1447952400, ts2= 1447138680
2015.11.19 20:32:46 1: DEBUG>ts1= 1447952400, ts2= 1447207200
2015.11.19 20:52:46 1: DEBUG>ts1= 1447952400, ts2= 1447311480
2015.11.19 21:12:46 1: DEBUG>ts1= 1447952400, ts2= 1447225200
Was könnte das sein?
Lieben Gruß
Hoffi
Die debug Meldung kommt nicht von deinem DOIF sondern vom Weather-Modul
siehe hier
http://forum.fhem.de/index.php/topic,44063.msg359335.html#msg359335 (http://forum.fhem.de/index.php/topic,44063.msg359335.html#msg359335)
Danke.
Nun läuft alles.
Hoffi