StephanJoubert / home_assistant_solarman

Home Assistant component for Solarman collectors used with a variety of inverters.
Apache License 2.0
512 stars 191 forks source link

Reboot, when inverter is ofline -> error + unknown state until next reboot (when inverter is online) #355

Open JDTm opened 12 months ago

JDTm commented 12 months ago

Hi, am using haOS (2023.7.2), Solarman v1.4.3 and a deye SUN600G3. When i reboot my homeassistant when the inverter is offline (no sun (ie in the night)) it will not come back until i reboot again, when its online.

2023-07-18 23:36:24.576 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up solarman platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 353, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/solarman/sensor.py", line 79, in async_setup_entry
_do_setup_platform(hass, entry.options, async_add_entities)
File "/config/custom_components/solarman/sensor.py", line 49, in _do_setup_platform
raise vol.Invalid('configuration parameter [inverter_serial] does not have a value')
voluptuous.error.Invalid: configuration parameter [inverter_serial] does not have a value

settings:

settings_solarman

Sample Value: verlauf_solarman

error_solarman

raspitoaster commented 11 months ago

Same issue here. When I reboot or even just restart the Homeassistant when the inverter is offline at night, the Solarman integration does not properly connect to the inverter when the inverter comes back in the morning. I have to restart Homeassistant again when the inverter is online and then everything is fine. Homeassistant 2023.8.1, Solarman integration 1,4.3 and 5db34c2