question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dmaker.fan.{p15,p18} not available, but supported by the upstream library

See original GitHub issue

The problem

Hi there, I bought the following model: Xiaomi Mi Smart Standing Fan Pro

I thought that this model is supported in the HA documentation:

Standing Fan Pro | dmaker.fan.p11

But it shows as dmaker.fan.p15 for class FanMiot maybe a newer revision?

According to this, that model should be supported: https://github.com/syssi/xiaomi_fan/blob/develop/README.md

Pedestal Fan Fan P15 | dmaker.fan.p15 in version:

  "name": "Xiaomi Mi Smart Pedestal Fan",
  "version": "2022.4.0.0",

But in HA that is not supported:

2022-06-14 19:15:27 WARNING (SyncWorker_7) [miio.device] Found an unsupported model 'dmaker.fan.p15' for class 'FanMiot'. If this is working for you, please open an issue at https://github.com/rytilahti/python-miio/
2022-06-14 19:15:27 WARNING (SyncWorker_7) [miio.miot_device] Unable to find mapping for dmaker.fan.p15, falling back to dmaker.fan.1c

In the code of fan.py the P15 seems to work in the same way as the P11 does:

    elif model in [MODEL_FAN_P11, MODEL_FAN_P15]:
        fan = FanMiot(host, token, model=MODEL_FAN_P11)
        device = XiaomiFanMiot(
            name, fan, model, unique_id, retries, preset_modes_override
        )

Could the P15 be enabled in the HA integration?

Sebastian

What version of Home Assistant Core has the issue?

Home Assistant Core 2022.6.5

What was the last working version of Home Assistant Core?

none

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Xiaomi_Miio

Link to integration documentation on our website

https://www.home-assistant.io/integrations/xiaomi_miio/

Diagnostics information

config_entry-xiaomi_miio-0caca181497a40008b372a614aab2503.json.txt

Example YAML snippet

./.

Anything in the logs that might be useful for us?

2022-06-14 19:15:27 WARNING (SyncWorker_7) [miio.device] Found an unsupported model 'dmaker.fan.p15' for class 'FanMiot'. If this is working for you, please open an issue at https://github.com/rytilahti/python-miio/
2022-06-14 19:15:27 WARNING (SyncWorker_7) [miio.miot_device] Unable to find mapping for dmaker.fan.p15, falling back to dmaker.fan.1c

Additional information

I tried to set it up as P11 (asked for mapping during setup of the integration) and it is shown on the device page: image

But the log above tells a different story --> another bug, that this is not working in the way intended? 2022-06-14 19:15:27 WARNING (SyncWorker_7) [miio.miot_device] Unable to find mapping for dmaker.fan.p15, falling back to dmaker.fan.1c

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

5reactions
bieniucommented, Jun 14, 2022

@syssi When a new version of the library is available I’ll implement those models in HA code.

2reactions
bieniucommented, Jun 14, 2022

Those models are supported only in master branch of python-miio. New release of the library is needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

dmaker.fan.{p15,p18} not available, but supported by the upstream ...
The problem Hi there, I bought the following model: Xiaomi Mi Smart Standing Fan Pro I thought that this model is supported in...
Read more >
python-miio — python-miio documentation
The miiocli command allows controlling supported devices from the command line, given that you know their IP addresses and tokens. You can use...
Read more >
escape tendency activity: Topics by Science.gov
We present the designed physics escape game and the results. ... and spent less time escaping in response to aggressive but not nonaggressive...
Read more >
Untitled - National Academic Digital Library of Ethiopia
presents current theories about autism and the evidence that supports them. ... fate is not limited to a particular group of cells but...
Read more >
(Lecture Notes in Computer Science 5841 - Computer ... - Scribd
Claudio Bartolini, Luciano Paschoal Gaspary (e - Free ebook download as PDF File (.pdf), Text File (.txt) or read book online for free....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found