Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discover does not find hub #92

Open
dok18 opened this issue Mar 25, 2018 · 8 comments
Open

Discover does not find hub #92

dok18 opened this issue Mar 25, 2018 · 8 comments

Comments

@dok18
Copy link

dok18 commented Mar 25, 2018

harmony-api is running on 192.168.0.33
hub is on 192.168.0.33.35

harmony-api is running on Raspberry-PI with Raspbian:

pi@raspi:~/harmony-api $ script/server
warn:    --minUptime not set. Defaulting to: 1000ms
warn:    --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
Starting discovery.
'[2018-03-25T17:04:34.453Z] - ::ffff:127.0.0.1 - GET /hubs 500 2.764 ms - 32b
pi@raspi:~/harmony-api $ curl http://127.0.0.1:8282/hubs
{"message":"No hubs available."}

I can ping hub:

pi@raspi:~/harmony-api $ ping 192.168.0.35
PING 192.168.0.35 (192.168.0.35) 56(84) bytes of data.
64 bytes from 192.168.0.35: icmp_seq=1 ttl=64 time=3.26 ms
64 bytes from 192.168.0.35: icmp_seq=2 ttl=64 time=1.20 ms

There is no firewall.

This is my config.json:

pi@raspi:~/harmony-api $ cat config/config.json 
{
  "enableHTTPserver": true,
  "mqtt_host": "mqtt://127.0.0.1",
  "topic_namespace": "harmony-api",
  "hub_ip": "192.168.0.35",
  "mqtt_options": {
      "port": 1883,
      "username": "someuser",
      "password": "somepassword",
      "rejectUnauthorized": false,
      "hub_ip": "192.168.0.35"
  }
}

I tried adding hub_ip directly to config.json without any success.

How can I debug this? Do I have to enable something in my local network? Do I have to enable something in the hub?

Thanks.

@dok18
Copy link
Author

dok18 commented Apr 7, 2018

Anyone?

@dldd17
Copy link

dldd17 commented Apr 19, 2018

if you use docker - you must run with --net=host option

@dok18
Copy link
Author

dok18 commented Apr 19, 2018

no docker.

@jonhanford
Copy link

jonhanford commented Apr 24, 2018

Have you tried flushing iptables? Looking through earlier issues, the network should support UPNP and Multicast.

@Kevincoenen
Copy link

Did you ever find a solution for this problem? As of today one of my two hubs isn't discovered by the Software. I restarted the harmony-api and the Harmony Hub, but unfortunately without success. I am able to ping the Hub, and trying the Software on a other PC gives the same result. Using "HarmonyHubControl" and using the IP of the Hub I'm able to give commands, so the Hub is function correctly.

@bgnt44
Copy link

bgnt44 commented Oct 24, 2018

Same issue here, it shows up for a second if i restart the hub but disappear right after

@Kevincoenen
Copy link

Same issue here, it shows up for a second if i restart the hub but disappear right after

I resolved this issue by performing a full factory reset of the Hub, and re-adding it to my account. Until now the Hub seems te be working correct.

https://support.myharmony.com/en-us/how-to-factory-reset-your-harmony#resetHub

@bgnt44
Copy link

bgnt44 commented Oct 24, 2018

Thanks i will try as soon as im home, in the meantime, whats the correct config syntax to explicitly set hub ip ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants