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

Devices Discovery #6

Open
mrmadhu opened this issue Oct 21, 2016 · 10 comments
Open

Devices Discovery #6

mrmadhu opened this issue Oct 21, 2016 · 10 comments

Comments

@mrmadhu
Copy link

mrmadhu commented Oct 21, 2016

i'm able to discover Human Sensor and door contact switch, but not the other devices like smart mini plug or wireless switch for building rules and automation, is there any way to add these devices as well. thx in advance for any help

@snOOrz
Copy link
Owner

snOOrz commented Oct 22, 2016

Do you mean other Wi-Fi devices? This plugin only works with the ZigBee gateway.

@mrmadhu
Copy link
Author

mrmadhu commented Oct 25, 2016

yes other devices like smart plug

i could get the gateway detected and devices like human sensor and door
contact sensor detected in homebridge and its able to show the status of
each devices but without other devices added there wont be much automation
available

Madhu

On Sat, Oct 22, 2016 at 10:42 AM, snOOrz notifications@github.com wrote:

Do you mean other Wi-Fi devices? This plugin only works with the ZigBee
gateway.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#6 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVyylf3TCK7Wwtl28bnhjXIpwpDyth0Xks5q2ZtUgaJpZM4KdI5v
.

@stofakiller
Copy link

Hi

I cant get it to see any devices or gateway... What firmware version are you on? Im on 1.3.0_124.0140

Regards
Jan

@liangli2718
Copy link

May I ask for some suggestion about the Xiaomi Wifi smart plug? Which plugin should I use to make it available in homekit?

@superkam
Copy link

@intelliarm Use zigbee plugin, and add it into the gateway.

@liangli2718
Copy link

@superkam sorry, but I was asking about the WIFI version of the smart plug, not the zigbee version. The wifi version can work without the xiaomi gateway. Any idea how I can make the wifi smart plug into the homekit app?

@astrojetson8
Copy link

@intelliarm did you find anything? i would like to do that as well.

@liangli2718
Copy link

liangli2718 commented Mar 2, 2017

@astrojetson8 I did some research on that, here are some findings.

Despite the fact that the wifi version of the smart plug looks the same as the zigbee version. They are designed by two different companies. zigbee version by Lumi or aqara, wifi version by Chuangmi. So I don't expect this aqara plugin will support the wifi version in the future.

The other finding is that Xiaomi Router(only HD version) actually supports adding the wifi version plug to homekit by installing a "plugin" to the router itself. In this case, the Xiaomi Router acts as the homekit bridge (running hap-nodejs, like what we're doing with Raspberry Pi).
This page shows how to make Xiaomi Router be the bridge: http://bbs.xiaomi.cn/t-13154902
(sorry, but only in Chinese)

On that page, I downloaded the plugin (.mpk format, https://pan.baidu.com/s/1i5hpoLv), then tried with 7-zip to unpack it with luck. There you may find the plugin is actually a package including hap-nodejs, configuration files for xiaomi devices and some cryptography libraries.

I was trying to port that Xiaomi Router plugin to a homebridge plugin, but seems the cryptography lib(written in c++) is compiled with node 0.9.x (really old version), and some of the nodejs APIs have changed a lot in newer versions (and homebridge indeed requires newer version of nodejs to run properly). So I end up in rewriting part of the crypto lib using the new nodejs API and could not finish it in my limited spare time yet.

Hope the above may help you if you want to dig into it. Maybe buying the zigbee version is a lot easier than doing all that above... \o-o/

or maybe we should open a new issue specifically for this...

@astrojetson8
Copy link

@intelliarm thanks for the very detailed update.
i have 6 of wifi version of xiaomi plugs. i don't have home gateway or xiaomi router.

hopefully, someone else can write a new plugin in near future. given that it's almost half price compared to zigbee version, i would have thought it would be lot popular.

maybe we could request this as a future feature?

thanks again for getting back to me!!

@astrojetson8
Copy link

@intelliarm
check this out:
https://github.com/Bluebie/homebridge-miio/

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

6 participants