Paiberfunk
Getting the hang of it
An example for Web 4 cameras for switching day/night modes that is run by Hubitat. Also can be checked by using a web browser. Using FireFox on this end for checking. If it runs, the result will display an OK. If not, an error message.
Sunrise
Code:http://admin:password@192.168.55.30/cgi-bin/configManager.cgi?action=setConfig&VideoInOptions.NightOptions.SwitchMode=0
Sunset
Code:http://admin:password@192.168.55.30/cgi-bin/configManager.cgi?action=setConfig&VideoInOptions.NightOptions.SwitchMode=3
These are then used in Hubitat to change modes. Note: This will NOT work for Web 5 cameras.
In Hubitat..
Rules Machine > Create New Action > HTTP Request > Send HTTP GET > Enter URL to send request to > Paste in URL
Then check the logs to see if it ran or generated any errors. Plus check the camera to see if the action did occur.
Both BI and Hubitat must be on the same network. In my case the Hub is on 192.168.55.xxx so that it can see the cameras on the BI sub net.
since I have a web 5 camera … what does one do instead ? Did the API change ?