I am trying to create a universal media player to combine a Sonos zoneplayer with an old Denon AVR. I created an esphome device to control the denon through rs232. Volume is controlled with a number entity. When I try to create the volume_set with this number I get an error when I try to set volume. I there a way to control volume with a number entity?
#Universal media player - volume_set via number
3 messages · Page 1 of 1 (latest)
why is this code not working? When I us the volume slider from the mediaplayer I get no error but it always jumps back to 50.
volume_set: service: number.set_value target: entity_id: number.denon_avr_sk_bk_zone_1_volume data: value: "{{ states('number.denon_avr_sk_bk_zone_1_volume') | float }}"
action: media_player.volume_set
target:
entity_id: media_player.kitchen
data:
volume_level: 0.39