iobroker-community-adapters / iobroker.harmony Goto Github PK
View Code? Open in Web Editor NEWLogitech Harmony Adapter for ioBroker
License: MIT License
Logitech Harmony Adapter for ioBroker
License: MIT License
I recently noticed that the adapter, on a restart or even a reconnect deletes all objects for all activities and most channels (or all?) and recreates them with the exact same name. Attached is a log for this.
harmony.log
Not sure why the "new activities" have a _ instead of spaces. In the harmony app they show up with spaces and were created using spaces. Also the new objects and channels created contain spaces. Maybe this got broken for trying to fix the forbidden characters problematic?
This is with version 1.0.0 of the adapter and js-controller 1.4.2 and node version 10.14.2, npm version 6.4.1 on a Ubuntu system.
Nach dem Einrichten des Harmony Hub-Adapters werden meine Geräte ganz normal angezeigt. Allerdings haben Klicks auf die Buttons keinerlei folgen - scheint funktioniert der Push zum Harmony nicht.
Über die Harmony-App kann ich alles normal steuern.
Ich habe folgendes Problem.
Ich habe meinem Heimkino eine Steckdose vorgeschaltet.
Wenn ich nun Alexa sage "Fernseher ein" wird die Steckdose eingeschaltet und auch das Heimkino richtig gestartet.
Wenn ich aber nun "Fernseher aus" sage, wird zuerst die Steckdose ausgeschaltet, somit kann das Heimkino nicht richtig runtergefahren werden. Wie kann ich das lösen?
Danke für die Hilfe
Could you add the possibility to manually add a harmony hub by ip ... AutoDiscovery won't work if the Network is a Little bit more complex.
Best Regards
Chris
Alle Button haben als type : number ?
Forum:
https://forum.iobroker.net/post/563198
Bitte anpassen:
https://www.iobroker.net/#de/documentation/dev/stateroles.md
Wie im Forum beschrieben:
http://forum.iobroker.net/viewtopic.php?f=23&p=11441&sid=9c3de9b2b1cc431778343cdc3822e005#p11359
nach einer komplett neuen Installation:
<code>2015-09-16 19:08:51.769 - info: harmony.0 starting. Version 0.5.2 in /opt/iobroker/node_modules/iobroker.harmony
2015-09-16 19:08:51.846 - info: harmony.0 hub not initialized
2015-09-16 19:08:53.033 - info: harmony.0 discovered Kino
2015-09-16 19:08:54.451 - error: uncaught exception: Cannot read property 'identity' of undefined
2015-09-16 19:08:54.455 - error: TypeError: Cannot read property 'identity' of undefined
at Client.<anonymous> (/opt/iobroker/node_modules/iobroker.harmony/node_modules/harmonyhubjs-client/lib/login/hub.js:63:15)
at Client.EventEmitter.emit (events.js:95:17)
at Client.onStanza (/opt/iobroker/node_modules/iobroker.harmony/node_modules/harmonyhubjs-client/node_modules/node-xmpp-client/index.js:224:14)
at Connection.EventEmitter.emit (events.js:95:17)
at Connection.onStanza (/opt/iobroker/node_modules/iobroker.harmony/node_modules/harmonyhubjs-client/node_modules/node-xmpp-client/node_modules/node-xmpp-core/lib/Connection.js:370:14)
at StreamParser.<anonymous> (/opt/iobroker/node_modules/iobroker.harmony/node_modules/harmonyhubjs-client/node_modules/node-xmpp-client/node_modules/node-xmpp-core/lib/Connection.js:226:14)
at StreamParser.EventEmitter.emit (events.js:95:17)
at SaxLtx.<anonymous> (/opt/iobroker/node_modules/iobroker.harmony/node_modules/harmonyhubjs-client/node_modules/node-xmpp-client/node_modules/node-xmpp-core/lib/StreamParser.js:59:22)
at SaxLtx.EventEmitter.emit (events.js:95:17)
at SaxLtx._handleTagOpening (/opt/iobroker/node_modules/iobroker.harmony/node_modules/harmonyhubjs-client/node_modules/node-xmpp-client/node_modules/node-xmpp-core/node_modules/ltx/lib/parsers/ltx.js:30:18)
2015-09-16 19:08:54.757 - info: harmony.0 terminating
2015-09-16 19:08:54.773 - error: host.odroid-wheezy instance system.adapter.harmony.0 terminated with code 6 (uncaught exception)
2015-09-16 19:08:54.774 - info: host.odroid-wheezy Restart adapter system.adapter.harmony.0 because enabled
2015-09-16 19:09:16.048 - info: host.odroid-wheezy instance system.adapter.harmony.0 started with pid 3847</code>
I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:
https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/Pmant/ioBroker.harmony
ERR:["E019","E201"]:ERR
Thanks,
your automatic adapter checker.
Seit der Version 1.1. inkl. 1.1.1 aktualisieren sich die Aktivitäten nicht mehr, obwohl der Adapter verbunden ist. Deinstallation und Neuinstallation wurde schon versucht. IP-Adresse und Subnetz 255.255.255.0 wurden eingetragen. Die letzte Änderung der Werte fand zum Zeitpunkt der Installation statt. Die Aktivitäten starten auch nicht, wenn eine 1 geschrieben wird.
Since version 1.1. Including 1.1.1, the activities no longer refresh even though the adapter is connected. Deinstallation and reinstallation has already been tried. IP address and subnet 255.255.255.0 have been entered. The last change of values occurred at the time of installation. The activities do not start even if a 1 is written.
It would be a nice feature if the user has the possibility to use the buttons of the remote control for the current activity in ioBroker.
e.g. by pressing pause on my mobile phone or my remote, it sends the pause button to the tv when i have triggered the internal Netflix app of my smart tv. Otherwise when I triggered my Amazon Video activity on Fire TV, the same button sends the pause command to the Fire TV while this activity is triggered.
If this isn't possible with the Harmony API give me a short feedback please.
For my ioBroker-Docker-Image I need a second IP-Adress. After adding it I can't reach the Harmony Hub anymore and in the options I can't specify the right network. Other adapters with network access have no problem.
My configuration:
Buanet Docker-Image for ioBroker on Synology NAS
Node 10.18.0
Js-controller 2.26
Version 1.22 from Harmony-Adapter
IP-Adress Synology: 192.168.0.3
IP-Adress ioBroker (MACVLAN): 192.168.0.30
IP-Adress Synology Docker-LAN: 172.20.10.1
IP-Adress ioBroker Docker-LAN: 172.20.10.3
IP-Adress Harmony Hub: 192.168.0.71
Log from ioBroker:
Don't know how to say the adapter he has to search in the MACVLAN-Network...
Hi,
My Harmony Hub is attached in 10.0.1.0 network. ioBroker is running in 10.0.3.0 network.
Because of the two different networks, the harmony adapter is not able to find my harmony hub.
Is there a way to specify the harmony hub directly by ip address? I coulnd't find any setting for that :/
I Cant install the hub, this is my instalation text:
$ ./iobroker add harmony --host raspberrypi
npm install iobroker.harmony --production --prefix "/opt/iobroker" (System call)
npm WARN addRemoteGit Error: not found: gitnpm WARN addRemoteGit at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:14:12)
npm WARN addRemoteGit at F (/usr/lib/node_modules/npm/node_modules/which/which.js:69:19)
npm WARN addRemoteGit at E (/usr/lib/node_modules/npm/node_modules/which/which.js:81:29)
npm WARN addRemoteGit at /usr/lib/node_modules/npm/node_modules/which/which.js:90:16
npm WARN addRemoteGit at /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5
npm WARN addRemoteGit at /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/access.js:8:5
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:123:15)
npm WARN addRemoteGit git+https://github.com/swissmanu/ltx.git#cdata-for-ltx-parser resetting remote /root/.npm/_git-remotes/git-https-github-com-swissmanu-ltx-git-cdata-for-ltx-parser-d923f26b because of error: { Error: not found: git
npm WARN addRemoteGit at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:14:12)
npm WARN addRemoteGit at F (/usr/lib/node_modules/npm/node_modules/which/which.js:69:19)
npm WARN addRemoteGit at E (/usr/lib/node_modules/npm/node_modules/which/which.js:81:29)
npm WARN addRemoteGit at /usr/lib/node_modules/npm/node_modules/which/which.js:90:16
npm WARN addRemoteGit at /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5
npm WARN addRemoteGit at /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/access.js:8:5
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:123:15) code: 'ENOGIT' }
npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror https://github.com/swissmanu/ltx.git /root/.npm/_git-remotes/git-https-github-com-swissmanu-ltx-git-cdata-for-ltx-parser-d923f26b: undefinednpm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror https://github.com/swissmanu/ltx.git /root/.npm/_git-remotes/git-https-github-com-swissmanu-ltx-git-cdata-for-ltx-parser-d923f26b: undefined
npm WARN deprecated [email protected]: use @xmpp/xml package https://www.npmjs.com/package/@xmpp/xml
npm ERR!
Linux 4.14.52-v7+npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "iobroker.harmony" "--production" "--prefix" "/opt/iobroker"
npm ERR! node v6.14.1
npm ERR! npm v3.10.10npm ERR! code ENOGIT
npm ERR! not found: gitnpm ERR!
npm ERR! Failed using git.
npm ERR! This is most likely not a problem with npm itself.
npm ERR! Please check if you have git installed and in your PATH.
npm ERR! Please include the following file with any support request:
npm ERR! /npm-debug.log
host.raspberrypi install adapter harmony
npm install iobroker.harmony --production --prefix "/opt/iobroker" (System call)
npm
WARN addRemoteGit Error: not found: gitnpm WARN addRemoteGit at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:14:12)
npm WARN addRemoteGit at F (/usr/lib/node_modules/npm/node_modules/which/which.js:69:19)
npm WARN addRemoteGit at E (/usr/lib/node_modules/npm/node_modules/which/which.js:81:29)
npm WARN addRemoteGit at /usr/lib/node_modules/npm/node_modules/which/which.js:90:16
npm WARN addRemoteGit at /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5
npm WARN addRemoteGit at /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/access.js:8:5
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:123:15)
npm WARN addRemoteGit git+https://github.com/swissmanu/ltx.git#cdata-for-ltx-parser resetting remote /root/.npm/_git-remotes/git-https-github-com-swissmanu-ltx-git-cdata-for-ltx-parser-d923f26b because of error: { Error: not found: git
npm WARN addRemoteGit at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:14:12)
npm WARN addRemoteGit at F (/usr/lib/node_modules/npm/node_modules/which/which.js:69:19)
npm WARN addRemoteGit at E (/usr/lib/node_modules/npm/node_modules/which/which.js:81:29)
npm WARN addRemoteGit at /usr/lib/node_modules/npm/node_modules/which/which.js:90:16
npm WARN addRemoteGit at /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5
npm WARN addRemoteGit at /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/access.js:8:5
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:123:15) code: 'ENOGIT' }
npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror https://github.com/swissmanu/ltx.git /root/.npm/_git-remotes/git-https-github-com-swissmanu-ltx-git-cdata-for-ltx-parser-d923f26b: undefinednpm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror https://github.com/swissmanu/ltx.git /root/.npm/_git-remotes/git-https-github-com-swissmanu-ltx-git-cdata-for-ltx-parser-d923f26b: undefined
npm WARN deprecated [email protected]: use @xmpp/xml package https://www.npmjs.com/package/@xmpp/xml
npm ERR! Linux 4.14.52-v7+
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "iobroker.harmony" "--production" "--prefix" "/opt/iobroker"npm ERR! node
v6.14.1npm ERR! npm v3.10.10
npm ERR! code ENOGIT
npm ERR! not found: gitnpm ERR!
npm ERR! Failed using git.
npm ERR! This is most likely not a problem with npm itself.
npm ERR! Please check if you have git installed and in your PATH.
npm ERR! Please include the following file with any support request:npm ERR! /npm-debug.log
host.raspberrypi install adapter harmony
npm install iobroker.harmony --production --prefix "/opt/iobroker" (System call)
npm
WARN addRemoteGit Error: not found: gitnpm WARN addRemoteGit at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:14:12)
npm WARN addRemoteGit at F (/usr/lib/node_modules/npm/node_modules/which/which.js:69:19)
npm WARN addRemoteGit at E (/usr/lib/node_modules/npm/node_modules/which/which.js:81:29)
npm WARN addRemoteGit at /usr/lib/node_modules/npm/node_modules/which/which.js:90:16
npm WARN addRemoteGit at /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5
npm WARN addRemoteGit at /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/access.js:8:5
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:123:15)
npm WARN addRemoteGit git+https://github.com/swissmanu/ltx.git#cdata-for-ltx-parser resetting remote /root/.npm/_git-remotes/git-https-github-com-swissmanu-ltx-git-cdata-for-ltx-parser-d923f26b because of error: { Error: not found: git
npm WARN addRemoteGit at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:14:12)
npm WARN addRemoteGit at F (/usr/lib/node_modules/npm/node_modules/which/which.js:69:19)
npm WARN addRemoteGit at E (/usr/lib/node_modules/npm/node_modules/which/which.js:81:29)
npm WARN addRemoteGit at /usr/lib/node_modules/npm/node_modules/which/which.js:90:16
npm WARN addRemoteGit at /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5
npm WARN addRemoteGit at /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/access.js:8:5
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:123:15) code: 'ENOGIT' }
npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror https://github.com/swissmanu/ltx.git /root/.npm/_git-remotes/git-https-github-com-swissmanu-ltx-git-cdata-for-ltx-parser-d923f26b: undefinednpm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror https://github.com/swissmanu/ltx.git /root/.npm/_git-remotes/git-https-github-com-swissmanu-ltx-git-cdata-for-ltx-parser-d923f26b: undefined
npm
WARN deprecated [email protected]: use @xmpp/xml package https://www.npmjs.com/package/@xmpp/xml
npm
ERR! Linux 4.14.52-v7+
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "iobroker.harmony" "--production" "--prefix" "/opt/iobroker"npm ERR! node v6.14.1
npm ERR! npm v3.10.10
npm ERR! code ENOGIT
npm
ERR! not found: gitnpm ERR!
npm ERR! Failed using git.
npm ERR! This is most likely not a problem with npm itself.
npm ERR! Please check if you have git installed and in your PATH.
npm ERR! Please include the following file with any support request:npm ERR! /npm-debug.log
host.raspberrypi install adapter harmony
ERROR: host.raspberrypi Cannot install harmony
ERROR: process exited with code 13
The upcoming version 2.0.0 of js-controller will support a new mode for low memory devices. For this, a few minor adjustments to the adapter must be made. Please follow these instructions: https://forum.iobroker.net/viewtopic.php?f=24&t=20387#p213466
Dear Adapter developer,
Node.js 14 is now available for a year and Node.js 16 was release just some days ago and will become LTS by October 2021. We plan to update the ioBroker Node.js recommendation (currently 12.x) to 14.x later this year.
Please check your adapter with Node.js 14 especially, and ideally also directly with Node.js 16
Please add both versions to the adapter testing which is executed on commits.
If your adapter requires a certain minimum version of Node.js please set the 'engine' setting in package.json accordingly! Please also do this if the adapter is not able to work in certain Node.js versions, so that ioBroker can prevent users from installing te adapter if not compatible!
On questions please talk to us at ioBroker/ioBroker.js-controller#1138
Please close the issue after you checked it.
Thank you very much for your support!
Hallo,
bei mir funktioniert die Installation des Adapters nicht, weder über die Adapter-Seite in ioBroker noch über GitHub installation im ioBroker. ioBroker ist auf dem aktuellen Stand. Was mache ich Falsch. Es kommt folgende Meldung während der Installation:
$ ./iobroker url "https://github.com/Pmant/ioBroker.harmony/tarball/master" harmony
install https://github.com/Pmant/ioBroker.harmony/tarball/master
npm install https://github.com/Pmant/ioBroker.harmony/tarball/master --production --prefix "/opt/iobroker" (System call)
npm
WARN engine [email protected]: wanted: {"npm":">=3.0.0"} (current: {"node":"4.6.2","npm":"2.15.11"})
npm WARN deprecated
[email protected]: use @xmpp/xml package <https://www.npmjs.com/package/@xmpp/xml>
npm WARN deprecated [email protected]: use @xmpp/jid package <https://www.npmjs.com/package/@xmpp/jid>
Danke.
I wanted reinstall the adapter but he does´t. The install log is:
Fertig mit Fehler: reading io-package.json Error: ENOENT: no such file or directory, open 'null/io-package.json'
i think:
0: sleeping
1: starting
2: running
3: stopping
this applies to all defined activies so one can be in the stopping state while another is in starting.
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.
Hey,
please check out the Discovery-Adapter (https://github.com/ioBroker/ioBroker.discovery) and check if the device can be detected somehow (special url with defined answer, special port, upnp, udp or other technologies?!). If yes it would great if you could add a pull request to the Discovery-Adapter with the needed code.
Support needed? Contact me (APollon77) in Forum as forum thread or PN ;-)
Ingo
harmony.0 | 2020-05-24 07:32:21.180 | error | at TCP.onStreamRead (internal/stream_base_commons.js:94:17) |
---|---|---|---|
harmony.0 | 2020-05-24 07:32:21.180 | error | at Socket.Readable.push (_stream_readable.js:224:10) |
harmony.0 | 2020-05-24 07:32:21.180 | error | at readableAddChunk (_stream_readable.js:269:11) |
harmony.0 | 2020-05-24 07:32:21.180 | error | at addChunk (_stream_readable.js:288:12) |
harmony.0 | 2020-05-24 07:32:21.180 | error | at Socket.emit (events.js:198:13) |
harmony.0 | 2020-05-24 07:32:21.180 | error | at Socket.socketOnData (_http_client.js:451:20) |
harmony.0 | 2020-05-24 07:32:21.180 | error | at HTTPParser.parserOnHeadersComplete (_http_common.js:111:17) |
harmony.0 | 2020-05-24 07:32:21.180 | error | at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:565:21) |
harmony.0 | 2020-05-24 07:32:21.180 | error | at ClientRequest.emit (events.js:198:13) |
harmony.0 | 2020-05-24 07:32:21.180 | error | at ClientRequest.req.on (/opt/iobroker/node_modules/harmonyhubws/node_modules/ws/lib/websocket.js:595:7) |
harmony.0 | 2020-05-24 07:32:21.180 | error | (26152) Error: Unexpected server response: 401 |
harmony.0 | 2020-05-24 07:32:21.179 | error | (26152) uncaught exception: Unexpected server response: 401 |
Nach dem Update auf 1.0.0 stürzt der Adapter alle 20 - 30 Sekunden ab.
Um bei meinem AV-Receiver die Lautstärke über den Aqara Cube zu realisieren, habe ich einen kleine Javascript laufen.
Dieser reagiert nicht mehr nach dem Update. Die neuen Datenpunkte habe ich angepasst.
Setze ich den Datenpunkt händisch bei Volume Up oder Down, wird die Laustärke geändert.
Ich bin erstmal wieder auf 0.9.3 zurück.
Die Version lief bei mir sehr stabil
Dear Adapter developer,
with js-controller 4.0 object definitions are now also checked that min/max in only provided for number/mixed objects and that the type of the default value matches to the object type.
If something is not correct this is logged as 'warning' or 'info' log.
Please also make sure to update to the lastest @iobroker/testing dependency 2.5.4 or to accept the PR from Apollon77 for legacy testing!
Please spent some time to verify your adapter by ideally starting with a fresh instance and do some actions and verify the log. If you see a warn or info log there from these checks please adjust the adapter and fix the relevant cases.
For questions please refer to ioBroker/ioBroker.js-controller#1749
Please close the issue after you checked it.
Thank you very much for your support to get the best experience for the growing numbers of ioBroker users!
Hi,
My Harmony adapter did work well for a long time. Since a while the adapter does not react anymore. Objects are not changing although the adapter is connected. Any idea?
Regards,
Michael
This log pops up after the update---
Caught 2018-04-23 21:40:28.198 error by controller[0]: at Connection.emit (events.js:211:7) Caught 2018-04-23 21:40:28.198 error by controller[0]: at emitOne (events.js:116:13) Caught 2018-04-23 21:40:28.197 error by controller[0]: at Client.onStanza (/opt/iobroker/node_modules/node-xmpp-client/lib/Client.js:222:8) Caught 2018-04-23 21:40:28.197 error by controller[0]: at Client._handleStanza (/opt/iobroker/node_modules/node-xmpp-client/lib/Client.js:228:12) Caught 2018-04-23 21:40:28.197 error by controller[0]: at Client.emit (events.js:211:7) Caught 2018-04-23 21:40:28.197 error by controller[0]: at emitOne (events.js:116:13) Caught 2018-04-23 21:40:28.197 error by controller[0]: at HarmonyClient.handleStanza (/opt/iobroker/node_modules/harmonyhubjs-client/lib/harmonyclient.js:31:32) Caught 2018-04-23 21:40:28.197 error by controller[0]: at Array.forEach () Caught 2018-04-23 21:40:28.197 error by controller[0]: at /opt/iobroker/node_modules/harmonyhubjs-client/lib/harmonyclient.js:39:34 Caught 2018-04-23 21:40:28.197 error by controller[0]: at JSON.parse () Caught 2018-04-23 21:40:28.197 error by controller[0]: SyntaxError: Unexpected end of JSON input harmony.0 2018-04-23 21:40:28.187 info terminating harmony.0 2018-04-23 21:40:28.175 info terminating harmony.0 2018-04-23 21:40:28.175 error at Connection.emit (events.js:211:7) harmony.0 2018-04-23 21:40:28.175 error at emitOne (events.js:116:13) harmony.0 2018-04-23 21:40:28.175 error at Client.onStanza (/opt/iobroker/node_modules/node-xmpp-client/lib/Client.js:222:8) harmony.0 2018-04-23 21:40:28.175 error at Client._handleStanza (/opt/iobroker/node_modules/node-xmpp-client/lib/Client.js:228:12) harmony.0 2018-04-23 21:40:28.175 error at Client.emit (events.js:211:7) harmony.0 2018-04-23 21:40:28.175 error at emitOne (events.js:116:13) harmony.0 2018-04-23 21:40:28.175 error at HarmonyClient.handleStanza (/opt/iobroker/node_modules/harmonyhubjs-client/lib/harmonyclient.js:31:32) harmony.0 2018-04-23 21:40:28.175 error at Array.forEach () harmony.0 2018-04-23 21:40:28.175 error at /opt/iobroker/node_modules/harmonyhubjs-client/lib/harmonyclient.js:39:34 harmony.0 2018-04-23 21:40:28.175 error at JSON.parse () harmony.0 2018-04-23 21:40:28.175 error SyntaxError: Unexpected end of JSON input harmony.0 2018-04-23 21:40:28.175 error uncaught exception: Unexpected end of JSON input harmony.0 2018-04-23 21:40:28.130 info connected to Wohnzimmer harmony.0 2018-04-23 21:40:25.796 info connecting to Wohnzimmer harmony.0 2018-04-23 21:40:25.791 info discovered Wohnzimmer harmony.0 2018-04-23 21:40:24.537 info searching for Harmony Hubs...
Hi - I installed iobroker (and other tools like deconz, influxdb, mosquitto, node-red, ...) on Raspberry
in Docker containers.
Within Iobroker I iadded adapters like fritzdect, deconz, bshb, dwd, tr-064, text2command, scripts.js . They all are running fine, objects are listed.
But after I installed the harmony adapter I see the system.adapter.harmony.0 instance with current data, but the harmony.0 objects folder is not created and not objects listed.
What could be the issue?
Thanks
Best
Dietmar
Additional Info:
XMPP was activated in the app.
harmony.0 2020-03-11 19:32:18.643 debug (3310) system.adapter.admin.0: logging true
harmony.0 2020-03-11 19:32:18.643 silly (3310) States system redis pmessage *.logging/system.adapter.admin.0.logging:{"val":true,"ack":true,"ts":1583951538633,"q":0,"from":"system.adapter.admin.0","lc":1583951538633}
harmony.0 2020-03-11 19:17:25.053 debug (3310) system.adapter.admin.0: logging false
harmony.0 2020-03-11 19:17:25.052 silly (3310) States system redis pmessage *.logging/system.adapter.admin.0.logging:{"val":false,"ack":true,"ts":1583950645042,"q":0,"from":"system.adapter.admin.0","lc":1583950645042}
harmony.0 2020-03-11 18:53:34.928 silly (3310) States system redis pmessage system.adapter.harmony.0.sigKill/system.adapter.harmony.0.sigKill:null
harmony.0 2020-03-11 18:53:28.750 debug (3310) system.adapter.admin.0: logging true
harmony.0 2020-03-11 18:53:28.748 silly (3310) States system redis pmessage *.logging/system.adapter.admin.0.logging:{"val":true,"ack":true,"ts":1583949208720,"q":0,"from":"system.adapter.admin.0","lc":1583949208720}
harmony.0 2020-03-11 18:53:26.638 debug (3310) system.adapter.admin.0: logging false
harmony.0 2020-03-11 18:53:26.636 silly (3310) States system redis pmessage *.logging/system.adapter.admin.0.logging:{"val":false,"ack":true,"ts":1583949206620,"q":0,"from":"system.adapter.admin.0","lc":1583949206620}
harmony.0 2020-03-11 18:50:41.671 debug (3310) system.adapter.admin.0: logging true
harmony.0 2020-03-11 18:50:41.670 silly (3310) States system redis pmessage *.logging/system.adapter.admin.0.logging:{"val":true,"ack":true,"ts":1583949041661,"q":0,"from":"system.adapter.admin.0","lc":1583949041661}
harmony.0 2020-03-11 18:50:37.178 silly (3310) States system redis pmessage system.adapter.harmony.0.logLevel/system.adapter.harmony.0.logLevel:{"val":"silly","ack":true,"ts":1583949037154,"q":0,"from":"system.adapter.harmony.0","lc":15839
harmony.0 2020-03-11 18:50:37.150 info (3310) [DISCOVER] Searching for Harmony Hubs on 255.255.255.255
harmony.0 2020-03-11 18:50:37.113 debug (3310) [START] Subnet: 255.255.255.255, Discovery interval: 10000
harmony.0 2020-03-11 18:50:37.081 info (3310) starting. Version 1.2.2 in /opt/iobroker/node_modules/iobroker.harmony, node: v10.19.0
Sice Firmware 4.15.250 XMPP is enabled again and Vers. 1.1.5 is not working any more...
Confirmed working version is 0.9.3 ;)
Adding a second Hub with a second adapter is not working.
Only one a time is working, second exit with 0.:
knx.0 2017-01-30 11:43:00.278 warn knx.0 Value recieved on unknown GA : 1/2/21
knxpi 2017-01-30 11:42:55.664 info host.knxpi Restart adapter system.adapter.harmony.0 because enabled
knxpi 2017-01-30 11:42:55.662 error host.knxpi instance system.adapter.harmony.0 terminated with code 0 (OK)
harmony.0 2017-01-30 11:42:55.436 info harmony.0 hub initialized
harmony.0 2017-01-30 11:42:55.370 info harmony.0 starting. Version 0.6.0 in /opt/iobroker/node_modules/iobroker.harmony, node: v6.9.4
host.knxpi 2017-01-30 11:42:50.986 info instance system.adapter.harmony.0 started with pid 4306
host.knxpi 2017-01-30 11:42:50.951 info object change system.adapter.harmony.0
I made long time tests and as far as run Version 0.70 (tested also with different JS versions 0.5.3 and 1.20) IoBroker stopped working. (deamon stops)
I am currently back on adapter version 0.62 to verify if this is more stable.
If I stop Harmony Adapter, I have no stop of IoBroker deamon.
I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:
https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/Pmant/ioBroker.harmony
I have also found warnings that may be fixed if possible.
Thanks,
your automatic adapter checker.
P.S.: There is a community in Github, which supports the maintenance and further development of adapters. There you will find many experienced developers who are always ready to assist anyone. New developers are always welcome there. For more informations visit: https://github.com/iobroker-community-adapters/info
Dear Adapter developer,
with js-controller 3.2 and js-controller 3.3 some additional checks were added to make sure that created objects match to the specifications and also written state values match to the object definition.
If something is not correct this is logged as 'warning' or 'info' log.
Please take the time to verify your adapter by ideally starting with a fresh instance and do some actions and verify the log. If you see a warn log there from these checks please adjust the adapter and fix the relevant cases.
For questions please refer to ioBroker/ioBroker.js-controller#1301
Additionally we are preparing Admin 5 which will have a completely rewritten UI. Please install Admin 5, activate that new UI and verify that the configuration of you adapter works as expected also there.
More informations on Admin 5 can be found in Forum https://forum.iobroker.net/topic/44282/test-adapter-admin-5-0-x-alpha-der-neuen-ui
Please close the issue after you checked it.
Thank you very much for your support!
Since changing the adapter to Websocket or new API for example Volume commands were sent twice.
Returning to XMPP Version everything works fine
(Of course tested with same new HUB Firmware which enables XMPP for developers)
Since version 0.9.3 the dataobject name is "harmony.0.Harmony Hub".
Befor version 0.9.3 the dataobject name was "harmony.0.Harmony_Hub".
For updating my adapter to the newest version, i must change all scripts that are using the dataobject "harmony.0.Harmony_Hub.activities.currentActivity".
Maybe ist possible to set the dataobject-name in the adapter config?
Hi,
the new js-controller 2.0 will come into latest repository in the next days and we want to make sure that all adapters are working well. We already did a 2 weeks Beta test and so some adapter were aleady checked and some needed slight adjustments.
You can find more information in ioBroker/ioBroker.js-controller#482 and in the ioBroker Forum. If you have more technical questions please write in the referenced issue or in the Developer thread please. General questions are best in the genral thread.
Please update your systems to js-controller 2.0 and check your adapter.
Please close this issue once you have checked your adapter or received successfull reports from users.
Thank you very much for your support. Please contact us in the other Threads or Forum on any question.
The adapter was working fine for a while, some days ago, without an obvious change, the adapter was not able to communicate with the hub.
Resetting the Adapter, restarting the server and reinstalling of the adapter did not help.
After reinstalling the adapter, the adapter was not able to find the hub.
Only after changing the subnet to the IP of the HUB, the HUB was found again.
But I still get error messages every 10 ~ 20 seconds.
[DISCOVER] Discovered Harmony_Hub (192.168.3.21) and will try to connect
The adapter itself does not provide any helpful debug information.
Please let me know if there is any kind of test or logs I could provide.
OS: Linux
Adapter Version: 1.2.2 / 1.2.1
Hi
my Harmony Hub disconnects randomly, mostly after midnight. Normally I am watchichg TV at that time - so after a few seconds all devices are shutdown (PowerOff) leaving me flabbergasted. I can see how the LED is turning red on the Hub, then green again. Shortly after that the devices like TV set, Soundbar, Kodi Mediaplayer, Lights and so on are shut down. This happens at least once a day. Is there a way to prevent Shutdown?
Log (mediaDS is the name of my Hub):
2020-12-28 01:06:14.539 - info: harmony.0 (18337) [CONNECT] lost Connection to mediaDS (10.42.0.20)
2020-12-28 01:06:31.560 - info: harmony.0 (18337) [CONNECT] Connected to mediaDS (10.42.0.20)
2020-12-28 01:06:32.791 - info: kodi.0 (2498) sending in KODI: System.Shutdown - []
2020-12-28 01:06:32.811 - info: harmony.0 (18337) hub busy, stateChange delayed: harmony.0.mediaDS.TV.PowerOff = 1
2020-12-28 01:07:13.275 - info: mqtt.0 (6044) Client [Helios] connection closed: timeout
2020-12-28 01:07:32.318 - info: harmony.0 (18337) hub busy, stateChange delayed: harmony.0.mediaDS.TV.PowerOff = 1
2020-12-28 01:08:14.430 - info: mqtt.0 (6044) Client [Helios] connected with secret 1609114094422_7988
2020-12-28 01:08:14.460 - info: mqtt.0 (6044) Client [Helios] subscribes on "mqtt.0.Helios.R"
Platform linux
Betriebssystem linux
Architektur arm64
CPUs 4
Geschwindigkeit 1296 MHz
Modell Odroid
RAM 1.94 GB
Node.js v12.20.0
NPM 6.14.8
Adapter version 1.2.2
JS Script Engine 4.10.8
Kodi Media Control 2.0.4
Is it possible to add the active state for the devices only?
I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:
https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/Pmant/ioBroker.harmony
Thanks,
your automatic adapter checker.
P.S.: There is a community in Github, which supports the maintenance and further development of adapters. There you will find many experienced developers who are always ready to assist anyone. New developers are always welcome there. For more informations visit: https://github.com/iobroker-community-adapters/info
Egal was ich im CRON einstelle, es wird immer nach einer Minute ausgeführt. Hintergrund, der Harmony Adapter hängt sich bei mir ab und zu auf und deshalb hatte ich einen CRON für alle Stunde neu-starten eingestellt.
Hello,
I've a problem with this adapter. After running it some hours it is not possible to send a command to the hub anymore:
2016-10-07 00:38:48.907 - info: harmony.0 hub busy, stateChange delayed: harmony.0.xxx.activities.currentStatus=0
Do you know this? How can I fix this?
Thorsten
Is it posible to add a feature to change the state of the harmony hub, when someone uses the original remote. So it would be possible to use alexa and the original remote control. When the TV is turned on with the original remote, iobroker can change the state of the hub.
We have detected that your adapter supports the compact mode. Please use the latest js-controller 2.0 and verify that everything works.
Some more information what is important to check can be found at ioBroker/ioBroker.js-controller#512
On questions please answer to the linked issue. Please close this issue after your test and add the version number that you have tested please as a comment.
Thank you for your support.
How it could happen, that native.action is empty or not string?
https://github.com/Pmant/ioBroker.harmony/blob/master/harmony.js#L102
anyway this error should be handled.
I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:
https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/Pmant/ioBroker.harmony
Thanks,
your automatic adapter checker.
P.S.: There is a community in Github, which supports the maintenance and further development of adapters. There you will find many experienced developers who are always ready to assist anyone. New developers are always welcome there. For more informations visit: https://github.com/iobroker-community-adapters/info
Habe meinen Hub neu aufgesetzt.
Aktuelle Hub Software ist 4.15.206
Adapter 1.1.0
Gibt man den Befehl einmal nach Links oder Rechts oder Volume Up oder Down dann erscheint folgendes im Log
sending command: Samsung_TV:VolumeUp
sending command: undefined
Das hat zur Folge, dass der Befehl 3 mal ausgeführt wird. 3mal rechts 3VolUp 3Mal Vol Down
Beste Grüße
Hi,
Sometimes ioBroker loses connection to one of my hubs (not sure if it's cause of bad connection or something else) until I restart the adapter.
Here is the log:
harmony.0 | 2018-08-24 03:19:38.679 | warn | error changing activity, client offline
-- | -- | -- | --
harmony.0 | 2018-08-24 01:53:37.106 | warn | could not connect to Schlafzimmer: Error: Timed out after 5000 ms
harmony.0 | 2018-08-24 01:53:30.102 | info | connecting to Schlafzimmer
harmony.0 | 2018-08-24 01:53:30.082 | debug | hub initialized
harmony.0 | 2018-08-24 01:53:29.954 | info | discovered Schlafzimmer
harmony.0 | 2018-08-24 01:53:28.462 | warn | lost Schlafzimmer
harmony.0 | 2018-08-24 01:52:52.200 | warn | could not connect to Schlafzimmer: Error: Timed out after 5000 ms
harmony.0 | 2018-08-24 01:52:45.173 | info | connecting to Schlafzimmer
harmony.0 | 2018-08-24 01:52:45.132 | debug | hub initialized
harmony.0 | 2018-08-24 01:52:45.076 | info | discovered Schlafzimmer
harmony.0 | 2018-08-24 01:52:43.501 | debug | xmpp offline
harmony.0 | 2018-08-24 01:52:43.493 | debug | xmpp offline
harmony.0 | 2018-08-24 01:52:43.455 | info | client ended: Schlafzimmer
harmony.0 | 2018-08-24 01:52:43.454 | debug | xmpp offline
harmony.0 | 2018-08-24 01:52:43.427 | warn | lost Schlafzimmer
While the hub is discovered it would maybe be helpful to reconnect to it in intervals to make sure it stays connected?!
see ioBroker/ioBroker.js-controller#198
According to observations in forum sometimes states are created with "*" as last character or such. This should be avoided and replaced. Else the adapter with ot work with js-controller 1.4.2+
Would be great if you could register the repo on https://ci.appveyor.com/
seit gestern reagierte der Adapter nicht mehr
versuchsweise:
alles im iobroker aktualisiert
adapter deinstalliert, Objekte gelöscht
neu installiert 1.1.5
es werden keine Objekte angelegt
log-Auszug (hoffe es hilft):
2019-02-20 11:27:43.261 - debug: harmony.0 objectDB connected
2019-02-20 11:27:43.291 - debug: harmony.0 statesDB connected
2019-02-20 11:27:43.310 - info: harmony.0 starting. Version 1.1.5 in /opt/iobroker/node_modules/iobroker.harmony, node: v8.15.0
2019-02-20 11:27:43.335 - debug: harmony.0 [START] Subnet: 255.255.255.255, Discovery interval: 1000
2019-02-20 11:27:43.350 - info: harmony.0 [DISCOVER] Searching for Harmony Hubs on 255.255.255.255
2019-02-20 11:27:44.505 - info: harmony.0 [DISCOVER] Discovered wz (192.168.1.17) and will try to connect
2019-02-20 11:27:44.583 - debug: harmony.0 hub not initialized
2019-02-20 11:27:44.584 - info: harmony.0 [CONNECT] Connecting to wz (192.168.1.17)
2019-02-20 11:27:49.342 - silly: harmony.0 inMem message *.logging system.adapter.admin.0.logging val=true, ack=true, ts=1550658469335, q=0, from=system.adapter.admin.0, lc=1550658469335
Hi there,
as far as I can see this adaptor adds activities themselves like "watch tv" and all devices which are connected to harmony e.g. amplifier, flatscreen, ... as well as all their keys (e.g. volume up, volume down mute, on, off, ...)
But when I configure a activity in harmony i can choose "virtual" keys and map them to the devices keys.
These virtual keys are physically available on the black remote control that comes with harmony. They are also available in the mobile app. This is why i want these keys on my VIS view as well.
Example:
Harmony Activity "Watch TV": Makes Flatscreen and Amplifier Start and Stop. When activity is running the following keys are mapped to devices functions:
program up: flatscreen program up
program down: flatscreen program down
volume up: amplifiers volume up
volume down: amplifiers volume down
"mute": flatscreens mute function
My question:
Can you please make this adaptor also add these "virtualized keys" as well next to the activities?
If there is nothing assigned to some of them, just nothing would be happening.
This way one could easily add the buttons of my harmony remote control to VIS and re-use all those buttons to control all activities without any hassle!
looking forward to your response!
thank you in advance and kind regards
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.