Create a Smart Energy Missing Datapoint Alarm

The following sample shows how to create a smart energy missing data point alarm that fires when the devices do not report smart energy data.

In this example, the alarm template ID for the smart energy missing data point alarm is 12 (almtId=12). To find the almtId for an alarm type, send a GET ws/AlarmTemplate request to get a list of all available alarm templates.

Request

POST /ws/Alarm

Payload

<Alarm>
   <almtId>12</almtId>   <!-- Missing Smart Energy DataPoint alarm -->
   <almName>Missing Smart Energy DataPoint</almName>
   <almDescription>Fires when devices have not reported SmartEnergy data within the specified time</almDescription>
   <almScopeConfig>
      <ScopingOptions>
         <Scope name="Group" value="/CUS001_ABC/" />
      </ScopingOptions>
   </almScopeConfig>
   <almRuleConfig>
      <Rules>
         <FireRule>
            <Variable name="uploadTimeUnit" value="hours" />
            <Variable name="clusterType" value="*" />
            <Variable name="readingTimeUnit" value="4" />
            <Variable name="attributeId" value="4" />
            <Variable name="uploadInterval" value="1" />
            <Variable name="clusterId" value="*" />
            <Variable name="endpointId" value="*" />
            <Variable name="readingInterval" value="10" />
         </FireRule>
         <ResetRule />
      </Rules>
   </almRuleConfig>
</Alarm>