Add restriction (only if room lights are off)


#1

1) Give a description of the problem
I’m trying to add restriction to turn off lights in room 1 when motion is inactive ONLY when lights in room 2 are off (so when they are on, the piston shouldn’t fire)

2) What is the expected behavior?
3) What is happening/not happening?

I tried adding restriction (just below line 31): physical devices then (status, lights, switch, level, lights, on, etc…) and set value is zero or off but it doesn’t do it at all of, actually most of the time the light won’t turn off at all when adding such restrictions

**4) Post a Green Snapshot of the piston![image|45x37]

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
If a solution is found for your question then please mark the post as the solution.


#2

Rather than messing with a restriction, just try adding another condition:

IF motion stays inactive for 10 minutes
AND
Room 2 lights are on
THEN
with Room 1 lights
Turn off


#3

Thx but thats not what I need
I need the room 2 lights to be off in order for room 1 lights to turn off

IF motion stays inactive for 10 minutes
AND
Room 2 lights are off
THEN
with Room 1 lights
Turn off

I just started webcore 2 days ago, I don’t know how to set lights to off. I see many options but nothing to indicate lights are off, I’m sure it’s somewhere and I’m blind

Thx


#4

I may have fixed it using this