# A volume button for my chromecast

**URL:** <https://community.homey.app/t/a-volume-button-for-my-chromecast/9476>\
**Category:** Flows\
**Created:** [February 20, 2019, 9:13pm UTC](https://community.homey.app/t/a-volume-button-for-my-chromecast/9476 "2019-02-20T21:13:32Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [May 26, 2019, 6:22pm UTC](https://community.homey.app/t/a-volume-button-for-my-chromecast/9476/6 "2019-05-26T18:22:25Z")

</div>

> [@Volume Sonos instellen via afstandsbediening](https://community.homey.app/t/volume-sonos-instellen-via-afstandsbediening/13455/15):
>
> ik mis in dat topic de ‘begrenzer’ op 0 en 1 zodat je niet onder 0 en boven 1 kan

Thanks to @Mark_Homey for noticing a small gap in this flow

> [@Volume Sonos instellen via afstandsbediening](https://community.homey.app/t/volume-sonos-instellen-via-afstandsbediening/13455/15):
>
> ik mis in dat topic de ‘begrenzer’ op 0 en 1 zodat je niet onder 0 en boven 1 kan

🙏But I need some help here ❓❓  
How do I make a math.js command that limits the value between 0 and 1?  
I tried math.clamp but that seems to be not supported (does not result in a value)

---

_[View the full topic](https://community.homey.app/t/a-volume-button-for-my-chromecast/9476)._
