Markdown Card - input_number value

Hi all

I cannot get the markdown card to display an input_number entity. Can anyone please assist?

image

This is in my configuration.yaml file

input_number:
  hifi_volume:
    name: HiFi Volume
    min: -100
    max: 0
    initial: -62
    step: 1
    unit_of_measurement: ' dB'
    icon: mdi:volume-medium

Please don’t post images of text. I am unable to copy, paste and edit. I have to type your answer out in full:

content: "{{ states('input_number.hifi_volume') }}"

Sorry - I’m still new here

type: markdown
content: '{{ value("input_number.hifi_volume") }}'
title: HiFi Volume

No problem. I already gave you the answer.

Thanks, but if I change it as you indicated, it automatically changes it to:

type: markdown
content: '{{ states(''input_number.hifi_volume'') }}'
title: HiFi Volume

and still a blank card :frowning:

What about this:

type: markdown
content: |
  {{ states('input_number.hifi_volume') }}
title: HiFi Volume
1 Like

Hi tom_I

That did not work either - eventually I have to put a string in front of the {{ state…

type: markdown
content: 'Volume: {{ states("input_number.hifi_volume") }}'
title: HiFi Volume

This works ?!

Thanks for your input - I really appreciate it!

:confused: