Scheduled polling in a device handler

thank you, will give that a shot.

Thanks for providing this.

I have something very similar too:

def poll() {
	log.debug "Executing 'poll'"
	checkStatus()	
}

def installed() {
	log.debug "Executing 'installed'"
	updated();
}

def updated() {
	log.debug "Executing 'updated'"
    unschedule()
    runEvery15Minutes(refresh)
    runIn(2, refresh)
}

def refresh() {
	log.debug "Executing 'refresh'"
	checkStatus()

}

The key part seems to be to remove+re-add your virtual devices in order to trigger the schedule, after you publish the device.

And as mentioned, past that, you don’t need a smart app or any other pollers. It just works!