Hi
ich habe in meinem FHEM eingebaut, dass wenn ich Kodi schaue , also einen Film anmache , dass die Lampen abdunkeln bei playing und hochdimmen bei stop.
wenn ich aber jetzt während des Films , wieso auch immer die Lampen manuell anschalte, gehen die wieder nach ein paar minuten automatisch aus.
wo habe ich hier den Fehler in meinem code ?
Danke im voraus
define notify_XBMC_status notify NUC:playStatus.* { if (ReadingsVal("NUC", "type", "") eq "movie"){\
if (ReadingsVal("NUC", "playStatus", "") eq "playing"){\
fhem("set Stuff1,Stuff2 0 0 2");;\
}\
if (ReadingsVal("NUC", "playStatus", "") eq "playing"){\
fhem("set Stuff3,Stuff4 off");;\
}\
if (ReadingsVal("NUC", "playStatus", "") eq "playing"){\
fhem("set HUEDevice1,HUEDevice2,HUEDevice3 pct 0 : transitiontime 70");;\
}\
if (ReadingsVal("NUC", "playStatus", "") eq "paused"){\
fhem("set HUEDevice1,HUEDevice2,HUEDevice3 pct 100 : transitiontime 70");;\
}\
if (ReadingsVal("NUC", "playStatus", "") eq "stopped"){\
fhem("set HUEDevice1,HUEDevice2,HUEDevice3 pct 100 : transitiontime 70");;\
}\
if (ReadingsVal("NUC", "playStatus", "") eq "stopped"){\
fhem("set LED_Podest rgb FF8800 5");;\
}\
if (ReadingsVal("NUC", "playStatus", "") eq "paused"){\
fhem("set LED_Podest rgb FF8800 5");;\
}\
if (ReadingsVal("NUC", "playStatus", "") eq "playing"){\
fhem("set LED_Podest off 2");;\
}\
if (ReadingsVal("NUC", "playStatus", "") eq "stopped"){\
fhem("set LED_Traap rgb FF8800 2");;\
}\
if (ReadingsVal("NUC", "playStatus", "") eq "paused"){\
fhem("set LED_Traap rgb FF8800 2");;\
}\
if (ReadingsVal("NUC", "playStatus", "") eq "playing"){\
fhem("set LED_Traap off 2");;\
}\
}\
}\
attr NUC event-on-change-reading .*
gesetzt ?
nein , muss ich den setzen ?
Währe hilfreich :)
danke dir :-D
wird sofort getestet :-D
Desweiteren, hat zwar nichts mit deinem Problem zutun, schau dir mal statt ReadingsVal() die Variable $EVENT an, und 'elsif' ;)
ok , werd ich tun . danke dir