I have a 10" tablet on my wall that has a home assistant app running on it. For ease of use, I’ve created a custom dashboard that mostly just puts scripts dedicated to one button - I call the dashboard “Big Buttons”. Want to play Jazz music everywhere? Hit the big Jazz button and the script will launch and group sonos to the correct pandora station - it’s great. But as soon as I want to adjust the volume - I have to use the mini media player from hacs, but it’s “mini”. I would love for the “Gauge” element to be clickable to set a volume instead of feedback only - it’s big! Similar to the “Light” element that gives a slider if the light is dimmable
you can do that with any button & service call.
type: button
name: Volume Up
tap_action:
action: call-service
service: media_player.volume_up
data:
entity_id: media_player.xyz
1 Like
I would like to see a dial like the light brightness control that can map to the actual volume values that I see on the front of my receiver (-80 to +20 dB), not necessarily a percentage.
For the time being, you can make a compensation
sensor that maps the volumes to your decibles, then use that sensor as the state for a number template.
yamaha_receiver_volume:
unique_id: yamaha_receiver_volume
source: media_player.yamaha_rx_v6a
attribute: volume_level
unit_of_measurement: dB
precision: 1
data_points:
- [0.0, -80.0]
- [1.0, 20.0]
yamaha_reciever_reverse:
unique_id: yamaha_reciever_reverse
source: sensor.yamaha_receiver_volume
precision: 2
data_points:
- [-80.0, 0.0]
- [20.0, 1.0]
template:
- number:
- name: Yamaha Volume
state: "{{ states('sensor.yamaha_receiver_volume') }}"
set_value:
- service: media_player.set_volume
target:
entity_id: media_player.yamaha_rx_v6a
data:
volume_level: "{{ states('sensor.yamaha_reciever_reverse') }}"
That will make a slider for the UI.