Area Icons and Pictures

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)

1 Like

great thanks a lot, worked like a charm.