I’ll cut right to it without all the newb prefacing…
Is there a way to write a generic script that automations can use to store a bulb’s current RGB value and brightness for later reference?
I would like to have lights indicate by color when a trigger occurs, but then return to their original state after a set period of time. It would be great to use the same script for multiple light sources.
I’m having trouble figuring out how to snapshot the various conditions of the entities that I would like to reset. The link shows a few examples, but I can’t follow the syntax in the YAML file to insert my own code.
I’ve tried calling the Scene: Create for a light, but it will only snapshot the on/off state. And, I’m not clear on which service call I need to make at the end to restore the temporary scene.
What I’m trying to do is: turn a light red for 5 seconds while TTS-ing a speaker, and then reset the light to its color and brightness before the contact was opened.