Works on old Core but not new Webcore


#1

1) Give a description of the problem
THe Gates element which works fine in the old version doesnt work using what I believe are the same commands in the new WebCore

2) What is the expected behavior?
It should turn a light on if a gate is open between a certain time.

3) What is happening/not happening?
Works fine on Core, Not on Webcore

4) Post a Green Snapshot of the pistonimage

Core%20Image

5) Attach any logs (From ST IDE and by turning logging level to Full)
(PASTE YOUR LOGS HERE BETWEEN THE MARKS THEN HIGHLIGHT ALL OF THE LOGS SND CLICK ON THE </> ICON TO FORMAT THEM)

REMOVE BELOW AFTER READING


#2

Instead of using $status, use switch


#3

Apologies the one I sent was status but I had it on switch. Basically identical.


#4

You used

with Location instead of using

with the device you want to control

So it should be

If time is between blah blah
And
Switch 16 switch changes

Then

With driveway lights ( you had with location here)
Turn on
Wait 2 minutes
Turn off


#5

When using jkp’s code if any problem happens I would just place trigger first, condition second.
I am not sure if this is general webcore thing or my setup but I had better results using trigger first.
I would also add NEVER CANCEL to WAIT 2 minutes part - Ussualy with triggers, once the trigger is no longer TRUE the piston cancels remaning tasks - like countdowns.


#6

Thanks everyone for help. Sorted now.