question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can No Longer Turn Off Fan in Auto Mode

See original GitHub issue

As a byproduct of Issue https://github.com/shenxn/ha-dyson/issues/12 (v0.5.1) when the Fan is in the Auto Mode preset it can no longer be shutoff. I agree with the logic that Auto Mode should still report the device as On, however even at that state you can not shut the fan off completely and will remain in auto mode as “On” unless the fan percentage is changed to another value to remove the “Auto” preset. I think a preset mode of “None” or “Off” that is a valid option might resolve it slightly being able to remove it from “Auto” without setting a fan percentage. Or if a fan.turn_off is issued shut the fan down and remove it from auto mode.

Example fan.turn_off on an entity in Auto Mode continues to stay on and in Auto mode Log Error:

2021-03-09 12:55:24 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 282, in async_update_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 321, in _async_write_ha_state
    attr.update(self.state_attributes or {})
  File "/usr/src/homeassistant/homeassistant/components/fan/__init__.py", line 602, in state_attributes
    data[ATTR_SPEED] = self.speed
  File "/usr/src/homeassistant/homeassistant/components/fan/__init__.py", line 452, in speed
    percentage = self.percentage
  File "/config/custom_components/dyson_local/fan.py", line 119, in percentage
    return ranged_value_to_percentage(SPEED_RANGE, int(self._device.speed))
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:21 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
shenxncommented, Mar 16, 2021

Thanks for the help. Fixed in version 0.8.1

0reactions
geekofweekcommented, Mar 16, 2021

Looks resolved, nice work @shenxn

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fan Works Only on FAN-ON Fan won't run if thermostat set to ...
The fan will run and blow warm air but only in FAN or FAN ON mode - delivering heat - but NOT in...
Read more >
Why Won't My Indoor AC Fan Turn Off ? - PICKHVAC
Here's a list of reasons “why AC fan won't turn off,” starting at the ... Pro Tip: We recommend leaving your thermostat in...
Read more >
Why won't your HVAC fan turn off? - Petro
This isn't necessarily bad for your fan, but it is usually a sign of a bigger problem. Common causes for fans not turning...
Read more >
Why Won't My AC Fan Turn Off? - Reddi HVAC
The most common reason that your Air Conditioner fan won't turn off is because a stuck relay keeping the circuit closed.
Read more >
Should I Set my HVAC System's Fan Setting to Auto or On?
AUTO means that the fan turns on automatically only when your system is heating or cooling air. Once the thermostat reaches the desired...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found