rianadon / timer-bar-card

A progress bar display for Home Assistant timers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tesla Charging

ryanmac8 opened this issue · comments

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) }}"

Before this is added to the docs, I would like to get a comment from @rianadon in #96.

According to the docs it should work with remain_time, but you are now the third person(#98, #93, and #96) who uses a template sensor instead.

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.

And thanks for the configuration @ryanmac8. I've added your doc to the README.