wills106 / homeassistant-solax-modbus

SolaX Power Modbus custom_component for Home Assistant (Supports some AlphaESS, Growatt, Sofar, Solinteg, Solis, SRNE, Swatten)
317 stars 101 forks source link

[BUG] Suddenly cant read data from Solax #311

Closed zejdajan closed 1 year ago

zejdajan commented 1 year ago

Suddenly cant ready any values from Solax inverter, everything worked more than month nicely. I didnt change the version or settings. Tried also rollback to older plugin version. Inverted is working, solax cloud is receiving date, also I cant read data over LAN with CURL. Maybe Solax pushed some firmware update that broke it? When re-adding integration I am not getting any errors.

I started getting this error 12 hours ago.

Mandatory details

  1. Integration Version:2023.01.4
  2. HA Version:2023.1.7
  3. Inverter Brand:Solax X3 gen4
  4. Plugin Used:Solax Interver Modbus
  5. First 6 digits of Serial:SVA7TY
  6. Connection Method: TCP/IP with wifi dongle

Output of CURL realtime data: {"sn":"SVA7TXXXX","ver":"3.003.02","type":14,"Data":[2375,2380,2376,11,10,10,75,71,56,202,2558,2368,3,2,84,54,4998,4999,4998,2,0,0,0,0,0,0,0,0,0,0,0,0,0,1,61906,65535,0,0,0,23400,0,0,2329,65534,65490,1,31,3832,256,1576,7433,5889,100,0,15,0,0,0,0,0,0,0,0,0,0,0,0,0,3237,0,2,152,0,0,1005,0,1214,0,0,0,3400,0,0,1,0,0,130,0,31640,3,0,0,680,0,0,0,0,0,0,0,0,0,1,32,1,17,37,256,2628,1800,80,350,108,81,32,32,10,1115,256,9252,9252,0,0,0,0,3240,3229,43182,3,21302,14389,18757,13111,16688,12611,13106,21302,14389,18757,13111,16688,12611,13106,21302,14389,18758,12855,16696,12867,14642,0,0,0,0,0,0,0,0,0,0,0,0,0,0,515,3330,516,1025,0,23400,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"Information":[8.000,14,"H34A08I4214149",8,1.27,0.00,1.26,1.09,0.00,1]}

Assistant log:

2023-01-29 09:12:36.673 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration nibe which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-01-29 09:12:36.674 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration solax_modbus which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-01-29 09:12:36.675 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration xiaomi_cloud_map_extractor which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-01-29 09:12:36.676 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration cz_energy_spot_prices which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-01-29 09:12:36.676 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-01-29 09:12:36.677 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration tesla_custom which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-01-29 09:12:43.706 WARNING (MainThread) [custom_components.solax_modbus.plugin_solax] SolaX: reading serial number from address 0x0 failed; other address may succeed 2023-01-29 09:12:43.808 WARNING (MainThread) [custom_components.solax_modbus.plugin_solax] SolaX: reading serial number from address 0x300 failed; other address may succeed 2023-01-29 09:12:43.809 ERROR (MainThread) [custom_components.solax_modbus.plugin_solax] SolaX: cannot find serial number, even not for MIC 2023-01-29 09:12:43.809 ERROR (MainThread) [custom_components.solax_modbus.plugin_solax] unrecognized inverter type - serial number : unknown 2023-01-29 09:12:46.912 WARNING (MainThread) [homeassistant.config_entries] Config entry 'HP Color LaserJet MFP M277dw (A3F6C6)' for ipp integration not ready yet: Invalid response from API: Error occurred while communicating with IPP server.; Retrying in background 2023-01-29 09:12:48.236 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for chilli-box @ 10.10.30.151: Error connecting to ('10.10.30.151', 6053): [Errno 113] Connect call failed ('10.10.30.151', 6053) 2023-01-29 09:12:54.258 WARNING (MainThread) [homeassistant.helpers.entity] Update of camera.xiaomi_cloud_map_extractor is taking over 10 seconds 2023-01-29 09:13:09.264 WARNING (MainThread) [homeassistant.components.switch] Setup of switch platform nibe is taking over 10 seconds. 2023-01-29 09:13:09.266 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform nibe is taking over 10 seconds. 2023-01-29 09:13:09.284 WARNING (MainThread) [homeassistant.components.water_heater] Setup of water_heater platform nibe is taking over 10 seconds. 2023-01-29 09:13:09.284 WARNING (MainThread) [homeassistant.components.climate] Setup of climate platform nibe is taking over 10 seconds. 2023-01-29 09:13:32.189 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{% set t = states('sensor.solax_battery_power_charge').split()[0] | replace(",", "") | int %} {% if (t>0) %} {{states('sensor.solax_battery_power_charge')}} {% else %} 0 {% endif %}") Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 423, in async_render render_result = _render_with_context(self.template, compiled, kwargs) File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1950, in _render_with_context return template.render(kwargs) File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 1301, in render self.environment.handle_exception() File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 936, in handle_exception raise rewrite_traceback_stack(source=source) File "