-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
fix: skip unsupported devices #77
fix: skip unsupported devices #77
Conversation
…ing if device is supported accessory
I actually started looking into this yesterday, trying to decide if I wanted to filter here or in the api package. I'll look at some options |
Hi @cps5155, Can you test the changes I made to your PR and let me know if its working? I changed it to use the Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @plasticrake,
Changes work well and Homebridge can boot. Two comments, if a may.
-
Looks
addAccessory
method is executed every ~10s (looks like because ofthis.client.on('device-online')
executes), and thus it logs to the error log multiple times. Over the course of days while Homebridge is running, this might become unnecessary noise in the error log. Perhaps change it to Debug if it's executingdevice-online
and keep it as error if it's executing indevice-new
? -
When logging to error it may be beneficial to user if the device IP which is missing the deviceId is also logged in the error. Also something to correlate this error with why you're not seeing your new accessory may be helpful, too.
tl;dr - Yes, the changes work OK and Homebridge can boot
Looks good -- no error message is seen, and the unsupported device doesn't show up with the rest of TP-Link Accessories when it boots up. Previously below could be seen in
|
Fix for issue #68 - add ability to ignore unsupported devices. This doesn't add support for KC120 camera, but by ignoring an unsupported device it allows homebridge-tplink-smarthome (and subsequently the rest of homebridge) to boot/run.