Device SupportGroup Not Support
useCustomAlarm()
Requires:
@ray-js/panel-sdk≥1.0.0
Description
Get the device’s custom alarm list and CRUD operations; supports single devices only, not groups
Parameters
None
Return Value
Type: CustomAlarmResult
Custom alarm data, loading state, and management methods
Referenced Types
type
CustomAlarmResult| Property | Type | Description |
|---|---|---|
| Custom alarm list for the device | ||
loading | boolean | Whether the device’s custom alarm list is loading |
| Query the device’s custom alarm list by device ID | ||
| Add or edit a custom alarm rule | ||
| Enable or disable custom alarm rules | ||
| Delete custom alarm rules |
type
Operatortype
DpValueDatapoint value type, which can be boolean, number, or string.Valid Values
Operator
| Value | Description | Since |
|---|---|---|
== | - | - |
< | - | - |
> | - | - |
<= | - | - |
>= | - | - |