Skip to content

Implements OCPP-MQTT bridge, which allows to send via mqtt command messages to Charge Station controlled by OCPP

Notifications You must be signed in to change notification settings

rzylius/ocpp-mqtt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple implementation of the OCPP - MQTT bridge

Enables to send mqtt commands (and receive mqtt messages as responses and status updates, though not implemented right now). I use this bridge for managing charge station from OpenHAB.

Send mqtt commands to /ocpp/cmd

Poetry is used to manage dependencies.

To start program: poetry run python ./central_system.py

For automation needs I implemented these commands:

  • start (start charging)
  • stop
  • trigger
  • profile [arg] ( set charging profile, in my implementation argument is max current in Amps, message e.g. profile 8)
  • configuration (read local CP configuration)
  • change_configuration (set local CP configuration item)
  • exit (stop bridge)

Note: to provide secrets, you need to place .env file in the directory: MQTT_USERNAME=xxx MQTT_PASSWORD=xxx LISTEN_ADDR=0.0.0.0 TAG_ID=xxx

Note: check specific dependencies if implemented without poetry, as latest versions of some packages break functionalities.

Note: Every charge station may have peculiarities of OCPP implementation. The code is tested and fully works with:

Dependencies and Contributions

OCPP implementation: https://github.com/mobilityhouse/ocpp

About

Implements OCPP-MQTT bridge, which allows to send via mqtt command messages to Charge Station controlled by OCPP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages