I know this have been covered in other threads but my question is slightly different!
I would like to remember the state of my WLED’s so that after the automation they can revert back, I have the automation setup to create a scene and reload it which works ok, but… I would like to remember the colour, brightness and effect as well as if the WLED’s were on.
I have had a play around with some code but I cannot get it to work, can anyone help?
Also can one scene remember the states for two different lights? ie WLED1 and WLED2?
There are a couple options. You could use scene.create to maybe do this. Or you could push the state to an input_text as a concatenated string and then read it back later.
I’m not sure how to write that offhand. You’d use Jinja for that.