17.04.2017, 03:53
I made this script running as an event script. As you can see I also got the scene night logic in here. You can delete this line and the first end line in case you dont need a second variable logic.
Each time the motion detector gets movement the light goes to 25% and after off delay, here set to 10 minutes, the other script turns it off
if event.getvalue() == true then
if grp.getvalue('Scene Natt') == true then
grp.write('Kjøkken Hvit', 25)
grp.write('Timer Lys Kjøkken', 10)
end
end
Mvh Ruben
Each time the motion detector gets movement the light goes to 25% and after off delay, here set to 10 minutes, the other script turns it off
if event.getvalue() == true then
if grp.getvalue('Scene Natt') == true then
grp.write('Kjøkken Hvit', 25)
grp.write('Timer Lys Kjøkken', 10)
end
end
Mvh Ruben