How to set Smart Home Monitor status from SmartApp

Arm state change should be:

subscribe(location, "alarmSystemStatus", alarmHandler)

def alarmHandler(evt) {
  log.debug "Alarm Handler value: ${evt.value}"
  log.debug "alarm state: ${location.currentState("alarmSystemStatus")?.value}"
}
4 Likes