CJNE / ha-sunspec

Home Assistant customcomponent for SunSpec modbus devices
MIT License
63 stars 14 forks source link

SunSpec after Restart HA not available #274

Open 290989 opened 1 month ago

290989 commented 1 month ago

Hi, I have this error after restart Home Assistant:

Einrichtung fehlgeschlagen, wird erneut versucht: Caught blocking call to sleep with args (0.5,) inside the event loop by custom integration 'sunspec' at custom_components/sunspec/api.py, line 159: client.scan(. (offender: /usr/local/lib/python3.12/site-packages/sunspec2/modbus/client.py, line 258: time.sleep(delay)), please create a bug report at https://github.com/cjne/ha-sunspec/issues For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#sleep

Does anyone have an idea to fix it?

Thank you.

rainersax commented 1 month ago

same issue here.

290989 commented 1 month ago

After a restart from the inverter, sunspec worked again for me

alphabravocharly72 commented 1 month ago

Hello, I have the same issue. After a restart from HA (eg update or other reasons) the integration shows no values. After a manually restart (sun spec) it works. It looks like during HA start the integration doesn't start as it should.

CJNE commented 4 weeks ago

I think this should work better with the latest version, 0.0.26

timoverwoest commented 2 weeks ago

Hi CJNE, I still seems to have the issue.

alphabravocharly72 commented 2 weeks ago

Same. Not better with the new version.