i’m using a custom:button-card to control my garden hose. i’ve managed to get the formatting right to change the color based on the state of this hose. i’m trying to get the label to display the remaining time and no matter what i do, i can’t get it to work. the hose integration provides me the start time, and i’m using a template sensor to calculate the remaining time, but i can’t get the remaining time to show as the label. it either gives me an error when i try to load the overview or the button disappears entirely. i’m stuck on how to fix it. any help would be super appreciated, i’ve spent literal hours on this
template:
- platform: template
sensors:
garden_irrigation_run_time:
friendly_name: Garden Irrigation Run Time
value_template: >
{{ ( now() - state_attr('switch.garden_irrigation_zone','started_watering_station_at') ) }}
I’ve seen suggestions that using config-template-card could achieve this.
Only issue I’ve seen reported is that whenever your card dynamicly updates it makes the whole card refresh rather than just the sensor value changing. So if your card has something that is regularly changing in it this isn’t really a solution.
Your reply contains nothing , just a link to CTC card which is absolutely not needed for a custom: button-card. Suggest you to be more accurate when saying/writing something, otherwise it could seem rather silly , especially when repeated.
If you expect a ready code instead of getting PRECISE descriptions of errors for PRECISE places of a code - may be it is not a good platform/forum/planet for you.