SmartTapToRunAbility.getBindTapToRunRules(params?: TapToRunQueryParams)
Requires:
@ray-js/panel-sdk≥1.11.0
Description
Query the list of automations bound to Tap-to-Run
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| No | Query parameters |
Return Value
Type: Promise<BindTapToRunRules>
List of bound Tap-to-Run rules
Referenced Types
type
BindTapToRunRulesList of bound Tap-to-Run automation rulestype
BindTapToRunRuleBound Tap-to-Run item| Property | Type | Description |
|---|---|---|
associativeEntityId | string | Associated entity ID, in the format dpId#dpValue |
| List of values for the associated entity | ||
bindId | number | Bind ID |
bizDomain | string | Business domain; for Tap-to-Run this is fixed as wirelessSwitchBindScene |
enable | boolean | Whether enabled |
sourceEntityId | string | Source device ID |
type
BindTapToRunLinkedRuleBound Tap-to-Run target rule| Property | Type | Description |
|---|---|---|
ruleType | number | Rule type |
triggerRuleEnable | boolean | Whether the rule is enabled |
triggerRuleId | string | Execution rule ID, typically used for triggering |
type
TapToRunRuleBindable one-tap execution rules| Property | Type | Description |
|---|---|---|
| Action list | ||
background | string | Background image URL |
boundForPanel | boolean | Panel binding |
boundForWiFiPanel | boolean | WiFi panel binding |
coverIcon | string | Icon |
displayColor | string | Background color |
enabled | boolean | Whether the rule is enabled |
id | string | Execution rule ID |
name | string | Automation name or note |
type
TapToRunActionOne-tap action item| Property | Type | Description |
|---|---|---|
actionDisplay | string | Action display name |
actionExecutor | string | Action executor |
actionStrategy | string | Action execution policy |
entityId | string | Owning entity ID |
gmtModified | number | Last modified timestamp |
id | string | Unique action ID |
orderNum | number | Action sequence number |
ruleId | string | Rule ID |
status | boolean | Action status |