Flash a light green when the front door is locked, then return the light to it's previous state


#1

1) Give a description of the problem
It will flash red/green and then revert to a random color. If it does work properly, it seems to cycle through a random color, then cycle to the previous state.

2) What is the expected behavior?
If front door is unlocked, flash the front door Hue light green, then return to original level/color/state.
If front door is locked, flash the front door Hue light red, then return to original level/color/state.

3) What is happening/not happening?
It will flash red/green and then revert to a random color. If it does work properly, it seems to cycle through a random color, then cycle to the previous state.

4) Post a Green Snapshot of the pistonimage


Help with "capture attributes"
#2

I have a bit of trouble with saving/restoring state on my hue bulbs too. Seems like it can’t respond to all of the commands at once. You might be able to get away with restoring colorTemperature and level.

Restoring the color, colorTemperature, hue, and saturation might be causing the color cycling you are seeing.


#3

Please upload files directly into the dialogue box. Imgur is nice but not needed.

As stated above by @talz13 you might be overloading the local state and confusing the bulbs. Color = h/s/l so there is no need for both. Try both combinations and see which one works better for you.

Also there is an option when capturing and restoring. It takes away the chance that you are overwriting the store with info you don’t want. Enable that for capturing and restoring.