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

No hubs available - random issue

Open ilker-aktuna opened this issue 4 years ago • 6 comments

Hi,

Sometimes , "randomly" , the API produces the message "No hubs available" when this happens nothing works until I restart the Harmony hub.

How can we solve this issue ?

I see the following function on app.js var hasHarmonyHubClient = function(req, res, next) { if (Object.keys(harmonyHubClients).length > 0) { next() }else{ res.status(500).json({message: "No hubs available."}) } } app.use(hasHarmonyHubClient)

what does this do actually ?

is there a way to statically connect to a hub IP and not try to discover it ?

thanks.

ilker-aktuna avatar Feb 02 '21 06:02 ilker-aktuna

One thing I forgot about (that made the difference between the hub being discoverable or not), was to make sure and use the older firmware where the port is not turned off. See www.home-assistant.io/blog/2018/12/17/logitech-harmony-removes-local-api/ for info on how to use the desktop software (plus USB cable to the hub), to select the option to revert the firmware to 4.15.193 (assuming you're using the Harmony Hub, like me)

johngo7470 avatar Sep 01 '21 00:09 johngo7470

I have two Harmony Hubs with firmware version 4.15.290. I have XMPP enabled on both and never see the "no hubs available" errors in Home Assistant. The integration works fine for me.

Instructions for enabling XMPP are here.

waltlillyman avatar Sep 01 '21 00:09 waltlillyman

integration works fine. but sometimes lose it with the "no hubs available" message.

ilker-aktuna avatar Sep 01 '21 14:09 ilker-aktuna

it is not a permanent failure, but happens randomly.

ilker-aktuna avatar Sep 01 '21 14:09 ilker-aktuna

I'm seeing it randomly, more recently. Interestingly, power cycling the hub doesn't help, but power cycling my raspi always fixes it.

johngo7470 avatar Apr 28 '22 22:04 johngo7470

I have two Harmony Hubs with firmware version 4.15.290. I have XMPP enabled on both and never see the "no hubs available" errors in Home Assistant. The integration works fine for me.

Instructions for enabling XMPP are here.

Hi, I didn't spot this in the instructions on how to use it, so was stuck with the log saying my hubs were discovered, but neither being available. Enabling XMPP via the Harmony app immediately solved the problem. Should this be mentioned in the instructions @maddox ?

HonestJohn61 avatar Feb 14 '23 17:02 HonestJohn61