Closed Fokir closed 9 months ago
Same issue after updating to 2023.12.1. All devices marked as fan via Sonoff Lan can't be turned on with error
Failed to call service fan/turn_on. XSwitches.async_turn_on() takes 1 positional argument but 3 were given
if I read this, then I think we have a HA issue and not a Sonoff issue. Since I have exact the same issue with a xaomi fan.
I have this same issue.
I use Sonoff LAN integration, so simply remapped my fan as a light for now to keep it working
I have the same issue as well, and it works when the entity is converted back to switch instead of a fan.
Same problem here!
Just the same, while switching off - works fine (I can switch on via ewelink app and switch off via HA)
Seems I have same issue, how did you guys solve it?
Watching this, seeing same issue
Looks like the xiaomi_fan issue linked above was fixed by the author, stating it was caused by this HA core change - https://github.com/home-assistant/core/commit/953a212dd697c5b916a335869bed8b36be466b92
I was change
async def async_turn_on(self, **kwargs):
to:
async def async_turn_on(self, speed: str = None, mode: str = None, **kwargs) -> None:
in switch.py work for me. I will be wait for official pull.
I was change
async def async_turn_on(self, **kwargs):
to:
async def async_turn_on(self, speed: str = None, mode: str = None, **kwargs) -> None:
in switch.py work for me. I will be wait for official pull.
Did the same - now fan switches on correctly
Reproducible after updating to HA 2023.12 There are 3 devices with the "fan" type overridden. When trying to turn it on/off, an error appears. Similar devices with the "light" type work well.