Integration with EVCC
EVCC is a nice solution to control EV charging as required to optimise for the current energy situation. A Photovoltaic (PV) system can be connected in order to charge the EV with as much self-produced energy as possible, and/or grid providers can be connected to allow for exploitation of dynamic electricity prices.
Apparently it supports any custom chargers, would be nice to add an example to ESP32-EVSE docs how to integrate it as a custom device, or even make a pull request against EVCC repo with a branded configuration so people could use it out of the box.
Hi @nagyrobi. Don't it works via modbus control? Honestly I also planning to combine esp32-Evse with evcc and it's already installed on my home assistant. This week have to receive last few minor parts to finish boards soldering and then will try to integrate it.
Haven't installed EVCC yet, thus I have no idea which would be the best approach, HTTP, MQTT or MODBUS.
I created a custom charger for the modbus interface with EVCC. All you have to do is enable the modbus in EVSE settings and add these lines to evcc.yaml. Replace the uri with your own. I do not use it myself but tested it very short and it seems to be working. You can add extra parameters but these 4 are mandatory by evcc.
chargers:
- name: EVSE
type: custom
status: # charger status A..F
source: modbus
id: 1
uri: 192.168.40.50:502
timeout: 4s
#rtu: true
register:
address: 100
type: holding
decode: int16
enabled:
source: modbus
id: 1
uri: 192.168.40.50:502
timeout: 4s
register:
address: 103
type: holding
decode: int16
enable:
source: modbus
id: 1
uri: 192.168.40.50:502
timeout: 4s
register:
address: 103
type: writeholding
decode: int16
maxcurrent:
source: modbus
id: 1
uri: 192.168.40.50:502
timeout: 6s
register:
address: 304
type: writeholding
decode: int16
loadpoints:
- title: Carport
charger: EVSE
mode: pv
site:
title: Thuis
meters: