Piston for dimming and turning off lights in the evening


#1

Hi,

I am trying to set up a piston that does the following:
IF certain criterias are met, THEN dim lights in room 1. Also turn off lights in room 2 and 3 but only IF no motion is detected, otherwise dim these lights as well.

I have created the first version of the piston, but for me it looks like room 2 and 3 are not connected to the first set of IF criterias (the “if” statement on the top). Am I thinking correctly?

EDIT:
So I messed around with “Only when”… Will this do the trick?


#2

No, this will set those second two whenever the motion goes inactive. You have restrictions but no triggers for the first function. I would suggest looking at some of the example pistons on the forum here. I think you want to have the second two functions nested inside the first one, so the second two only fire when the first has fired.