There is currently limited support for Unifi Video. We can get the video feed for the cameras, but that’s about it.
Since the Unifi Video server has support for alerting, it’s a good idea to let Unifi Video handle motion triggering and alerts.
Unfortunately the only protocol Unifi Video support for alerting is by email, and it does not seem like the developers are planning any further extension of this to IFTTT, MQTT etc.
There are not any public API, or stable API one can use to poll Unifi Video.
Link to product download and documentation.
My idea to be able to do a full integration is:
- Create a SMTP to MQTT server. SMTP2MQTT. Have not found this yet in python/java/other, is it possible that no-one has actually made this?) I could of course create this in Java, as that is my main development platform, but since Home Assistant is Python based, a Python implementation of this is probably better.
- Let SMTP2MQTT parse the Unifi Video messages and send them to registered MQTT channels.
- Hook up Home Assistant to these channels.