Going back to old bulb state

Hi there.
I'm setting some light notifications (e.g. Flashing green when recycling day) and I want to be able to go back to the previous state when done. So, if the light was off, go back to off. If the light was warm white, go back to that. I know I can set some variables to record hue, level, saturation, etc. but is there an easier way. It's a lot of lines of code just to say "go back to what you were".
Thanks
Alan

Are you doing that in Rule Machine?

Yup. Pretty much my goto app

Then you want to add a Capture above your first action and then a restore action after your last action.

1 Like

Great, thanks.

1 Like