Hi. I’m trying to make a piston that sends an “open” command to a roller blind, but if it was activated less than 30 seconds ago (and the blinds are still running), then instead it should send a “stop” command.
I was thinking on using a variable that turns 1 and after 30 seconds it goes back to 0, but I’m really new in webCoRE and I’m not finding a way to set it, when I try to add a new task that sets a variable (the one that says location Set variable…) I get an “invalid variable” red text and a drop down menu with no variables (I expected I’d just type its name here).
This variable should only work within this piston, but I read that local variables are reset every time a piston is started, is that right? Should I use a global one instead?
Thanks,
Rodrigo