Power cut piston for when the power comes back on


#1

1) Give a description of the problem
Just had a power cut and realised I don’t want all the lights to come back on in the middle of the night.
2) What is the expected behavior?
When power returns turn off the lights

3) What is happening/not happening?
Would like some ideas
Would something as simple as if hub power changes to mains
Wait 10 seconds and turn off whole house work or would I need to do more.

4) Post a Green Snapshot of the pistonimage
NA

5) Attach any logs (From ST IDE and by turning logging level to Full)
N/A


#2

that should work if you also put in time or mode check as a secondary condition. if the power cut happens at 8pm and restores at 8:30pm you probably dont want to turn off all the lights. :slight_smile:


#3

Good point planning on having a sleep mode so if in sleep mode, home or away turn of but if in evening (7-10) or night (10 -till bed) turn of X y and z.