getSceneListV2
Requires:
@ray-js/ray≥1.5.15
Method signature
getSceneListV2(params: )Description
Query the home’s Tap-to-Run list, excluding invalid or automation rules
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
| Yes | Query parameters |
Return Value
Type: Promise<ISceneListItemV2[]>
List of one-tap execution linkage rules
Referenced Types
interface
ISceneListItemV2Tap-to-Run linkage rule data| Property | Type | Description |
|---|---|---|
| Execution action | ||
alarmIssue | boolean | Whether this is an alarm issue |
attribute | number | Attributes Perform bitwise operations using powers of 2 corresponding to the enum values |
auditStatus | number | Review status 0. Not reviewed 1. Approved 2. Rejected |
background | string | Background image URL |
boundForPanel | boolean | Panel binding |
boundForWiFiPanel | boolean | WiFi panel binding |
code | string | Rule code |
commonField | string | Common JSON field. For example, local automations store the gateway ID, gwId |
containDeviceDelete | boolean | Whether deleted devices are included |
coverIcon | string | Icon |
description | string | Rule description |
disableTime | number | Disable timestamp |
displayColor | string | Background color |
enabled | boolean | Whether the rule is enabled |
forceCloudTrigger | boolean | Whether to force cloud triggering |
id | string | Execution rule ID |
iotAutoAlarm | boolean | Whether this is an IoT automatic alarm |
isAlarmIssue | boolean | Whether this is an alarm issue |
isLogicRule | boolean | Whether this is a logical rule |
linkageType | number | Automation type |
localLinkage | boolean | Whether this is a local automation |
logicRule | boolean | Whether this is a logical rule |
matchType | number | Match type 1. Any condition: triggers when at least one condition is met (OR relationship). 2. All conditions: triggers only when all conditions are met. 3. Expression matching: evaluates expr in the rule field and triggers when the expression is satisfied. |
name | string | Automation name or remarks |
needCleanGidSid | boolean | Whether gidSid needs to be cleared |
needValidOutOfWork | boolean | Whether to check if the current time is outside working hours |
newLocalScene | boolean | Whether this is a new local scene |
offGwSync | boolean | Whether to synchronize away from the gateway |
offGwSyncSuccess | boolean | Whether synchronization away from the gateway succeeded |
orderWeight | number | Sort weight |
outOfWork | number | Outside-working-hours flag |
ownerId | string | Home ID |
panelType | number | Panel type |
permissionCode | string | Permission code |
ruleGenre | number | Rule category |
ruleSource | number | Rule source |
ruleType | number | Rule type 1. System-defined 2. Merchant-defined 3. User-defined 4. Security rule 5. Service-defined (such as DP forwarding) |
runtimeEnv | string | Runtime environment |
scenarioRule | boolean | Whether this is a scene rule |
status | boolean | Rule status |
statusConditions | any[] | State condition list |
stickyOnTop | boolean | Whether to display at the top of the home page |
subMatchType | number | Sub-match type |
uid | string | User ID |