hallo. habe rgb controller der seine farbe ändert getriggert mit zustand rot, grün od. blau. hat bis jetzt bestens geklappt . seit wochenende nach fhem update bleibt immer cmd1. why?
(([Quadbox] eq "on" and [20:00-06:00]) or ([FS20_701002] eq "on")) (set LED_Mediacenter_Speaker pct 5,set LED_Mediacenter RGB 00FF00 60)
DOELSEIF ([LED_Mediacenter:RGB] eq "0000FF") (set LED_Mediacenter RGB 00FF00 600 q)
DOELSEIF ([LED_Mediacenter:RGB] eq "00FF00") (set LED_Mediacenter RGB FF0000 600 q)
DOELSEIF ([LED_Mediacenter:RGB] eq "FF0000") (set LED_Mediacenter RGB 0000FF 600 q)
DOELSEIF ([VSX1131:input] eq "NET" and [VSX1131:power] eq "on" and [18:00-22:00]) (set LED_Mediacenter_Speaker pct 50,set LED_Mediacenter_RGB RGB FFFFFF)
DOELSEIF ([Quadbox] eq "on" and [VSX1131:input] eq "Quadbox" and [18:00:00-19:59:59]) (set LED_Mediacenter_Speaker pct 30,set LED_Mediacenter RGB 000000)
DOELSEIF (([Quadbox] eq "off") and [FS20_701002] eq "off" and [VSX1131:power] eq "off") (set LED_Mediacenter off)
Gesendet mit Tapatalk
Zitat von: satprofi am 28 März 2018, 21:58:55
hallo. habe rgb controller der seine farbe ändert getriggert mit zustand rot, grün od. blau. hat bis jetzt bestens geklappt . seit wochenende nach fhem update bleibt immer cmd1. why?
(([Quadbox] eq "on" and [20:00-06:00]) or ([FS20_701002] eq "on")) (set LED_Mediacenter_Speaker pct 5,set LED_Mediacenter RGB 00FF00 60) DOELSEIF ([LED_Mediacenter:RGB] eq "0000FF") (set LED_Mediacenter RGB 00FF00 600 q) DOELSEIF ([LED_Mediacenter:RGB] eq "00FF00") (set LED_Mediacenter RGB FF0000 600 q) DOELSEIF ([LED_Mediacenter:RGB] eq "FF0000") (set LED_Mediacenter RGB 0000FF 600 q) DOELSEIF ([VSX1131:input] eq "NET" and [VSX1131:power] eq "on" and [18:00-22:00]) (set LED_Mediacenter_Speaker pct 50,set LED_Mediacenter_RGB RGB FFFFFF) DOELSEIF ([Quadbox] eq "on" and [VSX1131:input] eq "Quadbox" and [18:00:00-19:59:59]) (set LED_Mediacenter_Speaker pct 30,set LED_Mediacenter RGB 000000) DOELSEIF (([Quadbox] eq "off") and [FS20_701002] eq "off" and [VSX1131:power] eq "off") (set LED_Mediacenter off)
Gesendet mit Tapatalk
ohne list wird man dazu nicht viel sagen können.
DEF (([Quadbox] eq "on" and [20:00-06:00]) or ([FS20_701002] eq "on")) (set LED_Mediacenter_Speaker pct 5,set LED_Mediacenter RGB 00FF00 60)
DOELSEIF ([LED_Mediacenter:RGB] eq "0000FF") (set LED_Mediacenter RGB 00FF00 600 q)
DOELSEIF ([LED_Mediacenter:RGB] eq "00FF00") (set LED_Mediacenter RGB FF0000 600 q)
DOELSEIF ([LED_Mediacenter:RGB] eq "FF0000") (set LED_Mediacenter RGB 0000FF 600 q)
DOELSEIF ([VSX1131:input] eq "NET" and [VSX1131:power] eq "on" and [18:00-22:00]) (set LED_Mediacenter_Speaker pct 50,set LED_Mediacenter_RGB RGB FFFFFF)
DOELSEIF ([Quadbox] eq "on" and [VSX1131:input] eq "Quadbox" and [18:00:00-19:59:59]) (set LED_Mediacenter_Speaker pct 30,set LED_Mediacenter RGB 000000)
DOELSEIF (([Quadbox] eq "off") and [FS20_701002] eq "off" and [VSX1131:power] eq "off") (set LED_Mediacenter off)
NAME Medialicht
NR 397
NTFY_ORDER 50-Medialicht
STATE cmd_7
TYPE DOIF
READINGS:
2018-03-28 22:28:17 Device Quadbox
2018-03-28 22:19:28 cmd 7
2018-03-28 22:19:28 cmd_event Quadbox
2018-03-28 22:19:28 cmd_nr 7
2018-03-28 22:19:26 e_LED_Mediacenter_RGB 8CFF00
2018-03-28 22:28:17 e_Quadbox_STATE off
2018-03-28 22:20:08 e_VSX1131_input Quadbox
2018-03-28 22:20:08 e_VSX1131_power off
2018-03-28 22:19:28 state cmd_7
2018-03-29 06:00:00 timer_01_c01 29.03.2018 20:00:00
2018-03-29 06:00:00 timer_02_c01 30.03.2018 06:00:00
2018-03-28 22:00:01 timer_03_c05 29.03.2018 18:00:00
2018-03-28 22:00:01 timer_04_c05 29.03.2018 22:00:00
2018-03-28 19:59:59 timer_05_c06 29.03.2018 18:00:00
2018-03-28 19:59:59 timer_06_c06 29.03.2018 19:59:59
condition:
0 (InternalDoIf($hash,'Quadbox','STATE') eq "on" and DOIF_time($hash,0,1,$wday,$hms)) or (InternalDoIf($hash,'FS20_701002','STATE') eq "on")
1 ReadingValDoIf($hash,'LED_Mediacenter','RGB') eq "0000FF"
2 ReadingValDoIf($hash,'LED_Mediacenter','RGB') eq "00FF00"
3 ReadingValDoIf($hash,'LED_Mediacenter','RGB') eq "FF0000"
4 ReadingValDoIf($hash,'VSX1131','input') eq "NET" and ReadingValDoIf($hash,'VSX1131','power') eq "on" and DOIF_time($hash,2,3,$wday,$hms)
5 InternalDoIf($hash,'Quadbox','STATE') eq "on" and ReadingValDoIf($hash,'VSX1131','input') eq "Quadbox" and DOIF_time($hash,4,5,$wday,$hms)
6 (InternalDoIf($hash,'Quadbox','STATE') eq "off") and InternalDoIf($hash,'FS20_701002','STATE') eq "off" and ReadingValDoIf($hash,'VSX1131','power') eq "off"
days:
devices:
0 Quadbox FS20_701002
1 LED_Mediacenter
2 LED_Mediacenter
3 LED_Mediacenter
4 VSX1131
5 Quadbox VSX1131
6 Quadbox FS20_701002 VSX1131
all Quadbox FS20_701002 LED_Mediacenter VSX1131
do:
0:
0 set LED_Mediacenter_Speaker pct 5,set LED_Mediacenter RGB 00FF00 60
1:
0 set LED_Mediacenter RGB 00FF00 600 q
2:
0 set LED_Mediacenter RGB FF0000 600 q
3:
0 set LED_Mediacenter RGB 0000FF 600 q
4:
0 set LED_Mediacenter_Speaker pct 50,set LED_Mediacenter_RGB RGB FFFFFF
5:
0 set LED_Mediacenter_Speaker pct 30,set LED_Mediacenter RGB 000000
6:
0 set LED_Mediacenter off
7:
helper:
event timer_2
globalinit 1
last_timer 6
sleeptimer -1
timerdev Quadbox
timerevent channelList:
triggerDev
timerevents:
channelList:
timereventsState:
channelList:
triggerEvents:
timer_2
triggerEventsState:
channelList:
internals:
0 Quadbox:STATE FS20_701002:STATE
5 Quadbox:STATE
6 Quadbox:STATE FS20_701002:STATE
all Quadbox:STATE FS20_701002:STATE
interval:
0 -1
1 0
2 -1
3 2
4 -1
5 4
itimer:
localtime:
0 1522346400
1 1522382400
2 1522339200
3 1522353600
4 1522339200
5 1522346399
readings:
1 LED_Mediacenter:RGB
2 LED_Mediacenter:RGB
3 LED_Mediacenter:RGB
4 VSX1131:input VSX1131:power
5 VSX1131:input
6 VSX1131:power
all LED_Mediacenter:RGB VSX1131:input VSX1131:power
realtime:
0 20:00:00
1 06:00:00
2 18:00:00
3 22:00:00
4 18:00:00
5 19:59:59
regexp:
0:
1:
2:
3:
4:
5:
6:
all:
state:
time:
0 20:00:00
1 06:00:00
2 18:00:00
3 22:00:00
4 18:00:00
5 19:59:59
timeCond:
0 0
1 0
2 4
3 4
4 5
5 5
timer:
0 0
1 0
2 0
3 0
4 0
5 0
timers:
0 0 1
4 2 3
5 4 5
trigger:
triggertime:
1522339200:
localtime 1522339200
hash:
1522346399:
localtime 1522346399
hash:
1522346400:
localtime 1522346400
hash:
1522353600:
localtime 1522353600
hash:
1522382400:
localtime 1522382400
hash:
Attributes:
group DOIF
initialize initialized
room DOIF
sorry
Ich kann nichts Außergewöhnliches erkennen. Status steht jetzt auf cmd_7. Außerdem scheint es nicht die aktuelle Version von DOIF zu sein, denn es gibt jetzt das Internal MODEL.
Aha, komisch.
Was passiert bei neuer Version von DOIF, alle bestehenden anzupassen?
LG
Zitat von: satprofi am 29 März 2018, 14:09:54
Aha, komisch.
Was passiert bei neuer Version von DOIF, alle bestehenden anzupassen?
LG
Die neue Version ist kompatibel zur vorherigen. Man muss nichts machen, alle Definitionen funktionieren wie bisher.
hier jetzt aktuelles list
Internals: DEF (([Quadbox] eq "on" and [20:00-06:00]) or ([FS20_701002] eq "on")) (set LED_Mediacenter_Speaker pct 5,set LED_Mediacenter RGB 00FF00 60) DOELSEIF ([LED_Mediacenter:RGB] eq "0000FF") (set LED_Mediacenter RGB 00FF00 600 q) DOELSEIF ([LED_Mediacenter:RGB] eq "00FF00") (set LED_Mediacenter RGB FF0000 600 q) DOELSEIF ([LED_Mediacenter:RGB] eq "FF0000") (set LED_Mediacenter RGB 0000FF 600 q) DOELSEIF ([VSX1131:input] eq "NET" and [VSX1131:power] eq "on" and [18:00-22:00]) (set LED_Mediacenter_Speaker pct 50,set LED_Mediacenter_RGB RGB FFFFFF) DOELSEIF ([Quadbox] eq "on" and [VSX1131:input] eq "Quadbox" and [18:00:00-19:59:59]) (set LED_Mediacenter_Speaker pct 30,set LED_Mediacenter RGB 000000) DOELSEIF (([Quadbox] eq "off") and [FS20_701002] eq "off" and [VSX1131:power] eq "off") (set LED_Mediacenter off) NAME Medialicht NR 385 NTFY_ORDER 50-Medialicht STATE cmd_1 TYPE DOIF READINGS: 2018-03-29 20:04:54 Device Quadbox 2018-03-29 20:04:55 cmd 1 2018-03-29 20:04:55 cmd_event Quadbox 2018-03-29 20:04:55 cmd_nr 1 2018-03-29 20:00:52 e_LED_Mediacenter_RGB 4DDE1D 2018-03-29 20:04:54 e_Quadbox_STATE on 2018-03-29 15:59:55 e_VSX1131_input Quadbox 2018-03-29 15:59:55 e_VSX1131_power on 2018-03-29 20:04:55 state cmd_1 2018-03-29 14:09:46 timer_01_c01 29.03.2018 20:00:00 2018-03-29 14:09:46 timer_02_c01 30.03.2018 06:00:00 2018-03-29 14:09:46 timer_03_c05 29.03.2018 18:00:00 2018-03-29 14:09:46 timer_04_c05 29.03.2018 22:00:00 2018-03-29 19:59:59 timer_05_c06 30.03.2018 18:00:00 2018-03-29 19:59:59 timer_06_c06 30.03.2018 19:59:59 condition: 0 (InternalDoIf($hash,'Quadbox','STATE') eq "on" and DOIF_time($hash,0,1,$wday,$hms)) or (InternalDoIf($hash,'FS20_701002','STATE') eq "on") 1 ReadingValDoIf($hash,'LED_Mediacenter','RGB') eq "0000FF" 2 ReadingValDoIf($hash,'LED_Mediacenter','RGB') eq "00FF00" 3 ReadingValDoIf($hash,'LED_Mediacenter','RGB') eq "FF0000" 4 ReadingValDoIf($hash,'VSX1131','input') eq "NET" and ReadingValDoIf($hash,'VSX1131','power') eq "on" and DOIF_time($hash,2,3,$wday,$hms) 5 InternalDoIf($hash,'Quadbox','STATE') eq "on" and ReadingValDoIf($hash,'VSX1131','input') eq "Quadbox" and DOIF_time($hash,4,5,$wday,$hms) 6 (InternalDoIf($hash,'Quadbox','STATE') eq "off") and InternalDoIf($hash,'FS20_701002','STATE') eq "off" and ReadingValDoIf($hash,'VSX1131','power') eq "off" days: devices: 0 Quadbox FS20_701002 1 LED_Mediacenter 2 LED_Mediacenter 3 LED_Mediacenter 4 VSX1131 5 Quadbox VSX1131 6 Quadbox FS20_701002 VSX1131 all Quadbox FS20_701002 LED_Mediacenter VSX1131 do: 0: 0 set LED_Mediacenter_Speaker pct 5,set LED_Mediacenter RGB 00FF00 60 1: 0 set LED_Mediacenter RGB 00FF00 600 q 2: 0 set LED_Mediacenter RGB FF0000 600 q 3: 0 set LED_Mediacenter RGB 0000FF 600 q 4: 0 set LED_Mediacenter_Speaker pct 50,set LED_Mediacenter_RGB RGB FFFFFF 5: 0 set LED_Mediacenter_Speaker pct 30,set LED_Mediacenter RGB 000000 6: 0 set LED_Mediacenter off 7: helper: event recordings_next_counter: 525.08408498764,recordings_next_counter_hr: 00:08:45 globalinit 1 last_timer 6 sleeptimer -1 timerdev Quadbox timerevent recordings_next_counter: 525.08408498764,recordings_next_counter_hr: 00:08:45 triggerDev Quadbox timerevents: recordings_next_counter: 525.08408498764 recordings_next_counter_hr: 00:08:45 timereventsState: recordings_next_counter: 525.08408498764 recordings_next_counter_hr: 00:08:45 triggerEvents: recordings_next_counter: 525.08408498764 recordings_next_counter_hr: 00:08:45 triggerEventsState: recordings_next_counter: 525.08408498764 recordings_next_counter_hr: 00:08:45 internals: 0 Quadbox:STATE FS20_701002:STATE 5 Quadbox:STATE 6 Quadbox:STATE FS20_701002:STATE all Quadbox:STATE FS20_701002:STATE interval: 0 -1 1 0 2 -1 3 2 4 -1 5 4 itimer: localtime: 0 1522346400 1 1522382400 2 1522339200 3 1522353600 4 1522425600 5 1522432799 readings: 1 LED_Mediacenter:RGB 2 LED_Mediacenter:RGB 3 LED_Mediacenter:RGB 4 VSX1131:input VSX1131:power 5 VSX1131:input 6 VSX1131:power all LED_Mediacenter:RGB VSX1131:input VSX1131:power realtime: 0 20:00:00 1 06:00:00 2 18:00:00 3 22:00:00 4 18:00:00 5 19:59:59 regexp: 0: 1: 2: 3: 4: 5: 6: all: state: time: 0 20:00:00 1 06:00:00 2 18:00:00 3 22:00:00 4 18:00:00 5 19:59:59 timeCond: 0 0 1 0 2 4 3 4 4 5 5 5 timer: 0 0 1 0 2 0 3 0 4 0 5 0 timers: 0 0 1 4 2 3 5 4 5 trigger: triggertime: 1522353600: localtime 1522353600 hash: 1522382400: localtime 1522382400 hash: 1522425600: localtime 1522425600 hash: 1522432799: localtime 1522432799 hash: Attributes: do always group DOIF initialize initialized room DOIF
Gesendet mit Tapatalk
Zitat von: satprofi am 29 März 2018, 20:07:30
hier jetzt aktuelles list
Internals: DEF (([Quadbox] eq "on" and [20:00-06:00]) or ([FS20_701002] eq "on")) (set LED_Mediacenter_Speaker pct 5,set LED_Mediacenter RGB 00FF00 60) DOELSEIF ([LED_Mediacenter:RGB] eq "0000FF") (set LED_Mediacenter RGB 00FF00 600 q) DOELSEIF ([LED_Mediacenter:RGB] eq "00FF00") (set LED_Mediacenter RGB FF0000 600 q) DOELSEIF ([LED_Mediacenter:RGB] eq "FF0000") (set LED_Mediacenter RGB 0000FF 600 q) DOELSEIF ([VSX1131:input] eq "NET" and [VSX1131:power] eq "on" and [18:00-22:00]) (set LED_Mediacenter_Speaker pct 50,set LED_Mediacenter_RGB RGB FFFFFF) DOELSEIF ([Quadbox] eq "on" and [VSX1131:input] eq "Quadbox" and [18:00:00-19:59:59]) (set LED_Mediacenter_Speaker pct 30,set LED_Mediacenter RGB 000000) DOELSEIF (([Quadbox] eq "off") and [FS20_701002] eq "off" and [VSX1131:power] eq "off") (set LED_Mediacenter off) NAME Medialicht NR 385 NTFY_ORDER 50-Medialicht STATE cmd_1 TYPE DOIF READINGS: 2018-03-29 20:04:54 Device Quadbox 2018-03-29 20:04:55 cmd 1 2018-03-29 20:04:55 cmd_event Quadbox 2018-03-29 20:04:55 cmd_nr 1 2018-03-29 20:00:52 e_LED_Mediacenter_RGB 4DDE1D 2018-03-29 20:04:54 e_Quadbox_STATE on 2018-03-29 15:59:55 e_VSX1131_input Quadbox 2018-03-29 15:59:55 e_VSX1131_power on 2018-03-29 20:04:55 state cmd_1 2018-03-29 14:09:46 timer_01_c01 29.03.2018 20:00:00 2018-03-29 14:09:46 timer_02_c01 30.03.2018 06:00:00 2018-03-29 14:09:46 timer_03_c05 29.03.2018 18:00:00 2018-03-29 14:09:46 timer_04_c05 29.03.2018 22:00:00 2018-03-29 19:59:59 timer_05_c06 30.03.2018 18:00:00 2018-03-29 19:59:59 timer_06_c06 30.03.2018 19:59:59 condition: 0 (InternalDoIf($hash,'Quadbox','STATE') eq "on" and DOIF_time($hash,0,1,$wday,$hms)) or (InternalDoIf($hash,'FS20_701002','STATE') eq "on") 1 ReadingValDoIf($hash,'LED_Mediacenter','RGB') eq "0000FF" 2 ReadingValDoIf($hash,'LED_Mediacenter','RGB') eq "00FF00" 3 ReadingValDoIf($hash,'LED_Mediacenter','RGB') eq "FF0000" 4 ReadingValDoIf($hash,'VSX1131','input') eq "NET" and ReadingValDoIf($hash,'VSX1131','power') eq "on" and DOIF_time($hash,2,3,$wday,$hms) 5 InternalDoIf($hash,'Quadbox','STATE') eq "on" and ReadingValDoIf($hash,'VSX1131','input') eq "Quadbox" and DOIF_time($hash,4,5,$wday,$hms) 6 (InternalDoIf($hash,'Quadbox','STATE') eq "off") and InternalDoIf($hash,'FS20_701002','STATE') eq "off" and ReadingValDoIf($hash,'VSX1131','power') eq "off" days: devices: 0 Quadbox FS20_701002 1 LED_Mediacenter 2 LED_Mediacenter 3 LED_Mediacenter 4 VSX1131 5 Quadbox VSX1131 6 Quadbox FS20_701002 VSX1131 all Quadbox FS20_701002 LED_Mediacenter VSX1131 do: 0: 0 set LED_Mediacenter_Speaker pct 5,set LED_Mediacenter RGB 00FF00 60 1: 0 set LED_Mediacenter RGB 00FF00 600 q 2: 0 set LED_Mediacenter RGB FF0000 600 q 3: 0 set LED_Mediacenter RGB 0000FF 600 q 4: 0 set LED_Mediacenter_Speaker pct 50,set LED_Mediacenter_RGB RGB FFFFFF 5: 0 set LED_Mediacenter_Speaker pct 30,set LED_Mediacenter RGB 000000 6: 0 set LED_Mediacenter off 7: helper: event recordings_next_counter: 525.08408498764,recordings_next_counter_hr: 00:08:45 globalinit 1 last_timer 6 sleeptimer -1 timerdev Quadbox timerevent recordings_next_counter: 525.08408498764,recordings_next_counter_hr: 00:08:45 triggerDev Quadbox timerevents: recordings_next_counter: 525.08408498764 recordings_next_counter_hr: 00:08:45 timereventsState: recordings_next_counter: 525.08408498764 recordings_next_counter_hr: 00:08:45 triggerEvents: recordings_next_counter: 525.08408498764 recordings_next_counter_hr: 00:08:45 triggerEventsState: recordings_next_counter: 525.08408498764 recordings_next_counter_hr: 00:08:45 internals: 0 Quadbox:STATE FS20_701002:STATE 5 Quadbox:STATE 6 Quadbox:STATE FS20_701002:STATE all Quadbox:STATE FS20_701002:STATE interval: 0 -1 1 0 2 -1 3 2 4 -1 5 4 itimer: localtime: 0 1522346400 1 1522382400 2 1522339200 3 1522353600 4 1522425600 5 1522432799 readings: 1 LED_Mediacenter:RGB 2 LED_Mediacenter:RGB 3 LED_Mediacenter:RGB 4 VSX1131:input VSX1131:power 5 VSX1131:input 6 VSX1131:power all LED_Mediacenter:RGB VSX1131:input VSX1131:power realtime: 0 20:00:00 1 06:00:00 2 18:00:00 3 22:00:00 4 18:00:00 5 19:59:59 regexp: 0: 1: 2: 3: 4: 5: 6: all: state: time: 0 20:00:00 1 06:00:00 2 18:00:00 3 22:00:00 4 18:00:00 5 19:59:59 timeCond: 0 0 1 0 2 4 3 4 4 5 5 5 timer: 0 0 1 0 2 0 3 0 4 0 5 0 timers: 0 0 1 4 2 3 5 4 5 trigger: triggertime: 1522353600: localtime 1522353600 hash: 1522382400: localtime 1522382400 hash: 1522425600: localtime 1522425600 hash: 1522432799: localtime 1522432799 hash: Attributes: do always group DOIF initialize initialized room DOIF
Gesendet mit Tapatalk
Ist in dem Bandwurm das Internal MODEL enthalten?
hilf mir bitte weiter, was. einst du? doif fu ktionierte 1 jahr, erst seit kurzem nach update von doif nicht mehr. bleibt immer auf cmd1
Gesendet mit Tapatalk
Zitat von: satprofi am 31 März 2018, 08:37:55
hilf mir bitte weiter, was. einst du? doif fu ktionierte 1 jahr, erst seit kurzem nach update von doif nicht mehr. bleibt immer auf cmd1
Gesendet mit Tapatalk
In der Logik des Moduls hat sich nichts geändert. Es müssen äußere Faktoren sein, die zum veränderten Verhalten führen. Ich würde die komplexe Definition sichern und dann Stück für Stück so weit abspecken, bis man das Problem eindeutig identifiziert hat.
Einzeilige Bandwürmer ohne Nachweis der einzelnen Device-Zustände helfen hier nicht weiter.
Zitat von: satprofi am 31 März 2018, 08:37:55
hilf mir bitte weiter, was. einst du? doif fu ktionierte 1 jahr, erst seit kurzem nach update von doif nicht mehr. bleibt immer auf cmd1
Gesendet mit Tapatalk
Ich fragte wegen diesem Hinweis:
ZitatAußerdem scheint es nicht die aktuelle Version von DOIF zu sein, denn es gibt jetzt das Internal MODEL.
und Deiner Aussage:
Zitathier jetzt aktuelles list
. Wenn das aktuelles Modul genutzt wird, müsste das Internal vorhanden sein, sonst ist beim Update wohl etwas schief gelaufen, siehe auch https://forum.fhem.de/index.php/topic,86383.0.html
habe jetzt bei cmd1 folgendes eingefügt
(([Quadbox] eq "on" and [20:00-06:00] and ([Medialicht] ne "cmd_2" or [Medialicht] ne "cmd_3" or [Medialicht] ne "cmd_4")) or ([FS20_701002] eq "on")) (set LED_Mediacenter_Speaker pct 5,set LED_Mediacenter RGB 00FF00 20)
verstehe immer noch nicht was die Internals sein sollen. Wo finde ich die?
klappt immer noch nicht
Internals:
DEF (([Quadbox] eq "on" and [20:00-06:00] and ([Medialicht] ne "cmd_2" or [Medialicht] ne "cmd_3" or [Medialicht] ne "cmd_4")) or ([FS20_701002] eq "on")) (set LED_Mediacenter_Speaker pct 5,set LED_Mediacenter RGB 00FF00 20)
DOELSEIF ([LED_Mediacenter:RGB] eq "0000FF") (set LED_Mediacenter RGB 00FF00 600 q)
DOELSEIF ([LED_Mediacenter:RGB] eq "00FF00") (set LED_Mediacenter RGB FF0000 600 q)
DOELSEIF ([LED_Mediacenter:RGB] eq "FF0000") (set LED_Mediacenter RGB 0000FF 600 q)
DOELSEIF ([VSX1131:input] eq "NET" and [VSX1131:power] eq "on" and [18:00-22:00]) (set LED_Mediacenter_Speaker pct 50,set LED_Mediacenter_RGB RGB FFFFFF)
DOELSEIF ([Quadbox] eq "on" and [VSX1131:input] eq "Quadbox" and [18:00:00-19:59:59]) (set LED_Mediacenter_Speaker pct 30,set LED_Mediacenter RGB 000000)
DOELSEIF (([Quadbox] eq "off") and [FS20_701002] eq "off" and [VSX1131:power] eq "off") (set LED_Mediacenter off)
MODEL FHEM
NAME Medialicht
NR 385
NTFY_ORDER 50-Medialicht
STATE cmd_1
TYPE DOIF
READINGS:
2018-03-31 22:07:22 Device Quadbox
2018-03-31 22:07:23 cmd 1
2018-03-31 22:07:23 cmd_event Quadbox
2018-03-31 22:07:23 cmd_nr 1
2018-03-31 20:00:37 e_LED_Mediacenter_RGB 1AFF00
2018-03-31 13:16:48 e_Medialicht_STATE cmd_7
2018-03-31 22:07:22 e_Quadbox_STATE on
2018-03-31 22:05:48 e_VSX1131_input Quadbox
2018-03-31 22:05:48 e_VSX1131_power on
2018-03-31 13:12:36 mode enabled
2018-03-31 22:07:23 state cmd_1
2018-03-31 13:12:37 timer_01_c01 31.03.2018 20:00:00
2018-03-31 13:12:37 timer_02_c01 01.04.2018 06:00:00
2018-03-31 22:00:02 timer_03_c05 01.04.2018 18:00:00
2018-03-31 22:00:02 timer_04_c05 01.04.2018 22:00:00
2018-03-31 19:59:59 timer_05_c06 01.04.2018 18:00:00
2018-03-31 19:59:59 timer_06_c06 01.04.2018 19:59:59
Regex:
condition:
0 (InternalDoIf($hash,'Quadbox','STATE') eq "on" and DOIF_time($hash,0,1,$wday,$hms) and (InternalDoIf($hash,'Medialicht','STATE') ne "cmd_2" or InternalDoIf($hash,'Medialicht','STATE') ne "cmd_3" or InternalDoIf($hash,'Medialicht','STATE') ne "cmd_4")) or (InternalDoIf($hash,'FS20_701002','STATE') eq "on")
1 ReadingValDoIf($hash,'LED_Mediacenter','RGB') eq "0000FF"
2 ReadingValDoIf($hash,'LED_Mediacenter','RGB') eq "00FF00"
3 ReadingValDoIf($hash,'LED_Mediacenter','RGB') eq "FF0000"
4 ReadingValDoIf($hash,'VSX1131','input') eq "NET" and ReadingValDoIf($hash,'VSX1131','power') eq "on" and DOIF_time($hash,2,3,$wday,$hms)
5 InternalDoIf($hash,'Quadbox','STATE') eq "on" and ReadingValDoIf($hash,'VSX1131','input') eq "Quadbox" and DOIF_time($hash,4,5,$wday,$hms)
6 (InternalDoIf($hash,'Quadbox','STATE') eq "off") and InternalDoIf($hash,'FS20_701002','STATE') eq "off" and ReadingValDoIf($hash,'VSX1131','power') eq "off"
days:
devices:
0 Quadbox Medialicht FS20_701002
1 LED_Mediacenter
2 LED_Mediacenter
3 LED_Mediacenter
4 VSX1131
5 Quadbox VSX1131
6 Quadbox FS20_701002 VSX1131
all Quadbox Medialicht FS20_701002 LED_Mediacenter VSX1131
do:
0:
0 set LED_Mediacenter_Speaker pct 5,set LED_Mediacenter RGB 00FF00 20
1:
0 set LED_Mediacenter RGB 00FF00 600 q
2:
0 set LED_Mediacenter RGB FF0000 600 q
3:
0 set LED_Mediacenter RGB 0000FF 600 q
4:
0 set LED_Mediacenter_Speaker pct 50,set LED_Mediacenter_RGB RGB FFFFFF
5:
0 set LED_Mediacenter_Speaker pct 30,set LED_Mediacenter RGB 000000
6:
0 set LED_Mediacenter off
7:
helper:
DOIF_Readings_events
DOIF_eventas
event snrdb: 13.90,snr: 70,ber: 0,acg: 88
globalinit 1
last_timer 6
sleeptimer -1
timerdev Quadbox
timerevent snrdb: 13.90,snr: 70,ber: 0,acg: 88
triggerDev Quadbox
timerevents:
snrdb: 13.90
snr: 70
ber: 0
acg: 88
timereventsState:
snrdb: 13.90
snr: 70
ber: 0
acg: 88
triggerEvents:
snrdb: 13.90
snr: 70
ber: 0
acg: 88
triggerEventsState:
snrdb: 13.90
snr: 70
ber: 0
acg: 88
internals:
0 Quadbox:STATE Medialicht:STATE FS20_701002:STATE
5 Quadbox:STATE
6 Quadbox:STATE FS20_701002:STATE
all Quadbox:STATE Medialicht:STATE FS20_701002:STATE
interval:
0 -1
1 0
2 -1
3 2
4 -1
5 4
itimer:
localtime:
0 1522519200
1 1522555200
2 1522598400
3 1522612800
4 1522598400
5 1522605599
readings:
1 LED_Mediacenter:RGB
2 LED_Mediacenter:RGB
3 LED_Mediacenter:RGB
4 VSX1131:input VSX1131:power
5 VSX1131:input
6 VSX1131:power
all LED_Mediacenter:RGB VSX1131:input VSX1131:power
realtime:
0 20:00:00
1 06:00:00
2 18:00:00
3 22:00:00
4 18:00:00
5 19:59:59
time:
0 20:00:00
1 06:00:00
2 18:00:00
3 22:00:00
4 18:00:00
5 19:59:59
timeCond:
0 0
1 0
2 4
3 4
4 5
5 5
timer:
0 0
1 0
2 0
3 0
4 0
5 0
timers:
0 0 1
4 2 3
5 4 5
trigger:
triggertime:
1522555200:
localtime 1522555200
hash:
1522598400:
localtime 1522598400
hash:
1522605599:
localtime 1522605599
hash:
1522612800:
localtime 1522612800
hash:
uiState:
uiTable:
Attributes:
do always
group DOIF
room DOIF
warum hats aber mit altem doif geklappt?
Es fehlt jetzt noch der Nachweis, warum es nicht in cmd_1 sein sollte.
Zitat von: Damian am 31 März 2018, 23:23:08
Es fehlt jetzt noch der Nachweis, warum es nicht in cmd_1 sein sollte.
weil bei erreichen des zustands in cmd1 ja cmd3 zuschlagen sollte. hat ja bisher auch funktioniert.
Gesendet mit Tapatalk
Zitat von: satprofi am 01 April 2018, 08:30:00
weil bei erreichen des zustands in cmd1 ja cmd3 zuschlagen sollte. hat ja bisher auch funktioniert.
Gesendet mit Tapatalk
Wenn du auf eigene Events reagieren willst, dann hättest du aber das Attribut https://fhem.de/commandref_DE.html#DOIF_selftrigger setzen müssen.
Zitat von: satprofi am 31 März 2018, 18:30:21
...
verstehe immer noch nicht was die Internals sein sollen. Wo finde ich die?
In der Detailansicht und Deinem Listing unter der Überschrift
Internals:
Zitat von: Damian am 01 April 2018, 10:30:34
Wenn du auf eigene Events reagieren willst, dann hättest du aber das Attribut https://fhem.de/commandref_DE.html#DOIF_selftrigger setzen müssen.
ok, aber warum bis jetzt nie notwendig?
habe weiteres doif ohne "selbsttrigger", und das läuft auch sauber
Internals:
DEF (([Ueberschuss] >2200 and [Lader] eq "on" and [Xtender_Batt_A] <40) or ([Ladestrom:state] eq "38" and [Ueberschuss] >150)) ("python2 /usr/local/bin/40Amp.py")
DOELSEIF (([Ueberschuss] >2100 and [Lader] eq "on" and [Xtender_Batt_A] <38) or ([Ladestrom:state] eq "36" and [Ueberschuss] >150)) ("python2 /usr/local/bin/38Amp.py")
DOELSEIF (([Ueberschuss] >2000 and [Lader] eq "on" and [Xtender_Batt_A] <36) or ([Ladestrom:state] eq "34" and [Ueberschuss] >150)) ("python2 /usr/local/bin/36Amp.py")
DOELSEIF (([Ueberschuss] >1900 and [Lader] eq "on" and [Xtender_Batt_A] <34) or ([Ladestrom:state] eq "32" and [Ueberschuss] >150)) ("python2 /usr/local/bin/34Amp.py")
DOELSEIF (([Ueberschuss] >1800 and [Lader] eq "on" and [Xtender_Batt_A] <32) or ([Ladestrom:state] eq "30" and [Ueberschuss] >150)) ("python2 /usr/local/bin/32Amp.py")
DOELSEIF (([Ueberschuss] >1700 and [Lader] eq "on" and [Xtender_Batt_A] <30) or ([Ladestrom:state] eq "28" and [Ueberschuss] >150)) ("python2 /usr/local/bin/30Amp.py")
DOELSEIF (([Ueberschuss] >1600 and [Lader] eq "on" and [Xtender_Batt_A] <28) or ([Ladestrom:state] eq "26" and [Ueberschuss] >150)) ("python2 /usr/local/bin/28Amp.py")
DOELSEIF (([Ueberschuss] >1500 and [Lader] eq "on" and [Xtender_Batt_A] <26) or ([Ladestrom:state] eq "25" and [Ueberschuss] >150)) ("python2 /usr/local/bin/26Amp.py")
DOELSEIF (((($month >9 or $month <4) and ($mday==28) and ([DST] eq "Normal")) or [Ueberschuss] >1400 and [Lader] eq "on" and [Xtender_Batt_A] <25) or (([Ladestrom:state] eq "22" and [Ueberschuss] >150) or ([Lader_manuell] eq "on"))) ("python2 /usr/local/bin/25Amp.py")
DOELSEIF (([Ueberschuss] >1200 and [Lader] eq "on" and [Xtender_Batt_A] <22) or ([Ladestrom:state] eq "20" and [Ueberschuss] >150)) ("python2 /usr/local/bin/22Amp.py")
DOELSEIF (([Ueberschuss] >1100 and [Lader] eq "on" and [Xtender_Batt_A] <20) or ([Ladestrom:state] eq "18" and [Ueberschuss] >150)) ("python2 /usr/local/bin/20Amp.py")
DOELSEIF (([Ueberschuss] >1000 and [Lader] eq "on" and [Xtender_Batt_A] <18) or ([Ladestrom:state] eq "16" and [Ueberschuss] >150)) ("python2 /usr/local/bin/18Amp.py")
DOELSEIF (([Ueberschuss] >900 and [Lader] eq "on" and [Xtender_Batt_A] <16) or ([Ladestrom:state] eq "14" and [Ueberschuss] >150)) ("python2 /usr/local/bin/16Amp.py")
DOELSEIF (([Ueberschuss] >800 and [Lader] eq "on" and [Xtender_Batt_A] <14) or ([Ladestrom:state] eq "12" and [Ueberschuss] >150)) ("python2 /usr/local/bin/14Amp.py")
DOELSEIF (([Ueberschuss] >700 and [Lader] eq "on" and [Xtender_Batt_A] <12) or ([Ladestrom:state] eq "10" and [Ueberschuss] >150)) ("python2 /usr/local/bin/12Amp.py")
DOELSEIF (([Ueberschuss] >600 and [Lader] eq "on" and [Xtender_Batt_A] <10) or ([Ladestrom:state] eq "8" and [Ueberschuss] >150)) ("python2 /usr/local/bin/10Amp.py")
DOELSEIF (([Ueberschuss] >500 and [Lader] eq "on" and [Xtender_Batt_A] <8) or ([Ladestrom:state] eq "6" and [Ueberschuss] >150)) ("python2 /usr/local/bin/8Amp.py")
DOELSEIF (([Ueberschuss] >400 and [Lader] eq "on" and [Xtender_Batt_A] <6) or ([Ladestrom:state] eq "4" and [Ueberschuss] >150)) ("python2 /usr/local/bin/6Amp.py")
DOELSEIF (([Ueberschuss] >300 and [Lader] eq "on" and [Xtender_Batt_A] <4) or ([Ladestrom:state] eq "2" and [Ueberschuss] >150)) ("python2 /usr/local/bin/4Amp.py")
DOELSEIF ([Ueberschuss] >200 and [Lader] eq "on" and [Xtender_Batt_A] <=2) ("python2 /usr/local/bin/2Amp.py")
DOELSEIF ([Ladestrom:state] eq "40" and [Ueberschuss] <1) ("python2 /usr/local/bin/38Amp.py", setreading Wert_I A 38)
DOELSEIF ([Ladestrom:state] eq "38" and [Ueberschuss] <1) ("python2 /usr/local/bin/36Amp.py", setreading Wert_I A 36)
DOELSEIF ([Ladestrom:state] eq "36" and [Ueberschuss] <1) ("python2 /usr/local/bin/34Amp.py", setreading Wert_I A 34)
DOELSEIF ([Ladestrom:state] eq "34" and [Ueberschuss] <1) ("python2 /usr/local/bin/32Amp.py", setreading Wert_I A 32)
DOELSEIF ([Ladestrom:state] eq "32" and [Ueberschuss] <1) ("python2 /usr/local/bin/30Amp.py", setreading Wert_I A 30)
DOELSEIF ([Ladestrom:state] eq "30" and [Ueberschuss] <1) ("python2 /usr/local/bin/28Amp.py", setreading Wert_I A 28)
DOELSEIF ([Ladestrom:state] eq "28" and [Ueberschuss] <1) ("python2 /usr/local/bin/26Amp.py", setreading Wert_I A 26)
DOELSEIF ([Ladestrom:state] eq "26" and [Ueberschuss] <1) ("python2 /usr/local/bin/25Amp.py", setreading Wert_I A 25)
DOELSEIF ((($month >9 or $month <4) and ($mday!=28) or ($month <10 or $month >3)) and ([Ladestrom:state] eq "25" and [Ueberschuss] <1)) ("python2 /usr/local/bin/22Amp.py", setreading Wert_I A 22)
DOELSEIF ((($month >9 or $month <4) and ($mday!=28) or ($month <10 or $month >3)) and ([Ladestrom:state] eq "22" and [Ueberschuss] <1)) ("python2 /usr/local/bin/20Amp.py", setreading Wert_I A 20)
DOELSEIF ((($month >9 or $month <4) and ($mday!=28) or ($month <10 or $month >3)) and ([Ladestrom:state] eq "20" and [Ueberschuss] <1)) ("python2 /usr/local/bin/18Amp.py", setreading Wert_I A 18)
DOELSEIF ((($month >9 or $month <4) and ($mday!=28) or ($month <10 or $month >3)) and ([Ladestrom:state] eq "18" and [Ueberschuss] <1)) ("python2 /usr/local/bin/16Amp.py", setreading Wert_I A 16)
DOELSEIF ((($month >9 or $month <4) and ($mday!=28) or ($month <10 or $month >3)) and ([Ladestrom:state] eq "16" and [Ueberschuss] <1)) ("python2 /usr/local/bin/14Amp.py", setreading Wert_I A 14)
DOELSEIF ((($month >9 or $month <4) and ($mday!=28) or ($month <10 or $month >3)) and ([Ladestrom:state] eq "14" and [Ueberschuss] <1)) ("python2 /usr/local/bin/12Amp.py", setreading Wert_I A 12)
DOELSEIF ((($month >9 or $month <4) and ($mday!=28) or ($month <10 or $month >3)) and ([Ladestrom:state] eq "12" and [Ueberschuss] <1)) ("python2 /usr/local/bin/10Amp.py", setreading Wert_I A 10)
DOELSEIF ((($month >9 or $month <4) and ($mday!=28) or ($month <10 or $month >3)) and ([Ladestrom:state] eq "10" and [Ueberschuss] <1)) ("python2 /usr/local/bin/8Amp.py", setreading Wert_I A 8)
DOELSEIF ((($month >9 or $month <4) and ($mday!=28) or ($month <10 or $month >3)) and ([Ladestrom:state] eq "8" and [Ueberschuss] <1)) ("python2 /usr/local/bin/6Amp.py", setreading Wert_I A 6)
DOELSEIF ((($month >9 or $month <4) and ($mday!=28) or ($month <10 or $month >3)) and ([Ladestrom:state] eq "6" and [Ueberschuss] <1)) ("python2 /usr/local/bin/4Amp.py", setreading Wert_I A 4)
DOELSEIF ((($month >9 or $month <4) and ($mday!=28) or ($month <10 or $month >3)) and ([Ladestrom:state] eq "4" and [Ueberschuss] <1 and [Lader] eq "on")) ("python2 /usr/local/bin/2Amp.py", setreading Wert_I A 2)
DOELSEIF (([18:00] and ($month >9 or $month <4) and ($mday==28) and ([DST] eq "Normal")) or ([Ueberschuss] <1 and (($mday!=28) or (($mday==28) and [DST] eq "Sommer")) and [Lader] eq "on" and [Lader_manuell] eq "off")) ("python2 /usr/local/bin/ladung_off.py")
Attributes:
cmdState 40|38|36|34|32|30|28|26|25|22|20|18|16|14|12|10|8|6|4|2|38|36|34|32|30|28|26|25|22|20|18|16|14|12|10|8|6|4|2|off
disable 0
do always
room DOIF
verbose 5
Du triggerst hier wahrscheinlich nicht auf die Änderung des DOIF, sondern auf "Ueberschuss". Der state des DOIF wird dabei nur abgefragt. Oder über das Phyton-Script gesetzt. Das ist für Fhem ein externes Setzen.
Nebenbei: statt des [DOIF-Namens] solltest du [$SELF] verwenden, dann erkennt man auch ohne List, welches der passende Wert ist.
leider keine ahnung was $self sein soll.
Gesendet mit Tapatalk
Auch wenn es schwer fällt: $SELF (https://fhem.de/commandref_DE.html#DOIF)