This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

how to charge fluorescent sign
#3
(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:

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
tnx this will work, but is it possible to check more rooms in the same code? how will that code look like?
Reply


Messages In This Thread
how to charge fluorescent sign - by benthoma - 31.08.2019, 08:49
RE: how to charge fluorescent sign - by admin - 03.09.2019, 08:54
RE: how to charge fluorescent sign - by benthoma - 04.09.2019, 18:49
RE: how to charge fluorescent sign - by admin - 05.09.2019, 06:26

Forum Jump: