Deye SUN-3.6K-SG05LP1-EU-AM2-P Help Home Assistant

Hello everyone,

I have a Deye SUN-3.6K-SG05LP1-EU-AM2-P inverter and I’m trying to integrate it locally with Home Assistant.

I would like to use Modbus RTU over the RS485/METER port instead of relying on Deye Cloud.

So far I have:

  • Tested a USB-to-RS485 adapter.
  • Tried all available communication ports on the inverter.
  • Tested different A/B wiring combinations.
  • Tried Modbus RTU communication, but I only get timeouts (no response from the inverter).

Deye support has already sent me the official Modbus register map for this inverter, so I believe local Modbus should be supported.

My questions are:

  1. Has anyone successfully connected a SUN-3.6K-SG05LP1-EU-AM2-P locally via the RS485/METER port?
  2. What communication settings are you using?
  • Baud rate
  • Parity
  • Slave ID
  1. Which RJ45 pins are connected to RS485 A and B?
  2. Are there any settings in the inverter that must be enabled first?
  3. Does this model require a Modbus TCP gateway instead of a direct USB-RS485 adapter?

Any advice or configuration examples would be greatly appreciated.

Thank you!

I have a Solis Hybrid inverter, so I don’t know the particular details of your Deye other than reading the manual online.

Inverters connect to the battery BMS over the CAN port (which sometimes can include RS485 as well, used to talk with the battery).
There will also be an RS485 meter port. This goes to the power meter used to measure the grid import/export.

You will not get anything out of the meter port, so you need to look for a Modbus / Comms port. The Modbus protocol works as ‘master’ and ‘slave(s)’ with only one master that does all the talking, and one to many slaves that respond to the master read/write requests. For the meter port, the inverter is the master and the meter the slave. The inverter reads the meter, and will not respond itself to any read requests over that port.

For reading the inverter details, you need the computer to be the master and the inverter the slave. There appears to be a ‘Modbus’ port on your inverter.

Serial RS485 settings are most likely to default to 9600 baud, no parity, one stop bit. Slave ID should be set to ‘1’ (which is the most commonly used setting) and your inverter must be a Modbus Slave.

The manual suggests the RJ45 port pins are 1-B 2-A and also 7-A 8-B, which I have never seen before but does mean that you don’t have to worry about which way around the plug is! You are unlikely to need ground, and you may need terminating resistor(s) but only if you are getting occasional errors on the connection.

As always with Modbus, the A-B can be wrongly labelled [particularly on cheap USB adapters] so always try swapping them over. Always use a twisted pair from a cat cable.

USB adapters can work, but it is noted that these use various chip sets, some of which don’t work well/at all. If you have a long enough cable, try using the USB adapter in a Windows PC which is likely to have the necessary drivers, and you can easily find Modbus software that can be used to test the connection.

Whilst USB-RS485 adapters can work OK, the use of a Modbus TCP gateway can make it all easier. As long as you use an RS485-Ethernet adapter that is Modbus aware and can perform Modbus RTU to Modbus TCP translations, and you can get access to your LAN for the adapter location, Modbus TCP is easy to work with. Adapters usually have easy webpage configuration and helpful tools such as self-test and loopback-test.

I hope that has been of help to you. Modbus can be challenging as everything (settings, cable, adapter, software) has to be correct or nothing works.

Thank you for your detailed explanation.

My inverter model (SUN-3.6K-SG05LP1-EU-AM2-P) does not appear to have a dedicated “MODBUS” RJ45 port — only BMS (CAN/RS485) and METER.

Deye support has already provided me with the official Modbus register map for this model, which suggests that Modbus access should be available somehow.

Has anyone with this exact model successfully read inverter registers locally?

If yes:

  • Which physical port did you use?
  • Was it direct RS485 or through the WiFi/LAN logger?
  • Did you have to enable any installer/service setting?

This thread resonates. I’m planning on doing exactly this with the same Deye model I had installed a few weeks ago with my PV. Deye cloud has served me well but I plan to move local now, however I’ve yet to install HA and have only just signed up a moment ago to this forum.

I’ve spent last 3 days musing how to achieve your goal @cdee and am currently awaiting an SSD to mod a Macmini to run HA with the Deye via it’s Modbus port to a ESP32/RS485 TTL gizmo that seems like the optimal solution. The best video I’ve found is from a polish YouTuber. So I’m making a (shopping) list and checking it twice, and plan to have it all rocking by early September. :crossed_fingers:

You may want to check this out: