Problems With SHM/Routines

i have blink cameras. Rboy create smartapp for them. i am turning on at night and turning off at morning.