Triggers

Triggers publish events when their configured conditions are met. StSupervisor sends an MQTT trigger message containing the matching conditions.

All conditions within a trigger must be true (logical AND). An armed trigger fires once, then becomes unarmed. Reload triggers from the sensor administration controls to arm them again.

The example below responds to stream availability, telemetry thresholds, and a geographic area. Use the telemetry field names and units supported by your installed monitor.

triggers:
  - trigger: start
    armed: true
    conditions:
      state: online
  - trigger: start
    armed: true
    conditions:
      state: online
      telemetry:
        platformGroundSpeed:
          above: 100
        sensorTrueAltitude:
          above: 200
  - trigger: arrived
    armed: true
    conditions:
      telemetry:
        location:
          coordinates: [[[34.7373, 32.0686], [34.8616, 32.0686], [34.8616, 32.1238], [34.7373, 32.12387], [34.7373, 32.0686]]]
  - trigger: stop
    armed: true
    conditions:
      telemetry:
        platformGroundSpeed:
          below: 20

See Platform configuration for inline definitions and separate trigger files.