SmartTapToRunAbility.bind(params: BindParams)

Requires:
@ray-js/panel-sdk≥1.11.0

Description

Bind automation trigger conditions to a Tap-to-Run

Parameters

ParameterTypeRequiredDescription
YesBinding parameters

Return Value

Type: Promise<BindTapToRunResult>
Binding result

Referenced Types

typeBindTapToRunResultTap-to-Run binding result
PropertyTypeDescription
associativeEntityIdstringAssociated entity ID, in the format dpId#dpValue
associativeEntityValuestringAssociated rule ID
bindIdnumberBind ID, typically used for unbinding
bizDomainstringBusiness domain; for Tap-to-Run this is fixed as wirelessSwitchBindScene
idnumberData ID
ownerIdstringHome ID
sourceEntityIdstringDevice ID
triggerRuleIdstringTrigger rule ID

Examples

Example

const result = await sdm.tapToRun.bind({
  dpId: '1',
  dpValue: 'single_click',
  ruleId: 'scene_abc123',
});
console.log('Bind result:', result);