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

Error: connect ECONNREFUSED #148

Open
groovyf opened this issue Dec 17, 2018 · 19 comments
Open

Error: connect ECONNREFUSED #148

groovyf opened this issue Dec 17, 2018 · 19 comments

Comments

@groovyf
Copy link

groovyf commented Dec 17, 2018

The Harmonyhub plugin was working OK last night (16th Dec 2018), but today issuing commands via Siri stopped working - TV, for instance, did not power-on when asked. The Harmony Remote functions OK and powers-on the TV.
I restarted HomeBridge and this is what I get in the logs:
errorhub { Error: connect ECONNREFUSED 192.168.0.10:5222
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1117:14)
errno: 'ECONNREFUSED',
code: 'ECONNREFUSED',
syscall: 'connect',
address: '192.168.0.10',
port: 5222 }

Unhandled rejection TimeoutError: operation timed out
at afterTimeout (/usr/lib/node_modules/homebridge-harmonyhub/node_modules/bluebird/js/release/timers.js:46:19)
at Timeout.timeoutTimeout [as _onTimeout] (/usr/lib/node_modules/homebridge-harmonyhub/node_modules/bluebird/js/release/timers.js:76:13)
at ontimeout (timers.js:436:11)
at tryOnTimeout (timers.js:300:5)
at listOnTimeout (timers.js:263:5)
at Timer.processTimers (timers.js:223:10)

I wonder if there's been a software update to the harmony Hub overnight that may have altered port accessibility? I've run a port scan on the Hub and 5222 does not show as open. However, port 8222 is open.
Any ideas?

@toshibochan
Copy link

Same here. I can’t control with HomeKit app. Harmony app is ok.

@groovyf
Copy link
Author

groovyf commented Dec 17, 2018

I tried editing /usr/lib/node_modules/homebridge-harmonyhub/node_modules/harmonyhubjs-client/lib/login/hub.js to replace the entry at the bottom to 8222 as a test:
hubport = hubport || 5222

Restarted Homebridge (and then the server), but no luck. It even continued to try to connect on port 5222.

@groovyf
Copy link
Author

groovyf commented Dec 17, 2018

Posted similar on Reddit. Apparently an update by Logitech has "broken" things...
https://www.reddit.com/r/homeassistant/comments/a6u6ep/psa_harmony_hub_firmware_v415206_breaksremoves/?st=JPSFANTI&sh=85821541

@xMAIKx
Copy link

xMAIKx commented Dec 18, 2018

Same here.Is there already a solution?

@bkonings
Copy link

Well Logitech has now stated that this was intentional and never supported to begin with.
So now someone would have to reverse engineer how the Logitech app works. Seems the home assistant community is working hard on that.

@pponce
Copy link

pponce commented Dec 20, 2018

Here is the home assistant project. They have been very fast.
home-assistant/core@23a5794

Someone would still need to update https://github.com/swissmanu/harmonyhubjs-client to work with the new method (web sockets).

@Seger85
Copy link

Seger85 commented Dec 20, 2018

hello, is it possible to trigger the update like the colleagues? would be stupid if it does not work anymore.

@Phoenix-DH
Copy link

I get the same error....

@bbl888
Copy link

bbl888 commented Dec 21, 2018

It looks like all harmony hubs stopped working after last update... We all have same error... So any good solution?

@Phoenix-DH
Copy link

I used IFTTT instead .... not so comfortable, but for powering enough ... that is what I want.

@DJay-X
Copy link

DJay-X commented Dec 21, 2018

@KraigM

Logitech is reacting and gives developers the following instruction.
I hope somebody will help the homebridge community to keep a harmony plugin working.
Thanks a lot in advance.

We’ve heard your concerns. We understand that some customers are frustrated with the recent security fix we put in place, as it closed access to private local API controls. While security continues to be a priority for us, we are working to provide a solution for those who still want access despite the inherent security risks involved.

If you would like to participate in an XMPP beta program, which will allow access to local controls, see the below instructions. Over the coming weeks, we will qualify a regular firmware release that still allows XMPP control for those who need it. We expect to send out an update that will be available to all Harmony customers in January.

Here are the instructions to access the program by updating the firmware on your Hub.

Launch the MyHarmony software on your desktop computer.
From the login page, press the following keys to access the tool:
On Windows - Press Alt + F9
On Macs - Press Fn + Option + F9 or Option + F9.
Scroll down to the bottom where it says “FIRMWARE TO ENABLE XMPP. FOR DEVELOPERS ONLY.”
Be sure to read through the short warning and disclaimer to understand the impact of installing this firmware.
Click on Update Firmware.
Plug in your Harmony Hub via USB and click on Install.

Thank you

@gabsi20
Copy link

gabsi20 commented Dec 21, 2018

It's a pity the just turn off features lots of people relied on -.-

@nicoduj
Copy link

nicoduj commented Dec 21, 2018

Hi, I tried a first plugin using websockets to "counter" their removal of xmpp :
https://www.npmjs.com/package/homebridge-harmony
https://github.com/nicoduj/homebridge-harmony
Feel free to try, at your own risks !
(code is still dirty, just a first try / work in progess)

@pponce
Copy link

pponce commented Dec 21, 2018

Thank you for doing this!
It looks like they have re-enabled XMPP vía a “developer” firmware option. But I think it might be good to move to the websockets implementation anyway since it is what the iOS app uses currently so would be harder for Logitech to remove that method.

@mezza
Copy link

mezza commented Dec 22, 2018

Thanks for the lovely xmas present Logitech!

@zzcoyote
Copy link

zzcoyote commented May 4, 2019

Just to confirm that the XMPP firmware fixed things:
I was doing a fresh setup of homebridge and was getting the same ECONNREFUSED when homebridge tried to access the harmony hub via the plugin. Installing the XMPP firmware on the hub via the MyHarmony app (from a Mac, physically connected) fixed things. Now homebridge correctly exposes all the harmony activities and they show up in the homekit iOS app.

Thx Logitch for giving us a solution! A homekit-enabled hub in the future would be great too.

@KBoz
Copy link

KBoz commented Jun 7, 2019

When I performed the XMPP firmware update it indicates that this is a previous firmware version meaning that new firmware updates will automatically overlay this update and newer features will not be available. Is that correct?

@smackerg
Copy link

smackerg commented Aug 9, 2019

I was facing the same issue and installed the XMPP firmware which solved the problem but now as soon as I want to edit an activity in the app, it forces me to upgrade. Any suggestions?

@smackerg
Copy link

smackerg commented Aug 9, 2019

Checked today and the firmware upgraded by itself so homebridge stopped working!

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