Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: 1.5.3 constantly no connection / data from Inverters #925

Closed
5 tasks done
ogghi opened this issue Feb 3, 2025 · 6 comments
Closed
5 tasks done

[Bug]: 1.5.3 constantly no connection / data from Inverters #925

ogghi opened this issue Feb 3, 2025 · 6 comments
Labels
bug Something isn't working

Comments

@ogghi
Copy link

ogghi commented Feb 3, 2025

Describe the issue

HI there, since the latest 1.5.3 I often get disconnects.
Anything that changed here in relation to this?

Describe your Huawei Solar Setup

Inverter Type: SUN2000-10KTL-M1 + SUN2000-12KTL-M2
Inverter Firmware version: V100R001C00SPC165 + V100R001C00SPC165
sDongle present: Yes
sDongle Type: sDongleA-05 ( Ethernet)
sDongle Connectivitiy: Ethernet
sDongle Firmware: V200R022C10SPC118
Power meter present: three phase
Optimizers Present: Yes
Battery: LUNA2000-5KW-C0 10kWh
Battery Firmware version: V100R002C00SPC624 (both)
Huawei Solar integration version: 1.5.3

How do you connect to the inverter?

Via the SDongle, wired connection

Upload your Diagnostics File

config_entry-huawei_solar-d6c2f6c8f4f6ac800852eb7bec68550c.json
config_entry-huawei_solar-d648a372145c4d8fb0ee41c971ea9909.json
Drag & Drop your Diagnostics File here.

Upload your relevant debug logs

