Hubitat® Safety Monitor (HSM) uses Hubitat Location Events to communicate with other apps. It reports its state using an event named hsmStatus
, and custom monitoring rule arming/disarming with hsmRules
. It reports alert events with an event named hsmAlert
. Apps can set the arm/disarm state of HSM with an event named hsmSetArm
.
Intrusion alerts for Away are armed
Intrusion Away arming pending exit delay. Note: For "armingAway", the number of seconds for exit delay is in the event data map as seconds
.
Intrusion alerts for Home are armed
Intrusion Home arming pending exit delay
Intrusion alerts for Night are armed
Intrusion Night arming pending exit delay
Intrusion alerts are disarmed
Intrusion, smoke, water and custom alerts are disarmed
descriptionText
- Name of HSM Monitoring Rule armed
descriptionText
- Name of HSM Monitoring Rule disarmed
Intrusion Away alert
Intrusion Home alert
Intrusion Night alert
Smoke alert
Water alert
descriptionText
- Name of HSM Monitoring Rule alert
Alerts cancelled
Failed to arm due to open contact
Arm intrusion alerts for Away
Arm intrusion alerts for Home
Arm intrusion alerts for Night
Disarm intrusion alerts
Disarm all alerts, including HSM Monitoring Rules
Arm alerts for smoke, water and all HSM Monitoring Rules
Stop all in progress alerts
subscribe (location, "hsmStatus", statusHandler)
subscribe (location, "hsmAlert", alertHandler)
sendLocationEvent (name: "hsmSetArm", value: “armAway”)
def alertHandler(evt) {
log.info "HSM Alert: $evt.value" + (evt.value == "rule" ? ", $evt.descriptionText" : "") // only has descriptionText for rule alert
}