falk0069 / hue-upnp

Philips Hue UPNP and HTTP emulator (works with the Android Hue app and Logitech Harmony Home Remotes)
30 stars 10 forks source link

MyHarmony App does not discover hue-upnp #7

Closed troych closed 8 years ago

troych commented 8 years ago

Hi there, I'm trying to get this to run rather unsuccessfully. Tried on my openwrt router (where it should run ideally) and on my htpc running ubuntu. Same result with both, the myharmony app isn't able to discover hue-upnp.

There is nothing in the log suggesting any communication between the two. I can access description.xml on the webserver so I know it's serving content, not sure where stuff goes wrong.

Any pointers or more info I can provide?

Harmony Hub (and Ultimate One) Firmware: 4.8.25 hue-upnp config: http://pastebin.com/raw/R7F6sLB7 hue-upnp log: http://pastebin.com/raw/MWCr3hLH

falk0069 commented 8 years ago

At initial glance it would appear that the python script is running in a different vlan than your harmony. Do you know the IP address of your harmony? Does it start with: 192.168.22.xxx? I've never seen such a quiet log before. Normally there is all sorts if upnp chatter it picks up.

troych commented 8 years ago

Yep, IP of my harmony hub is 192.168.22.177, I'll double check in the MyHarmony config but I'm pretty sure it's correctly setup since I see it on the active wireless devices with this IP on the router. Sadly I don't seem to be able to manually assign it an IP/Subnet to make sure everything is setup correctly.

troych commented 8 years ago

Sorry for the double post, but on my HTPC I get upnp chatter now and the pairing goes through. Sadly this is not the case on my router, but at least I've got a working config and can start from there to see where exactly things fail.

jimboca commented 8 years ago

Is the hue-upnp running on a WiFi device? I've heard other hub emulators had issues with that setup.

On Fri, Dec 18, 2015, 12:11 PM troych notifications@github.com wrote:

Sorry for the double post, but on my HTPC I get upnp chatter now and the pairing goes through. Sadly this is not the case on my router, but at least I've got a working config and can start from there to see where exactly things fail.

— Reply to this email directly or view it on GitHub https://github.com/falk0069/hue-upnp/issues/7#issuecomment-165888028.

troych commented 8 years ago

Yup, it's running on a router with openwrt. (Does have 2.4/5GHZ wlan) Don't have any other device that is always on. :/

I'll keep trying and update if I suddenly get it working.

jimboca commented 8 years ago

Ya, sorry I see that now that I reread your original post. Maybe the router doesn't let all upnp traffic thru to other processes since most routers respond to upnp for other stuff?

On Fri, Dec 18, 2015, 12:34 PM troych notifications@github.com wrote:

Yup, it's running on a router with openwrt. Don't have any other device that is always on. :/

— Reply to this email directly or view it on GitHub https://github.com/falk0069/hue-upnp/issues/7#issuecomment-165892356.

troych commented 8 years ago

I had it working shortly but then the Internet wasn't working anymore, certainly has something to do with the router seeming to block upnp packets in certain conditions. Investigating further... Thanks for the nudge in the correct direction. :)

troych commented 8 years ago

Got it working on my second router that is usually just running as a bridge. Now it's the hue bridge. :D Still not entirely sure why it wouldn't work on my main one, I guess it could be a similar problem this dude had: https://forum.openwrt.org/viewtopic.php?id=43160

Anyway, could now sync to hue-upnp, now I just need to get WOL working but I think that is the easy bit. Thanks again for the pointers.