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
is it possible to disable gateway discovery and minitoring? #19
Comments
I don't think there should be any conflict since 0.1.12 of You can probably filter out devices in Does removing the |
From my experience, only one developer API connection can be established at given moment. Probably both pieces of software conflict since they both use developer connection |
@aholstenson thx for response. my suspicion cames from debug log. when i turn on debug, i found that miio library connect to gateway every five minutes. debug log is as followed: about message repeated every about five minutes. i comment out some line in file models.js and the device didn't go off: /usr/local/lib/node_modules/homebridge-miio/node_modules/miio/lib/models.js //const Gateway = require('./devices/gateway'); after one night, the sensor and the siwtch remains. |
Thanks for debug log! There are two issues here I think:
|
Thx for response. after two nights, the devices didn't disappear from home app. maybe the problem is as @Gromina said that only one developer API connection can be established at given moment, and at a given point homebridge-aqara thinks that the devices is offline. since miio library supports zigbee devices, it'll be great that if @Bluebie's homebridge-miio can support zigbee devices, and one plugin will cover all xiaomi devices. |
Good to hear! I'm currently looking at an alternative way to get the devices from the gateway so that I can avoid using most of the developer API. For now I've found a call that will list the devices, but some more work is needed to figure out how to map those devices to proper implementations. Hoping to have something for testing soon though. |
since i have found the solution for the problem, i'll close the issue. |
What's your solution? I'm wondering. I've been same problem. |
@sankooki I think @fxdpz removed a few lines from If you are still having issues you should probably open an issue in the homebridge-miio repository so that it can be updated to avoid connecting to the gateway. |
I'm opening a new issue to track a new way to implement support for the Smart Home Gateway that should solve this issue in time. Please have a look at and follow #26 if you are interested in helping with that. |
@sankooki , what i did is as @aholstenson said. |
@aholstenson @fxdpz Thanks. |
i am using homebridge-aqara to control ctrl_neutral1 and get sensor data from temperature, humidity and motion status, and using homebridge-miio to control chuangmi.plug.m1 and zimi.powerstrip.v2. i found a strange thing, at night my ctrl_neutral1 switch and motion sensor will disappear from home app, and if motion sensor is triggered or trun on ctrl_neutral1 switch, ctrl_neutral1 and motion sensor will come back to home app, but it will revert to default name with some hex digit and default room.
i turn on debug and found no error. is it possible that miio library conflicts with homebridge-aqara plugin?
is it possible to disable gateway discovery and minitoring, so i can do a test?
PS: homebridge-miio plugin version is 0.2.1 and miio library version is 0.7.0.
The text was updated successfully, but these errors were encountered: