Closed Lyr3x closed 2 years ago
Works with my Smartmi Standing Fan 3.
Yeah I'm having the exact same issue with my fan.
Only configuration that might impact this may be:
platform: xiaomi_miio_fan
SAme problem for me with a P15
Exactly the same problem with model: "dmaker.fan.p18" (Xiaomi standing fan 2)
edit: made a pull request with the solution
change line 1051 to if (preset_mode === 'Nature' || preset_mode = 'nature') {
I believe this is now fixed on master. Hopefully we'll have a new build pushed soon but we have made major changes recently for a separate issue so may move a little more carefully for that.
It sounds like from this discussion the issue was only with status reporting, not actually toggling the fan mode, but I noticed that when we set the preset mode we're using "Nature" or "Natural" as well. I tested "nature" on my device (which reports "Nature" as status) and it did not work, so I'm wondering whether any devices which report "nature" would still fail on the set.
For me, the Smart Standing Fan Pro/P15 show the same status for Direct/Natural all the time. Natural is deselected, which means direct breeze. And it is not possible to toggle by clicking it. Nothing changes, no matter if the fan is set to direct or natural mode.
Interesting. @jesryn would you mind sharing the full state and attributes for your fan from the Developer Tools > State
page? Both with nature mode on and off would be helpful so we can see what attribues and values are available to watch.
And just to confirm you're using the Xiaomi Mi Smart Pedestal Fan integration not the default?
Also as a side note: It looks like P15 support through the native/default integration is coming soon so will hopefully also resolve this for you https://github.com/home-assistant/core/issues/73496
@ian-craig Sorry for my late answer. Yes I use Xiaomi Mi Smart Pedestal Fan and use it in config with I use it with "platform: xiaomi_miio_fan". It looks like this under developers tools:
Fixed in 2.2.0, thanks for waiting, please do reopen this if you still face this issue.
@ikaruswill still not working for me. The button is not reactive at all and also does not create a error message. I reinstalled the component. Anything else?
preset_modes:
- 'off'
- Level 1
- Level 2
- Level 3
- Level 4
direction: null
oscillating: true
percentage: 25
percentage_step: 1
preset_mode: Level 1
model: zhimi.fan.za4
angle: 30
raw_speed: 310
delay_off_countdown: 0
ac_power: true
oscillate: true
direct_speed: 25
natural_speed: 25
child_lock: false
buzzer: false
led_brightness: 1
use_time: 72635
temperature: null
humidity: null
battery: null
battery_charge: null
button_pressed: null
led: null
battery_state: null
friendly_name: Xiaomi Smart Fan
supported_features: 15
I just updated to
2.1.0
and it seems that the natural mode is broken. If the natural mode isoff
i can turn iton
via the card, but the status is not reflected (always off). Turning the natural modeoff
is not working at all. Calling the service directly is working fine. There is no error visible in the logs