Hello
I had a custom card created for my garbage collection that looked like this:
Unfortunately I accidentally deleted the page that it appeared on and my installation notes aren’t good enough to help me recreate the card. I’m hoping someone has a similar set up and can provide me with some guidance. Here is some code from the card, however I’m not sure where I enter this. My notes say to add a “Horizontal Stack” card and then add the code:
type: custom:config-template-card
entities:
- sensor.waste_days
variables:
DAYS: states['sensor.waste_days'].attributes['days']+'d'
card:
type: picture-entity
entity: sensor.waste_days
name: ${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
Then I have this code:
- type: horizontal-stack
cards:
- type: custom:config-template-card
entities:
- sensor.waste_days
variables:
DAYS: states['sensor.waste_days'].attributes['days']+'d'
card:
type: picture-entity
entity: sensor.waste_days
name: ${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: custom:config-template-card
entities:
- sensor.bio_days
variables:
DAYS: states['sensor.bio_days'].attributes['days']+'d'
card:
type: picture-entity
entity: sensor.bio_days
name: ${DAYS}
show_name: true
show_state: false
state_image:
'0': /local/garbage/bio_today.png
'1': /local/garbage/bio_tomorrow.png
'2': /local/garbage/bio_off.png
- type: custom:config-template-card
entities:
- sensor.recycle_days
variables:
DAYS: states['sensor.recycle_days'].attributes['days']+'d'
card:
type: picture-entity
entity: sensor.recycle_days
name: ${DAYS}
show_name: true
show_state: false
state_image:
'0': /local/garbage/plast_today.png
'1': /local/garbage/plast_tomorrow.png
'2': /local/garbage/plast_off.png
I’m not sure of the steps I need to do to add the correct card(s) to get this to work. Is someone able to tell me using the information I provided? Thanks in advance for any help that can be provided.