Integration with evcc#

evcc.io is software for intelligent electric vehicle charging. GbbOptimizer can communicate with it via MQTT to coordinate EV charging with home battery optimization.

Requirements#

  • A working evcc installation
  • Local MQTT broker (Mosquitto in Home Assistant or standalone)
  • Configured Mosquitto Bridge

Bridge Configuration#

In the Mosquitto configuration file (/share/mosquitto/GbbOptimizer.conf) add topic lines for evcc:

1
2
3
4
5
6
connection GbbOptimizer_<PlantId>
remote_username <PlantId>
remote_password <PlantToken>
address <mqtt-server-address>:8883
bridge_capath /etc/ssl/certs
topic # both 2 evcc/loadpoints/ <PlantId>/evcc/site/loadpoints/

MQTT Topics#

Data from evcc (evcc -> GbbOptimizer)#

TopicDescription
{PlantId}/evcc/site/statistic/total/chargedKWhTotal energy charged to EV (kWh)

Commands from GbbOptimizer (GbbOptimizer -> evcc)#

TopicPayloadDescription
{PlantId}/evcc/loadpoints/{chargerId}/modeoff or nowEnable/disable charging
{PlantId}/evcc/loadpoints/{chargerId}/maxCurrentnumber (A)Maximum charging current
{PlantId}/evcc/loadpoints/{chargerId}/connectedtrue/falseCharger connection status

Where {chargerId} is the charging point identifier in evcc.

evcc must be configured to communicate via MQTT. Check the evcc documentation in the MQTT section.