-
Notifications
You must be signed in to change notification settings - Fork 0
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
How its can integrate in hass.io ? #1
Comments
Hi @xrays72, this repo is my home assistant configuration, it's not a hass.io component. Do you want integrate
pip uninstall python-miio
pip install libs/python_miio-0.5.3-py3-none-any.whl
cp custom_components/xiaomi_miio_fan path/to/your/custom_components
fan:
- platform: xiaomi_miio_fan
name: xiaomi_fan
host: 192.168.xx.xx
token: xxxxxxxxxxxxxxx Good luck! |
Thank you very much for your HA custom_component and pull request into python-miio for miot fan. Is it possible to add support for dmaker-p11 fan? |
@iquix Looks like the spec is similar to p9/p10, I can have a try when I have time |
@swim2sun Thank you so much! |
Hi, @iquix , I updated |
@swim2sun I tried to install this but I failed. I'm using homeassistant with docker image homeassistant/raspberrypi3-homeassistant:stable, which is HA version 0.116.4 In homeassistant/raspberrypi3-homeassistant:stable docker image, python cryptography 2.9.2 is installed, but in the whl file, it requires python cryptography version >3.0. I need to install gcc in the docker container to install cryptography 3.x, but its such a hard work, because HA docker image is a lightweight image, and it contains merely nothing. I'll give it a try later, when I find out how to install python cryptography version >3.0 in docker container. Anyway, thank you so much for your effort. |
I just changed dependency settings in the whl file to allow python cryptography 2.9.2, and installation was successful. However, I cannot set the fan speed "level" , nor speed "level" is always fixed to "Level 1" . The reason is as follow. But in the custom_component, line 579 in the fan.py This part makes speed always "Level 1", because 'speed' is always in the range 1 to 4, and FAN_SPEED_VALUES is defined as Therefor, codes that uses FAN_SPEED_VALUES, as well as codes with FAN_SPEED_LIST needs to be fixed in the custom_compoent, since speed=PropertyAdapter("fan", "fan-level"). Again, thank you so much. |
Finally I successfully can control my P11 fan. I found out that urn:miot-spec-v2:property:status:00000007:dmaker-p11:1, which is "siid":2,"piid":6 is speed 0~100. So I modified fan_miot.py line 92 to and after that, without modifying the custom_component, everything works fine. Thank you so much. |
@iquix sry for the late reply. I'm glad that the component can work. I'll fix the bug of setting speed, thx for your feedback. |
@swim2sun
Hello, thank you for your work.
Please write how its can integrate in hass.io ?
The text was updated successfully, but these errors were encountered: