mkaiser / Sungrow-SHx-Inverter-Modbus-Home-Assistant

Sungrow SH Integration for Home Assistant for SH3K6, SH4K6, SH5K-20, SH5K-V13, SH3K6-30, SH4K6-30, SH5K-30, SH3.RS, SH3.6RS, SH4.0RS, SH5.0RS, SH6.0RS, SH5.0RT, SH6.0RT, SH8.0RT, SH10RT, SH5.0RT-20, SH6.0RT-20, SH8.0RT-20, SH10RT-20, SH5.0RT-V112, SH6.0RT-V112, SH8.0RT-V112, SH10RT-V112, SH5.0RT-V122, SH6.0RT-V122, SH8.0RT-V122, SH10RT-V122, SH4.6R
304 stars 79 forks source link

Deferred charging (workaround) #309

Open tofalck opened 2 weeks ago

tofalck commented 2 weeks ago

Problem: 1) Spot prices around here are typically high mornings and afternoons, so it would be beneficial to defer battery (and EV for that matter - different issue though) charging to cheaper hours where it's sometimes not even economically sane to export power due to close to 0 or even negative prices.

Solution: Seemingly there is no way to defer battery charging in its own right. However the Forced Charging + time windows actually does this if you set the SOC at a very low value.

I'm not sure if the Load 1 and 2 time slots map to this feature or how to set it up in the current implementation?

One caveat to this approach is if the battery SOC drops outside the cheap hours...

Gnarfoz commented 2 weeks ago

You can create an automation that sets the maximum battery charge power to 10 W (the minimum) during the time you want to avoid charging. The battery will not be charged if this is set to 10 W.

If you want to do this through the dashboard entities provided, you'll have to adjust the minimum value here to 10. That should really be the default, not sure why it is 100.

Bonus: if you do it this way and have more DC PV power than your inverter's AC limit (e.g.) 15 kWp with a SH10RT) and set the export power limit to something sane (i.e. not higher than the AC limit, for a SH10RT, that would be 10 kW), the inverter will divert any DC power above its AC limit into the battery. Meaning, you can harvest up to the full 15 kWp, even though the SH10RT can only process 10 kW of it into AC power.

Either way you'll have to pay attention to raise the limit early enough in the day to actually charge up the battery before the sun goes down. ;-)