2

I was wondering if it was possible to perform a webrequest to call the button which let you connect the phone with the hue?

Thanks in advance.

John
  • 728
  • 2
  • 15
  • 37

3 Answers3

10

There is a way to address this physical button or link button. It isn't possible via the SDK's but you can use the API to do a PUT on

http://<ip-address.of.the.bridge>/api/<username>/config 

with the following message/body

{
    "linkbutton": true
}

You still need to press the physical button at least once to generate a username that is linked with your device.

URL:  /api
messagebody:    {"devicetype":"my_hue_app#your_device_name"}
method:     POST
John
  • 728
  • 2
  • 15
  • 37
1

Definitely not! A user needs physical access to both the phone and the bridge to establish a relationship.

Ron Reuter
  • 1,287
  • 1
  • 8
  • 14
0

I'm fairly certain this is a hard requirement by Philips. This is to prevent unrestricted users from controlling your lights.

user3565259
  • 101
  • 9
  • There have been several security issues allowing unauthorised control of the lights, check out the drone hack for instance. Having a requirement to physically be there to press the button is obscurity not security. – Professor of programming Feb 26 '21 at 23:48