core: Dyson PureHotCool AUTO Bug

The problem

Using the Dyson DysonPureHotCoolEntity there is a bug within fan_mode while the device is on AUTO. The problem is when checking whether the fan is off first the returning FAN_OFF will default to true when the device is on AUTO mode. It should check whether AUTO is enabled and returning FAN_AUTO prior to checking whether it’s OFF.

I Also find that in set_fan_mode for FAN_AUTO to use enable_auto_mode() instead of set_fan_speed(FanSpeed.FAN_SPEED_AUTO) as this didn’t seem to work

Environment

  • Home Assistant Core release with the issue:
  • Last working Home Assistant Core release (if known):
  • Operating environment (OS/Container/Supervised/Core):
  • Integration causing this issue: DYSON
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/dyson/

Problem-relevant configuration.yaml


Traceback/Error logs


Additional information

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (14 by maintainers)

Most upvoted comments

Once I figured out how to do that in Kubernetes by using a subpath to map a single file, it worked splendidly.

Awesome work, I hope this gets approved soon.

No compilation required, If using docker to run HA (which I prefer) then you can simply override the file /usr/src/homeassistant/homeassistant/components/dyson/climate.py with my updated one. Otherwise you would need to overwrite the file if installed locally (backup the original in case).

Restart Home Assistant and hopefully all works.