Event handler for Skybell's motion detector not working


(John S) #1

I’m trying to write a Smart App that will do something when triggered from a SkyBell HD’s motion sensor, but the event handler never gets called. This code works for other motion sensors. Anyone have advice? Below is subset of code.

preferences {
section(“Turn on when motion detected:”) {
input “themotion”, “capability.motionSensor”, required: true, title: “Where?”
}
}

def installed() {
initialize()
}

def updated() {
unsubscribe()
initialize()
}
def initialize() {
subscribe(themotion, “motion.active”, motionDetectedHandler)
}

def motionDetectedHandler(evt) {
// Never called ??
}


(Tony Fleisher) #2
  1. Verify that the event list for the device is showing changes on the motion attribute.
  2. Check live logging when motion is detected and see if your handler has any errors.

(John S) #3

I don’t see any motion events from the Skybell in the IDE at My Locations + Home > Events or My Devices + Skybell > Events. The only events I see from the skybell is that it takes an image every 5 mins regardless of what’s happening.