Store hue from Trådløs bulb in variable, and restore

Hi all,

How do I restore the value of the hue in an Trådløs bulb from a variable?

I am trying to use the bulb to switch to red colour for alerting (e.g. doorbell rings), and want the bulb to go back to the previous colour after 30 seconds.

I can get the hue into a variable, no problem, but when I try to use the value stored in the variable I’ll get an error message during testing saying “token invalid step”.

The value in the variable looks something like 0.88333999…,

Anyone able to help resolve this?


You have to round the variable to 2 decimals.

Look at post 3 of this topic for example

Awesome, thanks!