Posted November 13, 20231 yr 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 :)
November 13, 20231 yr 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.
November 13, 20231 yr top left see picture on chapter "Equipment" to this link http://doro.poltava.ua/dsolar/index.html
November 14, 20231 yr Author The link http://doro.poltava.ua/dsolar/index.html shows this picture: But this is very confusing, are they saying I must use pin 1 and 7 for B and A respectively? On https://kellerza.github.io/sunsynk/guide/wiring it shows the wiring like this:
November 14, 20231 yr 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 November 14, 20231 yr by p_i
November 14, 20231 yr Author I connected according to  https://kellerza.github.io/sunsynk/guide/wiring and I'm getting data now, thx everyone
February 4, 20241 yr 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
February 5, 20241 yr 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: 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  Edited February 5, 20241 yr by vmostransistor
February 7, 20241 yr 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! Â
June 29Jun 29 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.
July 2Jul 2 @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.
July 5Jul 5 @Sidewinder thanks so much.I'm going to get a splitter and try, I tried on the "Meter_CON" port with no luck.I see the splitter is out of stock, will wait and get one of these: https://solar-assistant.io/shop/products/deye_rj45_splitThanks for the info.
July 7Jul 7 This is the compatible solitter for 2in1 BMS/RapsberyPi port. https://www.aliexpress.com/item/1005004594345615.html
July 7Jul 7 2 hours ago, Bursu said:This is the compatible solitter for 2in1 BMS/RapsberyPi port.https://www.aliexpress.com/item/1005004594345615.htmlNot sure that is right. Take a look at the wording at https://solar-assistant.io/shop/products/deye_rj45_splitIt 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
22 hours ago22 hr Just for reference, I finally got modbus to work on the sun-12k-sg02lp1-eu-am3Use 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.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.yamlThis 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.