bindRule
Requires:
@ray-js/ray≥1.7.60
Method signature
bindRule(params: )Description
Associate button conditions with scene rules to bind device buttons to linkage rules
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Yes | Parameters for binding rules |
Return Value
Type: Promise<IBindRuleResponse>
Binding result information
Referenced Types
interface
IBindRuleResponse| Property | Type | Description |
|---|---|---|
associativeEntityId | AssociativeEntityId | Establishes a binding with a panel/device, typically using a device ID, DP, group, rule, or dpId#value |
associativeEntityValue | AssociativeEntityValue | Use when associativeEntityId is insufficient to distinguish; typically can associate devices, DP values, groups, rules, etc. |
bizDomain | string | Business domain |
id | number | Data ID |
ownerId | string | Home ID |
sourceEntityId | string | Device ID |
triggerRuleId | string | Rule ID |
triggerRuleVO | any | Device information for action execution |
type
AssociativeEntityIdtype
AssociativeEntityValue