Control the Current of the EV charger(OCPP) from Home assistant

IAMMETER-simulator connects to Home Assistant through OCPP

Abstract: Connect EV charger to Home assistant via OCPP

Considering different EV charger have different OCPP setting page,this tutorial use the IAMMETER-simulator as an example. IAMMETER-simulator can also work as an simulated EV charger that support OCPP and connected with a specified battery capacity and maximum charging power.

After you complete this integration(integrate the simulated OCPP charger into home assistant), it would be very easy to change the EV-charger from IAMMETER-simulator to your own real EV-charger. Just need to disconnect the IAMMETER-simulator and set your real EV charger connect to the OCPP server that home assistant provided.


Add the repository of OCPP from the HACS





Setting->"Device & Service"


This below pic show the setting of the OCPP server in Home Assistant.

Please note ,the IP and port would be used in the setting of the OCPP charger in the next chapter.

ocpp configuration in home assistant

Select the parameters that your want to communicated with the EV charger.

All of these fields are supported by the OCPP protocol, but not all of these parameters are supported in the EV charger. Different brand may support different parameters return. You can select all of these parameters. If the parameter is supported by the EV charger, the value would be returned successfully, otherwise it will display "unavailable" in the HA.

OCPP setting in home assistant

Click "submit"

All of the parameters listed below in the dashboard. The supported parameters will show the instant value. The unsupported parameters will show "unavailable".

OCPP parameters in the dashboard of the HA


Install the IAMMETER`s simulator

Run the IAMMETER`s simulator

Simulated an EV charger in IAMMETER-simulator

Change the OCPP Server to the address of the Home Assistant like below picture , save it.

set the IAMMETER-simulator to simulate the ev charging

Go to "Overview" page in IAMMETER-simulator


Click "start charging" image-20231008135625526

Control the current of the EV charger in HA

The ocpp charger is already connected to home assistant now.


Adjust the charging current in Home Assistant, and the charging current in IAMMETER-SIMULATOR changes accordingly.

The current charging current is 18A

Adjust the current value in HA, the corresponding current value of the EV charger would also changed

Adjusted to 9A via Home Assistant



Beginning tutorial for the IAMMETER`s simulator


Thread Status

Sort replies by:

Integrate IAMMETER-simulator into the Home assistant by HACS

Looks like you are new here. Register for free, learn and contribute.