seaside1 / unifiprotect

openHAB UniFi Protect Addon
Eclipse Public License 2.0
21 stars 6 forks source link

Feature request: Privacy mode zone enabling/disabling #13

Closed seime closed 10 months ago

seime commented 1 year ago

Since the Unifi cameras cannot be switched off, a workaround is to add a camera privacy zone which then is enabled/disabled on demand.

See details here; https://community.ui.com/questions/Temporarily-disable-camera/80a3b563-283f-48c5-852d-6e61a08a7bc0#answer/0bc4a45b-2411-4f5d-8164-f3250384b084

seaside1 commented 1 year ago

Good suggestion. Should be possible to add.

Other possible workarounds:

seime commented 1 year ago

I've implemented disabling of recording already, but the WAF was still well below freezing 🧊 . And most cameras are connected via a non-unifi switch which I cannot manage :(

seaside1 commented 1 year ago

What switch are you using? I'm not using a UniFi swith either. I have Juniper Ex3300, which I can login to via cli and shutdown poe. I have a quite simple bash script I invoke from openHAB that can toggle PoE on / off.

seime commented 1 year ago

It is a Netgear GS108PEv3, but it does not support SNMP nor REST. My other options seems to be either to attempt wrapping https://github.com/TheGreyDiamond/PyNetgearSwitchController (did not work) or write my own webscraper in JRule. Which feels like a stretch ;)

seaside1 commented 10 months ago

@seime I have implemented this now see: https://github.com/seaside1/unifiprotect/commit/89e9d3542321b373e5b99cd5dc565bc0c8ebbbca

You have to compile the jar yourself if you want to test. Will build the next version as soon as I have added support for turning chime off on doorbell.

seime commented 9 months ago

Thanks @seaside1 , confirmed working well :)

seaside1 commented 9 months ago

Great! Thanks for testing it out.