-
Notifications
You must be signed in to change notification settings - Fork 118
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
Support device model dmaker.fan.p5 #30
Comments
Came across the same issue. Component returns an error on load:
|
I can help testing if required, received the same device today (2019, 1X, 140deg instead of 120, wired). |
Could somebody provide the output of:
and
I will implement the device support as soon as the output is known. |
稍等,我现在立马测试! |
Cool! Thanks. |
Here you go. |
|
@StanislavBolshakov If you request a list of properties do you retrieve a proper response:
|
|
我按一次风速和转动方向 ,都只是这样的反馈! |
抱歉不会编辑回复,可能你看得有点乱! |
@syssi yup.
But I believe there should be something else as well. Sending command without params returns "2" in array.
On a side note, it reports "2" no matter what, so probably doesn't matter. |
I want to request a list of properties because of future firmware updates. If the response of the empty request changes the values are mapped incorrect. |
Could somebody provide a list of the different available "mode"s? |
How to provide a list of different modes? |
It's either normal or nature. |
The maximum speed is 100%? |
Yes |
This is the first step (extending python-miio): rytilahti/python-miio#513 @StanislavBolshakov Do you like to install and test the feature branch?
|
Getting an error:
|
In this case you have python-miio installed two times now. This should work:
|
Missed the --upgrade key, sorry. Works fine:
There is space for improvement:
|
I'm unsure about "left" and "right". The proper payload is unknown up to now. |
|
Cool. In this case the implementation should be feature complete now: Could you test the new command?
|
It works! |
A release of python-miio is needed first. Afterwards I will extend the HA component. |
how to fix it? |
You have to wait. I will extend the component soon. |
thanks for reply! |
What is the error below? ERROR (MainThread) [custom_components.xiaomi_miio_fan.fan] Got exception while fetching the state: {'code': -9999, 'message': 'user ack timeout'} |
@sjtuross Please update the custom component again. We need a few iterations may be. I've improved the implementation. If the component doesn't crash anymore we should check all features are working fine. |
@surpasstop Please update the custom component, too. |
@syssi I've updated component and restart ha, another error occured
|
In this case you don't have python-miio 0.4.6 installed. Please use the development version of HA. |
I've updated development version
|
Could you provide the xiaomi_miio_fan section of your |
Thank you syssi model: 'dmaker.fan.p5' or
|
Could you remove the V3 temporary from your configuration? Just use:
Restart HA and provide the error of the log. :-) |
Here you are 2019-10-12 00:05:16 DEBUG (MainThread) [miio.device] 192.168.0.118:54321 >>: {'id': 1, 'method': 'miIO.info', 'params': []} 2019-10-12 00:05:16 DEBUG (MainThread) [miio.device] 192.168.0.118:54321 (ts: 1970-02-06 05:30:57, id: 1) << {'id': 1, 'result': {'life': 3130257, 'uid': 1678397415, 'model': 'dmaker.fan.p5', 'token': '13915911513b46931b1ca035cf3edafe', 'fw_ver': '2.0.4', 'mcu_fw_ver': '0008', 'miio_ver': '0.0.6', 'hw_ver': 'esp8266', 'mmfree': 25056, 'mac': '40:31:3C:DC:74:2C', 'wifi_fw_ver': '2709610', 'ap': {'ssid': 'IoT_Home', 'bssid': '8A:36:6C:5A:12:47', 'rssi': -65, 'primary': 3}, 'netif': {'localIp': '192.168.0.118', 'mask': '255.255.255.0', 'gw': '192.168.0.1'}}} 2019-10-12 00:05:18 DEBUG (SyncWorker_6) [miio.device] 192.168.0.118:54321 >>: {'id': 1, 'method': 'get_prop', 'params': ['power', 'mode', 'speed', 'roll_enable', 'roll_angle', 'time_off', 'light', 'beep_sound', 'child_lock']} 2019-10-12 00:05:18 DEBUG (SyncWorker_6) [miio.device] 192.168.0.118:54321 (ts: 1970-02-06 05:30:59, id: 1) << {'id': 1, 'result': [False, 'normal', 1, True, 140, 0, True, False, False]} 2019-10-12 00:05:19 ERROR (MainThread) [homeassistant.components.fan] xiaomi_miio_fan: Error on device update! |
My fault! Line 234 must be |
I've change that you mentioned, and restore my setting, reboot xiaomi_miio_fan: Error on device update! |
Fixed. Thanks for your time! :-) |
All is working well. Thanks syssi!! |
Could provide some more testing/infos.
|
You can add the second fan to the configuration again. Make sure to set the correct model or leave out the model parameter. |
min/max speed value is 1~100 But V3 fans do not show speed level (level 1~4), |
The V3 has speed levels between 1 and 4. Should the P5 have the same speed levels? I will take a look at the speed levels of the V3. |
P5 level is 1 ~ 4 too, but |
I've added your values: 6901cce And I've tried to fix the other fan level issues. Please give it a try! |
Side note: I will remove the sped levels (1-4) in future because HA supports "off", "low", "medium" and "high" only to be Google Home / Alexa comaptible. As soon as we use other values for the speed level the devices cannot be controlled via Alexa. https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/fan/__init__.py#L40-L43 |
Could you check both fans with the latest version of the component to make sure everything works fine now? Thanks in advance! |
I'm sorry for late response |
hi, can the expert help to how to add newer xiaomi fan model into miio_fan? I have new model dmaker.fan.p9 and would like to control it via miio_fan . thanks in advanced |
Device support was added some time ago. |
Hi, I couldn't load the dmaker.fan.p9 using the latest xiaomi_miio_fan custom component. My HA reported the following error:
|
This issue is about the dmaker.fan.p5 (a miio device). You are asking about a dmaker.fan.p9 (a miot device) which isn't supported right now. |
Support device model dmaker.fan.p5
Hi, today I received my "xiaomi SmartmiFan 1x"
Sadly it is not yet recognised by your component. Could you please integrate it?
I try to give the same information which you required in similar requests, let me know if you need more information:
Mi Home App doesn't seem to display battery stats
Support device model dmaker.fan.p5
bash-4.4# mirobo --ip 192.168.120.157 --token df0xx25caxxcedxx7656368xx79aaxx9 raw-command get_prop "['$PROP']"
Sending cmd get_prop with params ['']
[True, 'nature', 35, True, 140, 0, True, False, False, 2]
The text was updated successfully, but these errors were encountered: