Can anyone explain how I can make use of the assets in my custom button card, as area’s do not have a entity to pull from.
Cheers
Andrew.
Can anyone explain how I can make use of the assets in my custom button card, as area’s do not have a entity to pull from.
Cheers
Andrew.
If you have access to JS templates, the hass object has hass.areas[area].icon
and hass.areas[area].picture
(a URL)
great thanks a lot, worked like a charm.
I’d love to learn more about the options:
Could you share your code example?
I want to have the icons dynamic as well.
In my case template so far static:
<ha-icon
icon="mdi:home"
style="width: 20px; height: 20px; color: white;">
</ha-icon>
Thank you