dpjanes / homestar-hue

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

2015 model basestation not recognized #2

Open mcarlson opened 8 years ago

mcarlson commented 8 years ago

When I run 'homestar configure homestar-hue' it prints out a UPNP message that indicates that the hub is there and it can see it: {"name":"iotdb-upnp","module":"upnp/upnp-device","hostname":"spellbook.local","pid":5069,"level":30,"method":"UpnpDevice","device":{"loction":"http://192.168.0.5:80/description.xml","uuid":"2f402f80-da50-11e1-9b23-0017882417ee","deviceType":"urn:schemas-upnp-org:device:Basic:1","friendlyName":"DreemHue (192.168.0.5)","manufacturer":"Royal Philips Electronics","modelNumber":"BSB002","modelDescription":"Philips hue Personal Wireless Lighting","modelName":"Philips hue bridge 2015"},"msg":"previously unseen UPnP device","time":"2016-04-05T00:21:58.318Z","v":0}

But for some reason it never registers that this is the right device, like it never shows up in the web UI. Maybe I have a different version or model number or something and it's not recognizing it as a valid hub. When you run configure and it's printing out all the UPNP messages, can you find the one that is your hue hub and send it to me. Maybe if I compare the two I'll see what mine is doing differently.

mcarlson commented 8 years ago

Here's the same UPNP discovery message for my hub (which is working): {"name":"iotdb-upnp","module":"upnp/upnp-device","hostname":"wafer.local","pid":87633,"level":30,"method":"UpnpDevice","device":{"loction":"http://192.168.0.18:80/description.xml","uuid":"2f402f80-da50-11e1-9b23-0017881d5b1a","deviceType":"urn:schemas-upnp-org:device:Basic:1","friendlyName":"Philips hue (192.168.0.18)","manufacturer":"Royal Philips Electronics","modelNumber":"929000226503","modelDescription":"Philips hue Personal Wireless Lighting","modelName":"Philips hue bridge 2012"},"msg":"previously unseen UPnP device","time":"2016-04-05T00:36:27.316Z","v":0}

I note that the modelDescription doesn't match, but reading through the code I don't see an issue, as it appears to be checking the manufacturer and modelNumber, not modelName...

dpjanes commented 8 years ago

If you run up homestar, and add "/upnp" can you send me the UPnP block for the Hue.

On Mon, Apr 4, 2016 at 9:31 PM, mcarlson notifications@github.com wrote:

Here's the same UPNP discovery message for my hub (which is working): {"name":"iotdb-upnp","module":"upnp/upnp-device","hostname":"wafer.local","pid":87633,"level":30,"method":"UpnpDevice","device":{"loction":" http://192.168.0.18:80/description.xml","uuid":"2f402f80-da50-11e1-9b23-0017881d5b1a","deviceType":"urn:schemas-upnp-org:device:Basic:1","friendlyName":"Philips hue (192.168.0.18)","manufacturer":"Royal Philips Electronics","modelNumber":"929000226503","modelDescription":"Philips hue Personal Wireless Lighting","modelName":"Philips hue bridge 2012"},"msg":"previously unseen UPnP device","time":"2016-04-05T00:36:27.316Z","v":0}

I note that the modelDescription doesn't match, but reading through the code I don't see an issue, as it appears to be checking the manufacturer and modelNumber, not modelName...

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/dpjanes/homestar-hue/issues/2#issuecomment-205582021

mcarlson commented 8 years ago

From my colleague:

maybe he means this? {"name":"iotdb-upnp","module":"upnp/upnp-device","hostname":"spellbook.local","pid":14332,"level":30,"method":"UpnpDevice","device":{"loction":"http://192.168.0.5:80/description.xml","uuid":"2f402f80-da50-11e1-9b23-0017882417ee","deviceType":"urn:schemas-upnp-org:device:Basic:1","friendlyName":"Philips hue (192.168.0.5)","manufacturer":"Royal Philips Electronics","modelNumber":"BSB002","modelDescription":"Philips hue Personal Wireless Lighting","modelName":"Philips hue bridge 2015"},"msg":"previously unseen UPnP device","time":"2016-04-06T02:46:52.990Z","v":0}

The problem is the model number is BSB002 but line 91 here: https://github.com/dpjanes/homestar-hue/blob/master/HueLightBridge.js is hard coded to only accept "929000226503"

dpjanes commented 8 years ago

Added BSB002 and pushed. Give it a try and if it works, please close. Thanks!