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

Device losing it's state on some certain actions. AS50S2SF1FA-B #75

Closed utegental closed 10 months ago

utegental commented 11 months ago

Describe the bug Switching between modes disables Silent / Mute / Health modes. Switching on Health mode doesn't have any effect.

To Reproduce

  1. Switch on mode Cool.
  2. Set desired temperature.
  3. Select program 'UV + Cool'. That will activate Health mode.
  4. See that temperature reseted to a default 22 value.
  5. Set again desired temperature.
  6. See that program disappeared from combobox and device switched to mode Cool(without UV).
  7. Enable Mute mode.
  8. Change mode to any (Fan only, for example)
  9. See that Mute mode became disabled.

Expected behavior Entity should preserve it's state fully, not randomly resetting some features.

Additional context Looks like requests to api should be sending all the flags related to modes every time, not just when we switching them.

Andre0512 commented 11 months ago

Hi, thanks for reporting! This was helpful to reproduce the behavior :slightly_smiling_face: We have some unfortunate dependencies there between the startProgram and settings commands. Please check the latest beta, I tried to improve it, but I think it still isn't perfect...

Andre0512 commented 11 months ago

With the latest beta it should work a bit better again.