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.23k stars 2.49k forks source link

Haier hon integration problems with switch and binary_sensor #143

Closed vyagi closed 3 months ago

vyagi commented 4 months ago

Describe the bug On 6th of January most of the entities became unavailable. Today I removed the integration and added again to my home assistant but this did not help. There are only temperature sensors and basic control for the air conditioners. What is missing are very, very useful features like: silent mode, quiet mode, screen display and many more which I used to use extensively. Has there something changed or broken?

In the logs I can see: Unexpected exception importing platform custom_components.hon.switch and Unexpected exception importing platform custom_components.hon.binary_sensor

To Reproduce Add integration,

Expected behavior See the missing entities

Screenshots

Environment (please complete the following information):

Additional context

Home Assistant Logs Logger: homeassistant.setup Source: setup.py:403 First occurred: 10:55:39 (2 occurrences) Last logged: 10:55:39

Unable to prepare setup for platform 'hon.switch': Platform not found (Exception importing custom_components.hon.switch). Unable to prepare setup for platform 'hon.binary_sensor': Platform not found (Exception importing custom_components.hon.binary_sensor).

Device Log Post your device info here (if available)

  1. Enable the "Show Device Info" button This button can be found in the diagnostic section of your device or in the entity overview if "show disabled entities" is enabled.
  2. Press the button to create a notification
  3. Open home assistant notifications and copy the message (Crtl+A, Ctrl+C)

Data Archive For further analysis, please add your appliance data archive here (if available) Navigate to Settings -> Device & Services -> Haier hOn -> your device and press the Create Data Archive button. Then open notifications to download the data zip archive. To attach the file:

NoUsername10 commented 4 months ago

Hi. I was about to submit the same thing. Here are screenshots for the same issue.

HASS: Core 2024.1.2 Supervisor 2023.12.0 Operating System 11.3 Frontend 20240104.0

*Edit, added HASS info and image

  1. Settings are greyed out. 1

  2. entities no longer provided 2

  3. After enable and disable of device 3

vyagi commented 4 months ago

Thank you for additional screenshots - I no longer have these entries - good that you could show them.

NoUsername10 commented 4 months ago

No problems at all, let me know if i can be of any more help!

Andre0512 commented 4 months ago

Hi, can you see any exceptions in the logs?

hOn Integration Version: 5.12

Can you try, to update to current version 10.1?

Andre0512 commented 4 months ago

Probably the same issue as #140

NoUsername10 commented 4 months ago

Hello. I had 10.1 installed so the issue was on that version.

I have also tried it on HASS version: Core 2024.1.2 Supervisor 2023.12.0 Operating System 11.4 Frontend 20240104.0

However: After updating to the hOn v0.11.0-beta.1 the binary switches work again (woohoo!), so perhaps something with home assistant and <= 10.1 version of the hOn integration?

All the best.

finalbillybong commented 3 months ago

v0.11.0-beta.1 did not fix switches (or sensors) for me, unfortunately. This is a blocking issue for me and stopping me updating to 2024.1.x

Obviously with all the latest drama this is not a priority for Andre at the moment. I'm just reporting my situation now as I've tried to update again and did not want to forget.

Andre0512 commented 3 months ago

Hi, do you still have trouble with this? Can you check the logs for errors? I just tested it with the data archive of an AS25PBAHRA on the latest version and everything works :thinking: In order to make some progress here, it would be helpful for me to analyze any logged errors and to get an updated data.zip of the affected appliances :slightly_smiling_face:

vyagi commented 3 months ago

Everything works after update to 0.11.0-beta, then 0.11.0 and now it is I guess 0.12.0. Everything is fine for me

Andre0512 commented 3 months ago

Thank you! Then I'll close this issue 🙂