getSceneList
Requires:
@ray-js/ray≥1.4.61
Method signature
getSceneList(params: )Description
Query the Tap-to-Run scenes supported by the device, including invalid and automation rules
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Yes | Query parameters |
Return Value
Type: Promise<ISceneListItem[]>
Automation rule list
Referenced Types
interface
ISceneListItem| Property | Type | Description |
|---|---|---|
actions | any[] | Execution action |
attribute | number | Attributes |
auditStatus | number | Review status |
background | string | Background image URL |
boundForPanel | boolean | Panel binding |
boundForWiFiPanel | boolean | WiFi panel binding |
code | string | Rule code |
commonField | string | Common fields |
coverIcon | string | Icon |
disableTime | number | Disable time |
displayColor | string | Background color |
enabled | true | Whether the rule is enabled |
devId | string | Device ID |
name | string | Automation name |
id | string | Execution rule ID |