EVSE Integration With ESPHome
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
- Create a new device in your ESPHome.
- Past the code attached, review the config and adjust according to your ESPHome configuration.
- Connect the ESPModule to the computer and program it.
- Check that your device is accessible on your network by pressing the Visit button .
Downloads
Connect the parts acording to the diagram.
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.
Supplying power to the controller.
- If you have no experience with mains power, please do not proceed. Contact a professional electrician for advice / help !
- Connect a cable with a plug to the ETEK controller.
- Connect the plug to the socket. After this moment there is live power in the controller, please take the care to not get electrocuted.
- The controller should light up and do the initialization.
- After the initialization, the connection between the D1 and the ETEK should work.
- Check that the values in the webpage changed.
The fun part, Create your page on the home assistant !
Final notes.
- 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.
- 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.
- 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.
- There is some confusion on the baud rate of the ETEK 9600 its working fine for me.
- 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.