Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dmaker.fan.p18 not being discovered #275

Open
ministryofsillywalks opened this issue Aug 29, 2024 · 4 comments
Open

dmaker.fan.p18 not being discovered #275

ministryofsillywalks opened this issue Aug 29, 2024 · 4 comments

Comments

@ministryofsillywalks
Copy link

I just bought a dmaker.fan.p18 and tried to add it via this component:
It's on the same network as my ha instance with no firewalls currently applied.
According to the xiaomi app the versions are:
MCU-FIrmware-Version: 0003
SDK-Firmware-Version: 2.1.3

image

I added the fan via the config as follows:


fan:
  - platform: xiaomi_miio_fan
    name: Schlafzimmer Ventilator
    host: 10.10.10.78
    token: XXX

I also tried adding it with the model. However both times home assistant throws an error:
image

the device shows up however with the info "not available:
image

Any idea whats going on and what I could try to make the device available?

@smarthomefamilyverrips
Copy link

smarthomefamilyverrips commented Sep 20, 2024

At me all worked, but after disable and re-enable the config it not works anymore

@syssi
Copy link
Owner

syssi commented Sep 20, 2024

@smarthomefamilyverrips Did you move the fan to another WiFi network? Are you sure your security token hasn't changed?

@smarthomefamilyverrips
Copy link

smarthomefamilyverrips commented Sep 20, 2024

@smarthomefamilyverrips Did you move the fan to another WiFi network? Are you sure your security token hasn't changed?

@syssi No I did not, and token did not change in first place...... my mistake was I did disable all 3 fans from the UI (as since lately all custom integrations also show in UI) after that they just where gone and I could not enable them from UI nor entity list anymore as they just did not show up anymore, i still did see the integration in integration page of UI but without any device/entities

In the end i did delete one fan from xiaomi app, gave it a new static IP got the new token and added it in config.yaml hoping that it would come available, but when I did it not got discovered nor any of my old entities showed up.....

what did fix it in the end for me was adding model : dmaker.fan.10 that made my fan be discovered and also my disabled entities showed up again in UI because now I had 1 available enabled entity again, after I did enable all the already existing entities again in UI, commented out the model : dmaker.fan.p10 from config.yaml restarted HA and then all 3 of my fans came back available again. SO IMPORTANT if you wanna disable the fans for winter just comment out all related the code from config.yaml and not try disable the fans through UI

@ministryofsillywalks maybe you can try to add the fans as dmaker.fan.p10 to get it discovered and as soon it is discovered remover/comment out this model line again from config

@AETRN
Copy link

AETRN commented Nov 7, 2024

Push.
After adding the "model" tag in the config file, the devices showed up. But sadly the are flagged as "unavailable" and I cannot do anything with them.
Devices are in another Network and mDNS is enabled (other devices like SONOS are being discovered properly)
EDIT:
Log says -> 2024-11-07 14:08:27.444 ERROR (MainThread) [custom_components.xiaomi_miio_fan.fan] XiaomiFanMiot Got exception while fetching the state: Unable to discover the device x.x.x.x, _retry=27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants