# Set Hue lamp to color/brightness/hue/temp using variable

**URL:** <https://community.homey.app/t/set-hue-lamp-to-color-brightness-hue-temp-using-variable/20353>\
**Category:** Questions & Help\
**Tags:** zigbee\
**Created:** [November 7, 2019, 9:32am UTC](https://community.homey.app/t/set-hue-lamp-to-color-brightness-hue-temp-using-variable/20353 "2019-11-07T09:32:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Y\_D](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/y_d/32/5226_2.png) [@Y\_D](https://community.homey.app/u/Y_D)\
**Post date:** [November 7, 2019, 9:32am UTC](https://community.homey.app/t/set-hue-lamp-to-color-brightness-hue-temp-using-variable/20353/1 "2019-11-07T09:32:34Z")

</div>

Hi all,

I’m looking into saving the current values from my HUE (directly linked to Homey) lamps in to a variable and use this at a later stage.  
Why? When my alarm kicks in I want all lamps to go to blinking red, when the alarm state is stopped, I want my lamp to return to their originial state, so on/off, brightnes, hue, temp etc.

I found a way to save the values to a variable, I also found the card ‘Set the hue’ or ‘Set color’ etc for my lamps. When using this I can also use a value but I can’t seem to use my previously created variables.

Any help?

---

<div class="post-metadata">

**Author:** ![Y\_D](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/y_d/32/5226_2.png) [@Y\_D](https://community.homey.app/u/Y_D)\
**Post date:** [November 7, 2019, 9:40am UTC](https://community.homey.app/t/set-hue-lamp-to-color-brightness-hue-temp-using-variable/20353/2 "2019-11-07T09:40:34Z")

</div>

Found it, had to use number variable. When this is used I can use the variable when setting the Hue
