peter-murray / node-hue-api

Node.js Library for interacting with the Philips Hue Bridge and Lights
Apache License 2.0
1.18k stars 144 forks source link

Touchlink activation #218

Open fabian-tuhh opened 2 years ago

fabian-tuhh commented 2 years ago

Hi, all,

Can somebody tell be how the Hue Bridge handles the activation of the touchlink function? After activation, is it disabled after a timeout, after a device has been commisioned to the Zigbee network or is there another request towards the Hue Bridge API required?

Thanks, Fabian

peter-murray commented 2 years ago

Touchlink is related to bluetooth pairing isn't it? If so that does not utilize the bridge.

Once you have a bridge things change a little, there is an endpoint for the bridge that will allow you to "search" for new lights, this puts the bridge into a kind of scanning/discovery mode where it searches for new zigbee devices. This scanning is asynchronous, so there is another endpoint that you can hit to get a list of the "new" discovered lights from this search and from there you can complete the configuration of these (assign name and room) by updating the light configuration.

Was that the information you were looking for there? If so I can expand on the details of the calls in this library.