This is a home assistant integration for chargers that support the Open Charge Point Protocol.
- based on the Python OCPP Package.
- HACS compatible repository
- Add the OCPP integration to HACS
- If you have not yet installed HACS, go get it at https://hacs.xyz/ and walk through the installation and configuration.
- Go to the settings and add this integration through the custom repositories:
- Add the url of this git repo: https://github.com/lbbrhzn/ocpp
- Restart Home Assistant!
- Install the new integration through Configuration -> Integrations in HA (see below).
- Add the OCPP integration
- In Home Assistant, select Configuration / Integrations / Add Integration. Search for 'OCPP' and add the integration.
- Configure the Central System
- The default port '0.0.0.0' will listen to all interfaces on your home assistant server.
- Select which measurands you would like to become available as sensor entities.
- Configure your charger
- Configure your charger to use the OCPP websocket (e.g. ws://homeassistant.local:9000). This is charger specific, so consult your manual.
- Add the entities to your dashboard
- In Home Assistant, click on the the Charge Point device see the device info.
- Add the the entities to a lovelace dashboard using the button
The following devices are supported : OCPP 1.6 compatible devices
To enable debug logging for this integration and related libraries you
can control this in your Home Assistant configuration.yaml
file. Example:
logger:
default: info
logs:
custom_components.ocpp: critical
websocket: debug
After a restart detailed log entries will appear in /config/home-assistant.log
.