solaredge-modbus-multi: Error after update to 2023.09.01
Describe the bug
I updated to HA 2023.09.01 and after the update solaredge modbus doesn’t work anymore.
see log below
Expected behavior
Work
Screenshots
No response
Diagnostic File
2023-09-09 07:30:40.515 DEBUG (MainThread) [custom_components.solaredge_modbus_multi.hub] solaredge_modbus_multi configuration: number_of_inverters=1, start_device_id=1, detect_meters=True, detect_batteries=True, detect_extras=True, keep_modbus_open=False, adv_storage_control=False, adv_site_limit_control=False, allow_battery_energy_reset=True, sleep_after_write=0, battery_rating_adjust=0, 2023-09-09 07:30:40.515 DEBUG (MainThread) [custom_components.solaredge_modbus_multi.hub] coordinator timeout is 21.6 2023-09-09 07:30:40.540 ERROR (MainThread) [custom_components.solaredge_modbus_multi] Unexpected error fetching SolarEdge Coordinator data: Big Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 293, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/solaredge_modbus_multi/__init__.py", line 194, in _async_update_data return await self._refresh_modbus_data_with_retry( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/solaredge_modbus_multi/__init__.py", line 232, in _refresh_modbus_data_with_retry raise ex File "/config/custom_components/solaredge_modbus_multi/__init__.py", line 229, in _refresh_modbus_data_with_retry return await self._hub.async_refresh_modbus_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/solaredge_modbus_multi/hub.py", line 384, in async_refresh_modbus_data await self._async_init_solaredge() File "/config/custom_components/solaredge_modbus_multi/hub.py", line 202, in _async_init_solaredge await new_inverter.init_device() File "/config/custom_components/solaredge_modbus_multi/hub.py", line 727, in init_device inverter_data.registers, byteorder=Endian.Big ^^^^^^^^^^ File "/usr/local/lib/python3.11/enum.py", line 784, in __getattr__ raise AttributeError(name) from None AttributeError: Big 2023-09-09 07:30:40.543 DEBUG (MainThread) [custom_components.solaredge_modbus_multi] Finished fetching SolarEdge Coordinator data in 0.028 seconds (success: False) 2023-09-09 07:30:40.543 WARNING (MainThread) [homeassistant.config_entries] Config entry 'SolarEdge' for solaredge_modbus_multi integration not ready yet: Big; Retrying in background 2023-09-09 07:30:45.884 DEBUG (MainThread) [custom_components.solaredge_modbus_multi.hub] solaredge_modbus_multi configuration: number_of_inverters=1, start_device_id=1, detect_meters=True, detect_batteries=True, detect_extras=True, keep_modbus_open=False, adv_storage_control=False, adv_site_limit_control=False, allow_battery_energy_reset=True, sleep_after_write=0, battery_rating_adjust=0, 2023-09-09 07:30:45.885 DEBUG (MainThread) [custom_components.solaredge_modbus_multi.hub] coordinator timeout is 21.6 2023-09-09 07:30:45.912 ERROR (MainThread) [custom_components.solaredge_modbus_multi] Unexpected error fetching SolarEdge Coordinator data: Big Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 293, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/solaredge_modbus_multi/__init__.py", line 194, in _async_update_data return await self._refresh_modbus_data_with_retry( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/solaredge_modbus_multi/__init__.py", line 232, in _refresh_modbus_data_with_retry raise ex File "/config/custom_components/solaredge_modbus_multi/__init__.py", line 229, in _refresh_modbus_data_with_retry return await self._hub.async_refresh_modbus_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/solaredge_modbus_multi/hub.py", line 384, in async_refresh_modbus_data await self._async_init_solaredge() File "/config/custom_components/solaredge_modbus_multi/hub.py", line 202, in _async_init_solaredge await new_inverter.init_device() File "/config/custom_components/solaredge_modbus_multi/hub.py", line 727, in init_device inverter_data.registers, byteorder=Endian.Big ^^^^^^^^^^ File "/usr/local/lib/python3.11/enum.py", line 784, in __getattr__ raise AttributeError(name) from None AttributeError: Big 2023-09-09 07:30:45.919 DEBUG (MainThread) [custom_components.solaredge_modbus_multi] Finished fetching SolarEdge Coordinator data in 0.035 seconds (success: False)
Debug logs
No response
Home Assistant Version
2023.09.01
solaredge-modbus-multi Version
Latest 2.4.4
Installation Type
HAOS
Read the Instructions
- I have read https://github.com/WillCodeForCats/solaredge-modbus-multi/wiki
- My configuration follows https://github.com/WillCodeForCats/solaredge-modbus-multi/wiki/Configuration
- This issue is not about a template error (template errors should not be reported as an issue, read https://github.com/WillCodeForCats/solaredge-modbus-multi/wiki/Template-Design-Notes)
Additional Context
No response
About this issue
- Original URL
- State: closed
- Created 10 months ago
- Reactions: 8
- Comments: 26 (2 by maintainers)
Release v2.4.5
simply use in CLI
ha core update --version=2023.9.0
Pymodbus changed constant inheritance in 3.5.1. At the time HA 2023.9.1 was in process of release but it hadn’t actually released by the time I went to sleep.
I’m updating it now and will release 2.4.5-pre.3 shortly.
Exactly like this ^ and stay relaxed. Such a downgrade easily takes an hour or maybe longer.
Same for me… After reverse to 2023.9.0 all is working back… probably related with pymodbus ugrade to 3.5.1 on 2023.9.1 update…
Thanks @WillCodeForCats, very quick turn around and it’s working, cheers!
I also tried to use the latest beta version
2.4.5-pre.2where PR #428 should solve it, as far as I see, but this hasn’t worked.