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.

I’d love to learn more about the options:

  1. Can I gain access to the icon/picture in JINJA templates? (now that would be awesome…)
  2. How/when can I use JS templates?