nanowebcoder / NanoVeraHuesBridge

A C# version of a Philips Hues Bridge which allows Amazon Echo to speak to Vera and control lights, doors, stereos and more.
Apache License 2.0
14 stars 4 forks source link

pairing not working #11

Open gibman opened 6 years ago

gibman commented 6 years ago

Just installed this win hue client. http://loginer.net/albedo/

It seems to find the hue bridge just fine, although it asks for the user to push the pairing button. Where's the button hehe :) Is this a new hue API not impl. by this bridge ?

https://developers.meethue.com/content/addressing-pairing-button-sdk

Some hue clients have this registration process while others dont.

regards gibman

nanowebcoder commented 6 years ago

Hmmm. Honestly don't know. I haven't worked on this project in 2 years... its goal was to integrate with Alexa, so anything beyond that wasn't really considered. 2 years later I still use it with Alexa and haven't had any problems

Steve0212a commented 5 years ago

Is this project dead? I too ran into this issue (have to press center button) trying to use your bridge with a Harmony hub.

nanowebcoder commented 5 years ago

Sorry Steve

I never intended this to be used with a Harmony Hub, and so have never tested it… am still using it today with Alexa as bridge to Vera.

As for the Vera Hues Bridge project, it is still functional, though somewhere in the past several years, Alexa changed how it discover devices… I haven’t updated the discovery system, although it still works with the alexa.amazon.com discover function and with version 1 alexa devices. It’s pretty finicky with Alexa v2 devices during discovery.

Once devices are discovered through the bridge though, every day use though is fine.

From: Steve0212a [mailto:notifications@github.com] Sent: Monday, December 03, 2018 6:15 PM To: nanowebcoder/NanoVeraHuesBridge NanoVeraHuesBridge@noreply.github.com Cc: Kevin Casey kcasey@nanoweb.com; Comment comment@noreply.github.com Subject: Re: [nanowebcoder/NanoVeraHuesBridge] pairing not working (#11)

Is this project dead? I too ran into this issue (have to press center button) trying to use your bridge with a Harmony hub.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/nanowebcoder/NanoVeraHuesBridge/issues/11#issuecomment-443907107, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AQjlVISEJPglfuGHLXrfMd7pM_qC8KgLks5u1bBogaJpZM4QPSq4.

Steve0212a commented 5 years ago

I guess what I am asking (and I think the answer is no) is if you are going to implement the center button functionality for pairing. If not, I may look at doing a project for a Hue Bridge that supports Logitech...

nanowebcoder commented 5 years ago

Since I don’t use the Harmony hub, no, I myself won’t implement the functionality—though I’d be willing to help guide you in the right direction.

I suspect it’s not that you need a “button” to turn on pairing. The VeraHuesBridge for instance doesn’t require a button press—it’s always listening for the Alexa discovery uPNP call. So “pushing” a button is redundant.

I suspect, if you want to pair the Harmony Hub, you’ll need to identify the discovery packet that the Harmony Hub emits (as it is very likely different than the M-SEARCH packet Alexa v1 uses (and diff than the Alexa v2).

If you put the VeraHuesHub into debug log mode, you can see all the uPNP event’s its receiving (and ignoring). If you are like me, and have lots of devices (like SONOS for example), the uPNP udp broadcasts are a veritable flood… but if you can isolate the Harmony Hub traffic, you’ll see it in the log file. At that point, it will be very easy to modify this project to respond to those packets.

After you identify that, it could be as simple as modifying this project to respond to the Harmony’s discovery packet with the regular uPNP response packet. But I suspect you’ll also need to modify the correct response packet so that the Harmony Hub can consume the list of devices you are trying to expose. That might be more difficult, unless the Harmony Hub is documented.

Alternatively, you can take a look at the other Hues Bridge projects out there. There are a couple that are slightly more advanced in terms of development, albeit, they are designed to run on Raspberry PIs or other linux kernels and tend to be JAVA… some can handle the Alexa v2 discovery better and some I believe even support the Harmony Hub.

From: Steve0212a [mailto:notifications@github.com] Sent: Tuesday, December 04, 2018 8:49 AM To: nanowebcoder/NanoVeraHuesBridge NanoVeraHuesBridge@noreply.github.com Cc: Kevin Casey kcasey@nanoweb.com; Comment comment@noreply.github.com Subject: Re: [nanowebcoder/NanoVeraHuesBridge] pairing not working (#11)

I guess what I am asking (and I think the answer is no) is if you are going to implement the center button functionality for pairing. If not, I may look at doing a project for a Hue Bridge that supports Logitech...

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/nanowebcoder/NanoVeraHuesBridge/issues/11#issuecomment-444105403, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AQjlVAbesyST7PnYAQuogvA8MtKrR9h4ks5u1n1OgaJpZM4QPSq4.

Steve0212a commented 5 years ago

I'll take a look. I have done some stuff with SSDP for my normal job, so I am familiar with it. I am a .Net guy, so I don't want to use the Java ones :-)

Thanks for writing this library...

nanowebcoder commented 5 years ago

Cool.

I didn’t much like the bloated JAVA stuff either. If you are scratching your head let me know. I’d be willing to help if I can

From: Steve0212a [mailto:notifications@github.com] Sent: Tuesday, December 04, 2018 9:18 AM To: nanowebcoder/NanoVeraHuesBridge NanoVeraHuesBridge@noreply.github.com Cc: Kevin Casey kcasey@nanoweb.com; Comment comment@noreply.github.com Subject: Re: [nanowebcoder/NanoVeraHuesBridge] pairing not working (#11)

I'll take a look. I have done some stuff with SSDP for my normal job, so I am familiar with it. I am a .Net guy, so I don't want to use the Java ones :-)

Thanks for writing this library...

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/nanowebcoder/NanoVeraHuesBridge/issues/11#issuecomment-444114868, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AQjlVObOWFh-VTWtGom4izaUD3ApKhvgks5u1oQEgaJpZM4QPSq4.