kellerza / sunsynk

Deye/Sunsynk Inverter Python library and Home Assistant OS Addon
https://kellerza.github.io/sunsynk/
MIT License
206 stars 88 forks source link

Max Power output Sunsynk 5kw #181

Closed e1ace closed 1 year ago

e1ace commented 1 year ago

Issue related to

Sunsynk / mbusd Home Assistant Add-On

Describe the issue/bug

Prog 1 through 6 is limited to between 0 and 5000w.

Expected behavior The data sheet for the 5kw Sunsynk says a max of 5500w output. If I adjust the settings on the inverter itself I can set between 0 and 5500w, but on the Add-On it is limited.

Your environment

kellerza commented 1 year ago

What do you see in Settings->Devices? image

The max is read from the inverter (RATED_POWER). The only way to force it would be a custom sensor - see the docs.

You need to redefine these sensors in mysensors.py, set RATED_POWER to 5500

    NumberRWSensor(256, "Prog1 power", WATT, max=5500),
    NumberRWSensor(257, "Prog2 power", WATT, max=RATED_POWER),
    NumberRWSensor(258, "Prog3 power", WATT, max=RATED_POWER),
    NumberRWSensor(259, "Prog4 power", WATT, max=RATED_POWER),
    NumberRWSensor(260, "Prog5 power", WATT, max=RATED_POWER),
    NumberRWSensor(261, "Prog6 power", WATT, max=RATED_POWER),
e1ace commented 1 year ago

Screenshot_2023-09-09-10-19-48-48_c3a231c25ed346e59462e84656a70e50.jpg

Thanks. The redefined sensors works.