xiaomi_airpurifier icon indicating copy to clipboard operation
xiaomi_airpurifier copied to clipboard

Add dmaker.fan.p15 support

Open sjdvda opened this issue 3 years ago • 8 comments

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: image

sjdvda avatar Jan 30 '21 11:01 sjdvda

I need that too. Any idea what is the status?

eliorerz avatar Mar 24 '21 00:03 eliorerz

I also have a dmaker.fan.p15. Could you support this device?

kaazvaag avatar Apr 08 '21 20:04 kaazvaag

+1

Edit: @sjdvda could you please share your config? I'm unable to get it working at all, even if configured as p11.

Piramidowy avatar Apr 09 '21 20:04 Piramidowy

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

Intelligenzbestie avatar May 01 '21 12:05 Intelligenzbestie

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

Piramidowy avatar May 01 '21 14:05 Piramidowy

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).

Intelligenzbestie avatar May 01 '21 17:05 Intelligenzbestie

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..

Piramidowy avatar May 02 '21 22:05 Piramidowy

Ok, I figured it out, VLAN was the culprit. Seems related to https://github.com/rytilahti/python-miio/issues/422

Piramidowy avatar May 03 '21 10:05 Piramidowy