Change lights colours and level based on time


#1

i would like to add a time event so that if there is motion between time 8am to 6pm the lights are colour x and then between 6pm - 10pm the colour is xy


#2

I’ve done the same for my bedroom light - I guess it could be done with a single piston but for me, a noob as far as Piston design goes, I’ve created two simple ones. They are time dependant.


I hope this helps,

Rich


#3

You can just nest your IF statements…

(Also next time post a “green” piston, as that makes it easier to modify rather than having to start from scratch)

Usually Setting the color for a light turns it on…but just in case I added the ON command too.


#4

I do something fairly similar… having it do different colors for different modes of the house, with a random thrown in to keep things interesting :slight_smile: