11.01.2024, 15:51
Hello Timmi !
You will need two scheduled scripts - one for turning ON , second for turning OFF
For turning on
Minute 0
Hour 7
Day of the month *
Month of the year - every month
Day of the week - every day
active (should be checked)
And here is a script for turning ON
For turning off
Minute 0
Hour 10
Day of the month *
Month of the year - every month
Day of the week - every day
active (should be checked)
And here is a script for turning OFF
You will need two scheduled scripts - one for turning ON , second for turning OFF
For turning on
Minute 0
Hour 7
Day of the month *
Month of the year - every month
Day of the week - every day
active (should be checked)
And here is a script for turning ON
Code:
local light_tank_addr = '1/1/1' -- should be scale object
local value = grp.getvalue(light_tank_addr)
while value < 80 do
grp.write(light_tank_addr, value + 1)
os.sleep(3)
value = grp.getvalue(light_tank_addr)
end
For turning off
Minute 0
Hour 10
Day of the month *
Month of the year - every month
Day of the week - every day
active (should be checked)
And here is a script for turning OFF
Code:
local light_tank_addr = '1/1/1' -- should be scale object
local value = grp.getvalue(light_tank_addr)
while value > 0 do
grp.write(light_tank_addr, value - 1)
os.sleep(3)
value = grp.getvalue(light_tank_addr)
end