Device Linkage

Overview

When specific conditions are met, the platform triggers collaborative response of multiple devices to implement device linkage and intelligent control. For example, when the battery level of a water meter drops to 20% or less, a low battery alarm is reported so that the battery can be replaced before it goes dead.

To further explore device linkage, see Triggering an Alarm and Sending an Email or SMS Notification.

Procedure

  1. Log in to the IoTDA console.
  2. In the navigation pane, choose Rules > Device Linkage, and click Create Rule in the upper right corner.
  3. Create a device linkage rule based on the table below.

    Parameter

    Description

    Best Practice

    Rule Name

    Specify the name of a rule to create.

    Activate Now

    Specify whether the rule is triggered immediately if the last data reported before the rule creation meets the condition.
    • Selected: After a rule is created, the rule takes effect immediately. The platform checks the last reported data against the rule.

    • Unselected: After a rule is created, the platform checks only subsequently reported data against the rule.

    When Effective

    • Always effective: There is no time limit. The platform always checks whether the conditions are met.
    • Specified time: You can select a time segment during which the platform checks whether the conditions are met.

    Description

    Describe the rule.

    Set Trigger Conditions

    You can set whether all conditions or any of the conditions need to meet.

    • Triggered upon matching device: Set conditions for devices that use the same product model.
      • Select Product: Select a specific product.
      • Select service: Select a service type.
      • Select property: Select a property in the data reported.
        NOTE:
        • If the data type of a property is int or decimal, you can select multiple operators.
        • If the data type of a property is string, date time, or jsonObject, you can only select the equal sign (=) as the operator.
      • Trigger Suppression: Specify whether triggering suppression is required. You are advised to select Yes.
      • Data Validity Period (s): Specify the data validity period. For example, if Data Validity Period is set to 30 minutes, a device generates data at 19:00, and the platform receives the data at 20:00, the action is not triggered even if the conditions are met.
    • Triggered upon specified device: Set conditions for a specified device. Select the device, service, and property as the conditions. For details, see the parameters described under Triggered upon matching device.
    • Triggered periodically: Set the time at which the rule is triggered. It is usually used for periodic triggering conditions, such as turning off street lamps at 07:00 every day.
      NOTE:

      If Triggered periodically is selected, Send notifications, Report alarms, and Clear alarms cannot be selected for Actions.

      • Start Time: start time for triggering the rule.
      • Repeat: number of times that the rule can be triggered. The value ranges from 1 to 1440.
      • Interval: interval for triggering the rule after the start time. The value ranges from 1 to 1440, in units of minutes.

    Set Actions

    Click Add Action to set the action to execute after the rule is triggered.

    • Deliver commands: Select the device, service, and command to be delivered in sequence, and set the command delivery parameters.
    • Send notifications: Select the region where the SMN service is located. If the platform has not been granted with the permissions to access SMN, perform the authorization as prompted. Click the corresponding link to go to the SMN console and set the topic.
    • Report alarms: Define the alarm severity, name, and content. When the configured condition is met, a device alarm is generated on the Application Operations Management (AOM) console.
    • Clear alarms: Define the alarm severity, name, and content. If the conditions are met, the alarm reported by the device to the platform is cleared.

  4. Click Create in the lower right corner. Newly created rules are in the activated state by default. You can disable a rule in the Status column of the rule list.