Page 1 of 1

Turn on camera via API for specified time?

Posted: Tue Feb 09, 2021 2:25 am
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!