Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 102782

Don't return light to snapshot state if light changed while script is running

$
0
0

Hello,

I have a script that creates a snapshot of a few lights, then changes the lights to blue for a few minutes and then restores the states of the lights. That works fine.

But I was looking if there’s a way that I could prevent the states from being restored if I turned off the light while the script was running.

For example, the light is on white, then the script is activated, snapshots the state, then turns the lights blue, but if I turn off the light while the light is blue (let’s say to go to sleep). Now I would want that light to remain off instead of being restored

Does anyone have any ideas? Thanks!

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 102782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>