Jump to content

Featured Replies

Posted

I'm trying to get Home Assistant to work with my Deye 5Kw Inverter, but I'm unsure which RS485 port is to be used. I have so far been unable to find a clear cut answer anywhere on the internet.

Pls see the attached photo. So is it the top left BMS 485 socket or the bottom right RS 485 socket?

Your help will be much appreciated :)

IMG20231018172247.jpg

On my Sunsynk 5kw, which I believe is the same hardware as the Deye 5kw, I'm using the top left port labelled BMS485 and it works fine there. BMSCAN in the top middle port where you have a yellow cable is for the CANBUS communication to my batteries.

Just use pin 1 for B and pin 2 for A and pin 3 for Ground (if your adapter has a ground, otherwise ignore).

Another thing: the pins are numbered from 1 on the left to 8 on the right if you hold the RJ45 connector with the clip away from you.

Edited by p_i

  • 2 months later...

Hi, could you share a little bit more about your setup?

I have a single Deye SG03 5KW, which have same connectors as yours, but I don't get any data.
On my setup I have a ESP32dev and I'm using pins 16/17. On the TTL to RS485, the RX light is blinking (TX nothing), but no luck :(

On the inverter, the modbus SN is "00", not 01. Does it work with 0, or should I change it to 1? Does it have any other implications to make that change (eg. battery connection)?
Could you share your ESP32 yaml?

Thanks

  • Author

Hi Cristian,

Here are photos of my setup. As you can see I did change my Modbus SN to 01 (It did not break anything on my side :) ). You can also see I plugged the network cable in the top left port. I use a RS485 to USB adaptor and I use a Raspberry Pi 4. I'm not familiar with the ESP so I cannot assist with that.

This is my full SunSynk YAML config if that will help you:

image.thumb.png.e786e479799c9f81e5d11e7ab98c95d5.png

DRIVER: pymodbus
INVERTERS:
  - SERIAL_NR: "2209236579"
    HA_PREFIX: SS
    MODBUS_ID: 1
    DONGLE_SERIAL_NUMBER: "2727046969"
    PORT: ""
SENSOR_DEFINITIONS: single-phase
SENSORS:
  - energy_management
  - power_flow_card
  - pv2_power
  - pv2_current
  - pv2_voltage
SENSORS_FIRST_INVERTER:
  - settings
MANUFACTURER: Sunsynk
READ_ALLOW_GAP: 2
READ_SENSORS_BATCH_SIZE: 20
SCHEDULES:
  - KEY: W
    READ_EVERY: 5
    REPORT_EVERY: 60
    CHANGE_ANY: false
    CHANGE_BY: 80
    CHANGE_PERCENT: 0
NUMBER_ENTITY_MODE: auto
MQTT_HOST: core-mosquitto
MQTT_PORT: 1883
MQTT_USERNAME: mqtt_user
MQTT_PASSWORD: Tulbach10
DEBUG: 0
DEBUG_DEVICE: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0

 

IMG20240205150300.jpg

IMG20240205145318.jpg

IMG20240205145247.jpg

IMG20240205144512.jpg

Edited by vmostransistor

Thanks for your quick reply and sorry for the delay. Tricky week with work :)
I finally changes the MODBUS SN to 01, but still no luck getting data :(.

I have made a more detailed post on my current situation this thread.
Again, thanks for you help!

 

  • 1 year later...
On 2024/02/08 at 1:43 AM, Cristian said:

Thanks for your quick reply and sorry for the delay. Tricky week with work :)
I finally changes the MODBUS SN to 01, but still no luck getting data :(.

I have made a more detailed post on my current situation this thread.
Again, thanks for you help!

 

Did you come right? I'm about to attempt 485 cable to 12kw single phase deye, with esphome on esp32.

@h1771t and others,

I notice that on most, if not all, the Deye/SS inverters all now utilise a combo port, i.e. RS485 & CAN shares 1 port.

So that port should be occupied by the CAN bus cable for the Battery comms.

So you need to combine the two cables with a splitter. All good.

I recently worked on a 12kW Deye 3ph, and the only splitter I had required a short Eth cable between the splitter and the Inverter.

But the resulting RS485 data got scrambled every now and again, so the data was of no use. I suspect that the cable I used for the link was UTP, and should have been STP, as that is what the solar-assistant splitter cable used. As I was working away from home, I had to make another plan.

The only way was to cut the two end of the CAN & RS485 cable, and crimp a new RJ45 connector onto the 2 cable combo.

2 hours ago, Bursu said:

Not sure that is right. Take a look at the wording at https://solar-assistant.io/shop/products/deye_rj45_split

It mentions that normal splitters keep the rs485 pins on the battery, which won't work. The solar-assistant splitter isolates the rs485 from the CAN pins completely.

I received the solar-assistant splitter today, unfortunately my rs485 still did not work, I will try a few things tomorrow to try get it working. My inverter is a sun-12k-sg02lp1-eu-am3

  • 2 weeks later...

Just for reference, I finally got modbus to work on the sun-12k-sg02lp1-eu-am3

Use the "Meter_CON" port as shown below. Flip the blue dip switches next to the port to ON as in the image. Then restart the inverter.

img.jpg

As for esphome config, for some reason this file did not seem to work for me: https://github.com/slipx06/Sunsynk-Home-Assistant-Dash/blob/main/ESPHome%20Configs/DEY12k-modbus.yaml

This one though does seem to work for me: https://github.com/slipx06/Sunsynk-Home-Assistant-Dash/blob/main/ESPHome%20Configs/ESPHome-1P-Sunsynk-Deye.yaml

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...