---
name: "SmartAlarmAbility.isSupportAlarm"
mode: "api"
versionRequirements:
  - { name: "@ray-js/panel-sdk", version: "1.8.0" }
title: "isSupportAlarm"
---

## SmartAlarmAbility.isSupportAlarm

> [VERSION] @ray-js/panel-sdk >= 1.8.0

> 💡 Supports single device only; groups are not supported.

### 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

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