Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: X3 Ultra - Inverter power always 0 #1233

Closed
styriaman opened this issue Jan 25, 2025 · 2 comments
Closed

[Bug]: X3 Ultra - Inverter power always 0 #1233

styriaman opened this issue Jan 25, 2025 · 2 comments
Labels
bug Something isn't working solax

Comments

@styriaman
Copy link

Describe the bug

HA displays always 0 as inverter power although the sum of inverter power1 to inverter power3 is not equal to 0
I haven't tried it yet, but it will probably also have negative effects on Remote Control, where ‘houseload_nett’ is also calculated from it

Perhaps it can be calculated in the 1st step from the sum of inverter power 1 to 3

Image

Integration Version

2024.12.2

Homeassistant core version

2024.12.5

Inverter brand

Solax X3 Ultra

Plugin used

plugin_solax.py

Serial prefix

H3BC30

Inverter firmware versions

ARM 018.02-000.04 DSP 017.05

Connection Method

SolaX Pocket Wifi 3.0

Dongle firmware

not relevant

Detailed Error Log

No response

Additional context

No response

@styriaman styriaman added bug Something isn't working solax labels Jan 25, 2025
@styriaman
Copy link
Author

Possible working changes in plugin_solay.py:

Add

def value_function_inverter_power_g5(initval, descr, datadict):
return (
datadict.get("inverter_power_l1", 0)
+ datadict.get("inverter_power_l2", 0)
+ datadict.get("inverter_power_l3", 0)
)

and

SolaXModbusSensorEntityDescription(
name="Inverter Power",
key="inverter_power",
value_function=value_function_inverter_power_g5,
native_unit_of_measurement=UnitOfPower.WATT,
device_class=SensorDeviceClass.POWER,
state_class=SensorStateClass.MEASUREMENT,
allowedtypes=AC | HYBRID | GEN5,
),

and remove | GEN5 from the register based "Inverter Power" EntityDescription

Enjoy

@wills106
Copy link
Owner

Just released 2025.01.9 with the suggested change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working solax
Projects
None yet
Development

No branches or pull requests

2 participants