syssi / xiaomi_fan

Xiaomi Mi Smart Fan integration for Home Assistant
Apache License 2.0
430 stars 118 forks source link

dmaker.fan.p39: Angle is always 90 #257

Open zarqeon opened 5 months ago

zarqeon commented 5 months ago

I realized that the "angle" attribute does not change for dmaker.fan.p39. I can make it turn in both directions with fan.set_direction, but it would be really nice to read the current direction the fan is facing. Is this a limitation of this fan, or is there a way to fix it? Also it would be nice to have a function that let's me specify the angle value i want to set it, so i don't have to call fan.set_direction 18 times if i want to turn it 90 degrees. The use case would be: if somebody is sitting in a chair I would like to turn the fan away from the chair.

Thanks!