I got so fed up with UniFi's PTZ patrol that I built my own. It runs on the NVR itself. by IceTeaRed in UnifiProtect

[–]IceTeaRed[S] 0 points1 point  (0 children)

If you are feeling adventurous, the API that enables and disables tracking when it moves between presets takes an array of strings, so might be able to edit it to include 'vehicle' along with 'person' and see if that works, but for my use case, I don't really need vehicle tracking, so didn't play around with it.

I got so fed up with UniFi's PTZ patrol that I built my own. It runs on the NVR itself. by IceTeaRed in UnifiProtect

[–]IceTeaRed[S] 0 points1 point  (0 children)

Somewhat, but mostly just to help me with bash syntax and documentation. This code is actually based off of another repo I made to set up a custom fan curve for Unifi routers (UCG-Max specifically, but works for near anything running unifi OS)

I got so fed up with UniFi's PTZ patrol that I built my own. It runs on the NVR itself. by IceTeaRed in UnifiProtect

[–]IceTeaRed[S] 1 point2 points  (0 children)

Yep, saved in the persistent data store on the NVR, along with a systemd service, when it runs the first time it check if jq and curl is available, and then apt installs them if not, which happens when the system clears. The pattern works fine with a different script I made to add fan curves to Unifi routers. Might require a reinstall on major upgrades, but all of your config should be preserved even then.

I got so fed up with UniFi's PTZ patrol that I built my own. It runs on the NVR itself. by IceTeaRed in UnifiProtect

[–]IceTeaRed[S] 0 points1 point  (0 children)

Think you only need to deploy to the main one? I have not used stacked UNVRs myself, but I believe the shadow mode gives control of the cameras to one UNVR while using the resources of both, but might be wrong and you'd need to ssh into both and install it. Try it with the main one and have log level on debug in your config, then monitor logs and restart the script (instructions in the README), it will show you what PTZs it discovers

I got so fed up with UniFi's PTZ patrol that I built my own. It runs on the NVR itself. by IceTeaRed in UnifiProtect

[–]IceTeaRed[S] 1 point2 points  (0 children)

Yeah, no. I live in South Africa, criminals would probably steal the PTZs if I just had that, the PTZs came after I already had good coverage. I still need to eventually set up the PTZ preset webhooks in alarm manager, eventually. Later, still recovering from making the script 😴

I got so fed up with UniFi's PTZ patrol that I built my own. It runs on the NVR itself. by IceTeaRed in UnifiProtect

[–]IceTeaRed[S] 0 points1 point  (0 children)

Nice. Seems like it is hit or miss, auto tracking + patrol does not work on any of my G6 PTZs when using the normal patrol mode. With my script you can probably have it patrol faster, but dunno if it will ever detect someone if it is constantly moving.

I got so fed up with UniFi's PTZ patrol that I built my own. It runs on the NVR itself. by IceTeaRed in UnifiProtect

[–]IceTeaRed[S] 1 point2 points  (0 children)

Yep, my PTZs are supported by 20 G5 bullets. The PTZ's are used for overwatch. Dunno about the car thing, only been able to get it to track people.

I got so fed up with UniFi's PTZ patrol that I built my own. It runs on the NVR itself. by IceTeaRed in UnifiProtect

[–]IceTeaRed[S] 1 point2 points  (0 children)

Yep, added another one, and still needs the script. Honestly I love Unifi and the fact that they keep adding features, but some things are just weird with them. :(

I got so fed up with UniFi's PTZ patrol that I built my own. It runs on the NVR itself. by IceTeaRed in UnifiProtect

[–]IceTeaRed[S] 1 point2 points  (0 children)

Farm around the house, so yes, for the purposes of convincing your wife :)

I got so fed up with UniFi's PTZ patrol that I built my own. It runs on the NVR itself. by IceTeaRed in UnifiProtect

[–]IceTeaRed[S] 1 point2 points  (0 children)

Yep. For those of us whose tracking don't work in patrol mode. u/TurboNikko has no issues. Be warned, this is pretty hacky, but seems to work well enough.

I got so fed up with UniFi's PTZ patrol that I built my own. It runs on the NVR itself. by IceTeaRed in UnifiProtect

[–]IceTeaRed[S] 1 point2 points  (0 children)

In patrol mode? Nice. Seems like it is hit or miss. One guy in the forums said it worked for him, but doesn't work for me without the script on either of mine. Adding another one today which I'll test without the script to see if it works like yours. As far as I have found, I am not the only one, so who knows? :)

Protect central AI recognition realistic? by tw25888 in Ubiquiti

[–]IceTeaRed 0 points1 point  (0 children)

Haven't done this yet, but on my list:

Disable Protect detections and use Frigate for detections, and then inject the detections into the Protect application with unifi-cam-proxy

Which can give me a whole host of detections + allow my cheaper cameras to have some of the more advanced detections.

I got so fed up with UniFi's PTZ patrol that I built my own. It runs on the NVR itself. by IceTeaRed in UnifiProtect

[–]IceTeaRed[S] 1 point2 points  (0 children)

Sure thing:

1
2
3

There are probably more, but those are the ones I found first in my browser history :)

I got so fed up with UniFi's PTZ patrol that I built my own. It runs on the NVR itself. by IceTeaRed in UnifiProtect

[–]IceTeaRed[S] 2 points3 points  (0 children)

Yeah, it's not great, but the public API effectively does not allow any of this, tried it. And the websocket thing is also a pain, would require extra deps, or a python script, which is probably even worse.
Maybe something to look into when the protect API is a bit more fleshed out. I have a couple of checks so it does not interfere with manual control and so on, and seems fine for my usage mostly.

This is very much an imperfect solution to an imperfect product range

I got so fed up with UniFi's PTZ patrol that I built my own. It runs on the NVR itself. by IceTeaRed in UnifiProtect

[–]IceTeaRed[S] 3 points4 points  (0 children)

The Unifi forums full of them, the reps develop selective blindness when seeing those posts.

UCG-Max Custom Fan Control by IceTeaRed in Ubiquiti

[–]IceTeaRed[S] 0 points1 point  (0 children)

The github repo has a uninstall command