The method hsmReceiveAlert() is called by the server hub to pass along a Hubitat Safety Monitor alert (hsmSetArm) to hub running the Remote Client. If the HSM is not supported, this call should return an error.
Function |
hsmReceiveAlert |
Purpose |
Receives and forwards HSM alert events from the server hub. |
Parameters |
Name |
Type |
Description |
params |
Map |
(Optional) |
|
URL Format |
/hsm/alert/:text |
HTTP Method |
GET - Incoming |
HTTP Parameters |
Name |
Type |
Description |
text |
String |
Alert message text including name of the originating hub. |
|
Return JSON |
Name |
Type |
Return Values |
status |
String |
"success" to indicate alert was received. Errors are not handled by the server as this is a broadcast alert. |
|