Skip to content

Latest commit

 

History

History
92 lines (40 loc) · 2.44 KB

README.md

File metadata and controls

92 lines (40 loc) · 2.44 KB

Modbus-TCP-for-Deye-Inverter

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:

  1. 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:

Image

Image

  1. 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):

Image

image

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:

Image

Notes:

  1. They are only reading sensors, I have not been able to make the switches and selectors work, it is on the pending list.
  2. 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):

  1. Make Switches functional. Now they only show the state they are in.
  2. Make selectors with drop-down menus. Now they only show the information about what is selected.

Image

  1. Make the entire schedule part work. Now it only shows the information about how it is configured.

Image

Well, I hope you like it, you find it useful and we can improve it.

Thank you!