nathanmarlor / foxess_modbus

FoxESS inverter integration. Connect directly to your FoxESS inverter (no cloud!) for real-time status and control.
MIT License
105 stars 14 forks source link

Can't install v1.10 #551

Closed AdamGilchrist317 closed 5 months ago

AdamGilchrist317 commented 5 months ago

v1.10beta8 was working fine, 1.10 doesn't seem to. I think error is: "Unable to determine capacity of inverter"

Hope this helps!

Debug log:

2024-02-24 11:54:36.278 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry FoxESS - Modbus for foxess_modbus Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 444, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/foxess_modbus/init.py", line 123, in async_setup_entry create_controller(client, inverter) File "/config/custom_components/foxess_modbus/init.py", line 79, in create_controller controller = ModbusController( ^^^^^^^^^^^^^^^^^ File "/config/custom_components/foxess_modbus/modbus_controller.py", line 106, in init self._inverter_capacity = connection_type_profile.inverter_model_profile.inverter_capacity( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/foxess_modbus/inverter_profiles.py", line 173, in inverter_capacity raise Exception(f"Unable to determine capacity of inverter '{inverter_model}'") Exception: Unable to determine capacity of inverter 'H1-5.0' 2024-02-24 11:54:48.358 WARNING (MainThread) [custom_components.foxess_em.battery.battery_controller] Battery state is unknown 2024-02-24 11:55:13.196 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry FoxESS - Modbus for foxess_modbus Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 444, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/foxess_modbus/init.py", line 123, in async_setup_entry create_controller(client, inverter) File "/config/custom_components/foxess_modbus/init.py", line 79, in create_controller controller = ModbusController( ^^^^^^^^^^^^^^^^^ File "/config/custom_components/foxess_modbus/modbus_controller.py", line 106, in init self._inverter_capacity = connection_type_profile.inverter_model_profile.inverter_capacity( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/foxess_modbus/inverter_profiles.py", line 173, in inverter_capacity raise Exception(f"Unable to determine capacity of inverter '{inverter_model}'") Exception: Unable to determine capacity of inverter 'H1-5.0' 2024-02-24 11:55:13.209 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry FoxESS - Modbus for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 444, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 141, in async_setup_entry return await component.async_setup_entry(entry) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 183, in async_setup_entry raise ValueError("Config entry has already been setup!") ValueError: Config entry has already been setup! 2024-02-24 11:55:13.214 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry FoxESS - Modbus for binary_sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 444, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/binary_sensor/init.py", line 238, in async_setup_entry return await component.async_setup_entry(entry) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 183, in async_setup_entry raise ValueError("Config entry has already been setup!") ValueError: Config entry has already been setup! 2024-02-24 11:55:13.219 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry FoxESS - Modbus for select Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 444, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/select/init.py", line 109, in async_setup_entry return await component.async_setup_entry(entry) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 183, in async_setup_entry raise ValueError("Config entry has already been setup!") ValueError: Config entry has already been setup! 2024-02-24 11:55:13.226 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry FoxESS - Modbus for number Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 444, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/number/init.py", line 119, in async_setup_entry return await component.async_setup_entry(entry) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 183, in async_setup_entry raise ValueError("Config entry has already been setup!") ValueError: Config entry has already been setup!

canton7 commented 5 months ago

Thanks! Fix incoming...

canton7 commented 5 months ago

Right, should be fixed in 1.10.1.

AdamGilchrist317 commented 5 months ago

Many thanks!