bruxy70 / Garbage-Collection

🗑 Custom Home Assistant sensor for scheduling garbage collection (or other regularly re-occurring events - weekly on given days, semi-weekly or monthly)
MIT License
383 stars 90 forks source link

Configuration question regarding card-templater #429

Closed JimboJamez closed 1 year ago

JimboJamez commented 1 year ago

Before you submit a new bug report, please check that

Write your question here

I am trying to follow your directions for setting up a custom card for garbage collection. I am not understanding what the 'sensor.bio' entity is, or where it is derived from:

`type: 'custom:card-templater' card: type: picture-entity name_template: >- {{ state_attr('sensor.bio','days') }} days show_name: True show_state: False entity: sensor.bio state_image: "0": "/local/containers/bio_today.png" "1": "/local/containers/bio_tomorrow.png" "2": "/local/containers/bio_off.png" entities:

Are you able to shed some light on this, please?

bruxy70 commented 1 year ago

In this example, sensor bio is the entity created by the garbage collection helper. This is not essential for this helper to use, it is just an example to illustrate a possible (advanced) use in a dashboard. If you find it hard to use, just ignore it.