I can’t seem to find a way to display the area name on an entity’s tile card.
Am I too blind to find it or is there really no way?
I can’t seem to find a way to display the area name on an entity’s tile card.
Am I too blind to find it or is there really no way?
You’d be better off using a Mushroom Template Card which is styled off the Tile card.
Yeah, thanks, but I was rather looking for an out-of-the-box way to do it.
Back in the day, you’d have friendly names like “Living room ceiling light” for your entities.
A bit kludgy, but that’s how it was.
Nowadays, with entities assigned to areas, you should be able to use just “ceiling lamp” and extract the area name from the entity to show on a tile, right?
In the end, I just want something like this:
Like this with the Mushroom option I mentioned
type: custom:mushroom-template-card
primary: Ceiling Light
icon: mdi:ceiling-light
entity: switch.kitchen_lights
icon_color: "{{ 'red' if is_state(config.entity, 'on') else 'grey' }}"
secondary: "{{ device_attr((config.entity), 'area_id') | capitalize }}"
tap_action:
action: toggle
Agreed, but that option for tile cards is not a current available option.
You can post Feature Option Requests here: home-assistant · Discussions · GitHub
So, there are no means to achieve this short of installing an add-on and do some YAMLing.
Not to mention some potential frenzy each month, in case the add-on doesn’t agree perfectly with the latest HA update.
Too bad for the layman.
I’ll consider posting a suggestion, but that’ll have to wait until my dashboards overhaul is done.
Thank you, I’ll try and make friends with
shrooms ![]()
Yes, I’d say it’s a work in progress, but the creator of Mushroom’s profile should ease your Mushroom concerns.
@home-assistant Software Engineer at @OpenHomeFoundation.
Oh, I wasn’t aware of that.
So I guess it’s just a matter of time that those mushroom will be fully adopted.
Now that’s encouraging.
Thanks again!
I’ve played with the mushroom template card. It works, but it’s way too complex for a simple use case like mine.
So I posted a feature request on Github.