Don't Blind me in the moring


#1

1) Give a description of the problem
I created a piston that will turn the lights on in the bedroom if there is motion. The lights will only turn on if it is day mode AND the lights were turned on by the switch or by google. When I get up in the morning and I execute a goodmorning command on my google home, it starts a gentle wakeup that slowly illuminates the light. The problem is while the light is slowly illuminating, and then the motion sensor sees motion, the light immediatley goes to 100%.

2) What is the expected behaviour?
I dont want the motion sensor to turn on the light unless its day and the ceiling light has reached 100%.

3) What is happening/not happening?
The motion sensor is immediately firing once i turn the light light on in the morning, even once it is at 1%.

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


(UPLOAD YOUR IMAGE HERE)


#2

I might have fixed it, what do you think? I’m thinking this wont set the awake variable to true until the masterbedroom light reaches 99%.


#3

my only recommendation would be splitting this into 2 pistons.
One deals with the actions the other with the variables.

Double triggering a piston (While piston is being triggered, another execution takes place) can cause problems.


#4

What triggers the mode change? Are you manually adjusting the dimmer to 100% each morning to re-enable the motion sensor?

The “Wait 30 seconds” timer could get interrupted if any of the other triggers fires (dimmer adjustment, for example). I’m not sure how likely you could adjust the dimmer without triggering motion. You could use the “Stays inactive for 30 seconds” trigger instead to get around this.