04.09.2019, 18:49
(03.09.2019, 08:54)admin Wrote: You can create a scheduled script that runs on a specified time. If room is not occupied then you turn the light on/off:tnx this will work, but is it possible to check more rooms in the same code? how will that code look like?
1/1/1 is occupancy status, 1/1/2 is light output.
Scheduled script parameters:
Minute: 0 for turn on, 15 for turn off
Hour: 7,10,13,16
Day of the month: *
Month of the year: All
Day of the week: All
Turn on:
Code:if not grp.getvalue('1/1/1') then
grp.write('1/1/2', true)
end
Turn off:
Code:if not grp.getvalue('1/1/1') then
grp.write('1/1/2', false)
end