2025-01-31 17:39:46.874 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.solax_inverter (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total_increasing', 'total'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2025-01-31 17:39:46.874 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.solarpanels (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total_increasing', 'total'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2025-01-31 17:39:47.638 ERROR (MainThread) [huawei_solar.huawei_solar] Modbus client is not connected to the inverter
NoneType: None
2025-01-31 17:39:47.638 INFO (MainThread) [backoff] Backing off _do_read(...) for 1.0s (huawei_solar.exceptions.ConnectionInterruptedException: Modbus client is not connected to the inverter)
2025-01-31 17:39:47.782 ERROR (MainThread) [homeassistant.components.mqtt.device_trigger] Config for device trigger shellydimmer2-C45BBE473648-input-0 button_release conflicts with existing device trigger, cannot set up trigger, got: {'qos': 0, 'type': 'button_short_release', 'device': {'connections': [['mac', 'c4:5b:be:47:36:48']], 'sw_version': '20221027-104444/v1.12.1-ga9117d3', 'hw_version': 'gen1 (SHDM-2)', 'model': 'Shelly Dimmer 2', 'name': 'Shelly Dimmer 2 C45BBE473648', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://192.168.1.16/', 'identifiers': []}, 'topic': 'shellies/shellydimmer2-C45BBE473648/input/0', 'automation_type': 'trigger', 'subtype': 'button_1', 'payload': '0', 'encoding': 'utf-8', 'value_template': None}
2025-01-31 17:39:47.784 ERROR (MainThread) [homeassistant.components.mqtt.device_trigger] Config for device trigger shellydimmer2-C45BBE473648-input-0 button_long_press conflicts with existing device trigger, cannot set up trigger, got: {'qos': 0, 'type': 'button_long_press', 'value_template': '{{value_json.event}}', 'device': {'connections': [['mac', 'c4:5b:be:47:36:48']], 'sw_version': '20221027-104444/v1.12.1-ga9117d3', 'hw_version': 'gen1 (SHDM-2)', 'model': 'Shelly Dimmer 2', 'name': 'Shelly Dimmer 2 C45BBE473648', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://192.168.1.16/', 'identifiers': []}, 'topic': 'shellies/shellydimmer2-C45BBE473648/input_event/0', 'automation_type': 'trigger', 'payload': 'L', 'subtype': 'button_1', 'encoding': 'utf-8'}
2025-01-31 17:39:47.785 ERROR (MainThread) [homeassistant.components.mqtt.device_trigger] Config for device trigger shellydimmer2-C45BBE473648-input-0 button_short_press conflicts with existing device trigger, cannot set up trigger, got: {'qos': 0, 'type': 'button_short_press', 'value_template': '{{value_json.event}}', 'device': {'connections': [['mac', 'c4:5b:be:47:36:48']], 'sw_version': '20221027-104444/v1.12.1-ga9117d3', 'hw_version': 'gen1 (SHDM-2)', 'model': 'Shelly Dimmer 2', 'name': 'Shelly Dimmer 2 C45BBE473648', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://192.168.1.16/', 'identifiers': []}, 'topic': 'shellies/shellydimmer2-C45BBE473648/input_event/0', 'automation_type': 'trigger', 'payload': 'S', 'subtype': 'button_1', 'encoding': 'utf-8'}
2025-01-31 17:39:47.785 ERROR (MainThread) [homeassistant.components.mqtt.device_trigger] Config for device trigger shellydimmer2-C45BBE473648-input-1 button_release conflicts with existing device trigger, cannot set up trigger, got: {'qos': 0, 'type': 'button_short_release', 'device': {'connections': [['mac', 'c4:5b:be:47:36:48']], 'sw_version': '20221027-104444/v1.12.1-ga9117d3', 'hw_version': 'gen1 (SHDM-2)', 'model': 'Shelly Dimmer 2', 'name': 'Shelly Dimmer 2 C45BBE473648', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://192.168.1.16/', 'identifiers': []}, 'topic': 'shellies/shellydimmer2-C45BBE473648/input/1', 'automation_type': 'trigger', 'subtype': 'button_2', 'payload': '0', 'encoding': 'utf-8', 'value_template': None}
2025-01-31 17:39:47.786 ERROR (MainThread) [homeassistant.components.mqtt.device_trigger] Config for device trigger shellydimmer2-C45BBE473648-input-1 button_long_press conflicts with existing device trigger, cannot set up trigger, got: {'qos': 0, 'type': 'button_long_press', 'value_template': '{{value_json.event}}', 'device': {'connections': [['mac', 'c4:5b:be:47:36:48']], 'sw_version': '20221027-104444/v1.12.1-ga9117d3', 'hw_version': 'gen1 (SHDM-2)', 'model': 'Shelly Dimmer 2', 'name': 'Shelly Dimmer 2 C45BBE473648', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://192.168.1.16/', 'identifiers': []}, 'topic': 'shellies/shellydimmer2-C45BBE473648/input_event/1', 'automation_type': 'trigger', 'payload': 'L', 'subtype': 'button_2', 'encoding': 'utf-8'}
2025-01-31 17:39:47.788 ERROR (MainThread) [homeassistant.components.mqtt.device_trigger] Config for device trigger shellydimmer2-C45BBE473648-input-1 button_short_press conflicts with existing device trigger, cannot set up trigger, got: {'qos': 0, 'type': 'button_short_press', 'value_template': '{{value_json.event}}', 'device': {'connections': [['mac', 'c4:5b:be:47:36:48']], 'sw_version': '20221027-104444/v1.12.1-ga9117d3', 'hw_version': 'gen1 (SHDM-2)', 'model': 'Shelly Dimmer 2', 'name': 'Shelly Dimmer 2 C45BBE473648', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://192.168.1.16/', 'identifiers': []}, 'topic': 'shellies/shellydimmer2-C45BBE473648/input_event/1', 'automation_type': 'trigger', 'payload': 'S', 'subtype': 'button_2', 'encoding': 'utf-8'}
2025-01-31 17:39:48.639 ERROR (MainThread) [huawei_solar.huawei_solar] Modbus client is not connected to the inverter
NoneType: None
2025-01-31 17:39:48.639 INFO (MainThread) [backoff] Backing off _do_read(...) for 2.0s (huawei_solar.exceptions.ConnectionInterruptedException: Modbus client is not connected to the inverter)
2025-01-31 17:39:49.445 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for kitchen-klima @ 192.168.1.89: Error connecting to [AddrInfo(family=<AddressFamily.AF_INET: 2>, type=<SocketKind.SOCK_STREAM: 1>, proto=6, sockaddr=IPv4Sockaddr(address='192.168.1.89', port=6053))]: [Errno 113] Connect call failed ('192.168.1.89', 6053) (SocketAPIError)
2025-01-31 17:39:50.642 ERROR (MainThread) [huawei_solar.huawei_solar] Modbus client is not connected to the inverter
NoneType: None
2025-01-31 17:39:50.642 INFO (MainThread) [backoff] Backing off _do_read(...) for 4.0s (huawei_solar.exceptions.ConnectionInterruptedException: Modbus client is not connected to the inverter)
2025-01-31 17:39:55.117 WARNING (MainThread) [homeassistant.components.camera] Setup of camera platform amcrest is taking over 10 seconds.
2025-01-31 17:40:00.126 ERROR (MainThread) [pymodbus.logging] Cancel send, because not connected!
2025-01-31 17:40:10.128 ERROR (MainThread) [pymodbus.logging] Cancel send, because not connected!
2025-01-31 17:40:20.129 ERROR (MainThread) [pymodbus.logging] Cancel send, because not connected!
2025-01-31 17:40:30.131 ERROR (MainThread) [pymodbus.logging] No response received after 3 retries, continue with next request
2025-01-31 17:40:30.131 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry SUN2000-10KTL-M1\00\00\00\00SUN2000-12 for huawei_solar
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/huawei_solar/__init__.py", line 96, in async_setup_entry
    primary_bridge = await create_tcp_bridge(
                     ^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/huawei_solar/bridge.py", line 658, in create_tcp_bridge
    return await _create(await AsyncHuaweiSolar.create(host, port, slave_id), slave_id)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/huawei_solar/bridge.py", line 688, in _create
    return await candidate_bridge_class.create(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<4 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/huawei_solar/bridge.py", line 136, in create
    await bridge._populate_additional_fields()
  File "/usr/local/lib/python3.13/site-packages/huawei_solar/bridge.py", line 485, in _populate_additional_fields
    self._dst = (await self.client.get(rn.DAYLIGHT_SAVING_TIME, self.slave_id)).value
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/huawei_solar/huawei_solar.py", line 252, in get
    return (await self.get_multiple([name], slave))[0]
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/huawei_solar/huawei_solar.py", line 292, in get_multiple
    response = await self._read_registers(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/huawei_solar/huawei_solar.py", line 429, in _read_registers
    return await _do_read()
           ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/backoff/_async.py", line 151, in retry
    ret = await target(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/backoff/_async.py", line 151, in retry
    ret = await target(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/huawei_solar/huawei_solar.py", line 377, in _do_read
    response = await self._client.read_holding_registers(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/pymodbus/transaction/transaction.py", line 155, in execute
    raise ModbusIOException(txt)
pymodbus.exceptions.ModbusIOException: Modbus Error: [Input/Output] No response received after 3 retries, continue with next request
2025-01-31 17:40:35.631 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.phase1 (<class 'custom_components.nodered.sensor.NodeRedSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total_increasing', 'total'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/zachowj/hass-node-red/issues
2025-01-31 17:40:35.631 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.phase1 (<class 'custom_components.nodered.sensor.NodeRedSensor'>) is using native unit of measurement 'W' which is not a valid unit for the device class ('energy') it is using; expected one of ['MWh', 'kWh', 'Wh', 'cal', 'kJ', 'Mcal', 'kcal', 'GWh', 'MJ', 'J', 'mWh', 'Gcal', 'GJ', 'TWh']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/zachowj/hass-node-red/issues
2025-01-31 17:40:35.632 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.phase2 (<class 'custom_components.nodered.sensor.NodeRedSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total_increasing', 'total'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/zachowj/hass-node-red/issues
2025-01-31 17:40:35.632 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.phase2 (<class 'custom_components.nodered.sensor.NodeRedSensor'>) is using native unit of measurement 'W' which is not a valid unit for the device class ('energy') it is using; expected one of ['MWh', 'kWh', 'Wh', 'cal', 'kJ', 'Mcal', 'kcal', 'GWh', 'MJ', 'J', 'mWh', 'Gcal', 'GJ', 'TWh']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/zachowj/hass-node-red/issues
2025-01-31 17:40:35.633 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.phase3 (<class 'custom_components.nodered.sensor.NodeRedSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total_increasing', 'total'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/zachowj/hass-node-red/issues
2025-01-31 17:40:35.633 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.phase3 (<class 'custom_components.nodered.sensor.NodeRedSensor'>) is using native unit of measurement 'W' which is not a valid unit for the device class ('energy') it is using; expected one of ['MWh', 'kWh', 'Wh', 'cal', 'kJ', 'Mcal', 'kcal', 'GWh', 'MJ', 'J', 'mWh', 'Gcal', 'GJ', 'TWh']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/zachowj/hass-node-red/issues
2025-01-31 17:40:35.633 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.vrms (<class 'custom_components.nodered.sensor.NodeRedSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total_increasing', 'total'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/zachowj/hass-node-red/issues
2025-01-31 17:40:35.634 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.vrms (<class 'custom_components.nodered.sensor.NodeRedSensor'>) is using native unit of measurement 'V' which is not a valid unit for the device class ('energy') it is using; expected one of ['MWh', 'kWh', 'Wh', 'cal', 'kJ', 'Mcal', 'kcal', 'GWh', 'MJ', 'J', 'mWh', 'Gcal', 'GJ', 'TWh']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/zachowj/hass-node-red/issues
2025-01-31 17:40:35.934 WARNING (Recorder) [homeassistant.components.sensor.recorder] Entity sensor.emon_gesamt_verbrauch from integration nodered has state class total_increasing, but its state is negative. Triggered by state -3.33757013419104 with last_updated set to 2025-01-31T16:34:59.999999+00:00. Please create a bug report at https://github.com/zachowj/hass-node-red/issues
2025-01-31 17:43:45.101 ERROR (MainThread) [homeassistant.components.amcrest] Amcrest Camera camera offline: Login error: 
2025-01-31 17:43:45.102 ERROR (MainThread) [homeassistant.components.amcrest.camera] Could not get Amcrest Camera camera attributes due to error: LoginError
2025-01-31 17:43:45.333 ERROR (MainThread) [homeassistant.components.amcrest] Amcrest Camera camera back online
2025-01-31 17:44:25.773 WARNING (MainThread) [amcrest.http] <Front Door:Z058A456A2992> Trying again due to error: HTTPStatusError("Client error '400 Bad Request' for url 'http://192.168.1.113/cgi-bin/snapshot.cgi'\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400")
2025-01-31 17:44:26.260 ERROR (MainThread) [homeassistant.components.amcrest.camera] Could not get image from Amcrest Camera camera due to error: CommError
2025-01-31 17:50:17.798 WARNING (MainThread) [amcrest.http] <Front Door:Z058A456A2992> Trying again due to error: HTTPStatusError("Client error '400 Bad Request' for url 'http://192.168.1.113/cgi-bin/snapshot.cgi'\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400")
2025-01-31 17:50:18.486 ERROR (MainThread) [homeassistant.components.amcrest.camera] Could not get image from Amcrest Camera camera due to error: CommError
2025-01-31 17:54:11.140 WARNING (MainThread) [amcrest.http] <Front Door:Z058A456A2992> Trying again due to error: HTTPStatusError("Client error '400 Bad Request' for url 'http://192.168.1.113/cgi-bin/snapshot.cgi'\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400")
2025-01-31 17:54:11.507 ERROR (MainThread) [homeassistant.components.amcrest.camera] Could not get image from Amcrest Camera camera due to error: CommError
2025-01-31 17:54:15.869 WARNING (MainThread) [amcrest.http] <Front Door:Z058A456A2992> Trying again due to error: HTTPStatusError("Client error '400 Bad Request' for url 'http://192.168.1.113/cgi-bin/snapshot.cgi'\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400")
2025-01-31 17:54:16.272 ERROR (MainThread) [homeassistant.components.amcrest.camera] Could not get image from Amcrest Camera camera due to error: CommError
2025-01-31 17:54:21.877 WARNING (MainThread) [amcrest.http] <Front Door:Z058A456A2992> Trying again due to error: HTTPStatusError("Client error '400 Bad Request' for url 'http://192.168.1.113/cgi-bin/snapshot.cgi'\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400")
2025-01-31 17:54:22.249 ERROR (MainThread) [homeassistant.components.amcrest.camera] Could not get image from Amcrest Camera camera due to error: CommError
2025-01-31 17:54:26.673 WARNING (MainThread) [amcrest.http] <Front Door:Z058A456A2992> Trying again due to error: HTTPStatusError("Client error '400 Bad Request' for url 'http://192.168.1.113/cgi-bin/snapshot.cgi'\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400")
2025-01-31 17:54:27.084 ERROR (MainThread) [homeassistant.components.amcrest.camera] Could not get image from Amcrest Camera camera due to error: CommError
2025-01-31 17:54:55.377 WARNING (MainThread) [amcrest.http] <Front Door:Z058A456A2992> Trying again due to error: HTTPStatusError("Client error '400 Bad Request' for url 'http://192.168.1.113/cgi-bin/snapshot.cgi'\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400")
2025-01-31 17:54:55.719 ERROR (MainThread) [homeassistant.components.amcrest.camera] Could not get image from Amcrest Camera camera due to error: CommError
2025-01-31 17:55:00.034 WARNING (MainThread) [amcrest.http] <Front Door:Z058A456A2992> Trying again due to error: HTTPStatusError("Client error '400 Bad Request' for url 'http://192.168.1.113/cgi-bin/snapshot.cgi'\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400")
2025-01-31 17:55:00.465 ERROR (MainThread) [homeassistant.components.amcrest.camera] Could not get image from Amcrest Camera camera due to error: CommError
2025-01-31 17:55:35.396 WARNING (MainThread) [amcrest.http] <Front Door:Z058A456A2992> Trying again due to error: HTTPStatusError("Client error '400 Bad Request' for url 'http://192.168.1.113/cgi-bin/snapshot.cgi'\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400")
2025-01-31 17:55:35.701 ERROR (MainThread) [homeassistant.components.amcrest.camera] Could not get image from Amcrest Camera camera due to error: CommError
2025-01-31 17:55:39.333 WARNING (MainThread) [amcrest.http] <Front Door:Z058A456A2992> Trying again due to error: HTTPStatusError("Client error '400 Bad Request' for url 'http://192.168.1.113/cgi-bin/snapshot.cgi'\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400")
2025-01-31 17:55:39.638 ERROR (MainThread) [homeassistant.components.amcrest.camera] Could not get image from Amcrest Camera camera due to error: CommError
2025-01-31 17:56:36.382 ERROR (MainThread) [huawei_solar.huawei_solar] Modbus client is not connected to the inverter
NoneType: None
2025-01-31 17:56:36.382 INFO (MainThread) [backoff] Backing off _do_read(...) for 1.0s (huawei_solar.exceptions.ConnectionInterruptedException: Modbus client is not connected to the inverter)
2025-01-31 17:56:37.383 ERROR (MainThread) [huawei_solar.huawei_solar] Modbus client is not connected to the inverter
NoneType: None
2025-01-31 17:56:37.384 INFO (MainThread) [backoff] Backing off _do_read(...) for 2.0s (huawei_solar.exceptions.ConnectionInterruptedException: Modbus client is not connected to the inverter)
2025-01-31 17:56:39.385 ERROR (MainThread) [huawei_solar.huawei_solar] Modbus client is not connected to the inverter
NoneType: None
2025-01-31 17:56:39.385 INFO (MainThread) [backoff] Backing off _do_read(...) for 4.0s (huawei_solar.exceptions.ConnectionInterruptedException: Modbus client is not connected to the inverter)
2025-01-31 17:57:14.454 ERROR (MainThread) [homeassistant.components.amcrest] Amcrest Camera camera offline: Login error: 
2025-01-31 17:57:14.455 ERROR (MainThread) [homeassistant.components.amcrest.camera] Could not get Amcrest Camera camera attributes due to error: LoginError
2025-01-31 17:57:14.559 ERROR (MainThread) [homeassistant.components.amcrest] Amcrest Camera camera back online
2025-01-31 18:03:14.990 ERROR (MainThread) [homeassistant.components.amcrest] Amcrest Camera camera offline: Login error: 
2025-01-31 18:03:14.991 ERROR (MainThread) [homeassistant.components.amcrest.camera] Could not get Amcrest Camera camera attributes due to error: LoginError
2025-01-31 18:03:15.041 ERROR (MainThread) [homeassistant.components.amcrest] Amcrest Camera camera back online
2025-01-31 18:04:14.455 ERROR (MainThread) [homeassistant.components.amcrest] Amcrest Camera camera offline: Login error: 
2025-01-31 18:04:14.456 ERROR (MainThread) [homeassistant.components.amcrest.camera] Could not get Amcrest Camera camera attributes due to error: LoginError
2025-01-31 18:04:14.535 ERROR (MainThread) [homeassistant.components.amcrest] Amcrest Camera camera back online
2025-01-31 18:06:45.267 ERROR (MainThread) [homeassistant.components.amcrest] Amcrest Camera camera offline: Login error: 
2025-01-31 18:06:45.269 ERROR (MainThread) [homeassistant.components.amcrest.camera] Could not get Amcrest Camera camera attributes due to error: LoginError
2025-01-31 18:06:45.395 ERROR (MainThread) [homeassistant.components.amcrest] Amcrest Camera camera back online
2025-01-31 18:07:45.608 ERROR (MainThread) [homeassistant.components.amcrest] Amcrest Camera camera offline: Login error: 
2025-01-31 18:07:45.610 ERROR (MainThread) [homeassistant.components.amcrest.camera] Could not get Amcrest Camera camera attributes due to error: LoginError
2025-01-31 18:07:45.758 ERROR (MainThread) [homeassistant.components.amcrest] Amcrest Camera camera back online
2025-01-31 18:09:14.757 ERROR (MainThread) [homeassistant.components.amcrest] Amcrest Camera camera offline: Login error: 
2025-01-31 18:09:14.758 ERROR (MainThread) [homeassistant.components.amcrest.camera] Could not get Amcrest Camera camera attributes due to error: LoginError
2025-01-31 18:09:14.870 ERROR (MainThread) [homeassistant.components.amcrest] Amcrest Camera camera back online
2025-01-31 18:09:52.079 WARNING (MainThread) [amcrest.http] <Front Door:Z058A456A2992> Trying again due to error: HTTPStatusError("Client error '400 Bad Request' for url 'http://192.168.1.113/cgi-bin/snapshot.cgi'\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400")
2025-01-31 18:09:52.571 ERROR (MainThread) [homeassistant.components.amcrest.camera] Could not get image from Amcrest Camera camera due to error: CommError
2025-01-31 18:11:57.657 WARNING (MainThread) [amcrest.http] <Front Door:Z058A456A2992> Trying again due to error: HTTPStatusError("Client error '400 Bad Request' for url 'http://192.168.1.113/cgi-bin/snapshot.cgi'\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400")
2025-01-31 18:11:57.994 ERROR (MainThread) [homeassistant.components.amcrest.camera] Could not get image from Amcrest Camera camera due to error: CommError
2025-01-31 18:12:02.442 WARNING (MainThread) [amcrest.http] <Front Door:Z058A456A2992> Trying again due to error: HTTPStatusError("Client error '400 Bad Request' for url 'http://192.168.1.113/cgi-bin/snapshot.cgi'\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400")
2025-01-31 18:12:02.867 ERROR (MainThread) [homeassistant.components.amcrest.camera] Could not get image from Amcrest Camera camera due to error: CommError
2025-01-31 18:12:41.761 WARNING (MainThread) [amcrest.http] <Front Door:Z058A456A2992> Trying again due to error: HTTPStatusError("Client error '400 Bad Request' for url 'http://192.168.1.113/cgi-bin/snapshot.cgi'\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400")
2025-01-31 18:12:42.137 ERROR (MainThread) [homeassistant.components.amcrest.camera] Could not get image from Amcrest Camera camera due to error: CommError
2025-01-31 18:12:46.733 WARNING (MainThread) [amcrest.http] <Front Door:Z058A456A2992> Trying again due to error: HTTPStatusError("Client error '400 Bad Request' for url 'http://192.168.1.113/cgi-bin/snapshot.cgi'\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400")
2025-01-31 18:12:47.173 ERROR (MainThread) [homeassistant.components.amcrest.camera] Could not get image from Amcrest Camera camera due to error: CommError
2025-01-31 18:13:28.969 WARNING (MainThread) [amcrest.http] <Front Door:Z058A456A2992> Trying again due to error: HTTPStatusError("Client error '400 Bad Request' for url 'http://192.168.1.113/cgi-bin/snapshot.cgi'\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400")
2025-01-31 18:13:32.157 ERROR (MainThread) [homeassistant.components.amcrest.camera] Could not get image from Amcrest Camera camera due to error: CommError
2025-01-31 18:13:42.383 ERROR (MainThread) [huawei_solar.huawei_solar] Modbus client is not connected to the inverter
NoneType: None
2025-01-31 18:13:42.383 INFO (MainThread) [backoff] Backing off _do_read(...) for 1.0s (huawei_solar.exceptions.ConnectionInterruptedException: Modbus client is not connected to the inverter)
2025-01-31 18:13:43.384 ERROR (MainThread) [huawei_solar.huawei_solar] Modbus client is not connected to the inverter
NoneType: None
2025-01-31 18:13:43.385 INFO (MainThread) [backoff] Backing off _do_read(...) for 2.0s (huawei_solar.exceptions.ConnectionInterruptedException: Modbus client is not connected to the inverter)
2025-01-31 18:13:45.387 ERROR (MainThread) [huawei_solar.huawei_solar] Modbus client is not connected to the inverter
NoneType: None
2025-01-31 18:13:45.387 INFO (MainThread) [backoff] Backing off _do_read(...) for 4.0s (huawei_solar.exceptions.ConnectionInterruptedException: Modbus client is not connected to the inverter)
2025-01-31 18:14:38.745 WARNING (MainThread) [amcrest.http] <Front Door:Z058A456A2992> Trying again due to error: HTTPStatusError("Client error '400 Bad Request' for url 'http://192.168.1.113/cgi-bin/snapshot.cgi'\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400")
2025-01-31 18:14:39.199 ERROR (MainThread) [homeassistant.components.amcrest.camera] Could not get image from Amcrest Camera camera due to error: CommError
2025-01-31 18:14:45.239 WARNING (MainThread) [amcrest.http] <Front Door:Z058A456A2992> Trying again due to error: HTTPStatusError("Client error '400 Bad Request' for url 'http://192.168.1.113/cgi-bin/snapshot.cgi'\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400")
2025-01-31 18:14:47.896 ERROR (MainThread) [homeassistant.components.amcrest.camera] Could not get image from Amcrest Camera camera due to error: CommError
2025-01-31 18:14:52.382 ERROR (MainThread) [huawei_solar.huawei_solar] Modbus client is not connected to the inverter
NoneType: None
2025-01-31 18:14:52.383 INFO (MainThread) [backoff] Backing off _do_read(...) for 1.0s (huawei_solar.exceptions.ConnectionInterruptedException: Modbus client is not connected to the inverter)
2025-01-31 18:14:53.383 ERROR (MainThread) [huawei_solar.huawei_solar] Modbus client is not connected to the inverter
NoneType: None
2025-01-31 18:14:53.384 INFO (MainThread) [backoff] Backing off _do_read(...) for 2.0s (huawei_solar.exceptions.ConnectionInterruptedException: Modbus client is not connected to the inverter)
2025-01-31 18:14:55.384 ERROR (MainThread) [huawei_solar.huawei_solar] Modbus client is not connected to the inverter
NoneType: None
2025-01-31 18:14:55.385 INFO (MainThread) [backoff] Backing off _do_read(...) for 4.0s (huawei_solar.exceptions.ConnectionInterruptedException: Modbus client is not connected to the inverter)
2025-01-31 18:15:19.232 ERROR (MainThread) [huawei_solar.huawei_solar] Modbus client is not connected to the inverter
NoneType: None
2025-01-31 18:15:19.232 INFO (MainThread) [backoff] Backing off _do_read(...) for 1.0s (huawei_solar.exceptions.ConnectionInterruptedException: Modbus client is not connected to the inverter)
2025-01-31 18:15:20.234 ERROR (MainThread) [huawei_solar.huawei_solar] Modbus client is not connected to the inverter
NoneType: None
2025-01-31 18:15:20.234 INFO (MainThread) [backoff] Backing off _do_read(...) for 2.0s (huawei_solar.exceptions.ConnectionInterruptedException: Modbus client is not connected to the inverter)
2025-01-31 18:15:22.235 ERROR (MainThread) [huawei_solar.huawei_solar] Modbus client is not connected to the inverter
NoneType: None
2025-01-31 18:15:22.236 INFO (MainThread) [backoff] Backing off _do_read(...) for 4.0s (huawei_solar.exceptions.ConnectionInterruptedException: Modbus client is not connected to the inverter)
2025-01-31 18:15:35.381 ERROR (MainThread) [huawei_solar.huawei_solar] Modbus client is not connected to the inverter
NoneType: None

Please confirm the following:

  • I'm running the latest release of Home Assistant.
  • I'm running the latest release of this integration.
  • I did not find an existing issue describing this problem.
  • I did upload the diagnostics-file that I could retrieve from the 'Devices & Services Page'
  • I did upload the relevant debug logs (via 'Enable Debug Logging'-feature or by manually configuring HA logging)
@ogghi ogghi added the bug Something isn't working label Feb 3, 2025
@wlcrs
Copy link
Owner

wlcrs commented Feb 3, 2025

This issue seems to be caused by a connection failure or an unstable connection to the inverter. This integration already has already implemented a lot of logic to automatically recover from connection failures or unstable connections. The three most important ones are:

  • automatic reconnects if the connection to the inverter failed;
  • each Modbus request is retried for up to 6 times, with increasing waits between each attempt to allow the connection to recover;
  • after 3 failed Modbus requests the connection is reset to fix hanging connections.

Please understand that I cannot help you solve your connection failure or unstable connection. Consider an alternative connection method.
If you are convinced that there is no connectivity issue, then I invite you to debug and fix the problem yourself and submit a pull request to the underlying huawei-solar Python library. Your input would be greatly appreciated.

As there is nothing actionable for me to do in this issue, I'm closing it. You are welcome to open a topic in Discussions: Connecting to the inverter to get community support for your problem.

@wlcrs wlcrs closed this as not planned Won't fix, can't repro, duplicate, stale Feb 3, 2025
@ogghi
Copy link
Author

ogghi commented Feb 3, 2025

I think it's just odd that since the last (2?) updates this started to happen.
What's an easy way to downgrade the integration installed?

@WILHER
Copy link

WILHER commented Feb 4, 2025

The error only occurs for me if "Enable query for changes" is activated under "System options".

If I turn this option off, it no longer updates but also no longer loses the connection.

Is the data perhaps being requested too often?

@ogghi
Copy link
Author

ogghi commented Feb 4, 2025

Even more odd is that it seems stable as of today!
Will keep an eye on it and try the workaround in case it's not fine.
Thanks

@ogghi
Copy link
Author

ogghi commented Feb 6, 2025

And unstable again...

@ogghi
Copy link
Author

ogghi commented Mar 18, 2025

@wlcrs
Any idea on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants