harmony-api icon indicating copy to clipboard operation
harmony-api copied to clipboard

Discover does not find hub

Open dok18 opened this issue 6 years ago • 8 comments

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 avatar Mar 25 '18 17:03 dok18

Anyone?

dok18 avatar Apr 07 '18 20:04 dok18

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

dldd17 avatar Apr 19 '18 20:04 dldd17

no docker.

dok18 avatar Apr 19 '18 21:04 dok18

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

jonhanford avatar Apr 24 '18 22:04 jonhanford

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.

Kevincoenen avatar Sep 15 '18 21:09 Kevincoenen

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

bgnt44 avatar Oct 24 '18 14:10 bgnt44

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

Kevincoenen avatar Oct 24 '18 14:10 Kevincoenen

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

bgnt44 avatar Oct 24 '18 14:10 bgnt44