Setting slider to manual volume change

works perfect thank you so much

Am I correct that now in version 2021.12.2 it should be?:

input_number:
  denon_volume:
    name: Volume pre-amp
    initial: 0.4
    min: 0
    max: 1
    step: 0.01
    mode: slider
alias: Denon - Adjust Volume
description: Volume slider
trigger:
  - platform: state
    entity_id: input_number.denon_volume
condition: []
action:
  - service: media_player.volume_set
    data:
      volume_level: '{{ trigger.to_state.state }}'
    entity_id: media_player.denon_avr
mode: single
alias: Denon slider feedback helper
description: Denon slider feedback helper
trigger:
  - platform: state
    entity_id: media_player.denon_avr
    attribute: volume_level
condition: []
action:
  - service: input_number.set_value
    data:
      value: '{{ states.media_player.denon_avr.attributes.volume_level }}'
    entity_id: input_number.denon_volume
mode: restart

The old examples didn’t work anymore. But this seems to work. But i’m asking because the response isn’t super fluid. Don’t know for shure if i’m introducing a feedbackloop also. :slight_smile: Anyone who knows for shure?

1 Like

Hmm this part of my code seems wrong: it couse HA automations to produce serious errors in the logs. But I not experienced enough to understand why.

it could be because its trying to execute if the device is off?

you could add condition - check to see if device is on.