xiaomi_airpurifier
xiaomi_airpurifier copied to clipboard
Add dmaker.fan.p15 support
My understanding is that dmaker.fan.p15 is the European version of dmaker.fan.p11, which is supported.
Details: Name: Mi Smart Standing Fan Pro EU Model: dmaker.fan.p15 Model no: ZLBPSP01XY Specs: 2800 mAh, 24W, <=58dB
I am able to add the fan to HA by setting the model to dmaker.fan.p11, but some values are missing:
I need that too. Any idea what is the status?
I also have a dmaker.fan.p15. Could you support this device?
+1
Edit: @sjdvda could you please share your config? I'm unable to get it working at all, even if configured as p11.
It's working for me (with the aforementioned restrictions using this in configuration.yaml: fan:
- platform: xiaomi_miio_airpurifier name: Xiaomi Smart Fan Pro host: IP address of the fan token: xxx your token xxx model: dmaker.fan.p11
I retrieved the token using this: https://github.com/Maxmudjon/Get_MiHome_devices_token/releases
Weird, I'm still getting info that fan is unable to be discovered:
INFO (MainThread) [custom_components.xiaomi_miio_airpurifier.fan] Got exception while fetching the state: Unable to discover the device 192.168.x.x , _retry=1
My config:
# Xiaomi Smart Fan Pro #
fan:
- platform: xiaomi_miio_airpurifier
name: Xiaomi Smart Fan Pro
host: 192.168.x.xxx
token: xxxxxxxxxxxxxxxxx
model: dmaker.fan.p11
Strange. If everything is correct (IP address, Token), you are using the latest beta 0.6.9, the fan is switched on (probably needed once), in the range of the WIFI network and you restarted HomeAssistant after making the changes I would recommend to re-install the HACS integration. For me it worked instantly after changing the model, restarting HomeAssistant and switching on the fan (I can switch on/off now from HomeAssistant, not sure if it was necessary to switch it on manually the first time).
Unfortunately, still the same issue.
Triple checked IP and Token. I can ping IP of Fan without any problem. I've tried manually switching it on and off but HA still cannot recognize it. Version of addon is 0.6.9, removed and reinstalled.
Only message I'm getting is
INFO (MainThread) [custom_components.xiaomi_miio_airpurifier.fan] Got exception while fetching the state: Unable to discover the device 192.168.x.x , _retry=1
I'm out of ideas..
Ok, I figured it out, VLAN was the culprit. Seems related to https://github.com/rytilahti/python-miio/issues/422