Turn on camera via API for specified time?

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
romany
Posts: 14
Joined: Fri Dec 23, 2016 3:28 am

Turn on camera via API for specified time?

Post by romany »

I'm running hassio - and under certain conditions I want to turn on a ZM camera for a specified time. I know how to turn it on via zm/api/monitors/alarm/id:1/command:on.json (and off via the off.json) - but it would be convenient just have the camera turn off after some period of time. I can have hassio issue the "on.json" - and later issue a "off.json" - but if I could skip that 2nd part it just one less thing to go wrong. Alternatively is there some way (either global or individual camera) to specify a limit to have long the camera can stay in "alarm"? I'm trying to avoid a potential issue where a camera is manually turned on and for whatever reason does not get a command to turn off...

Thanks!
Post Reply