getDevAlarmList

Requires:
@ray-js/ray≥1.5.2

Method signature
getDevAlarmList(devId: string)

Description

Query the alarm list by device ID

Parameters

ParameterTypeRequiredDescription
devIdstringYesDevice ID

Return Value

Type: Promise<AlarmList[]>
Alarm rule list, including alarm ID, name, enabled status, binding info, etc.

Referenced Types

interfaceAlarmList
PropertyTypeDescription
auditStatusnumberReview status
boundForPanelbooleanWhether bound to a scene panel
boundForWiFiPanelbooleanWhether bound to a WIFI scene panel
enabledbooleanWhether enabled
Multilingual data payload
idstringRule ID
iotAutoAlarmbooleanWhether this is an IoT automatic alert
isLogicRulebooleanWhether this is a logical rule
localLinkagebooleanWhether this is local linkage
namestringRule name
newLocalScenebooleanWhether this is APP-controlled local linkage
stickyOnTopbooleanWhether the scene is displayed on the home page

Examples

Basic usage

import { getDevAlarmList } from '@ray-js/ray';

getDevAlarmList('vdevo169477319679442').then((res) => {
  console.log('Alarm list:', res);
}).catch((error) => {
  console.error(error);
});