# Flow to control Google Chromecast volume with Ikea rotating dimmer

**URL:** <https://community.homey.app/t/flow-to-control-google-chromecast-volume-with-ikea-rotating-dimmer/27241>\
**Category:** Flows\
**Created:** [March 17, 2020, 1:10pm UTC](https://community.homey.app/t/flow-to-control-google-chromecast-volume-with-ikea-rotating-dimmer/27241 "2020-03-17T13:10:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rhannink](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rhannink/32/10648_2.png) [@rhannink](https://community.homey.app/u/rhannink)\
**Post date:** [March 17, 2020, 1:10pm UTC](https://community.homey.app/t/flow-to-control-google-chromecast-volume-with-ikea-rotating-dimmer/27241/1 "2020-03-17T13:10:52Z")

</div>

Hello,

I can control the volume of my chromecast speakers in flows with a percentage of 0-100%.  
The Ikea dimmer is giving a Value between 0 and 1.

How can I map these two values to eachother. Tried sommering with variabelen and math, but did not succeed yet.

Gr. Remco

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [March 17, 2020, 1:51pm UTC](https://community.homey.app/t/flow-to-control-google-chromecast-volume-with-ikea-rotating-dimmer/27241/2 "2020-03-17T13:51:16Z")

</div>

To get help, show the (not working) flows you made.

In a logic card you can calculate by {{variable/100}}  
as an example for calculating momentary avrage:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/8/58620b0c9aad9ea3206d30b8ba0f527742d1507c.png)

---

<div class="post-metadata">

**Author:** ![FKey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fkey/32/14793_2.png) [@FKey](https://community.homey.app/u/FKey)\
**Post date:** [March 17, 2020, 8:01pm UTC](https://community.homey.app/t/flow-to-control-google-chromecast-volume-with-ikea-rotating-dimmer/27241/3 "2020-03-17T20:01:24Z")

</div>

I created [this post](https://community.homey.app/t/a-volume-button-for-my-chromecast/9476) about a volume button a long time ago.  
Hope ot helps
