My recommendation is to use CoRe the community rule engine. SHM monitoring and routines are not always reliable in ST. That is how I control all of my cameras on/off, motion and photos.
https://community.smartthings.com/t/release-candidate-core-communitys-own-rule-engine/57972?u=lmosenko