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.

Sunsynk Inverter control battery charge/discharge from Home Assistant?

Featured Replies

Hi all,

I've been using @kellerza's excellent code to read data from my SunSynk inverters into Home Assistant via a USB Rs-485 dongle.

However, with the increase in sunlight here in the UK and the reduction in daily load,  I'm in a position I can use excess solar to charge my car.  I'm looking to implement this via an automation in Home Assistant,  but I'm seeking a way to stop the inverters draining the battery when the combined house and car charger load exceeds available excess PV.

I can't do this by writing to the battery BMS' as I have four banks of cells each with an independent BMS and only one of them communicates with the Inverter.  I could add an HA interface to all of them via ESP32 but it would be quicker/easier for me just to ask the inverters to stop pulling from the batteries.  

I can't see any way to do this in the default sensor list,  but digging through Kellerza's code I can see there seems to be a ModBus protocol sensor that might enable me to do it:

##########
# Battery
##########
SENSORS += (
    TempSensor(182, "Battery temperature", CELSIUS, 0.1),
    Sensor(183, "Battery voltage", VOLT, 0.01),
    Sensor(184, "Battery SOC", "%"),
    Sensor(190, "Battery power", WATT, -1),
    Sensor(191, "Battery current", AMPS, -0.01),
    # Charge and Discharge limit vary based on temperature and SoC
    Sensor(314, "Battery Charge Limit current", AMPS, -0.01),
    Sensor(315, "Battery Discharge Limit current", AMPS, -0.01),
)
I found it here:

src/sunsynk/definitions.py

Documentation says the is read/write,  can anyone advise me on how I can access/expose it via HA?

Thanks!!! 

  • 3 weeks later...

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.