Charge Amps Cloud for Home Assistant
An unofficial Home Assistant integration and Python client for Charge Amps
charge points. It supports two authentication modes: the Charge Amps Cloud API
(eAPI v5) with an API key, or the Charge Amps portal session with email and
password only.
The repository contains two deliverables:
| Folder |
Purpose |
custom_components/chargeamps_cloud/ |
Home Assistant integration (HACS compatible) |
lib/ |
Standalone Python client, CLI, and tests |
The integration does not contain or distribute any Charge Amps credentials.
Credentials are stored in the Home Assistant config entry and redacted from
diagnostics.
Features
- Charge point online status and detailed connector state
- Live power, per-phase current and voltage
- Current session energy, duration, start time, and RFID tag
- Lifetime energy and last-session energy
- Start and stop charging remotely
- Charging mode (
Off, On, Schedule) and maximum current
- Cable lock and RFID lock
- Reboot button
- Session, car-connected, and car-disconnected events for automations
- Blueprint for authorizing a car when it is plugged in
Schedules, Green Charging, and LED controls are available in the Python client
but are not exposed as Home Assistant entities in this version.
Requirements
- Home Assistant 2025.1 or newer
- A Charge Amps account (email and password)
- Optional: an API key for that account, which can be requested from
Charge Amps support. Without a key the
integration uses the portal session.
- The charger must be online in the Charge Amps Cloud
Installation
Manual (current)
Copy the integration folder into your Home Assistant configuration:
cp -r custom_components/chargeamps_cloud /path/to/homeassistant/config/custom_components/
Restart Home Assistant, then go to Settings → Devices & services → Add
integration and search for Charge Amps Cloud.
HACS
- Make sure the repository is public.
- In HACS, open Custom repositories.
- Add
https://github.com/vikwin/chargeamps_cloud with category Integration.
- Install Charge Amps Cloud and restart Home Assistant.
The integration is self-contained; it does not download a package at setup
time.
Authentication
The integration supports two modes:
| Mode |
Credentials |
API |
Notes |
| API key |
Email, password, API key |
External eAPI v5 |
Recommended; stable public interface |
| Portal session |
Email, password |
Portal web API (my.charge.space) |
No API key; the portal API is internal and may change |
Leave the API key empty in the setup form to use the portal session. Enter a key
to use the external API.
Configuration
Enter the email and password of your Charge Amps account. The API key is
optional; without it the integration signs in through the portal session. The
credentials are validated during setup.
Options
| Option |
Description |
| Poll interval |
Seconds between status polls (10–300, default 30) |
| RFID tag for remote start |
Optional hex tag. Empty means the first active tag on the account is used |
| RFID format |
Hex, Dec, or ReverseDec |
| RFID length |
auto, 4, 7, or 10 bytes |
Remote start requires RFID lock on the connector. Enable RFID lock if you
want the charger to wait for an authorization instead of starting as soon as a
cable is connected.
Entities
Each charge point becomes a device; each connector becomes a child device.
Charge point
| Entity |
Type |
| Online |
binary sensor |
| Status |
sensor (Online / Offline) |
| Firmware |
diagnostic sensor |
| Total energy |
sensor (kWh) |
| Reboot |
diagnostic button |
Connector
| Entity |
Type |
| Car connected |
binary sensor |
| Charging |
binary sensor |
| Connector status |
sensor (Available, Preparing, Charging, SuspendedEV, …) |
| Power |
sensor (W) |
| Session energy |
sensor (kWh) |
| Current L1 / L2 / L3 |
sensor (A) |
| Voltage L1 / L2 / L3 |
sensor (V) |
| Session type |
enum sensor (OnePhase, ThreePhase, Schuko) |
| Session started |
timestamp sensor |
| Session duration |
duration sensor |
| Session RFID |
diagnostic sensor |
| Last session started / ended |
timestamp sensors |
| Last session duration |
duration sensor |
| Last session RFID |
diagnostic sensor |
| Last session energy |
sensor (kWh) |
| Mode |
diagnostic sensor (Off / On / Schedule) |
| Charging enabled |
switch |
| RFID lock |
switch |
| Maximum current |
number (A, 6–installation current) |
| Cable lock |
lock |
| Start charging / Stop charging |
buttons |
Services
| Service |
Device (device_id) |
Fields |
chargeamps_cloud.start_charging |
connector |
rfid, rfid_format, rfid_length (all optional) |
chargeamps_cloud.stop_charging |
connector |
– |
chargeamps_cloud.set_mode |
connector |
mode: Off, On, Schedule |
chargeamps_cloud.set_current |
connector |
current: 6–32 A |
chargeamps_cloud.reboot |
charger |
– |
chargeamps_cloud.refresh |
– |
– |
Example:
service: chargeamps_cloud.start_charging
data:
device_id: 0123456789abcdef0123456789abcdef
Events
| Event |
Data |
chargeamps_cloud_session_started |
chargepoint_id, connector_id, session_id, rfid, started_at |
chargeamps_cloud_session_ended |
chargepoint_id, connector_id, session_id, rfid, energy_kwh, ended_at |
chargeamps_cloud_car_connected |
chargepoint_id, connector_id |
chargeamps_cloud_car_disconnected |
chargepoint_id, connector_id |
Automations
The blueprint Charge Amps Cloud - authorize a plugged-in car starts a
session when the connector reports a plugged-in car. Import it from
custom_components/chargeamps_cloud/blueprints/automation/chargeamps_cloud/ or
create the automation manually:
trigger:
- platform: state
entity_id: binary_sensor.driveway_charger_car_connected
to: "on"
action:
- service: chargeamps_cloud.start_charging
data:
device_id: 0123456789abcdef0123456789abcdef
Python client
cp .env.example .env # fill in email, password, and API key
uv sync --project lib --all-extras
uv run --project lib chargeamps whoami
uv run --project lib chargeamps status
The client is documented in docs/library.md.
Project layout
lib/ Python package (chargeamps-cloud)
custom_components/chargeamps_cloud/ Home Assistant integration
tests/ Home Assistant tests
docs/ Documentation
scripts/sync_lib.py Copies the library into the integration
The integration ships with a generated copy of the library at
custom_components/chargeamps_cloud/chargeamps_cloud/. After changing lib/,
run:
python scripts/sync_lib.py
Disclaimer
This project is not affiliated with or supported by Charge Amps AB. It uses a
cloud API that may change without notice. Use it at your own risk and make sure
your use complies with the Charge Amps terms of service.
Changelog
See CHANGELOG.md. Release notes are generated from the matching
section by the release workflow.
License
MIT
评论