I have 2 foscam cameras inside the house that use RBoy’s DH. These two point towards two different back doors as their preset1 position.
What I’m trying to do is have them move to the preset2 position when the front door opens (as preset2 can view the front door on both cams), start snapping photos at 1 second intervals, and then move back to preset1 once the front door closes.
What I have below only works intermittently. Most notably, it will not register the door sensor changing to close. I’d also like to implement some error handling in situations (which are many) where the front door doesn’t stay open for more than a split second.
contact 4 is the front door, Motion 1 is one of the cameras. the other is offline atm.