derek-miller / homebridge-genie-aladdin-connect

Homebridge plugin to integrate Genie Aladdin Connect enabled garage door openers.
https://www.npmjs.com/package/homebridge-genie-aladdin-connect
Apache License 2.0
30 stars 4 forks source link

Include/exclude lists #46

Closed nsayer closed 6 months ago

nsayer commented 7 months ago

Is your feature request related to a problem? Please describe: Aladdin Connect doesn't have any equivalent to HomeKit's multiple home feature. If you have multiple openers in different places, and therefore have multiple HomeBridge instances, then it would be good to be able to have this plug-in ignore the doors that are in a different place.

Describe the solution you'd like: I'd like to have a configuration dictionary entry called "ignore" that maps to a list of door names that this plugin instance will, well, ignore.

Describe alternatives you've considered: The only alternative to this is setting up multiple Aladdin Connect accounts, but then you'd need to sign in and out of them in the actual Aladdin Connect app, which would be tremendously annoying.

nsayer commented 6 months ago

I've opened a PR with a patch for this.

derek-miller commented 6 months ago

Sorry, for the delay, I will get this resolved this week. I took a peek at the PR and ideally we could ignore the doors by id in the event that doors have the same name, alternatively, the include/exclude is by site name (assuming thats in the data retuned) as those are unlikely to be duplicate.

nsayer commented 6 months ago

Does Aladdin Connect have the notion of “sites”? I don’t see anything like that in the app, but if it is a thing then yeah.

What I have been doing is uniquely naming the doors in AC and then renaming them to just “Garage Door” in HomeKit after excluding the ones that are in the “wrong” house.

derek-miller commented 6 months ago

v4.1.0 has a ignoreDevices fields where you can ignore by id.

nsayer commented 6 months ago

Excellent! How does one get the ID for a particular door?

Is it, perchance, the "serial number" reported in HK?

derek-miller commented 6 months ago

It is, but instead of <mac>:index it is <mac>_<index>. However, the id is printed in the logs during startup as explained by the property description in the config UI. In my next update I will change the serial number property to be the actual id used by this ignore list.

nsayer commented 6 months ago

Great! I can confirm it works!