Skip to content
View in the app

A better way to browse. Learn more.

Power Forum - Renewable Energy Discussion

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Home Assistant Sunsynk modbus project

Featured Replies

  • Author

@p_i Thanks dude. I couldn't see anything obvious in the box but hoped as that's another pain to get power to the converter. As it happens it's easy for my distant inverter as there is a network switch there and a couple of mains sockets so I can connecting in the ethernet stuff and power no probs. On my other two I don't have either that close.. still now that is is working on two of my inverters its a small price to pay.. 

  • Replies 62
  • Views 13k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • It seems there are issues with that module https://kellerza.github.io/sunsynk/guide/wiring  

  • I have played with this converter that is working and cheap from micro robotics  https://www.robotics.org.za/communication-wireless-Industrial/serial-to-ethernet-converters/USR-DR302 You can

  • https://github.com/slipx06/Sunsynk-Home-Assistant-Dash/blob/main/ESPHome-1P-Sunsynk-Deye.yaml This is the single phase inverter yaml I was using it with this       Here is exa

Posted Images

  • Author

my config.yaml in HA now looks like below. Why it works like this but not as a separate modbus.yaml I'm not quite sure.. 

# Loads default set of integrations. Do not remove.
default_config:
 
# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes
 
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
#modbus: !include modbus.yaml
 
modbus:
  - name: waveshare
    type: tcp
    host: 192.168.1.250
    port: 502
    delay: 0
    timeout: 5
    sensors:
      - name: gym2_pv1_power
        address: 186
        input_type: holding
        scan_interval: 5
        slave: 1
      - name: gym2_pv2_power
        address: 187
        input_type: holding
        scan_interval: 5
        slave: 1
      - name: gym2_inverter_power
        address: 175
        input_type: holding
        scan_interval: 5
        slave: 1
      - name: gym2_grid_power
        address: 169
        input_type: holding
        scan_interval: 5
        slave: 1
      - name: gym2_ct_power
        address: 172
        input_type: holding
        scan_interval: 5
        slave: 1
      - name: gym2_day_pv_power
        address: 108
        input_type: holding
        scan_interval: 5
        slave: 1
      - name: gym1_pv1_power
        address: 186
        input_type: holding
        scan_interval: 5
        slave: 2
      - name: gym1_pv2_power
        address: 187
        input_type: holding
        scan_interval: 5
        slave: 2
      - name: gym1_inverter_power
        address: 175
        input_type: holding
        scan_interval: 5
        slave: 2
      - name: gym1_grid_power
        address: 169
        input_type: holding
        scan_interval: 5
        slave: 2
      - name: gym1_ct_power
        address: 172
        input_type: holding
        scan_interval: 5
        slave: 2
      - name: gym1_day_pv_power
        address: 108
        input_type: holding
        scan_interval: 5
        slave: 2
  • Author
2 minutes ago, p_i said:

You do get devices like these, if you only have AC available there in a DB board or something:

https://za.rs-online.com/web/p/din-rail-power-supplies/1457871

yep, It getting the 240v there without busting in to the inverter circuit. But I'll probably open up the incoming isolator and take a feed off of that and stick a fused outlet on it to plop in a plug in PSU. I have seen those din mounted ones and I've seen some with fuses in I think. or else I'd have to put fuses in somewhere else. 

  • Author

Well I'm pretty chuffed to report that putting an rj45 splitter T (1 in 2 out) and setting one inverter to modbus 1 and the other the modbus 2 I can read both inverters with the same waveshare adapter.. Unfortunately I got home just slightly too late and not much happening on the solar front but I get something albeit mainly zeros so I think its working. 

  • 2 weeks later...
On 2024/02/06 at 7:34 PM, Perfo said:

 

On 2024/02/06 at 7:34 PM, Perfo said:

Well I'm pretty chuffed to report that putting an rj45 splitter T (1 in 2 out) and setting one inverter to modbus 1 and the other the modbus 2 I can read both inverters with the same waveshare adapter.. Unfortunately I got home just slightly too late and not much happening on the solar front but I get something albeit mainly zeros so I think its working. 

I would love to see an update and some photos of what you have done. Please share if you don't mind

  • Author

@shaun99  Hello Shaun99.   I'm at a road block at the moment on this project. If you read some of my other posts you'll see I'm having problems with my installation and SunSynk wont answer their support emails.  My PV system hasn't been working properly since Early December last year. My installer has finally managed to get a Sunsynk engineer to attend site and though the dates change I hope it will be this month.   Until it is all up and running as it should I'm reluctant to go for a full install. I've tested it and it works so it is only a proper install waiting to happen. As soon as I'm operational that's what I'll get on with. I'll do some pics and an update at that point. I may even do a YouTube video to help anyone else doing the same thing though I'd probably make a complete hash out of any kind of video. I have the face for radio and the voice for newspaper :) 

@Perfo I have made video's on installing most of the Home Assistant integrations for Sunsynk/DEYE inverters. 

The ESP32 is one of the best ways of doing it IMO. 

 

22 hours ago, shaun99 said:

I would love to see an update and some photos of what you have done. Please share if you don't mind

I used a 2 port Ethernet wall box to make a splitter when I had problems with my RS485/Modbus port 

image.png.d8c3aa9128892d7bf461159add7e1875.png

  • Author

@Sc00bs I've studied your videos Sc00bs and they are very good. It was my back up plan to use an esp32 and follow your instructions if I couldn't get my ModBus adapter to work.  I'm not really totally sure why I wanted to use the WaveShare adapter and not go straight for the Esp32 anyway. I liked the look of the solution plus I can connect multiple inverters to the same module just using dumb RJ45 T's they are a couple of £ (like one below). I like the idea that there is no remote intelligence. The WaveShare has a bit of inbuilt firmware but those and T's don't have any bespoke firmware they are off the shelf plug and play (nearly as you have to set some parameters on the WaveShare) . I know this moves the processing load on to the Home Assistant server but I rather it this end if possible.  But never say never, I may be back to rethink in the future. 

image.jpeg.a6711b436ea416bdcf6a557c20c760ab.jpeg

@Perfo Nice thing about one of these  connectors is that you can decide which cables from the  the RJ45 plug you plug into the inverter you want to send to each RJ connector. 

I have Pins 1&2 (486-ModBus) going to one connector and Pins 4&5 (Canbus) going to the other connector.  

image.thumb.png.599a1c25103851754c5c66505b46afb8.png

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.