Device SupportGroup Not Support
useBuiltInAlarm()
Requires:
@ray-js/panel-sdk≥1.8.0
Description
Retrieve the built-in alarm list and toggle operations for a device; supports single devices only, groups are not supported.
Parameters
None
Return Value
Type: BuiltInAlarmResult
Built-in alarm data, loading state, and query/set methods
Referenced Types
type
BuiltInAlarmResult| Property | Type | Description |
|---|---|---|
| Built-in alarm list for the device | ||
loading | boolean | Whether the device's built-in alarm list is currently loading |
| Query the built-in alarm list for a device by device ID | ||
| Set the built-in alarm list for the device |