Page 1 of 1
Delay timer with Blockly
Posted: Friday 14 December 2018 15:05
by proza
Normally all the light goes out at 23.00. But if a movement is detected in the living room, I want to increase a timer by 10 minutes. When the timer count down to zero, a group switch will turn off the lights. For the time being I do not see any possibility within blockey. Look forward to a nice tip
Re: Delay timer with Blockly
Posted: Tuesday 18 December 2018 23:33
by Sine
Blockly is VERY limited.
There is not set or reset -able timer, something you need for things like presence detection.
Years ago there was a poll for what functionality should be added to blockly, this one was high on the list.
I doubt we'll ever see it
(Oh hi gizmocuz)
Search for "presence detection" and you might find a few things you can brew up in lua
Re: Delay timer with Blockly
Posted: Wednesday 19 December 2018 0:58
by sion
You could try this, using a virtual switch, and 2 blocklyd.
1:
If sensor = on
Set virtual switch = on
Set virtual switch = off after 600 seconds.
( or a time you want ).
2:
If time = ((after 23:00 or before 06:00) and virtual switch = off)
Set yourGroup = off.
Re: Delay timer with Blockly
Posted: Monday 07 January 2019 22:10
by proza
Thank you @Sion, I can continue to work out the complete flow
This part is working.