Start a new topic

Help in figuring out how to communicate with OpenEVSE

We have an EV and a PV system but don't have OpenEVSE yet. Currently I have access to our required revenue grade meters via RS485.

 So I have PV power and power to/from the grid available to me on a Linux desktop computer. A simple program can do the math and set charge current on the OpenEVSE.

1. How do I send shell command via http to the OpenEVSE to control it - charge current etc? Or Perl or Python.

I've been finding various Python and other scripts but I apparently don't understand just what RAPI and mqtt is. Like does the OpenEVSE use both communication protocols at the same time?

I would be using the hardwired ethernet board in the OpenEVSE instead of wifi as there is no wifi in the garage where the charger would be located.


2. I guess another option would be to use Home Assistant docker image but how do I get the PV and grid power data to HA?


I'll need some basic baby steps to get me going.

Thanks!



I suggest option 2, this is exactly what I do. I have defined a RESTful command as per below where "sensor.total_openevse_amps_available" is the output of your calculation as per above. If your inverter has an integration or you can use its API to query you don't need your 'Linux' calculation since HA will do it for you.


 

  set_openevse_charging_current:
    url: http://192.168.1.240/claims/client/65537
    method: POST
    payload: '{"state": "active", "charge_current": {{ states("sensor.total_openevse_amps_available") }}, "max_current": 40,"energy_limit": 0,"time_limit": 0,"auto_release": false}'
    content_type: "application/json"

 

Login or Signup to post a comment