question

ju avatar image
ju asked

EV Charger integration: OpenEVSE

Hi,

this might be interesting to some of you. I wrote a simple service which polls data from the OpenEVSE (EV Charger, mqtt/json) and puts the data on dbus.


https://github.com/JuWorkshop/dbus-evsecharger


capture-decran-de-2022-05-18-10-22-08.png
https://github.com/JuWorkshop/dbus-evsecharger

Venus OS
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

8 Answers
ju avatar image
ju answered ·

1-devicelist.png (42.9 KiB)
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

jurekz avatar image
jurekz answered ·

Super!!! Am waiting for OpenEvse charger so I will try that service.

Thank you!

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

fcattaneo avatar image
fcattaneo answered ·

Very cool!!

I'm just 2 open evse working in my network and also a complete Victron PV system ( with Cerbo GX, batteris etc etc...

I'm inexperienced in Cerbo GX software ; how i can install this software ( i need root access?.. ssh access ?).


Ciao,

Fabrizio.


2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

ju avatar image
ju answered ·

Yes, need root access and ssh active.
Cerbo : https://youtu.be/L9BHSJEpTD8?t=158

Putty ssh, install dbus-evsecharger:

wget https://github.com/JuWorkshop/dbus-evsecharger/archive/refs/heads/main.zip
unzip main.zip "dbus-evsecharger-main/*" -d /data
mv /data/dbus-evsecharger-main /data/dbus-evsecharger
chmod a+x /data/dbus-evsecharger/install.sh
/data/dbus-evsecharger/install.sh
rm main.zip
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

fcattaneo avatar image
fcattaneo answered ·

Thanks of you i was able to install the script and work great!!

The only wrong info is the EVSE in shown in critical load side, but in real it is connected to ACin1 side.

Fantastic script !!

1661870231561.png


1661870231561.png (362.5 KiB)
1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

pau1phi11ips avatar image pau1phi11ips commented ·

You can change the position by adding this around line 58 of dbus-evsecharger.py

self._dbusservice.add_path('/Position', 0) # normaly only needed for pvinverter
0 Likes 0 ·
fcattaneo avatar image
fcattaneo answered ·

Tanks for your support.

If i append this line at the end of object definition ( as shown ) , my PV inverter ( in ACin ) stop to work and also the Open EVSE do not work.


self._dbusservice.add_path('/ProductId', 0xFFFF) #

self._dbusservice.add_path('/ProductName', productname)

self._dbusservice.add_path('/CustomName', productname)

self._dbusservice.add_path('/FirmwareVersion', int(data['divert_update']))

self._dbusservice.add_path('/HardwareVersion', 2)

self._dbusservice.add_path('/Serial', data['comm_success'])

self._dbusservice.add_path('/Connected', 1)

self._dbusservice.add_path('/UpdateIndex', 0)

self._dbusservice.add_path('/DeviceInstance', deviceinstance)

self._dbusservice.add_path('/Position', 0) # normaly only needed for pvinverter





1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

pau1phi11ips avatar image pau1phi11ips commented ·

Hmm, maybe this just works for Inverters then. I assumed it would work here too. There's are what the values ordinarily equate to.

  • 0 = input
  • 1 = output 1
  • 2 = output 2
0 Likes 0 ·
ceriw avatar image
ceriw answered ·

I've installed this on my system and can see the data - thanks. The only thing that I can change via the settings is the "Enable Charging". when I try to change the "Charging Current" it doesn't let me change it. Also, the "Position" is shown as "Unknown". If I Change this to "AC Output" and then levee the menu, when I come back it shows "Unknown" again.

Have I messed up the installation somehow?

Thanks

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

ea4gkq avatar image
ea4gkq answered ·

I fork it and made some changes in order to work with new openevse firmware


https://github.com/ayasystems/dbus-evsecharger/


Please check it, it works with ESP32 and firmware 4.1.x

1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

ceriw avatar image ceriw commented ·
That works - thanks
0 Likes 0 ·