Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Tesla Charging #98

Closed
ryanmac8 opened this issue Jul 26, 2023 · 3 comments
Closed

Tesla Charging #98

ryanmac8 opened this issue Jul 26, 2023 · 3 comments

Comments

@ryanmac8
Copy link

ryanmac8 commented Jul 26, 2023

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) }}"
@jd1
Copy link

jd1 commented Jul 27, 2023

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.

@rianadon
Copy link
Owner

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.

@rianadon
Copy link
Owner

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants