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

Garbage Collection - Display No of Days Until Pickup

$
0
0

Hello
I’ve been following the excellent tutorial on installing and setting up a garbage collect integration. I’m able to display the images correctly and hopefully they will change colour based on my pickup schedule. What is missing are the number of day’s to go before the trash gets collected. If anyone is familiar with the garbage collect integration and know why the day’s aren’t showing up, would you be kind enough to advise me? Thanks in advance for any help that can be provided.
Michael

image

It should look like this with the number of day to go before the next pickup - please ignore the difference in colours and the number of images.

image

I believe this has something to do with the “custom:card-templater” which I have installed in the config/www/community/lovelace-card-templater directory

“sensor.waste” entity. Notice it makes a reference to the “custom:card-templater” in the last line.

card:
entity: sensor.waste
name_template: ‘{{ states.sensor.waste.attributes.days }} days’
show_name: true
show_state: false
state_image:
‘0’: /local/garbage/general_today.png
‘1’: /local/garbage/general_tomorrow.png
‘2’: /local/garbage/general_off.png
type: picture-entity
entities:
- sensor.waste
type: ‘custom:card-templater’

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 105523

Trending Articles