esp32-evse icon indicating copy to clipboard operation
esp32-evse copied to clipboard

Integration with EVCC

Open nagyrobi opened this issue 8 months ago • 3 comments

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.

nagyrobi avatar Aug 05 '25 12:08 nagyrobi

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.

dekamilv avatar Aug 05 '25 22:08 dekamilv

Haven't installed EVCC yet, thus I have no idea which would be the best approach, HTTP, MQTT or MODBUS.

nagyrobi avatar Aug 08 '25 10:08 nagyrobi

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:

redonebe avatar Oct 22 '25 17:10 redonebe