SmartTapToRunAbility.getTapToRunRules(params?: TapToRunQueryParams)
Requires:
@ray-js/panel-sdk≥1.11.0
Description
Query the list of Tap-to-Run actions that can be bound under the current home; invalid or automation rules will be filtered out.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| No | Query parameters |
Return Value
Type: Promise<TapToRunRules>
List of bindable Tap-to-Run rules
Referenced Types
type
TapToRunRulesList of bindable Tap-to-Run rulestype
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 |