Closed apuntigam closed 4 months ago
If you can't select HV, then you need to use the (edge/dev) version of the addon
I think Sunsynk 12kW 3-phase is not HV but LV
and there is no math sensor for LV atm
After a small tweak, I have the custom sensor working! So for now it's sorted. But please consider added this to a future update, it makes it much easier to view history graphs of PV production vs load, etc, when you have total PV. Trying to use these graphs when you have PV1_power and PV2_power as separate plots isn't great. Thanks!
FYI, for anyone who wants to set up the custom sensor, I saved this to a mysensors.py file in /share/hass-addon-sunsynk/
from sunsynk.rwsensors import NumberRWSensor, SelectRWSensor, TimeRWSensor
from sunsynk.sensors import (
MathSensor,
Sensor,
SensorDefinitions,
TempSensor,
)
SENSORS = SensorDefinitions()
SENSORS += MathSensor((672, 673), "PV Power Total", WATT, factors = (1, 1))```
what happens if you do?
MathSensor((672, 673, 674, 675), "PV power", WATT)
Are there any 3PH LV inverters with 4 MPPTs at all?
Are there any 3PH LV inverters with 4 MPPTs at all?
No idea unfortunately, I'm just an end-user not an installer. The user manual for my inverter says it only has 2 MPPTs though.
what happens if you do?
MathSensor((672, 673, 674, 675), "PV power", WATT)
It works, BUT it had to be as follows:
MathSensor((672, 673, 674, 675), "PV power", WATT, factors = (1, 1, 1, 1))
It would not detect the entity without the factors.
In Home Assistant you can just create a helper group sensor which sums the values ;-) Easy as that
Existing sensor definitions can be found here
Your Inverter
Details about your Inverter: Sunsynk 12kW 3-phase, using pymodbus and getting sensor reading from RS485
Describe the issue/bug and what you expect
I see that the pv_power sensor has been added to the 3phase_hv definitions here, but when I add pv_power to my Sunsynk configuration, it does not show up as an entity in Home Assistant.
In the configuration, I only have the option to select single phase or three phase, so I'm assuming the 3phase_hv sensor definitions should be pulled in by default? But then pv_power should be available, and it isn't. It doesn't appear in the log at all. And if I search for it as an entity in Home Assistant, it's not there.
I also tried adding a similar sensor to mysensors.py as explained here, but no luck with that either.
Note that both pv1_power and pv2_power read just fine on registers 672 and 673 respectively.
I would love to be able to get this working!
Logs (if applicable)
I included an extract from the log, happy to provide whatever else you might need.