dpjanes / homestar-hue

HomeStar / IOTDB Controller for Philips Hue Lights
Apache License 2.0
0 stars 3 forks source link

username is not a valid api parameter anymore for hue bridge, can't pair any bridge with recent firmware #6

Closed gnovos closed 8 years ago

gnovos commented 8 years ago

In HueLightBridge.js line 490 there is a `username' parameter being provided like so:

.send({
        devicetype: "test user",
        username: account_value
    })

This causes my bridge to respond saying that is an invalid parameter like so:

{ error: 
 { type: 6,
   address: '/username',
   description: 'parameter, username, not available' } }

and then the bridge won't pair properly. According to the way they do a registration ing the getting started guide I think the appropriate way is maybe something like this:

.send({
        devicetype: "homestar#" + account_value
    })

However, then you'll need to read the response and cache the username it gives you.

dpjanes commented 8 years ago

I've just committed a version that should be forward and backward compatible, including your changes. I have not pushed it to NPM. Can you give it a test

gnovos commented 8 years ago

This works for me, thanks!