Charging openHAB with OCPP

Hey guys, I been looking recently on car chargers since I might need to develop a binding for one. Since I am still an user of traditional car I have no way to test binding locally beside one remote deployment based on easee I will soon have access. I already managed to setup simulator and mock controller to implement some basic logic related to OCPP conversations on both ends. It let me understand a little bit better protocol and what it allows to do. Now, I start poking around making a basic binding to collect state and some meter values reported by chargers.

It will take me a bit to come with first version hence I would like to collect some additional feedback from you. From my small research it seems that most popular is OCPP-J v1.6. It is being said that VW chargers are supporting OCPP v2, without much of information of what transport it is (JSON or SOAP based).
If you are interested in such binding, could you please post what charger you could test and what OCPP interface it needs?

Cheers,
Łukasz

This would be really great binding. I have ABB Terra AC charger which seems to have OCPP1.6. I would really be interested in testing your binding.

I have to play a little bit more with OCPP library as it seems to have issues with class loading. :wink:
If I come over that, I will have working discovery of connected chargers.

Some screens from progress (15.04.2022):

  1. Configuration

  2. Deployment

  3. Discovery results

Next part - charger and its state.

2 Likes

Basically I would be interested in starting/stopping the charging and changing the charging current. I have also solar panels and I have a separate electricity meter so I know the PV power, electricity consumption of our house and how much electricity is put back to the grid. If I could control the ABB charger I would like to optimise the charging current so that all the excess solar electricity could be used for charging up my car. This feature woul dbe really great.

The on, off per connector is rather straight, it will come. Regulation of charging power is also within the range (I aim to achieve it for same reasons as you), however it might require some device specific adjustments. OCPP defines a “smart charging profile” but it seems that not all chargers are compatible with it. There are some device specific extensions and in case of ie. easee, there are constraints of how many updates you can do to charging profiles:

Quote from easee ocpp documentation (OCPP Commands):

Profiles are stored in non-volatile memory on the chargers, and frequent writes to this memory will cause wear in charger hardware. If on average profiles are updated more than 10 times a day for a longer period of time, the warranty for the charge point is voided.

@jlikonen Can you try to locate ocpp related documentation for your charger?

1 Like

This sounds really great. I’ll contact ABB in Finland and ask if they could provide documentation for the OCPP. I made some testing for ABB last year so I know the person to contact.

I found this document with Google
1642526428841-terra.ac.ocpp.1.6.implementation.overview._v1.5.external.pdf (223.1 KB)

1 Like

Any progress with this project?

Hey Jari, I got stuck in stabilization of PV part of the installation and will probably move to billing reporting of electricity meters and not chargers data this week.
I hope to visit a site where I can test ocpp in July, then I will have chance to focus on development of addon.