Simple light routine turn on / turn off

(Mads) #1

Hey people,

I am fiddling with my ZHC5010 multi button / switch thing and webcore.
This is starting to hurt my mind and I need some help.

Have these two simple pistons when I press the button nr 4 I want light to turn on and off based on sunrise and sunset.

But seems like the preset condition is not working. The lights turns on but only one light is turned off when the button is pushed again.

Tried to do it in one piston and also split it up. Same result. I am doing this completely wrong?

(Robin) #2

It looks like it should work… I wonder if your devices are reporting their states correctly?

You could try turning off command optimisation in the piston settings (click on the piston name when in the editing window, and expand the pop-up UI using the cog (gear) symbol.

You could also try using restrictions:

IF button 4 gets pushed
With lights (only when time is between sunrise and sunset)
turn on
With lights (only when time is not between sunrise and sunset)
turn off

(Mads) #3

Thanks. I tried that but didn’t make any difference.
Furthermore it doesnt seems like you can set the condition on the turn on action.

(Robin) #4

You need to click the filter icon at the top of the editor page, then the restriction sections appear.