Volume control GH

I have the following code that is already working but i would like to have the corresponding number visual in frontend next to the slider.

input_number

  spotify_volume_kitchen:
    name: Volume
    icon: mdi:volume-high
    initial: '0.2'
    min: '0'
    max: '1'
    step: '0.05'

automation

- alias: "Volume kitchen"
  trigger:
    platform: state
    entity_id: input_number.spotify_volume_kitchen2
  action:
    service: media_player.volume_set
    data_template:
      entity_id: media_player.kitchen
      volume_level: '{{  states.input_number.spotify_volume_kitchen.state  }}'

You’re saying that you want to see the number next to the slider?

I might be sending you on a side project, but lovelace shows this for input numbers on its entities card. Here’s a demo: https://home-assistant-lovelace-gallery.netlify.com/#demo-hui-entities-card

1 Like