EVSE Integration With ESPHome

by npatroni in Circuits > Arduino

98 Views, 1 Favorites, 0 Comments

EVSE Integration With ESPHome

photo_2024-10-22_19-27-55.jpg

Hi everyone! I'm Nuno an electronics diy and these are instructions to integrate the "EKEPC2-C/S EPC EV Charge Controller" with Homeassitant using ESPhome. This is not an instruction on how to build a ESVE. This is an instruction on how to connect it to the Home assistant.

* WARNING* This project is intended for qualified technicians. People who use the diagrams, construction plans, and other information shown are responsible for their own safety. Amateurs should refrain from building or using the diagrams, construction plans, and other information in any form.

Programing the D1 Mini

  1. Create a new device in your ESPHome.
  2. Past the code attached, review the config and adjust according to your ESPHome configuration.
  3. Connect the ESPModule to the computer and program it.
  4. Check that your device is accessible on your network by pressing the Visit button .

Downloads

EVSE.jpg

Connect the parts acording to the diagram.

NA.png

Supply the 5V to the D1 Mini and check that the device is visible in your wifi network. The webpage of the device should appear with all the values that depend of the ETEK show as NA.

conn.png

Supplying power to the controller.

  1. If you have no experience with mains power, please do not proceed. Contact a professional electrician for advice / help !
  2. Connect a cable with a plug to the ETEK controller.
  3. Connect the plug to the socket. After this moment there is live power in the controller, please take the care to not get electrocuted.
  4. The controller should light up and do the initialization.
  5. After the initialization, the connection between the D1 and the ETEK should work.
  6. Check that the values in the webpage changed.

ha.png

The fun part, Create your page on the home assistant !

Final notes.

  1. By default, the ETEK arrives modbus_controller ID configured as 255. I've changed it to 5. If you have problems communicating with the controller, please contact me, so we can see if there is anything we need to change in this intructions.
  2. The rs485 to rs232 converter tends to overheat when it’s supplied with 5 V. Because of this I’m borrowing 3V from the D1. Don’t know if it’s a good idea in long terms.
  3. I did not connect the PE (Power Earth) from the ETEK controller to the RS485 and did not place a resistor on the RS485 line. For me its working but it could be an issue.
  4. There is some confusion on the baud rate of the ETEK 9600 its working fine for me.
  5. I’ve not installer the controller in is destination and I’m unable to say it will work as expected. I’ll update the instructions when there is new information.