{"id":50745657,"url":"https://github.com/johnbr/ha-ev-charging-card","last_synced_at":"2026-06-10T20:30:57.806Z","repository":{"id":361085757,"uuid":"1253026490","full_name":"johnbr/ha-ev-charging-card","owner":"johnbr","description":"Home Assistant Lovelace card showing an EV charging session — power, energy added, SoC, limit, ETA, and a dynamic title (Charging / Supercharging / DC Fast Charging).","archived":false,"fork":false,"pushed_at":"2026-05-29T05:26:57.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-29T07:22:10.598Z","etag":null,"topics":["charging","electric-vehicle","ev","hacs","home-assistant","lovelace","tesla"],"latest_commit_sha":null,"homepage":"https://github.com/johnbr/ha-ev-charging-card","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnbr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-29T05:01:24.000Z","updated_at":"2026-05-29T05:27:01.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/johnbr/ha-ev-charging-card","commit_stats":null,"previous_names":["johnbr/ha-ev-charging-card"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/johnbr/ha-ev-charging-card","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnbr%2Fha-ev-charging-card","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnbr%2Fha-ev-charging-card/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnbr%2Fha-ev-charging-card/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnbr%2Fha-ev-charging-card/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnbr","download_url":"https://codeload.github.com/johnbr/ha-ev-charging-card/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnbr%2Fha-ev-charging-card/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34170162,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["charging","electric-vehicle","ev","hacs","home-assistant","lovelace","tesla"],"created_at":"2026-06-10T20:30:57.010Z","updated_at":"2026-06-10T20:30:57.801Z","avatar_url":"https://github.com/johnbr.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EV Charging Card\n\nA compact, single-row Home Assistant Lovelace card for visualizing an active EV charging session.\n\n- Animated lightning bolt + shimmering progress bar when charging.\n- Metrics overlaid on the bar: SoC %, kW, kWh added, ETA.\n- Charge-limit marker on the bar.\n- Dynamic title that distinguishes **Charging** (home AC), **Supercharging** (Tesla Supercharger), and **DC Fast Charging** (other) via a configurable entity.\n- Integration-agnostic — works with any EV/charger entities you have.\n\n## Install\n\n### HACS\n\n1. HACS → Frontend → ⋮ → Custom repositories → add this repo as a **Lovelace** category.\n2. Install **EV Charging Card**.\n3. Add the card from the visual picker (HACS adds the resource for you).\n\n### Manual\n\n1. Download `ev-charging-card.js` from the latest [release](https://github.com/johnbr/ha-ev-charging-card/releases).\n2. Drop it into `/config/www/community/ha-ev-charging-card/`.\n3. Settings → Dashboards → ⋮ → Resources → add `/hacsfiles/ha-ev-charging-card/ev-charging-card.js` as **JavaScript Module**.\n\n## Configuration\n\nUse the visual editor, or paste YAML:\n\n```yaml\ntype: custom:ev-charging-card\nstate_of_charge: sensor.car_battery_level\ncharge_limit:    sensor.car_charge_limit\npower:           sensor.car_charging_power\nenergy_added:    sensor.car_charging_energy_added\ntime_remaining:  sensor.car_time_to_full\ncharging_state:  binary_sensor.car_charging\ncharging_type:   sensor.car_fast_charger_type\ncharging_type_map:\n  Supercharger: Supercharging\n  CHAdeMO: DC Fast Charging\n  Combo: DC Fast Charging\n  GB: DC Fast Charging\n  AC: Charging\n  default: Charging\n```\n\n| Option | Type | Required | Description |\n|---|---|---|---|\n| `state_of_charge` | entity | yes | Sensor with current battery % |\n| `charge_limit` | entity | no | Sensor with target SoC % — drawn as a marker on the bar |\n| `power` | entity | no | Charging power sensor (kW; W also accepted) |\n| `energy_added` | entity | no | Energy added this session (kWh; Wh accepted) |\n| `time_remaining` | entity | no | Minutes to full, hours, or `H:MM` string |\n| `charging_state` | entity | no | Binary/enum sensor — `on`, `true`, `charging`, or `starting` shows active visuals |\n| `charging_type` | entity | no | State of this entity is looked up in `charging_type_map` to set the title |\n| `charging_type_map` | object | no | Map of entity state → title. `default` is the fallback |\n| `title_override` | string | no | If set, used verbatim as the title |\n| `name` | string | no | Alias for `title_override` |\n\nThe `kW`, `kWh`, and ETA metrics are only shown while charging. The card never disappears when entities are unavailable — it falls back to showing just the SoC with the bar at rest.\n\n## Example — Tesla via [`tesla_telemetry`](https://github.com/johnbr/ha-tesla-fleet-telemetry)\n\n```yaml\ntype: custom:ev-charging-card\nstate_of_charge: sensor.roadrunner_battery_level_telemetry\ncharge_limit:    sensor.roadrunner_charge_limit_telemetry\npower:           sensor.roadrunner_dc_charging_power_telemetry\nenergy_added:    sensor.roadrunner_dc_charging_energy_added_telemetry\ntime_remaining:  sensor.roadrunner_time_to_full_charge_telemetry\ncharging_state:  binary_sensor.roadrunner_charging_active_telemetry\ncharging_type:   sensor.roadrunner_fast_charger_type_telemetry\n```\n\nThe default `charging_type_map` already covers Tesla's `FastChargerType` states (`Supercharger`, `CHAdeMO`, `Combo`, `GB`, `AC`).\n\n## Example — non-Tesla (helpers + OpenEVSE)\n\n```yaml\ntype: custom:ev-charging-card\nstate_of_charge: sensor.leaf_soc\npower:           sensor.openevse_charging_power\nenergy_added:    sensor.openevse_session_energy\ncharging_state:  binary_sensor.openevse_charging\ntitle_override:  Charging\n```\n\n## Accessibility\n\nThe progress bar has appropriate ARIA semantics. All animations are disabled when the user has `prefers-reduced-motion: reduce` set.\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnbr%2Fha-ev-charging-card","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnbr%2Fha-ev-charging-card","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnbr%2Fha-ev-charging-card/lists"}