rianadon / timer-bar-card

A progress bar display for Home Assistant timers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BMW Connected drive hybrid loading

hoeni opened this issue · comments

Thanks for your nice work. Maybe these settings in the Docs could be helpful for others. This works well with my 330e, I suppose It will work well with others, too:

Integration: BMW Connected Drive

CleanShot 2022-11-09 at 08 51 59

type: custom:timer-bar-card
      entity: sensor.330e_charging_status
      active_state: CHARGING
      end_time:
        entity: sensor.330e_charging_end_time

Thank you for the documenting these! I've just added the link in the readme.

I'm not sure whether this would make the timer more robust or not, but I noticed the BMW Connected Drive integration also publishes a charging start time. So you could do:

type: custom:timer-bar-card
  entity: sensor.330e_charging_status
  active_state: CHARGING
  start_time:
    entity: sensor.330e_charging_start_time
  end_time:
    entity: sensor.330e_charging_end_time

Again, this probably makes little difference. The only time it will be noticeable is if you restart Home Assistant, then the timer will have the correct start time. This is because if you restart Home Assistant, it won't be able to go back in history to figure out when the charging entity last changed to CHARGING. Instead with start_time specified, it can retrieve the start time from the entity.