#Voice PE as notification light

1 messages · Page 1 of 1 (latest)

severe briar
#

Hey!
I would like to make an automation that, using the LED Ring in Voice PE, will notify me of specific things (depending on the reason, it will light up in different colors).
However, there is a problem. I would like that after the automation is done, the color and brightness will return to their state before the automation. Is it possible to somehow check what the color and brightness of the light was at the beginning of the automation, so that after the automation is executed, such parameters will set themselves?

quasi vault
#

in the automation create a scene at the beginning that has the current state of the led ring entity
then do whatever your doing
then activate the scene you created

as this scene has a fixed ID it gets overwritten every time the automation is run so you dont have to worry about them piling up

severe briar
#

I'll try to do so! Thanks a lot!

quasi vault
#

no worries, scenes are a powerful tool for storing the state of 1 or more devices/entities

severe briar
#

It worked, but I had to tweak a bit. It looks like this:

  1. light on
  2. delay by 80ms
  3. creating a scene
  4. turning on the light with other settings
  5. performing other actions
  6. activating the scene
  7. turning off the light

As I did without steps 1, 2 and 7 then when I turned it back on, the settings from step 4 were still there.