After routine trigger to restore to previous setting

Hi Everyone, this is probably covered 1000 times, but as I am new to all this if I could be pointed in the right direction it would be awesome.

I have some LIFX mini colour lights, and I have them set up at night time to turn on 6:30 pm-11:30 pm at a nice warm tone colour. This part was easy, but we have a business and a motion detector. I have this idea to make the lamps in the house glow red for 15 seconds at night time if motion detection is triggered (also easy).

The problem is that if there is motion detection and the lights glow red, the lamps then turn off and are stuck in the last colour. I know I can code stuff but where how do I code to reset to the default colour I want and during the time of 6:30 pm-11:30 pm once the red notification is over to change the lights back and on the default colour during this time.

Any help would be appreciated.

You can do this if you use webCoRE. There is a capture/restore capability you can use. There are lots of example pistons you can look at on the webCoRE forum at https://community.webcore.co

Also a great place to post questions and ask for assistance when building pistons.

2 Likes