SmartAlarmAbility.setBuiltInAlarmStatus(options: SetBuiltInAlarmStatusParams)
Requires:
@ray-js/panel-sdk≥1.8.0
Description
Enable or disable the device’s built-in alert rules
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Yes | Operation parameters |
Return Value
Type: Promise<SetBuiltInAlarmStatusResult>
Tuple [whether the operation succeeded, updated built-in alert list]
Referenced Types
type
SetBuiltInAlarmStatusResulttype
BuiltInAlarmListtype
BuiltInAlarmRule| Property | Type | Description |
|---|---|---|
auditStatus | number | Review status |
boundForPanel | boolean | Whether it is bound to a scene panel |
boundForWiFiPanel | boolean | Whether it is bound to a WiFi scene panel |
enabled | boolean | Whether enabled |
| Multilingual data body | ||
id | string | Rule ID |
localLinkage | boolean | Whether it is a local linkage |
name | string | Rule name |
newLocalScene | boolean | Whether it is an App-controlled local linkage |
stickyOnTop | boolean | Whether to display the scene on the home page |
type
BuiltInAlarmI18nData| Property | Type | Description |
|---|---|---|
| Multilingual name | ||
| Multilingual content |
type
AlarmLocaleText| Property | Type | Description |
|---|---|---|
en | string | English text |
zh | string | Chinese text |