I have a volume slider in my frontend controlling the volume of my Chromecast Audio.
Sometimes the volume starts jumping up and down. Not only visual, the audio geting high, low, high, low…
This is how my automation looks like.
15:30
Volym changed to 0.14999984204769135
15:30
vaggen volume slider has been triggered
15:30
volume slider vaggen has been triggered
15:30
Volym changed to 0.1999998390674591
15:30
vaggen volume slider has been triggered
15:30
volume slider vaggen has been triggered
15:30
Volym changed to 0.14999984204769135
15:30
vaggen volume slider has been triggered
15:30
volume slider vaggen has been triggered
15:30
Volym changed to 0.1999998390674591
15:30
volume slider vaggen has been triggered
15:30
vaggen volume slider has been triggered
15:30
Volym changed to 0.14999984204769135
15:30
vaggen volume slider has been triggered
15:30
volume slider vaggen has been triggered
15:30
Volym changed to 0.1999998390674591
15:30
vaggen volume slider has been triggered
15:30
volume slider vaggen has been triggered
This is what i get in my log sometimes.
17-05-31 15:31:40 ERROR (MainThread) [homeassistant.core] Invalid service data for input_slider.select_value: expected float for dictionary value @ data['value']. Got ''
Thank you.
I tried it but can’t get it working.
I changed my input_slider to:
Min: 1
Max: 100
Steps: 1
The Chromecast Audio volume steps is in 0.01 - 1.0
But if i raise my volyme from the chromecast i small bit the input_select change it back.
What can i change to make this work?
No.
Wouldn’t it give me even bigger steps?
Now it feels like if I make a small volume change, it is to small to move the input_select and that is why the intput_select-automation change the volume back.
This is how the volume state looks like for the Chrome Cast:
Hmm isn’t one automation triggering the other all the time, why not disable the other while updating then re-enable when finished, do that for both and it might solve the problem?
Yes this is what’s going on.
But it isn’t always.
Only sometimes this happens.
How to turn off the other automation?
Action:
Homeassiatant_turnoff
The other automation
Update state
Homeaasostant_turnon
The other automation
Not the cleanest way but it should work? Right?
Any other suggestions?
The problem disapeared now for a while.
Right now, I’m trying 0,05 steps for the slider.
If it doesn’t solve it i will turn the other automation off, then on after state change.