An easy way to connect Home Assistant with Deye inverter using Modbus TCP.
With this simple project I wanted to find a industrial way to connect a Deye inverter with Home Assistan. Cheap and without any welding.
The Hardware:
-
The first thing is a RS485 converter. There are Ethernet, Wifi, POE, dual channel, in plastic, metal casing... There are many to choose from and they are cheap.
I have used an RS232/485/422 TO POE ETH (B) from the Waveshare brand:
- A RJ45 cable. That's all!!
The Instalation:
First Steps:
It is necessary to configure the following parameters in RS485 to eth (with you IPs):
Second Step:
Cut the RJ45 and connect:
- Orange Cable --> RS485 A
- Orange/White Cable --> RS485 B
- Green/White Cable --> Signal Ground.
Third Step:
On Home Assistant, put the Modbus.yaml and Templates.yaml files next to the Configuration.yaml.
Edit Configuration.yaml:
modbus: !include modbus.yaml
template: !include template.yaml
Thats all!
Developer Tools -> YAML -> Verify Configuration -> Restart
When you restart, if you search for the Inverter entities, you should see all of these:
Notes:
- They are only reading sensors, I have not been able to make the switches and selectors work, it is on the pending list.
- I have based on the sensors in @slipx06's project. They were much better organized than in Deye's documentation.
To do list (I would be very grateful if somebody help me with these points):
- Make Switches functional. Now they only show the state they are in.
- Make selectors with drop-down menus. Now they only show the information about what is selected.
- Make the entire schedule part work. Now it only shows the information about how it is configured.
Well, I hope you like it, you find it useful and we can improve it.
Thank you!