I have the following script which set on a light based on the dim value of another light. see below
Code: Select all
commandArray = {}
if (otherdevices_svalues['Overloop 1e etage'] > '10' and otherdevices['Trap'] == 'Off') then
commandArray['Trap']='Set Level 1'
elseif
(devicechanged['Overloop 1e etage'] == 'Off') then
commandArray['Trap']='Off'
end
return commandArray
I also have made a "all off" scene with a timer which set all my lights off, but somehow this scene triggers the script above and set the ['Trap'] lights to level 1
I don't understand why this happens, can anyone point me in a direction.
Thanks,
Mischa
Pi 2 - Pi 1 - Razzbery 2.0 - Fibaro FGD-211 - Fibaro FGD-212 - Fibaro FGRGBWM-441 (RGBW Module) - Fibaro FGBS321 (Universal Switch) - FGWPF-102 - TBK Home TZ67-G - Synology DS1515+ - Esp Easy (with wemos D1 mini)