[HowTo] Show an attribute value of a configured device in a card?

Noob question:

How get I an attribute of a configured device show on a frontend card?

e.g.
device: light.mqtt_circadian
attribute to show: brigntness

Any help would be appreciated!

You could create a template sensor with the attribute you want or use the custom entity attributes card.

1 Like

Thank you for your respond @Tediore !
Just another noob question, isn’t it possible to set it directly into a card configuration?

Something like:
light.mqtt_circadian.attributes[“brightness”]

Not currently at least. That’s why someone created that custom card.

1 Like

Clear! Thank you for your explanation, it’s appreciated! :+1:

Are you looking for something like this?

1 Like

Yes, something like that!

How did you accomplish that?

Take a look at this thread:

My yaml looks like this:

      - entity: light.breakfast_nook
        type: "custom:secondaryinfo-entity-row"
        secondary_info: "Brightness: [[ if(light.breakfast_nook == 'off', '0', light.breakfast_nook.attributes.brightness) ]]"
1 Like

Thanks @jhart003, will take a look at that!