03.09.2019, 08:54
You can create a scheduled script that runs on a specified time. If room is not occupied then you turn the light on/off:
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:
Turn off:
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