Hey guys, sorry I haven’t chimed in - life has been busy to say the least.
First let me say, thank you to everybody that has tested my binding and reported that it’s working - I’m glad to see my efforts have helped others automate all their things!
When I first started this binding, the most difficult thing was figuring out the best way to map the UniFi model to the new OH2 model. If you read the Bridges section of of the Eclipse SmartHome documentation, I think you’ll find that the Controller to Bridge mapping is the correct implementation moving forward. The only Bridge in this equation should be the UniFi Controller - any additional “pseudo-Bridge” logic should be outside the binding.
As far as the Thing mappings, there are definitely use cases to extend the existing Thing definition with additional properties, as well as add other UniFi devices like UAPs, USGs, and USWs. However, as I was mainly interested in detecting presence of me and my wife - not to mention it simplified the exercise of writing an OH2 binding from scratch - I focused purely on detecting “wireless clients” with simple “home” vs “away” logic.
I’d be happy to try and extend this to include other client properties and add an additional Thing definition for a UAP, but beyond that, I do not have any USGs or USWs to develop with (though I’d be more than happy to accept donations)
I’m going to read through all the comments again and poke at the controller API and make a list of interesting properties that should be easy enough to implement given their existence in the UniFi API.
I’ll report back once I find some free time.
Disclaimer: I’m still rocking OH 1.8.1 at home (if it ain’t broke - don’t fix it … amarite?) and wrote this binding as an exercise to get familiar with OH2 concepts. I have every intention of migrating to OH2, but as we all know, real life takes priority and finding free time is like playing hide 'n seek with a ghost.
I don’t see any reason why this wouldn’t work. I never tested multiple controllers but give it a go and report back!