Tesla Charging
ryanmac8 opened this issue · comments
Ryan Macdonald commented
Tesla
Your card configuration
type: custom:timer-bar-card
name: Tesla Charging
entity: binary_sensor.{CAR-NAME}_charging
end_time:
entity: sensor.tesla_end_of_charging
invert: true
mushroom: null
debug: false
bar_foreground: green
Caveats
Create a template sensor to determine the end of the current charge session.
- platform: template
sensors:
tesla_end_of_charging:
friendly_name: Tesla End of Charging
device_class: timestamp
value_template: "{{ now() + timedelta(hours=states('sensor.tesla_time_to_full_charge')|float) }}"
Johannes Dilli commented
rianadon commented
Commented. Seems like remain_time
isn't always working. Templates are always going to work the best with the card, since the best-tested path is start + end time. But if you don't need a template, then you don't need a template.