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

PropertyTypeRequiredDescription
YesQuery parameters

Return Value

Type: Promise<ISceneListItemV2[]>
List of one-tap execution linkage rules

Referenced Types

interfaceISceneListItemV2Tap-to-Run linkage rule data
PropertyTypeDescription
[]Execution action
alarmIssuebooleanWhether this is an alarm issue
attributenumberAttributes
Perform bitwise operations using powers of 2 corresponding to the enum values
auditStatusnumberReview status
0. Not reviewed
1. Approved
2. Rejected
backgroundstringBackground image URL
boundForPanelbooleanPanel binding
boundForWiFiPanelbooleanWiFi panel binding
codestringRule code
commonFieldstringCommon JSON field. For example, local automations store the gateway ID, gwId
containDeviceDeletebooleanWhether deleted devices are included
coverIconstringIcon
descriptionstringRule description
disableTimenumberDisable timestamp
displayColorstringBackground color
enabledbooleanWhether the rule is enabled
forceCloudTriggerbooleanWhether to force cloud triggering
idstringExecution rule ID
iotAutoAlarmbooleanWhether this is an IoT automatic alarm
isAlarmIssuebooleanWhether this is an alarm issue
isLogicRulebooleanWhether this is a logical rule
linkageTypenumberAutomation type
localLinkagebooleanWhether this is a local automation
logicRulebooleanWhether this is a logical rule
matchTypenumberMatch 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.
namestringAutomation name or remarks
needCleanGidSidbooleanWhether gidSid needs to be cleared
needValidOutOfWorkbooleanWhether to check if the current time is outside working hours
newLocalScenebooleanWhether this is a new local scene
offGwSyncbooleanWhether to synchronize away from the gateway
offGwSyncSuccessbooleanWhether synchronization away from the gateway succeeded
orderWeightnumberSort weight
outOfWorknumberOutside-working-hours flag
ownerIdstringHome ID
panelTypenumberPanel type
permissionCodestringPermission code
ruleGenrenumberRule category
ruleSourcenumberRule source
ruleTypenumberRule type
1. System-defined
2. Merchant-defined
3. User-defined
4. Security rule
5. Service-defined (such as DP forwarding)
runtimeEnvstringRuntime environment
scenarioRulebooleanWhether this is a scene rule
statusbooleanRule status
statusConditionsany[]State condition list
stickyOnTopbooleanWhether to display at the top of the home page
subMatchTypenumberSub-match type
uidstringUser ID

Examples

import { getSceneListV2 } from '@ray-js/ray';

const fetchScenes = async () => {
  try {
    const scenes = await getSceneListV2({
      devId: 'device_001',
      gid: '12345678',
      containStandardZigBee: false,
    });
    console.log('Tap-to-Run list:', scenes);
  } catch (err) {
    console.error('Query failed:', err);
  }
};