# Variable instead of slider

**URL:** <https://community.homey.app/t/variable-instead-of-slider/2579>\
**Category:** Questions & Help\
**Created:** [October 8, 2018, 9:33am UTC](https://community.homey.app/t/variable-instead-of-slider/2579 "2018-10-08T09:33:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hansie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hansie/32/803_2.png) [@Hansie](https://community.homey.app/u/Hansie)\
**Post date:** [October 8, 2018, 9:33am UTC](https://community.homey.app/t/variable-instead-of-slider/2579/1 "2018-10-08T09:33:32Z")

</div>

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/9/93b1c45735e759a681a532db5ce5300479ac2927.jpeg)  
Color and brightness can only be set by a fixed value with the slider. Is there a way to pass variables directly. I would like to say “Ok Google, set something to 25”.

---

<div class="post-metadata">

**Author:** ![TedTolboom](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tedtolboom/32/12081_2.png) [@TedTolboom](https://community.homey.app/u/TedTolboom)\
**Post date:** [October 8, 2018, 9:41am UTC](https://community.homey.app/t/variable-instead-of-slider/2579/2 "2018-10-08T09:41:57Z")

</div>

Yes, by following

1. Create a variable in e.g. better logic (range 0-1)
2. Define a flow that sets this variable to a specific value
3. In the flow above, draw the tag of this variable over the set brightness slider

The set relative brightness card is used for the relative change of brightness (e.g. increase brightness with 10%)
