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

Adapter findet Hub nicht mehr #38

Closed
pfleiderer opened this issue Dec 18, 2018 · 18 comments
Closed

Adapter findet Hub nicht mehr #38

pfleiderer opened this issue Dec 18, 2018 · 18 comments

Comments

@pfleiderer
Copy link

Seit dem ich auf den Neuen Harmony skill gewechselt habe findet der Adapter den Hub nicht mehr.
Anfangs ging es noch, plötzlich ( ich weiss, in der DV gibt es kein plötzlich, ich kann nur keinen Grund erkennen) kommt die Fehlermeldung "(CONNECT] Could not connect to Hapes Harmony: Error: connect ECONNREFUSED 192.168.178.102:5222"
Löschen und Neuinstallation bringt keine Änderung. Auch Reset des Adapters funktioniert nicht.

@Leviathan09
Copy link

Gleiches Problem tritt bei mir auch auf

harmony.0 [CONNECT] Could not connect to HarmonyHub: Error: connect ECONNREFUSED 192.168.1.34:5222.

@serex81
Copy link

serex81 commented Dec 18, 2018

I have the same issue
Npm 6.4.1
node v8.14.0

@Pmant
Copy link
Collaborator

Pmant commented Dec 18, 2018

Logitech closed the XMPP-Port on the Harmony-Hub.
Please check forum thread

@pfleiderer
Copy link
Author

#Tkx... i've just seen it. I've done a firmware downgrad, and for now it is doing well again hoping for some changes on the logitech side...

@marvingrieger
Copy link

@Pmant
Copy link
Collaborator

Pmant commented Dec 21, 2018

Bitte die neue Version testen. Dazu in ioBroker auf das GitHub-Symbol klicken und bei beliebig eingeben:
https://github.com/Pmant/ioBroker.harmony/tarball/WS

@Pmant
Copy link
Collaborator

Pmant commented Dec 21, 2018

@foxriver76 ich wusste nicht, dass du auch schon dran warst. Wenn es dir nichts ausmacht kannst du gern foxriver76@4deaf45 für die neue Version aufbereiten.

@foxriver76
Copy link
Member

Ja hatte mich auch an den Websockets versucht, allerdings in dem Fall war ich da durch meine kurze JS Erfahrung wesentlich langsamer als du. 👍
Werde die zwei Kleinigkeiten mal als PR einreichen.

@Pmant
Copy link
Collaborator

Pmant commented Dec 21, 2018

Hab grad noch einen kleinen Fehler korrigiert, ansonsten läuft es erstmal so weit. Wenn nach den ersten Terstern keine großen Bugs auftauchen würde ich alles mergen und auf npm pushen. Auch wenn evtl. nicht alles zu 100% funktioniert, die alte Version ist ja mehr oder weniger unbrauchbar.

@foxriver76
Copy link
Member

Jop. Rational gesehen, glaube ich kaum dass Harmony die alte API wieder verfügbar machen wird. Ich installiere es bei mir jetzt auch mal.

@foxriver76
Copy link
Member

Bekomme allerdings noch folgenden Fehler:

