April 27, 2020

UniFi UVC G4 Pro camera infrared cycling on/off in garage - manual commands

Updated 2020-04-30: The camera was defective and replaced with an RMA

I figured out the commands to script the UniFi Protect camera infrared system on and off. The commands could be used to schedule infrared on and off instead of relying on the camera automatic system. I have a UVC G4 Pro that cycles infrared mode all night in the garage. I managed to stop the cycling by turning down the IR intensity and putting two layers of yellow post-it note on the light sensor but I didn't like that solution. I make no promises about the results of using these commands but I have found them useful.

reference config file: /var/etc/persistent/ubnt_isp.conf

Set night/day mode

  • ubnt_ipc_cli -T=ubnt_ispserver -m='{"functionName":"ChangeIspSettings", "irLedMode":"auto"}'
  • ubnt_ipc_cli -T=ubnt_ispserver -m='{"functionName":"ChangeIspSettings", "irLedMode":"manual"}'

IR LED intensity 0-255, 0 turns off LEDs

  • ubnt_ipc_cli -T=ubnt_ispserver -m='{"functionName":"ChangeIspSettings", "irLedLevel":100}'

If you try to use these commands in an ssh statement, the quoting is shown below.

  • "ubnt_ipc_cli -T=ubnt_ispserver -m='{\"functionName\":\"ChangeIspSettings\", \"irLedLevel\":100}' "
  • "ubnt_ipc_cli -T=ubnt_ispserver -m='{\"functionName\":\"ChangeIspSettings\", \"irLedMode\":\"auto\"}' "

Zoom command for information

  • Zoom Postion 0-100
  • ubnt_ipc_cli -T=ubnt_ispserver -m='{"functionName":"ChangeIspSettings", "zoomPosition":100}'

No comments:

Post a Comment