For some time now I have been gradually working on integrating my Unifi environment into my Home Hubitat environment. I am now please to release to everyone my "Unifi Integration Manager" app to help with that purpose.
This app is designed to work with @snell's Driver packs for Unifi Protect, Unifi Network, and Unifi Connect devices. The app will install the main parent devices and initialize it with a configuration of your choosing. The driver packs can still function on there own as well. So this tool just augments your management process if you choose to.
This app will also provide improved support for inbound and outbound Webhook connectivity between Unifi Protect's Alarm manager for advanced functions.
How do you get it
All of the integrations are available through HPM. Simply open up HPM search for Unifi and install all of the components you want to use. The @snell's Unifi driver packs and the Unifi Integration Manager are currently all grouped together as shown below.
If you don't have all of the Unifi apps in your Unifi environment you don't have to install them.
Once all of the driver packs you need are installed from HPM on your hub, you can install the Unifi Integration Manager app in the Hubitat UI.
Upon starting the install of the application you will be greeted with a page that looks like this.
By default all integrations are set to not enabled. Select the integrations you want to activate and change to Managed, or External. As shown in the top of the above screen shot a Managed selection will allow full control from the app, and would be preferred for a new install. Once that selection is made you will be presented with new options that allow you to specify additional setup parms like the type of Unifi controller use, User I'd, Password, Refresh Rate, and if you want child devices for your Unifi gear to be created, ect.
Once all of the configuration for the integration is done you can then setup your inbound and outbound API Webhook configurations. Scroll down a little bit passed the integration configuration options and you should be able to see some information like below.
To enable configuration for outbound Webhook calls from Hubitat to Unifi obtain the Token from your Unifi Environment and enter it on the available line for your token. Once entered pres "tab" on your keyboard and you will now have a option to configured Outbound Webhook Child apps.
Below that you also have the ability to click a button and enable Inbound webhooks from Unifi Alarm Manager to Hubitat.
Once done with the settings you want to configured click on Done. At this time the Integration app will create devices based on the integrations you enabled and pass configuration the needed configuration options down to them. This will also formalize your setup of the API's in your environment as well.
What is left to do with this app.
- I may be adding additional configuration values to the integration app for each integration. This may lead me to break each Integration onto its own configuration page instead of everything being on one page.
- The child app for outbound webhooks to Alarm Manager has limited triggers. Currently it can only trigger on Motion, Contact sensor, and Temp. If there are additional triggers needed please just let me know and I will get them added.
This is intended to be a overlay for management of @snell's integrations and does not change any of the functionality he has in his drivers. The additional functionality provided is around Webhooks
Enjoy everyone and let me know what you think or if you see anything that is needed.