SirGoodenough / HA_Blueprints

🧯 My Collection of Automation and Script Blueprints for Home Assistant 🧯
Other
132 stars 22 forks source link

Cube: Enable setting volume to 0 or 1 with large rotation angles #35

Closed ghost closed 8 months ago

ghost commented 8 months ago

When the rotation angle is too large, the target volume was <0 or >1 and not set at all. By manually setting it to 0 or 1, the volume is set correctly.

Btw: Great scripts, thank you very much! When combining this one with the cube blueprint, I had to set the angle field type from number to template to use the relative_degrees from the trigger event.

SirGoodenough commented 8 months ago

AAAAhh. I did notice some movements did not result in a change of volume. Thanks for the help. Something similar may be happening with the brightness one or the short-press/long-press one, I'll have to look.