SmartAlarmAbility.isSupportAlarm()

Requires:
@ray-js/panel-sdk≥1.8.0

Description

Check whether the device supports alert rules

Parameters

None

Return Value

Type: Promise<boolean>
Whether cloud alert push is supported. Some devices require the gateway to be online to use alert features

Examples

Example

const supported = await sdm.alarm.isSupportAlarm();
if (supported) {
  console.log('This device supports alarms');
}