2018-12-21 04:17:56.824  - info: harmony.0 starting. Version 1.1.0 in /opt/iobroker/node_modules/iobroker.harmony, node: v8.14.0
--
2018-12-21 04:17:56.864  - info: harmony.0 [DISCOVER] Searching for Harmony Hubs on 192.168.178.22
2018-12-21 04:17:57.355  - info: harmony.0 [DISCOVER] Discovered Moritz (192.168.178.22) and will try to connect
2018-12-21 04:17:57.419  - info: harmony.0 [CONNECT] Connecting to Moritz (192.168.178.22)
2018-12-21 04:18:01.080  - error: harmony.0 uncaught exception: domain.enter is not a function
2018-12-21 04:18:01.081  - error: harmony.0 TypeError: domain.enter is not a function
at HarmonyWS.emit (events.js:199:12)
at HarmonyWS.parseMessage (/opt/iobroker/node_modules/iobroker.harmony/lib/HarmonyWS.js:94:30)
at WebSocket.socket.on (/opt/iobroker/node_modules/iobroker.harmony/lib/HarmonyWS.js:66:22)
at emitOne (events.js:116:13)
at WebSocket.emit (events.js:211:7)
at Receiver.receiverOnMessage (/opt/iobroker/node_modules/iobroker.harmony/node_modules/ws/lib/websocket.js:741:20)
at emitOne (events.js:116:13)
at Receiver.emit (events.js:211:7)
at Receiver.dataMessage (/opt/iobroker/node_modules/iobroker.harmony/node_modules/ws/lib/receiver.js:417:14)
at Receiver.getData (/opt/iobroker/node_modules/iobroker.harmony/node_modules/ws/lib/receiver.js:347:17)
2018-12-21 04:18:01.083  - info: harmony.0 [END] Terminating
2018-12-21 04:18:01.095  - info: harmony.0 terminating
2018-12-21 04:18:01.122  - error: Caught by controller[0]: TypeError: domain.enter is not a function
2018-12-21 04:18:01.123  - error: Caught by controller[0]:     at HarmonyWS.emit (events.js:199:12)
2018-12-21 04:18:01.123  - error: Caught by controller[0]:     at HarmonyWS.parseMessage (/opt/iobroker/node_modules/iobroker.harmony/lib/HarmonyWS.js:94:30)
2018-12-21 04:18:01.123  - error: Caught by controller[0]:     at WebSocket.socket.on (/opt/iobroker/node_modules/iobroker.harmony/lib/HarmonyWS.js:66:22)
2018-12-21 04:18:01.123  - error: Caught by controller[0]:     at emitOne (events.js:116:13)
2018-12-21 04:18:01.124  - error: Caught by controller[0]:     at WebSocket.emit (events.js:211:7)
2018-12-21 04:18:01.124  - error:  Caught by controller[0]:     at Receiver.receiverOnMessage  (/opt/iobroker/node_modules/iobroker.harmony/node_modules/ws/lib/websocket.js:741:20)
2018-12-21 04:18:01.124  - error: Caught by controller[0]:     at emitOne (events.js:116:13)
2018-12-21 04:18:01.124  - error: Caught by controller[0]:     at Receiver.emit (events.js:211:7)
2018-12-21 04:18:01.124  - error:  Caught by controller[0]:     at Receiver.dataMessage  (/opt/iobroker/node_modules/iobroker.harmony/node_modules/ws/lib/receiver.js:417:14)
2018-12-21 04:18:01.124  - error:  Caught by controller[0]:     at Receiver.getData  (/opt/iobroker/node_modules/iobroker.harmony/node_modules/ws/lib/receiver.js:347:17)
2018-12-21 04:18:01.125  - error: host.ioBroker-Rock64 instance system.adapter.harmony.0 terminated with code 0 (OK)

@Pmant
Copy link
Collaborator

Pmant commented Dec 21, 2018

Konnte es nun auf einem Linuxsystem mit node 6 reproduzieren und beheben.

@foxriver76
Copy link
Member

Hm also ich habe Node 8.14 drauf. Mit Node 8 lief er bei dir unter Linux?

@foxriver76
Copy link
Member

Geht jetzt jedenfalls. Top 👍

@foxriver76
Copy link
Member

Wenn die Activity -1 (aus) ist, gibt es noch eine Warning: [SETACTIVITY] Unknown activityId: -1

@Leviathan09
Copy link

Leviathan09 commented Dec 21, 2018

Die Installation lief ohne Probleme durch, mir wird jedoch kein Adapter angezeigt.

./iobroker url "https://github.com/Pmant/ioBroker.harmony/tarball/WS" --debug
install https://github.com/Pmant/ioBroker.harmony/tarball/WS
npm install https://github.com/Pmant/ioBroker.harmony/tarball/WS --production --save --prefix "/opt/iobroker" (System call)
npm
 WARN svg-inline-react@1.0.3 requires a peer of react@^0.14.0 || ^15.0.0 but none is installed. You must install peer dependencies yourself.

+ iobroker.harmony@1.1.0added 21 packages from 54 contributors and audited 4687 packages in 51.732s

found 46 vulnerabilities (33 low, 2 moderate, 11 high)  run `npm audit fix` to fix them, or `npm audit` for details

process exited with code 0

@Pmant
Copy link
Collaborator

Pmant commented Dec 21, 2018

Wenn die Activity -1 (aus) ist, gibt es noch eine Warning: [SETACTIVITY] Unknown activityId: -1

Ja, der erste Status kommt schon rein, bevor die Config eingelesen wurde. Ist nicht weiter schlimm, habe die Meldung auf debug runtergestuft.

Die Installation lief ohne Probleme durch, mir wird jedoch kein Adapter angezeigt.

Ich glaube die NPM-Warnung hat nichts mit diesem Adapter zu tun. Wenn du von GitHub installierst, wird nicht automatisch eine Instanz des Adapter erstellt. Klick mal unter Adapter auf das "+" bei Harmony, dann sollte die Instanz angelegt werden. Ggf. auch noch den Upload-Button betätigen.

@Pmant
Copy link
Collaborator

Pmant commented Dec 21, 2018

Ich schließe hier, für neue Probleme dann bitte jeweils gezielt Issues erstellen.

@Pmant Pmant closed this as completed Dec 21, 2018
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

6 participants