Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 96121

Using state value as name in picture entity card

$
0
0

@marnixk77 wrote:

I am using the trash information card to show with trashcan I have empty. It makes some sensor with dates. Now I want to make an picture-entity with the picture of the trash can and the date it should be emptied.

But the problem is I cannot get the date as name of the picture card, it always show Object object instead of the date. The config I have right now is

      - entity: sensor.trash_first_next_item
        name:
         {{states.sensor.trash_first_next_date.state}}
        state_image:
          Geen: /local/afvalwijzer/geen.png
          gft: /local/afvalwijzer/gft.png
          papier: /local/afvalwijzer/papier.png
          plastic: /local/afvalwijzer/plastic.png
          restafval: /local/afvalwijzer/grijs.png
        type: picture-entity

I tried to following values for names but all show object object as name:
{{sensor.trash_first_next_date}}
{{states.sensor.trash_first_next_date.state}}
{{states.sensor.trash_first_next_date}}

I also tried to make a sensor:


How can I used the value of the sensor state/value as name of the picture card ?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 96121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>