alarm.change event

The alarm.change event is triggered when an alarm changes state.

Form

Parameters

Name Type Required Description
Thing key String This trigger can be limited to a specific thing identified by it's key. Leave blank to not limit this trigger to a specific thing.
Thing tags String This trigger can be limited to things identified by tag. Leave blank to not limit this trigger by tags. When multiple tags are specified in the trigger event, the thing must have at least one tag in common for the trigger to execute.
Alarm key String This trigger can be limited to changes to specific alarm identified by key. Leave blank to not limit this trigger by alarm key.
Alarm state(s) String This trigger can be limited to a specific alarm state(s) identified by a comma separated list. Leave blank to not limit this trigger to specific alarm state(s).
Time in condition (seconds) Integer This trigger can be limited to only execute if the alarm was in the specified condition for at least the specified number of seconds (TIC: time in condition). If there are alarm publishes during the TIC that do not change the alarm state (publishes of the same value), the trigger will execute at the end of this period. If there are alarm publishes that change the alarm state during the TIC, the trigger execution is cancelled. If this trigger should execute immediately, leave this field empty.

Event variables

Name Type Description
$(event.alarm.corrId) String The correlation ID of the alarm of the thing that initiated this trigger.
$(event.alarm.key) String The key of the alarm of the thing that initiated this trigger.
$(event.alarm.msg) String The message of the alarm of the thing that initiated this trigger.
$(event.alarm.name) String The name of the alarm of the thing that initiated this trigger.
$(event.alarm.state) Integer The state of the alarm of the thing that initiated this trigger.
$(event.alarm.string) String The string of the state of the alarm of the thing that initiated this trigger.
$(event.alarm.ts) String The timestamp of the alarm of the thing that initiated this trigger.
$(event.location.heading) Float The heading of the thing that initiated this trigger.
$(event.location.lat) Float The latitude of the thing that initiated this trigger.
$(event.location.lng) Float The longitude of the thing that initiated this trigger.
$(event.location.speed) Integer The speed of the thing that initiated this trigger.
$(event.thing.key) String The key of the thing that initiated this trigger.
$(event.thing.name) String The name of the thing that initiated this trigger.
$(event.thing.type) String The name of the thing definition of the thing that initiated this trigger.