binsentsu / home-assistant-solaredge-modbus

Home assistant Component for reading data locally from Solaredge inverter through modbus TCP
293 stars 70 forks source link

solaredge_modbus not working anymore: ValueError: Value 0 failed validation (>0) #254

Closed Spacerat76 closed 2 months ago

Spacerat76 commented 2 months ago

Since yesterday the integration does not work anymore: Logger: custom_components.solaredge_modbus Quelle: custom_components/solaredge_modbus/init.py:244 Integration: SolarEdge Modbus (Dokumentation) Erstmals aufgetreten: 07:03:06 (2078 Vorkommnisse) Zuletzt protokolliert: 09:56:22 Error reading modbus data

Traceback (most recent call last): File "/config/custom_components/solaredge_modbus/init.py", line 244, in _refresh_modbus_data update_result = self.read_modbus_data() ^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/solaredge_modbus/init.py", line 320, in read_modbus_data and self.read_modbus_data_meter1() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/solaredge_modbus/init.py", line 331, in read_modbus_data_meter1 return self.read_modbus_datameter("m1", 40190) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/solaredge_modbus/init.py", line 480, in read_modbus_data_meter exported = validate(self.calculate_value(exported, energywsf), ">", 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/solaredge_modbus/init.py", line 160, in validate raise ValueError(f"Value {value} failed validation ({comparison}{against})") ValueError: Value 0 failed validation (>0)

I am using HA 2024.8.3 / 2024.9.0. Inverter is connected via Wifi and the SolarEdge App is still showing all values. So the network connection is working.

Spacerat76 commented 2 months ago

After two days it started working again. I guess SolarEdge did something with the inverter. I change nothing in HA.