Page 1 of 1
Blockly question
Posted: Saturday 27 April 2019 14:07
by Adam
Hello,
First I want to apologize for my bad English
I have a question, how can I use Blockly to get a socket turned on when a window is open for more than 15s?
Thanks and best regards, Adam
Re: Blockly question
Posted: Sunday 28 April 2019 10:31
by Denny64
I think you can do it with dummy switch.
First make a dummy switch and call it like you want. (Test in this case).
Make a second dummy switch to control time overruns, or use an existing one. (Check in this case)
Now you have three devices:
"Door" The switch to control
"Test" The dummy switch
"Check" The alarm switch
Than blockly:
IF Door=On AND Test=Off
SET Test=On After 15 seconds
ELSE IF Door=Off AND Test=ON
SET Test=Off
ELSE IF Door=On AND Test=On
SET Check=ON
SET Test=Off
Re: Blockly question
Posted: Sunday 28 April 2019 17:33
by Adam
Great thank you. Will test it later.