Garbage Collection - Display No of Days Until Pickup

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’

Hello
I’ve figured it out; I had the “entities” input indented when it shouldn’t have been.

And that was completely impossible for us to see.
Make sure you format your posts correctly

Hi,

sry for reopening this. Sadly it is not clear to me what the solution is.
I tried getting rid of the indentation in every possible way, but did not get it to work.
Still having the same Problem:

type: custom:card-templater
card:
  type: picture-entity
  name_template: '{{ state_attr(''sensor.blaue_tonne'',''days'') }} days'
  show_name: true
  show_state: false
  entity: sensor.blaue_tonne
  state_image:
    '0': /local/Tonnen/Blaue_Tonne_on.png
    '1': /local/Tonnen/Blaue_Tonne_off.png
    '2': /local/Tonnen/Blaue_Tonne_off.png
  entities: 
    - sensor.blaue_tonne

Could anyone help me? :slight_smile:

I got it, thanks to @Steven_Rollason 's Post:

the entity belongs under the Card-templater, not like shown in the official doku.

Here is the right code:

type: custom:card-templater
entities:
  - sensor.blaue_tonne
card:
  type: picture-entity
  name_template: '{{ state_attr(''sensor.blaue_tonne'',''days'') }} Tage'
  show_name: true
  show_state: false
  entity: sensor.blaue_tonne
  state_image:
    '0': /local/Tonnen/Blaue_Tonne_on.png
    '1': /local/Tonnen/Blaue_Tonne_off.png
    '2': /local/Tonnen/Blaue_Tonne_off.png