Hi, I have a input_number entity that syncs and adjusts volume via an automation working well.
My goal is to have it integrated into my Universal Media Player entity as volume_set.
UndefinedError: ‘mappingproxy object’ has no attribute ‘volume_level’
I have also tried an automaton and sensor.
When I add an MQTT sensor that pulls the volume value to universals attributes section it shows a slider with current volume. But when using it, it just reverts to last value, with this in logs.
[homeassistant.helpers.service] Error rendering data template: UndefinedError: ‘value’ is undefined
I tried both but still get the same as before with and without the volume_level attribute pointing to a sensor with the volume.
When I use the attribute, I get a slider in the media player interface that is in the same position as the input_number slider. But it shows no numbers (?) and snaps back to original position when you try and adjust it.
So I though it could be possible to do the reverse and automate adjusting the slider that now shows in the media player to adjust the input_number slider. but still nothing…
I figured it out ! Long story short, I was using volume_set very incorrectly.
I finally found a few examples of correct usage with MQTT.
The TV is controlled directly via MQTT, I guess i should have mentioned that…
Didn’t need an input_number entity at all. Just a sensor.
@tom_l do you know of a setting in the mini player that will display a numeric value for the volume level.? I want to try changing from the slider to the plus and minus using the volume_stateless but I want to see the level it’s set at…