OCPP Server Plugin for linking electric car chargers!

Glorious work! Well done.

Great work.
Does the integration provide a service (or switch) to start/stop charging? Does it support assigning a charge to a (virtual) charging account?

1 Like

Is the BMW Wallbox Plus supported by this plugin? It’s technically a Keba P30.

@OrangeTux good idea to include your OCPP python lib into home assistant as a server. I have a Mennekes AMTRON Xtra 22 C2 online - it should support OCPP 1.6. So, I am ready to test. But I do not find a way to tell the AMTRON to connect to an OCPP server :unamused:

I am about to get a plug-in hybrid and a charger that has OCPP 1.6. So I am keen for this integration. Specifically, I want to be able to monitor my solar power generation (HA already doing this) and control the charger so that it matches the output. So I want: charger on/off, charger on x watts.
Can an OCPP charger see the charge status of the battery in the car it it charging?

Unfortunately no AC / level 2 / non-fast chargers support reading the cars state of charge. It’s just a part of the J1772 standard. The cars don’t support it either. DC CCS fast charging does. And DC chargers DO support OCPP. But plug in hybrids do NOT support DC charging, plus the cheapest one is about $10,000 USD and needs 100 amps.

1 Like

Charging and battery information is provided by car APIs. For my Jaguar and Renault this works very well in Home Assistant.

I have a EVBox ELVI supporting OCPP 1.6. I installed the test version of the custom component and it is up and running. Problem now… How do I get a communication up and running between the OCPP server listening on port 9000 and the wallbox… No clue yet. Adding ws://192.168.181.42:9000/ as manual controlling service seems to be not enough here.

Useful would be a list of the measurands supported AND what they are doing. Anyone found such list?

BTW: Home Assistant is compaining that the version tag in the manifest.json is missing and the author has to be contacted regarding that as it will be unsupported in future. I added it by hand and HA seems to be happy with a “version”: “1” at the end.

Btw, checking the issues over at OrangeTux’ project site I found this one:
https://github.com/lbbrhzn/ocpp (Can be found in https://github.com/mobilityhouse/ocpp/issues/100)

A more recent version of a HACS compatible repo for the addin. Works sort of over here, but I made two reports already. He is asking for help, so maybe someone is interested to give him that help.

Does anyone know if it will be possible to have f.e. an Afen Eve Single Proline connected to a Backoffice so it can invoice my employer and get updates from the backoffice but also connected to Homeassistant?
So I can set the max current based on a P1 meter like the Alfen will do with it’s Active loadbalancing feature which is a seperate license?

Or is Homeassistant the new “backoffice” then and it can only connect to one.

1 Like

Hey, did OCPP node work for you? and what kind of data you can get from your Charge Point?

I never used it myself. I get power consumption out of the charge point, but for that I built and installed a “modbus sniffer” which listens in on the readings coming from the internal power meter of my charger. It then sends this over mqtt to HA.

I don’t have any control over the charge-point however.

I see thanks for the info, it would be nice if someone could build an integration for it.

There is a HACS based integration for OCPP already, see GitHub - lbbrhzn/ocpp: Home Assistant integration for electric vehicle chargers that support the Open.

It is now part of the HACS default repository list, so installation is relatively painless.
Also, it uses a ConfigFlow so it does not require any changes to configuration.yaml.

2 Likes

Hey @bobf41,

as far as I can see in the configuration options of the Alfen there is only a single backoffice connection that can be active at the same time. So it will be either the backoffice of your employer or home assistant.

To work around that: I am interfacing to my Alfen charge point via modbus over TCP/IP. It allows me to read all sensors in the chargepoint. I am still working on writing the max current, so that is not working yet.

Best regards,
Hollie

Ah Nice, Max current is not needed for me. I have the loadbalance license for the P1 port so that is working by the Alfen Eve itself.

Is there anything you can share already to connect HA to the Alfen Eve?

Hey @bobf41

as soon as I have the max current setting up and running I’ll make a post with the details in a separate topic, as this is not OCPP related and I don’t want to hijack this thread.

The P1 port license you already have is required for this as this is the same license that is required to be able to activate the modbus interface. I am quite sure that you will need the max current setting if you want to use modbus. In the chargepoint config you can either select P1 load balancing or modbus load balancing but not both at the same time.

Regards,
Hollie

3 Likes

I’m interested in this as well. I was thinking to measure the Alfen power using a clamp instead, but if this can be achieved using a modbus, that would be even better :slight_smile:

Hello @denham

I will document my setup once it is running as expected. I have it working in prototype and am testing out dynamic charge current setting to enable maximum usage of locally generated electricity.

Expect something in the next week.

Kind regards,
Lieven

I have documented my setup here.

Best regards,
Lieven

2 Likes