syssi / xiaomi_fan

Xiaomi Mi Smart Fan integration for Home Assistant
Apache License 2.0
429 stars 117 forks source link

Mi Standing Fan 2 (dmaker.fan.p18) not being discovered #198

Closed mariocao closed 2 years ago

mariocao commented 2 years ago

Hi,

I just bought a new Mi Standing Fan 2 (dmaker.fan.p18, model BPLDS02DM) and it seems the integration cannot connect to it. I double-checked that the IP is reachable from HA and this is the only log I get:

2022-07-22 21:02:50 WARNING (MainThread) [homeassistant.components.fan] Platform xiaomi_miio_fan not ready yet: Unable to discover the device 192.168.107.23; Retrying in background in 30 seconds

The current fan firmware is 2.0.7.0003 (I did not upgrade it...).

If in my config, I specify the model field, I don't get any error at all but the created entity is unavailable all the time. :/

fan:
  - platform: xiaomi_miio_fan
    name: Xiaomi Smart Fan
    host: 192.168.107.23
    token: <TOKEN>
    model: dmaker.fan.p18

Thanks in advance for any idea about what could be happening and, obviously, for all the work in the integration! :clap:

oOWaXOo commented 2 years ago

Hi,

i added the P18 fan today as well. For me it worked with the following things:

Then you should be able to find the fan within the entities.

mariocao commented 2 years ago

Hi!

Thanks @oOWaXOo for the reply.

Apparently, it was fault of my network configuration. I am using VLANs (to isolate IoT traffic) and some Xiaomi devices don't respond to UDP packets if the source IP does not belong to the subnet of the device itself. :open_mouth:

I'll close the issue as it is not a problem of the component. :wink:

Thank you guys for all the work!

oOWaXOo commented 2 years ago

Hi,

welcome @mariocao. Ah i see totally differen issue.

But i'm facing issues as well. Maybe you can tell if you are faceing the same issues with P18 fan as i described in #200. Would help me a lot :)

Thank you!

mariocao commented 2 years ago

I returned the fan as I was frustrated with the problem and bought the p10 version to later realize that it was a subnet problem. Sorry! At least I got similar functionality paying much less! 😅