Using web server scheduling in Home assistant
Hi, I want to update the schedules of multiple cameras with one url. However I can only get this to work with the first camera. How do I add multiple cameras. I know I can apply the same schedule to mall cameras using '-1' but I want different settings for internal and external cameras
http://test.viewcam.me:8000/setSchedule?cameraNum=3&schedule=1&mode=MA&cameraNum=4&schedule=0&mode=MA&cameraNum=1&schedule=0&mode=MA&auth=Hash hash hash
Can anyone advise?
Comments
-
There are two ways to do what you want. The first way is to use the setSchedule request with a cameraNum that equals 1000+n where n is a group number (groups of cameras can be defined under Preferences > Groups). This is an undocumented feature that our iOS app uses.
The second way to do this (which is probably better), is to use schedule presets. You can define a schedule preset under Preferences > Scheduling, which sets schedules for any/all cameras you like. Then you invoke it with the request setPreset?id=123456
You can obtain group numbers and schedule preset IDs from the systemInfo XML document (see the SecuritySpy Web Server Specification page for info on this).
-
Hi Ben, thanks for the information - will experiment for the best option !
