State trigger executes an action when entity's state changes to the one of the states defined in the
State trigger model
||The type of an action that would be performed when the object's state changes. See the Action Types section for more information.|
||The action's settings. Specific to the type of action. See the Action Types section for more information.|
||An array of IDs of states that would trigger a specified action.|
|periodicity||Object||The periodicity with which to repeat the set action.|
|periodicity.value||String||The amount of time before between repeats.|
|periodicity.unit||String||Unit of time. Possible values:
|duration||Integer||The amount of time (in milliseconds), during which an object stays in the specified condition to execute the set action.|
Execute an operation
Execute a specified operation on state change.
Payload: Contains the ID of the operation that would be performed on the state change.
Send an e-mail
Send an e-mail to specified recipients. The message is constructed from a specific Notification Template.
Payload: Contains the recipients of the e-mail.
Send an SMS
Send SMS to a specified recipient. The message is constructed from a specific Notification Template.
Payload: Contains the recipient of the SMS.
Make Voice Call
Perform a voice call to a specified recipient.
Payload: Contains the phone number to be dialed.
Execute a script
Execute a script. You can only execute scripts in the filesystem.
Payload: Contains the information about the script — its path and a list of arguments.
Send a Telegram message
Send a Telegram message via a specified bot in a specified chat. The message is constructed from a specific Notification Template.
Payload: Contains the ID of the bot that would send the message and the ID of the chat to send the message to.
Show a popup message
Show a notification and play a sound in the web interface to select users.
Payload: Contains the name of the sound that will play and a list of users who receive the notification.