-
-
Notifications
You must be signed in to change notification settings - Fork 561
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
Unsupported device found - chuangmi.plug.hmi208 #616
Comments
You could try to adjust https://github.com/rytilahti/python-miio/blob/master/miio/chuangmi_plug.py by adding a new entry after the |
I think it won't work as the Bluetooth gateway functionality is not in the other models. I could not find it implemented at all for Home Assistant ( for Xiaomi products). It was said somewhere that Xiaomi have not exposed and documented it in their SDK. As they released this plug in the end of 2019 I hope they will open our eyes for third party software. |
Yes, the bluetooth functionality won't be there, but that would offer at least allow partial support. |
Verified, it works with modification, partially
|
@kghost could you try out the commands I mentioned in the issue I just linked here? The 'user ack timeout' error happens sometimes when requesting an unknown property / making a call that is not supported, which is unfortunately not that informative.. |
|
bash-5.0# miiocli device --ip xxx --token xxx info bash-5.0# miiocli device --ip xxx --token xxx raw_command get_prop '["power", "temperature"]' bash-5.0# miiocli device --ip xxx --token xxx raw_command get_prop '["power", "usb_on", "temperature"]' bash-5.0# miiocli device --ip xxx --token xxx raw_command get_prop '["on", "usb_on", "temperature"]' bash-5.0# miiocli device --ip xxx --token xxx raw_command get_prop '["all"]' |
MODEL_CHUANGMI_PLUG_V3 = "chuangmi.plug.v3" AVAILABLE_PROPERTIES = { Make changes as that, then copy to hassio by run command "docker cp /usr/share/hassio/homeassistant/chuangmi_plug.py homeassistant:/usr/local/lib/python3.7/site-packages/miio/chuangmi_plug.py" after that all my smart sockets makes inactive lots of errors on all my smartsockets ip adresses somethig was wrong, after restore file from backup, error still not fix, mb i need do chmod + ? |
After this it works. miiocli chuangmiplug --ip xxxx --token xxxx status miiocli chuangmiplug --ip xxxx --token xxxx on miiocli chuangmiplug --ip xxxx --token xxxx off miiocli chuangmiplug --ip xxxx --token xxxx usb_on miiocli chuangmiplug --ip xxxx --token xxxx usb_off Work with Home Assistant after edit
|
Could you confirm that the linked PR works and can be merged? |
Hi, can I check if this will be merged into official release in HA miio component? |
The homeassistant integration needs to be modified to accept this new device type. I think in the future we should add a list of known devices to python-miio that will remove the need to keep up two separate mappings of supported devices... |
Hi, appreciate if expert here could share how could I add the chuangmi.plug.hmi208 support into my home assistant. I am running the Hassio homeassistant in Pi4. I couldnt find the python package lib64/python3.7/site-packages/homeassistant/components/xiaomi_miio/switch.py: when I do a terminal in Home Assistant. Any help is greatly appreciated. |
Hello,
This is a Xiaomi Mijia Smart Wi-fi plug with Bluetooth and can act as Bluetooth Gateway. I just saw the code and seems there is nothing like it.
https://www.gearbest.com/access-control/pp_009225999378.html
Any chances to be integrated ?
The text was updated successfully, but these errors were encountered: