北京网站设计公司兴田德润简介,哈尔滨网站建设方案策划,新手做网络销售难吗,东莞新闻头条新闻getTapToRunRules
描述
查询当前家庭下可绑定的一键执行列表#xff0c;会去掉失效或自动化规则。
请求参数
参数数据类型说明是否必填devIdstring设备 ID#xff0c;默认从设备环境中取否gidstring家庭 ID#xff0c;默认从当前家庭中取否containStandardZigBeeboolean…getTapToRunRules
描述
查询当前家庭下可绑定的一键执行列表会去掉失效或自动化规则。
请求参数
参数数据类型说明是否必填devIdstring设备 ID默认从设备环境中取否gidstring家庭 ID默认从当前家庭中取否containStandardZigBeeboolean是否包含标准场景默认为 false否
返回参数
参数数据类型说明responseArray一键执行列表response.actionsArrayISceneAction执行动作response.backgroundstring背景图地址response.boundForPanelboolean面板绑定response.boundForWiFiPanelbooleanWiFi 面板绑定response.coverIconstring图标response.displayColorstring背景颜色response.enabledboolean规则是否启用response.idstring执行规则 IDresponse.namestring联动名称或备注
ISceneAction
参数数据类型说明actionDisplaystring执行动作的显示名称actionExecutorstring执行动作的执行者actionStrategystring执行动作的策略entityIdstring实体ID表示动作所属的实体的IDgmtModifiednumber修改时间戳idstring动作的唯一IDorderNumnumber动作的顺序号ruleIdstring规则ID表示动作所属的规则的IDstatusboolean动作状态 立即免费领取开发资源体验涂鸦 MiniApp 小程序开发。 请求示例
import { SmartTapToRunAbility } from ray-js/panel-sdk;const TapToRun new SmartTapToRunAbility();
TapToRun.getTapToRunRules().then((response) {console.log(response);}).catch();console.log( result: , result); 返回示例
️ 注意返回示例仅供参考其包含字段大于返回参数定义范围请勿使用除本文返回参数定义以外的返回数据否则可能会导致程序异常。
[{actions: [{actionDisplay: 开关 : 开启,actionDisplayNew: {83: [开关,开启]},actionExecutor: dpIssue,actionStrategy: edge,attribute: 0,devDelMark: false,enabled: true,entityId: some deviceId,entityName: 调试产品-幻彩3路-vdevo,executorProperty: {83: true},extraProperty: {},gmtModified: 1718024675855,id: some id,offGwSync: false,orderNum: 1,ruleId: some ruleId,status: true,uid: some uid}],alarmIssue: false,attribute: 4,auditStatus: 0,background: ,boundForPanel: false,boundForWiFiPanel: false,code: ,commonField: {\subMatchType\:1},containDeviceDelete: false,coverIcon: some cover icon,description: ,disableTime: 0,displayColor: BA7B69,enabled: true,forceCloudTrigger: false,gmtCreate: 1705027381008,gmtModified: 1718024675861,id: some id,iotAutoAlarm: false,isAlarmIssue: false,isLogicRule: false,linkageType: 0,localLinkage: false,logicRule: false,matchType: 1,name: 打开三路开关,needCleanGidSid: false,needValidOutOfWork: false,newLocalScene: false,offGwSync: false,offGwSyncSuccess: false,orderWeight: 1,outOfWork: 0,ownerId: some owner id,panelType: 0,permissionCode: ,ruleGenre: 1,ruleSource: 0,ruleType: 3,runtimeEnv: prod,scenarioRule: true,status: true,statusConditions: [],stickyOnTop: true,subMatchType: 1,uid: some uid}
] 立即免费领取开发资源体验涂鸦 MiniApp 小程序开发。