Inverter drops connection intermittently #952
marcoluciano81
started this conversation in
Connecting to the inverter
Replies: 1 comment
-
Seems there are issues here, basically the same issue I have, can be seen in this thread: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello to all,
unfortunately i'm facing random disconnections to my inverter, it became unusable :(
Here's my configuration:
SUN2000-8KTL-M101074314-006
Firmware: V100R001C00SPC161
I don't have batteries
integration: 1.5.4
Core 2025.2.4
Supervisor 2025.02.1
Operating System 14.2
Frontend 20250214.0
The inverter is connected via Wifi, and I use the Dongle provided by Huawei. I know from the RTFM instructions that this connection is unstable, but it's the only way I have to connect to the inverter. I have even put a WifiExtender in the basement to improve the signal and it has 0% of packet loss if pinged. I have created a separated Wifi network only for IOT devices in the basement.
It seems like the modbus it's dropping the connection, I don't know why.
Something also weird is that at the beginning of the setup of my Home Assistant installation, everything worked great, but then the installer updated the firmware (I guess) and I've changed Wifi network in the same time. But things seem not linked to the Wifi change.
Moreover, I don't understand why at the beginning I had 2 devices (the inverter and the meter) + 307 entities, now I only have 67.
Maybe, as it's written in the wiki : "When the dongle is unable to connect to the Huawei FusionSolar cloud (for example due to a service or network outage), it will periodically restart in an attempt to restore connectivity. This will also interrupt the connection to this integration." ?
How can I change the settings via the Fusion Solar app to avoid the dongle restart?
Here's are the logs:
_Logger: huawei_solar.huawei_solar
Source: /usr/local/lib/python3.13/site-packages/huawei_solar/huawei_solar.py:374
First occurred: February 16, 2025 at 11:12:45 AM (395 occurrences)
Last logged: 4:13:38 PM
Modbus client is not connected to the inverter
NoneType: None
This error originated from a custom integration.
Logger: backoff
Source: custom_components/huawei_solar/update_coordinator.py:56
integration: Huawei Solar (documentation, issues)
First occurred: 1:27:29 PM (12 occurrences)
Last logged: 4:11:26 PM
Giving up _do_read(...) after 6 tries (huawei_solar.exceptions.ConnectionInterruptedException: Modbus client is not connected to the inverter)
Logger: homeassistant.helpers.event
Source: helpers/event.py:355
First occurred: February 16, 2025 at 11:17:38 AM (45 occurrences)
Last logged: 4:09:57 PM
Error while dispatching event for sensor.daily_power_consumption to <Job track state_changed event {'sensor.daily_power_consumption'} HassJobType.Callback <bound method TrackTemplateResultInfo._refresh of <TrackTemplateResultInfo {Template<template=({{ states('sensor.daily_power_consumption') }}) renders=78>: <RenderInfo Template<template=({{ states('sensor.daily_power_consumption') }}) renders=78> all_states=False all_states_lifecycle=False domains=frozenset() domains_lifecycle=frozenset() entities=frozenset({'sensor.daily_power_consumption'}) rate_limit=None has_time=False exception=None is_static=False>}>>>
Error while dispatching event for sensor.inverter_total_yield to <Job track state_changed event {'sensor.inverter_total_yield'} HassJobType.Callback <bound method TrackTemplateResultInfo._refresh of <TrackTemplateResultInfo {Template<template=({{ states('sensor.inverter_total_yield') }}) renders=224>: <RenderInfo Template<template=({{ states('sensor.inverter_total_yield') }}) renders=224> all_states=False all_states_lifecycle=False domains=frozenset() domains_lifecycle=frozenset() entities=frozenset({'sensor.inverter_total_yield'}) rate_limit=None has_time=False exception=None is_static=False>}>>>
Error while dispatching event for sensor.inverter_total_yield to <Job track state_changed event {'sensor.inverter_total_yield'} HassJobType.Callback <bound method TrackTemplateResultInfo._refresh of <TrackTemplateResultInfo {Template<template=({{ states('sensor.inverter_total_yield') }}) renders=228>: <RenderInfo Template<template=({{ states('sensor.inverter_total_yield') }}) renders=228> all_states=False all_states_lifecycle=False domains=frozenset() domains_lifecycle=frozenset() entities=frozenset({'sensor.inverter_total_yield'}) rate_limit=None has_time=False exception=None is_static=False>}>>>
Error while dispatching event for sensor.inverter_total_yield to <Job track state_changed event {'sensor.inverter_total_yield'} HassJobType.Callback <bound method TrackTemplateResultInfo._refresh of <TrackTemplateResultInfo {Template<template=({{ states('sensor.inverter_total_yield') }}) renders=232>: <RenderInfo Template<template=({{ states('sensor.inverter_total_yield') }}) renders=232> all_states=False all_states_lifecycle=False domains=frozenset() domains_lifecycle=frozenset() entities=frozenset({'sensor.inverter_total_yield'}) rate_limit=None has_time=False exception=None is_static=False>}>>>
Error while dispatching event for sensor.daily_power_consumption to <Job track state_changed event {'sensor.daily_power_consumption'} HassJobType.Callback <bound method TrackTemplateResultInfo._refresh of <TrackTemplateResultInfo {Template<template=({{ states('sensor.daily_power_consumption') }}) renders=82>: <RenderInfo Template<template=({{ states('sensor.daily_power_consumption') }}) renders=82> all_states=False all_states_lifecycle=False domains=frozenset() domains_lifecycle=frozenset() entities=frozenset({'sensor.daily_power_consumption'}) rate_limit=None has_time=False exception=None is_static=False>}>>>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 635, in state
numerical_value = int(value)
ValueError: invalid literal for int() with base 10: 'unknown'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 638, in state
numerical_value = float(value)
ValueError: could not convert string to float: 'unknown'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 355, in _async_dispatch_entity_id_event
hass.async_run_hass_job(job, event)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 940, in async_run_hass_job
hassjob.target(*args)
~~~~~~~~~~~~~~^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 1312, in _refresh
self.hass.async_run_hass_job(self._job, event, updates)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 940, in async_run_hass_job
hassjob.target(*args)
~~~~~~~~~~~~~~^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/template/template_entity.py", line 463, in _handle_results
self.async_write_ha_state()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1023, in async_write_ha_state
self._async_write_ha_state()
~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1148, in _async_write_ha_state
self.__async_calculate_state()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1085, in __async_calculate_state
state = self._stringify_state(available)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1029, in stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 642, in state
raise ValueError(
...<5 lines>...
) from err
ValueError: Sensor sensor.corrected_solar_production has device class 'energy', state class 'total_increasing' unit 'kWh' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: 'unknown' (<class 'str'>)
Beta Was this translation helpful? Give feedback.
All reactions