Hi,
I am just recently using Unifi Protect with two G5 Flex camera's around my house and now I want to extend this setup where I want to buy a Unifi G4 Protect doorbell. I do not mind to use the Unifi Protect app for controling or configuring the doorbell, but I do want to have a trigger in Domoticz when the doorbell is pushed. This for external lighting for example. Anyone familiar if it is possible to connect Unifi Protect using Domoticz?
At this moment I use a Shelly 1 in combination with a push button, that works OK but I want to change this..
Unifi Protect
Moderators: leecollings, remb0
- heggink
- Posts: 972
- Joined: Tuesday 08 September 2015 21:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12451
- Location: NL
- Contact:
Re: Unifi Protect
Hey CronoS,
It takes a little work but you can make it happen. You will need: Homebridge, a unifi cloud key (ucpk) where you connect your unifi defices. Since you have camera's, I assume you have one, a mosquitto broker and node-red.
Here's what I did:
Once that's up and running, you can build a simple node red flow to subscribe to the topic you want to monitor. In my case, I track motion as well as doorbell presses. WIthin node-red, there are nodes that subscribe to topics, functions that can check messages and otehrs that can call domotcz to activate a switch (I sens messages through mqtt to domoticz to activate a switch rather than calling a URL but both work equally well).
Let me know if you need any help setting it up. Not sure if there are more efficient ways but this at least works for me and works really well.
It takes a little work but you can make it happen. You will need: Homebridge, a unifi cloud key (ucpk) where you connect your unifi defices. Since you have camera's, I assume you have one, a mosquitto broker and node-red.
Here's what I did:
- install node-red (I run it in a container on my NAS)
- install mosquitto (same, container)
- install homebridge (same, container)
- install the Homebridge UniFi Protect plugin and configure it to connect to your uckp using a LOCAL ADMIN (follow instructions to bypass 2FA) as well as an MQTT broker
Once that's up and running, you can build a simple node red flow to subscribe to the topic you want to monitor. In my case, I track motion as well as doorbell presses. WIthin node-red, there are nodes that subscribe to topics, functions that can check messages and otehrs that can call domotcz to activate a switch (I sens messages through mqtt to domoticz to activate a switch rather than calling a URL but both work equally well).
Let me know if you need any help setting it up. Not sure if there are more efficient ways but this at least works for me and works really well.
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
Who is online
Users browsing this forum: No registered users and 1 guest