Skip to content
/ ocpp Public
forked from lbbrhzn/ocpp

Home Assistant integration for electric vehicle chargers that support the Open Charge Point Protocol (OCPP).

License

Notifications You must be signed in to change notification settings

npirtube/ocpp

 
 

Repository files navigation

hacs_badge Total alerts Language grade: Python codecov

OCPP

This is a Home Assistant integration for Electric Vehicle chargers that support the Open Charge Point Protocol.

Installation

1. Install HACS

  • If you have not yet installed HACS, go get it at https://hacs.xyz/ and walk through the installation and configuration.

2. Install the OCPP Repository

  • In Home Assistant, select HACS / Integrations / + Explore & add repositories.

image

  • Search for 'OCPP' and install the repository.

3. Add the OCPP Integration

  • In Home Assistant, select Configuration / Integrations / Add Integration.

image

  • Search for 'OCPP' and add the integration.

image

4. Configure the Central System

  • The default host address '0.0.0.0' will listen to all interfaces on your home assistant server.

image

  • Select which measurands you would like to become available as sensor entities.
  • Most chargers only support a subset of all possible measurands. This depends most on the Feature profiles that are supported by the charger.

image

5. Add the entities to your Dashboard

  • On the OCPP integration, click on devices to navigate to your Charge Point device.

image

  • At the bottom of the Entities panel, click on 'Add to Lovelace' to add the entities to your dashboard.

image

  • An entity will have the value 'Unavailable' until the charger successfully connects.
  • An entity will have the value 'Unknown' until its value has been read from the charger.

6. Configure your Charger

  • Configure your charger to use the OCPP websocket of your Central System (e.g. ws://homeassistant.local:9000). This is charger specific, so consult your manual.
  • Some chargers require the protocol section 'ws://' to be removed, or require the url to end with a '/'.
  • Some chargers require the url to be specified as an IP address, i.e. '192.168.178.1:9000'
  • You may need to reboot your charger before the changes become effective.

image

7. Start Charging

  • Use the charge control switch to start the charging process.

image

Supported devices

All OCPP 1.6j compatible devices should be supported, but not every device offers the same level of functionality. So far, we've tried:

Debugging

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.

Support

If you need help, check out our forum or submit an issue.

Development

It is recommended to use Visual Studio Code, and run home assistant in a devcontainer. See https://hacs.xyz/docs/developer/devcontainer

💡 Tip: If you like this project consider buying me a coffee or a cocktail:

Buy Me A Coffee

About

Home Assistant integration for electric vehicle chargers that support the Open Charge Point Protocol (OCPP).

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%