matt8707 / ha-fusion

A modern, easy-to-use and performant custom Home Assistant dashboard
MIT License
1.85k stars 79 forks source link

Adding a different state at conditional media #498

Open Kaspermaat opened 2 weeks ago

Kaspermaat commented 2 weeks ago

Hi Matt,

First of all, I want to thank you for the great work! Your old dashboard has been hanging on the wall for over a year now. I'm following this new project with great interest. Currently, I'm using a "Latest News" feature on the dashboard. This is an image I added using a Genetic Camera. However, I'd like the news title, which is in a different sensor, to be displayed as the title. In summary, it would be great if you could set a different sensor for the title in the conditional media settings. It also would me nice to change the icon as well. ;)

IMG_0012

matt8707 commented 1 week ago

Hi, this is not what it's designed to do, but you can make your own template sensor as a workaround.

template:
  - sensor:
      - unique_id: latest_news
        state: >
          {{ states('sensor.news') }}
        attributes:
          friendly_name: Latest news
          icon: mdi:newspaper
          entity_picture: /local/news.png