Andre0512 / hon

Home Assistant integration for Haier hOn: support for Haier/Candy/Hoover home appliances like washing machines and air conditioners in 28 languages.
MIT License
1.25k stars 2.49k forks source link

The sensors are not updating #205

Open vyagi opened 1 month ago

vyagi commented 1 month ago

Describe the bug The sensors like: outside temperature, inside temperature and all the others were updating frequently, now updates are very rare (daily or so).

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior To bring back the previous behaviour

Screenshots

image

Environment (please complete the following information):

Additional context Add any other context about the problem here.

Home Assistant Logs On 5 of may I can see this in the HA logs:

Detected blocking call to import_module inside the event loop by custom integration 'hon' at custom_components/hon/init.py, line 34: hon = await Hon( (offender: /usr/local/lib/python3.12/site-packages/pyhon/appliance.py, line 52: self._extra: Optional[ApplianceBase] = importlib.import_module(), please create a bug report at https://github.com/Andre0512/hon/issues

attimcz commented 1 month ago

Hi, I'm experiencing same issue for several weeks now. The issue makes this integration basically unusable. I could control A/C unit (switch it on, off etc) but didn't get any sensor updates until integration reload or HA restart. Only at this times the sensors are updated but only once.

Investigate please :-)

Environment: Home Assistant Version: 2024.5.5 hOn Integration Version v0.14.0-beta.7 pyhOn Version [e.g. 0.13.1

Log message: Detected blocking call to import_module inside the event loop by custom integration 'hon' at custom_components/hon/init.py, line 34: hon = await Hon( (offender: /usr/local/lib/python3.12/site-packages/pyhon/appliance.py, line 52: self._extra: Optional[ApplianceBase] = importlib.import_module(), please create a bug report at https://github.com/Andre0512/hon/issues

vyagi commented 3 weeks ago

Hello, hello - is there anybody out there? Any hope to get this issue fixed? I had a lot of automations which used the temperature read from Hon sensors, now they all broke and waiting for the fix...