Device handler not executing switch.on/off command during runIn scheduler

Scheduled methods can send commands to the device so there’s no need to send both commands together with a delay between them.

The on method shown below uses runIn to call the autoOff method and that method uses sendHubCommand to send the device the commands returned by the off method.

def on() {
	runIn(5, autoOff)
	[
		zwave.basicV1.basicSet(value: 0xFF).format(),
		zwave.basicV1.basicGet().format()
	]
}

void autoOff() {
	def cmds = []
	off()?.each {
		cmds << new physicalgraph.device.HubAction(it)
	}
	if (cmds) {
		sendHubCommand(cmds)
	}
}

def off() {
	[
		zwave.basicV1.basicSet(value: 0x00).format(),
		zwave.basicV1.basicGet().format()
	]
}