Skip to end of metadata
Go to start of metadata

A new trigger for a "thing" can be created by clicking "New" in the "Triggers" section of the thing. A dialog box opens with the following settings

FieldRequiredDescriptionDialog
Namex

Trigger name.

  • Must be unique within a thing.
  • Can contain: 

    Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'Constraint - thing trigger name'.

  

 

 

Thingx

Name of thing which contains event to be handled by the trigger

EventxName of event in the thing which activates the trigger
Description Trigger description.

 

 

 

 




After a trigger has been created, it can be edited anytime by:

  1. Selecting the trigger in the "Triggers" section of the "thing"
  2. Clicking "Edit" in the details panel. A similar dialog box will open with the retained settings          

 

 

All triggers must have a script function provided for it, as explained in Trigger Script

Since triggers are activated from an event (or events), the script function is of the form:

or

 

 

 

  • No labels