wills106 / homeassistant-solax-modbus

SolaX Power Modbus custom_component for Home Assistant (Supports some Ginlong Solis, Growatt, Sofar Solar, TIGO TSI & Qcells Q.Volt Hyb)
281 stars 85 forks source link

[Bug]: Absurdly high entity values #899

Open pulss opened 1 month ago

pulss commented 1 month ago

Describe the bug

Good day,

for the last 1-2 weeks, the entities seem to be going crazy and provide absurdly high numbers, lastly today at 12:19, see the attached log.

It is decided by the energy panel, which I have to fix manually.

The installation has been running since the end of July last year, so far there hasn't been a single problem.

I think it started after the last HA core update.

What should I focus on and check please?

Thank you

Integration Version

2024.05.3

Homeassistant core version

2024.5.3

Inverter brand

Solax X3 G4

Plugin used

plugin_solax.py

Serial prefix

H34A15

Inverter firmware versions

DSP 2.07 ARM 2.03

Connection Method

Waveshare adapter

Dongle firmware

V1. 452 (Waveshare)

Detailed Error Log

Logger: homeassistant.components.utility_meter.sensor Zdroj: components/utility_meter/sensor.py:499 integrace: Měřič spotřeby (dokumentace, problémy) První výskyt: 11. května 2024 v 21:04:43 (75 výskyty) Naposledy logováno: 12:19:44

total-house_all_energy-hour received an invalid new state from sensor.solax_total_yield : unknown total-house_all_energy-day received an invalid new state from sensor.solax_total_yield : unknown total-house_all_energy-week received an invalid new state from sensor.solax_total_yield : unknown total-house_all_energy-month received an invalid new state from sensor.solax_total_yield : unknown total-house_all_energy-year received an invalid new state from sensor.solax_total_yield : unknown

Tato chyba pochází z vlastní integrace.

Logger: custom_components.solax_modbus Zdroj: custom_components/solax_modbus/init.py:615 integrace: SolaX Inverter Modbus (dokumentace, problémy) První výskyt: 12. května 2024 v 13:36:38 (14 výskyty) Naposledy logováno: 12:19:33

Something went wrong reading from modbus Traceback (most recent call last): File "/config/custom_components/solax_modbus/init.py", line 615, in async_read_modbus_data res = await self.async_read_modbus_registers_all(group) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/solax_modbus/init.py", line 794, in async_read_modbus_registers_all self.data[descr.key] = descr.value_function(0, descr, self.data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/solax_modbus/const.py", line 241, in value_function_grid_export if val>0: return val ^^^^^ TypeError: '>' not supported between instances of 'NoneType' and 'int'

Additional context

No response