Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [Frage] Harmony adapter Neustart wenn keine Verbindung

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    [Frage] Harmony adapter Neustart wenn keine Verbindung

    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      Rosim86 last edited by

      @Patrick:

      Bei mir gibt es auch immer noch Probleme mit der Verbindung.

      ich lasse jetzt den Adapter über ein Skript neustarten wenn Block ture oder Connection false ansteht und dass länger wie 23 s. `

      Wie machst du das ?

      1 Reply Last reply Reply Quote 0
      • Patrick
        Patrick last edited by

        @Rosim86:

        @Patrick:

        Bei mir gibt es auch immer noch Probleme mit der Verbindung.

        ich lasse jetzt den Adapter über ein Skript neustarten wenn Block ture oder Connection false ansteht und dass länger wie 23 s. `

        Wie machst du das ? `

        ich habe mir eine Bath Datei geschrieben die ich über einen Netzwerk-befehl ausführen lassen kann (leider weiß ich gerade nicht wie das Programm heißt kann ich nachschauen wenn es dich interessiert) gibt sicher auch Schönere Wege hatte damals von dem ganzen zeug keine Ahnung und seit dem läuft es :lol:

        das ist mein Javascript Programm

        reset = 23;
        zaehler=0;
        timer=0;
        schedule("* * * * * *", function () {
        connected = getState("harmony.0.Harmony_Hub.hubConnected"/*Harmony_Hub:hubConnected*/).val;
        blocked = getState("harmony.0.Harmony_Hub.hubBlocked"/*Harmony_Hub:hubBlocked*/).val;
        av = getState("upnp.0.STR-DN1060.MediaRenderer.Group.X_PowerState"/*X_PowerState*/).val;
        harmony = getState("harmony.0.Harmony_Hub.activities.currentStatus"/*activity:currentStatus*/).val;
        if(connected===false||blocked===true){
        
                timer=timer+1;
        
                log("Harmony Timer ="+timer);
                if (timer>reset){
                    getState("Variablen.Variablen.Harmony.Harmony_reset_zaehler"/*Harmony_reset_zaehler*/).val;
                    zaehler=zaehler+1;
                    setState("Variablen.Variablen.Harmony.Harmony_reset_zaehler",zaehler);
        
                     log("Start Harmony Neustart");
            {
                var request = require("request");
                var url = 'http://192.168.178.29:8881/Harmony';
                request(url, function (err, state, body){
                    if (body) {
                        log('HarmonyRequest - alles ok Harmony wird neugestartet');
                    } else {
                        log('Harmony Request meldet Fehler!', 'error');  
                    }
                });
            }
        
                }
        }else{
            //log("Alles ok");
                timer=0;
                //log(timer);
              //  log(connected);
        
        }
        if(timer>reset){
                timer=0;
            }
        
        });
        
        1 Reply Last reply Reply Quote 0
        • M
          manne01 last edited by

          Guten Tag,

          ich habe ebenfalls Verbindungsprobleme. Harmony Adapter Version 0.7.0, auch sonst alles auf dem neuesten Stand.

          Die Status-Variablen sehen bei mir dann so aus:

          indicator.hubBlocked=false

          indicator.hubConnected=false

          Der Adapterstatus ist dabei ganz normal grün. Das ganze passiert bei mir ca. 2 x pro Woche. Neustart von Harmony-Hub und WLAN-Router nützt garnichts.

          Im Log erscheint dazu leider garnichts (trotz debug) außer wenn ich ganz normal die Harmony Fernbedienung nutze. Dann wird geloggt:

           harmony.0	2017-05-07 16:39:33.950	debug	inMem message harmony.0.* harmony.0.xyz.hubBlocked
          harmony.0	2017-05-07 16:39:33.947	debug	inMem message harmony.0.* harmony.0.xyz.hubBlocked
          harmony.0	2017-05-07 16:39:33.943	warn	error changing activity, client offline
          harmony.0	2017-05-07 16:39:33.942	debug	inMem message harmony.0.* harmony.0.xyz.activities.Radio
          harmony.0	2017-05-07 16:39:32.661	debug	inMem message harmony.0.* harmony.0.xyz.hubBlocked
          harmony.0	2017-05-07 16:39:32.658	debug	inMem message harmony.0.* harmony.0.xyz.hubBlocked
          harmony.0	2017-05-07 16:39:32.652	warn	error changing activity, client offline
          harmony.0	2017-05-07 16:39:32.652	debug	inMem message harmony.0.* harmony.0.xyz.activities.currentStatus
          harmony.0	2017-05-07 16:39:31.445	debug	inMem message harmony.0.* harmony.0.xyz.hubBlocked
          harmony.0	2017-05-07 16:39:31.442	debug	inMem message harmony.0.* harmony.0.xyz.hubBlocked
          harmony.0	2017-05-07 16:39:31.436	warn	error changing activity, client offline
          harmony.0	2017-05-07 16:39:31.433	debug	inMem message harmony.0.* harmony.0.xyz.activities.Fernsehen
          harmony.0	2017-05-07 16:39:30.442	debug	inMem message harmony.0.* harmony.0.xyz.hubBlocked
          harmony.0	2017-05-07 16:39:30.439	debug	inMem message harmony.0.* harmony.0.xyz.hubBlocked
          harmony.0	2017-05-07 16:39:30.434	warn	error changing activity, client offline
          harmony.0	2017-05-07 16:39:30.432	debug	inMem message harmony.0.* harmony.0.xyz.activities.Fernsehen
          

          Allerdings wird in den Events ca. alle 15 Sekunden folgendes angezeigt:

          stateChange	system.adapter.harmony.0.outputCount	8	true	harmony.0	2017-05-07 16:36:52.504	2017-05-07 13:30:34.959
          stateChange	system.adapter.harmony.0.inputCount	0	true	harmony.0	2017-05-07 16:36:52.503	2017-05-07 13:30:34.959
          stateChange	system.adapter.harmony.0.uptime	303536	true	harmony.0	2017-05-07 16:36:52.503	2017-05-07 16:36:52.503
          stateChange	system.adapter.harmony.0.memHeapUsed	21	true	harmony.0	2017-05-07 16:36:52.503	2017-05-07 16:36:52.503
          stateChange	system.adapter.harmony.0.memHeapTotal	24.8	true	harmony.0	2017-05-07 16:36:52.503	2017-05-07 16:01:51.931
          stateChange	system.adapter.harmony.0.memRss	27	true	harmony.0	2017-05-07 16:36:52.502	2017-05-07 16:36:37.496
          stateChange	system.adapter.harmony.0.connected	true	true	harmony.0	2017-05-07 16:36:52.501	2017-05-04 04:18:13.186
          stateChange	system.adapter.harmony.0.alive	true	true	harmony.0	2017-05-07 16:36:52.496	2017-05-04 04:18:13.184
          

          Hier steht Connected True drin… ich bin nun verwirrt - was ist denn da los?? Kann mir bitte jemand helfen?!

          Ein Stop des Adapters (pause icon) mit anschl. kurzem Warten und dann Start (play icon) im ioBroker Admin führt dann zu:

          ` > harmony.0 2017-05-07 14:46:40.051 error exception by stop: Cannot read property 'info' of undefined

          harmony.0 2017-05-07 14:46:40.050 error at Socket.onack (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:312:9)

          harmony.0 2017-05-07 14:46:40.050 error at Socket. (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:659:25)

          harmony.0 2017-05-07 14:46:40.050 error at process.exit (node.js:766:17)

          harmony.0 2017-05-07 14:46:40.050 error at process.emit (events.js:169:7)

          harmony.0 2017-05-07 14:46:40.050 error at emitOne (events.js:77:13)

          harmony.0 2017-05-07 14:46:40.050 error at process.g (events.js:260:16)

          harmony.0 2017-05-07 14:46:40.050 error at process.stop (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:4499:18)

          harmony.0 2017-05-07 14:46:40.050 error at Adapter.emit (events.js:169:7)

          harmony.0 2017-05-07 14:46:40.050 error at emitOne (events.js:77:13)

          harmony.0 2017-05-07 14:46:40.050 error at Adapter. (/opt/iobroker/node_modules/iobroker.harmony/harmony.js:145:16)

          harmony.0 2017-05-07 14:46:40.050 error TypeError: Cannot read property 'info' of undefined

          harmony.0 2017-05-07 14:46:40.047 error uncaught exception: Cannot read property 'info' of undefined

          harmony.0 2017-05-07 14:46:40.040 error already running

          harmony.0 2017-05-07 14:46:40.029 debug statesDB connected

          harmony.0 2017-05-07 14:46:39.972 debug objectDB connected

          host.mads 2017-05-07 14:46:37.592 info instance system.adapter.harmony.0 started with pid 125

          host.mads 2017-05-07 14:46:37.571 info object change system.adapter.harmony.0

          harmony.0 2017-05-07 14:46:27.149 error exception by stop: Not running

          harmony.0 2017-05-07 14:46:27.149 info terminating

          harmony.0 2017-05-07 14:46:27.148 error at emitNone (events.js:67:13)

          harmony.0 2017-05-07 14:46:27.148 error at process.g (events.js:260:16)

          harmony.0 2017-05-07 14:46:27.148 error at process.stop (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:4499:18)

          harmony.0 2017-05-07 14:46:27.148 error at Adapter.emit (events.js:169:7)

          harmony.0 2017-05-07 14:46:27.148 error at emitOne (events.js:77:13)

          harmony.0 2017-05-07 14:46:27.148 error at Adapter. (/opt/iobroker/node_modules/iobroker.harmony/harmony.js:147:18)

          harmony.0 2017-05-07 14:46:27.148 error at Explorer.stop (/opt/iobroker/node_modules/iobroker.harmony/node_modules/harmonyhubjs-discover/lib/explorer.js:82:12)

          harmony.0 2017-05-07 14:46:27.148 error at Ping.stop (/opt/iobroker/node_modules/iobroker.harmony/node_modules/harmonyhubjs-discover/lib/ping.js:42:14)

          harmony.0 2017-05-07 14:46:27.148 error at Socket.close (dgram.js:380:8)

          harmony.0 2017-05-07 14:46:27.148 error at Socket._healthCheck (dgram.js:486:11)

          harmony.0 2017-05-07 14:46:27.148 error Error: Not running

          harmony.0 2017-05-07 14:46:27.134 error uncaught exception: Not running

          harmony.0 2017-05-07 14:46:27.074 info terminating

          host.mads 2017-05-07 14:46:26.921 info stopInstance system.adapter.harmony.0 killing pid 49

          host.mads 2017-05-07 14:46:26.921 info stopInstance system.adapter.harmony.0

          host.mads 2017-05-07 14:46:26.919 info "system.adapter.harmony.0" disabled

          host.mads 2017-05-07 14:46:26.915 info object change system.adapter.harmony.0 `

          Vielleicht kann mir hier ein Profi einen Hinweis geben was hier los sein könnte?

          Okay beim nächsten Versuch (Stop-Start) hat es dann wieder funktioniert. Gibts ein fertiges (und stabiles) Script um den Adapter automatisch neu starten zu lassen wenn connected=false ist?

          Danke schon jetzt!

          Euer

          Manfred

          1 Reply Last reply Reply Quote 0
          • P
            Pman last edited by

            > ich habe ebenfalls Verbindungsprobleme. Harmony Adapter Version 0.7.0, auch sonst alles auf dem neuesten Stand.
            Harmony Adapter ist schon auf 0.7.1!

            indicator.hubConnected=false
            

            Bedeutet, dass der Adapter aktuell keine Verbindung zum Hub hat.

            stateChange   system.adapter.harmony.0.connected   true   true   harmony.0   2017-05-07 16:36:52.501   2017-05-04 04:18:13.186
            

            Bedeutet, dass der Adapter läuft. Sagt aber nichts über Adapter-interne Vorgänge aus!

            error	already running
            

            Ich vermute, da läuft noch eine nicht korrekt beendete Instanz von Harmony im Hintergrund. Entweder diese gezielt beenden, wie genau kommt auf das Betriebssystem an, oder einfach mal das komplette System neu starten.

            1 Reply Last reply Reply Quote 0
            • M
              manne01 last edited by

              Hi,

              also bei https://github.com/Pmant/ioBroker.harmony sehe ich im Changelog derzeit nur die 0.7.0. Auch wird mir noch kein Update in iobroker admin angeboten.

              Aber jetzt weiß ich schonmal die "Ereignisse" einzuschätzen.

              Heute habe ich das Problem erneut. Verbindung abgebrochen, connected=false. Im Log habe ich heute aber zumindest mal ein paar Errors gefunden:

              harmony.0	2017-05-08 16:42:02.368	info	terminating
              harmony.0	2017-05-08 16:42:02.356	info	terminating
              harmony.0	2017-05-08 16:42:02.348	error	at Connection.onData (/opt/iobroker/node_modules/iobroker.harmony/node_modules/harmonyhubjs-client/node_modules/node-xmpp-client/node_modules/node-xmpp-core/lib/Connection.js:305:17)
              harmony.0	2017-05-08 16:42:02.348	error	at StreamParser.write (/opt/iobroker/node_modules/iobroker.harmony/node_modules/harmonyhubjs-client/node_modules/node-xmpp-client/node_modules/node-xmpp-core/lib/StreamParser.js:123:17)
              harmony.0	2017-05-08 16:42:02.348	error	at SaxLtx.write (/opt/iobroker/node_modules/iobroker.harmony/node_modules/harmonyhubjs-client/node_modules/ltx/lib/parsers/ltx.js:105:26)
              harmony.0	2017-05-08 16:42:02.348	error	at SaxLtx._handleTagOpening (/opt/iobroker/node_modules/iobroker.harmony/node_modules/harmonyhubjs-client/node_modules/ltx/lib/parsers/ltx.js:31:18)
              harmony.0	2017-05-08 16:42:02.348	error	at SaxLtx.emit (events.js:169:7)
              harmony.0	2017-05-08 16:42:02.348	error	at emitOne (events.js:77:13)
              harmony.0	2017-05-08 16:42:02.348	error	at SaxLtx. (/opt/iobroker/node_modules/iobroker.harmony/node_modules/harmonyhubjs-client/node_modules/node-xmpp-client/node_modules/node-xmpp-core/lib/StreamParser.js:58:14)
              harmony.0	2017-05-08 16:42:02.348	error	at StreamParser.emit (events.js:169:7)
              harmony.0	2017-05-08 16:42:02.348	error	at emitOne (events.js:77:13)
              harmony.0	2017-05-08 16:42:02.348	error	at StreamParser. (/opt/iobroker/node_modules/iobroker.harmony/node_modules/harmonyhubjs-client/node_modules/node-xmpp-client/node_modules/node-xmpp-core/lib/Connection.js:226:10)
              harmony.0	2017-05-08 16:42:02.348	error	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:355:17)
              harmony.0	2017-05-08 16:42:02.348	error	Error: MAX_CLIENTS=6
              harmony.0	2017-05-08 16:42:02.347	error	uncaught exception: MAX_CLIENTS=6
              harmony.0	2017-05-08 16:41:56.840	debug	inMem message harmony.0.* harmony.0.xyz.hubBlocked val=false, ack=true, ts=1494261716835, q=0, from=system.adapter.harmony.0, lc=1494261716835
              harmony.0	2017-05-08 16:41:56.837	debug	inMem message harmony.0.* harmony.0.xyz.hubBlocked val=false, ack=true, ts=1494261716835, q=0, from=system.adapter.harmony.0, lc=1494261716835
              harmony.0	2017-05-08 16:41:56.835	debug	inMem message harmony.0.* harmony.0.xyz.hubConnected val=false, ack=true, ts=1494261716830, q=0, from=system.adapter.harmony.0, lc=1494261716830
              harmony.0	2017-05-08 16:41:56.834	info	client ended: xyz
              harmony.0	2017-05-08 16:41:56.834	debug	xmpp offline
              harmony.0	2017-05-08 16:41:56.831	debug	inMem message harmony.0.* harmony.0.xyz.hubConnected val=false, ack=true, ts=1494261716830, q=0, from=system.adapter.harmony.0, lc=1494261716830
              harmony.0	2017-05-08 16:41:56.829	info	keep alive failed: Error: Timed out after 5000 ms
              harmony.0	2017-05-08 16:41:46.606	debug	inMem message harmony.0.* harmony.0.xyz.hubConnected val=true, ack=true, ts=1494261706602, q=0, from=system.adapter.harmony.0, lc=1494261706602
              harmony.0	2017-05-08 16:41:46.604	debug	inMem message harmony.0.* harmony.0.xyz.hubConnected val=true, ack=true, ts=1494261706602, q=0, from=system.adapter.harmony.0, lc=1494261706602
              harmony.0	2017-05-08 16:41:46.601	debug	inMem message harmony.0.* harmony.0.xyz.hubBlocked val=true, ack=true, ts=1494261706594, q=0, from=system.adapter.harmony.0, lc=1494261706594
              harmony.0	2017-05-08 16:41:46.599	info	connected to xyz
              harmony.0	2017-05-08 16:41:46.596	debug	inMem message harmony.0.* harmony.0.xyz.hubBlocked val=true, ack=true, ts=1494261706594, q=0, from=system.adapter.harmony.0, lc=1494261706594
              harmony.0	2017-05-08 16:41:41.190	debug	inMem message harmony.0.* harmony.0.xyz.hubBlocked val=false, ack=true, ts=1494261701186, q=0, from=system.adapter.harmony.0, lc=1494261701186
              harmony.0	2017-05-08 16:41:41.186	debug	inMem message harmony.0.* harmony.0.xyz.hubConnected val=false, ack=true, ts=1494261701182, q=0, from=system.adapter.harmony.0, lc=1494261701182
              harmony.0	2017-05-08 16:41:41.188	debug	inMem message harmony.0.* harmony.0.xyz.hubBlocked val=false, ack=true, ts=1494261701186, q=0, from=system.adapter.harmony.0, lc=1494261701186
              harmony.0	2017-05-08 16:41:41.184	debug	inMem message harmony.0.* harmony.0.xyz.hubConnected val=false, ack=true, ts=1494261701182, q=0, from=system.adapter.harmony.0, lc=1494261701182
              harmony.0	2017-05-08 16:41:41.182	info	client ended: xyz
              harmony.0	2017-05-08 16:41:41.182	debug	xmpp offline
              harmony.0	2017-05-08 16:41:41.181	info	keep alive failed: Error: Timed out after 5000 ms
              harmony.0	2017-05-08 16:41:30.977	debug	inMem message harmony.0.* harmony.0.xyz.hubConnected val=true, ack=true, ts=1494261690968, q=0, from=system.adapter.harmony.0, lc=1494261690968
              harmony.0	2017-05-08 16:41:30.966	debug	inMem message harmony.0.* harmony.0.xyz.hubBlocked val=true, ack=true, ts=1494261690964, q=0, from=system.adapter.harmony.0, lc=1494261690964
              harmony.0	2017-05-08 16:41:30.971	debug	inMem message harmony.0.* harmony.0.xyz.hubConnected val=true, ack=true, ts=1494261690968, q=0, from=system.adapter.harmony.0, lc=1494261690968
              harmony.0	2017-05-08 16:41:30.968	debug	inMem message harmony.0.* harmony.0.xyz.hubBlocked val=true, ack=true, ts=1494261690964, q=0, from=system.adapter.harmony.0, lc=1494261690964
              harmony.0	2017-05-08 16:41:30.964	info	connected to xyz
              harmony.0	2017-05-08 16:41:25.668	debug	inMem message harmony.0.* harmony.0.xyz.hubBlocked val=false, ack=true, ts=1494261685664, q=0, from=system.adapter.harmony.0, lc=1494261685664
              harmony.0	2017-05-08 16:41:25.666	debug	inMem message harmony.0.* harmony.0.xyz.hubBlocked val=false, ack=true, ts=1494261685664, q=0, from=system.adapter.harmony.0, lc=1494261685664
              harmony.0	2017-05-08 16:41:25.664	debug	inMem message harmony.0.* harmony.0.xyz.hubConnected val=false, ack=true, ts=1494261685658, q=0, from=system.adapter.harmony.0, lc=1494261685658
              harmony.0	2017-05-08 16:41:25.661	debug	inMem message harmony.0.* harmony.0.xyz.hubConnected val=false, ack=true, ts=1494261685658, q=0, from=system.adapter.harmony.0, lc=1494261685658
              harmony.0	2017-05-08 16:41:25.656	info	client ended: xyz
              harmony.0	2017-05-08 16:41:25.656	debug	xmpp offline
              harmony.0	2017-05-08 16:41:25.655	info	keep alive failed: Error: Timed out after 5000 ms
              harmony.0	2017-05-08 16:41:15.457	debug	inMem message harmony.0.* harmony.0.xyz.hubConnected val=true, ack=true, ts=1494261675453, q=0, from=system.adapter.harmony.0, lc=1494261675453
              harmony.0	2017-05-08 16:41:15.455	debug	inMem message harmony.0.* harmony.0.xyz.hubBlocked val=true, ack=true, ts=1494261675447, q=0, from=system.adapter.harmony.0, lc=1494261675447
              harmony.0	2017-05-08 16:41:15.454	debug	inMem message harmony.0.* harmony.0.xyz.hubConnected val=true, ack=true, ts=1494261675453, q=0, from=system.adapter.harmony.0, lc=1494261675453
              harmony.0	2017-05-08 16:41:15.451	info	connected to xyz
              harmony.0	2017-05-08 16:41:15.449	debug	inMem message harmony.0.* harmony.0.xyz.hubBlocked val=true, ack=true, ts=1494261675447, q=0, from=system.adapter.harmony.0, lc=1494261675447
              harmony.0	2017-05-08 16:41:09.978	debug	inMem message harmony.0.* harmony.0.xyz.hubBlocked val=false, ack=true, ts=1494261669974, q=0, from=system.adapter.harmony.0, lc=1494261669974
              harmony.0	2017-05-08 16:41:09.976	debug	inMem message harmony.0.* harmony.0.xyz.hubBlocked val=false, ack=true, ts=1494261669974, q=0, from=system.adapter.harmony.0, lc=1494261669974
              harmony.0	2017-05-08 16:41:09.973	debug	inMem message harmony.0.* harmony.0.xyz.hubConnected val=false, ack=true, ts=1494261669968, q=0, from=system.adapter.harmony.0, lc=1494261669968
              harmony.0	2017-05-08 16:41:09.970	debug	inMem message harmony.0.* harmony.0.xyz.hubConnected val=false, ack=true, ts=1494261669968, q=0, from=system.adapter.harmony.0, lc=1494261669968
              harmony.0	2017-05-08 16:41:09.968	info	client ended: xyz
              harmony.0	2017-05-08 16:41:09.968	debug	xmpp offline
              harmony.0	2017-05-08 16:41:09.966	info	keep alive failed: Error: Timed out after 5000 ms
              harmony.0	2017-05-08 16:40:59.787	debug	inMem message harmony.0.* harmony.0.xyz.hubConnected val=true, ack=true, ts=1494261659782, q=0, from=system.adapter.harmony.0, lc=1494261659782
              harmony.0	2017-05-08 16:40:59.784	debug	inMem message harmony.0.* harmony.0.xyz.hubConnected val=true, ack=true, ts=1494261659782, q=0, from=system.adapter.harmony.0, lc=1494261659782
              harmony.0	2017-05-08 16:40:59.782	debug	inMem message harmony.0.* harmony.0.xyz.hubBlocked val=true, ack=true, ts=1494261659775, q=0, from=system.adapter.harmony.0, lc=1494261657248
              harmony.0	2017-05-08 16:40:59.777	info	connected to xyz
              harmony.0	2017-05-08 16:40:59.776	debug	inMem message harmony.0.* harmony.0.xyz.hubBlocked val=true, ack=true, ts=1494261659775, q=0, from=system.adapter.harmony.0, lc=1494261657248
              harmony.0	2017-05-08 16:40:57.270	info	connecting to xyz
              harmony.0	2017-05-08 16:40:57.262	debug	inMem message harmony.0.* harmony.0.xyz.hubConnected val=false, ack=true, ts=1494261657257, q=0, from=system.adapter.harmony.0, lc=1494261445669
              harmony.0	2017-05-08 16:40:57.260	debug	inMem message harmony.0.* harmony.0.xyz.hubConnected val=false, ack=true, ts=1494261657257, q=0, from=system.adapter.harmony.0, lc=1494261445669
              harmony.0	2017-05-08 16:40:57.253	debug	inMem message harmony.0.* harmony.0.xyz.hubBlocked val=true, ack=true, ts=1494261657248, q=0, from=system.adapter.harmony.0, lc=1494261657248
              harmony.0	2017-05-08 16:40:57.249	debug	inMem message harmony.0.* harmony.0.xyz.hubBlocked val=true, ack=true, ts=1494261657248, q=0, from=system.adapter.harmony.0, lc=1494261657248
              harmony.0	2017-05-08 16:40:57.248	debug	hub initialized
              harmony.0	2017-05-08 16:40:57.220	info	discovered xyz
              

              Das stört sehr - was kann man denn da machen?

              Kann man daraus irgendetwas ablesen?

              Wäre für weitere Tipps dankbar!

              Manfred

              1 Reply Last reply Reply Quote 0
              • P
                Pman last edited by

                Die Verbindung von ioBroker zum Hub unterbricht in kurzen Abständen (xmpp offline), das kann am schlechten WLAN-Empfang des Hubs oder anderen Netzwerkproblemen liegen. Das ganze passiert so oft, dass der Hub nicht mitbekommt, dass die ganzen Clients nicht mehr da sind und beim 7. mal meldet er dann, dass die maximale Anzahl an Clients erreicht ist.

                Bevor du jetzt irgendwas andere versucht stell den Hub bitte mal nah am zum Router auf und teste es eine Weile. Alternativ den WLAN-Kanal noch wechseln und wieder testen. Außerdem muss der Hub ständig mit dem Internet verbunden sein, blockt man z. B. an einer Fritzbox den Internetzugriff des Hubs, hängt sich dieser ständig auf.

                1 Reply Last reply Reply Quote 0
                • M
                  manne01 last edited by

                  Hallo Pman,

                  leider kann ich den Hub nicht näher ranstellen. Mein WLAN/Internet sind 24x7 an, Unterbrechnungen sind sehr selten.

                  Ich denke da bleibt nur ein geordneter Neustart oder? Kannst Du sagen, wie man die Lage wieder korrigieren kann? Muss man den Hub UND den Adapter neu starten oder den ganzen ioBroker oder?

                  Kannst Du vielleicht sogar eine Scriptlösung dafür empfehlen?

                  Schönmal schönes Wochenende

                  Manfred

                  1 Reply Last reply Reply Quote 0
                  • P
                    Pman last edited by

                    Neustart des HUBs muss reichen, bei mir findet der Adapter den Hub immer direkt wieder, sobald dieser wieder im WLAN ist. Ich muss den Hub aber dafür auch nicht neustarten, der verbindet sich von selber wieder mit dem WLAN.

                    1 Reply Last reply Reply Quote 0
                    • M
                      manne01 last edited by

                      Das ist bei mir leider nicht so. Nach dem Hub Restart tut sich garnichts. Selbst nach Adapter Neustart kein Erfolg. Er sucht dann Hubs und findet wohl keine… Ich vermute ich muss den ganzen ioBroker durchtreten, ich meine mich zu Erinnern, dass es letztes mal auch so war. Argghh, echt ärgerlich, gibt es denn da garkeine Verbesserungsmöglichkeit? Die Harmony funktioniert an der Fernbedienung und per Android App vollkommen reibungslos.

                      Kannst Du Dir das erklären? Kann ich noch irgendetwas checken?

                      harmony.0	2017-05-13 16:50:46.250	info	searching for Harmony Hubs...
                      harmony.0	2017-05-13 16:50:46.130	info	starting. Version 0.7.0 in /opt/iobroker/node_modules/iobroker.harmony, node: v4.7.3
                      harmony.0	2017-05-13 16:50:46.088	debug	statesDB connected
                      harmony.0	2017-05-13 16:50:46.038	debug	objectDB connected
                      host.abcd	2017-05-13 16:50:44.810	info	instance system.adapter.harmony.0 started with pid 139
                      host.abcd	2017-05-13 16:50:44.799	info	object change system.adapter.harmony.0
                      host.abcd	2017-05-13 16:50:38.789	info	instance system.adapter.harmony.0 terminated with code 0 (OK)
                      harmony.0	2017-05-13 16:50:38.757	info	terminating
                      host.abcd	2017-05-13 16:50:38.747	info	stopInstance system.adapter.harmony.0 killing pid 129
                      host.abcd	2017-05-13 16:50:38.747	info	stopInstance system.adapter.harmony.0
                      harmony.0	2017-05-13 16:50:38.749	info	terminating
                      host.abcd	2017-05-13 16:50:38.747	info	object change system.adapter.harmony.0
                      harmony.0	2017-05-13 16:40:58.672	info	searching for Harmony Hubs...
                      harmony.0	2017-05-13 16:40:58.552	info	starting. Version 0.7.0 in /opt/iobroker/node_modules/iobroker.harmony, node: v4.7.3
                      harmony.0	2017-05-13 16:40:58.522	debug	statesDB connected
                      harmony.0	2017-05-13 16:40:58.483	debug	objectDB connected
                      host.abcd	2017-05-13 16:40:57.225	info	instance system.adapter.harmony.0 started with pid 129
                      host.abcd	2017-05-13 16:40:57.209	info	object change system.adapter.harmony.0
                      harmony.0	2017-05-13 16:40:48.928	error	exception by stop: Cannot read property 'info' of undefined
                      harmony.0	2017-05-13 16:40:48.928	error	at Signal.wrap.onsignal (node.js:820:46)
                      harmony.0	2017-05-13 16:40:48.928	error	at process.emit (events.js:166:7)
                      harmony.0	2017-05-13 16:40:48.928	error	at emitNone (events.js:67:13)
                      harmony.0	2017-05-13 16:40:48.928	error	at process.g (events.js:260:16)
                      harmony.0	2017-05-13 16:40:48.928	error	at process.stop (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:4499:18)
                      harmony.0	2017-05-13 16:40:48.928	error	at Adapter.emit (events.js:169:7)
                      harmony.0	2017-05-13 16:40:48.928	error	at emitOne (events.js:77:13)
                      harmony.0	2017-05-13 16:40:48.928	error	at Adapter. (/opt/iobroker/node_modules/iobroker.harmony/harmony.js:145:16)
                      harmony.0	2017-05-13 16:40:48.928	error	TypeError: Cannot read property 'info' of undefined
                      host.abcd	2017-05-13 16:40:48.925	info	stopInstance system.adapter.harmony.0 killing pid 119
                      host.abcd	2017-05-13 16:40:48.925	info	stopInstance system.adapter.harmony.0
                      harmony.0	2017-05-13 16:40:48.927	error	uncaught exception: Cannot read property 'info' of undefined
                      host.abcd	2017-05-13 16:40:48.920	info	object change system.adapter.harmony.0
                      harmony.0	2017-05-13 16:40:37.546	debug	inMem message harmony.0.* harmony.0.xyz.hubBlocked val=false, ack=true, ts=1494693637542, q=0, from=system.adapter.harmony.0, lc=1494693637542
                      harmony.0	2017-05-13 16:40:37.543	debug	inMem message harmony.0.* harmony.0.xyz.hubBlocked val=true, ack=true, ts=1494693637541, q=0, from=system.adapter.harmony.0, lc=1494693637541
                      harmony.0	2017-05-13 16:40:37.540	warn	error changing activity, client offline
                      harmony.0	2017-05-13 16:40:37.538	debug	inMem message harmony.0.* harmony.0.xyz.activities.Radio val=2, ack=false, ts=1494693637537, q=0, from=system.adapter.web.0, lc=1494664956615
                      
                      1 Reply Last reply Reply Quote 0
                      • P
                        Pman last edited by

                        Zu allererst mal auf 0.7.1 updaten, denn den Absturz den du da im Log hast wurde dort behoben. Wenn du dann noch immer Verbindungsabbrüche hast und er den Hub danach NICHT neu findet, die Android APP aber schon, kann es eigentlich nur irgendeine Netzwerksache sein. Multicast traffic zwischen Hub und ioBroker darf nicht geblockt werden.

                        1 Reply Last reply Reply Quote 0
                        • M
                          manne01 last edited by

                          Ok, die 0.7.1 ist jetzt mal drauf. Ich melde mich wieder mit News:)

                          1 Reply Last reply Reply Quote 0
                          • R
                            ronnyw last edited by

                            Ich habe derzeit ein ähnliches Problem. Ich weiß nicht genau, bis wann der Harmony-Adapter funktionierte, da ich ihn erst jetzt aktiv einbinden wollte. Zu Beginn ging es wohl schon mal, alle Devices und Activities sind in den Objekten. Aber connected steht aktuell auf false und im Log bleibt der letzte Eintrag des Harmony-Adapters (0.7.1) die Suche nach dem Harmony Hub, wie im Log hier zuvor. Hub und ioBroker wurden schon neugestartet, keine Änderung.

                            Der Router und die Netzwerkinfrastruktur wurden nicht geändert.

                            Allerdings könnte die Ursache auch am Hub liegen: um die grundsätzliche Erreichbarkeit über WLAN zu prüfen, hab ich die iOS-App gestartet, die erst meldete, sie würde den Hub im WLAN suchen, um dann darauf zu melden, dass nun eine Verbindung über die Cloud hergestellt wird - das sollte im gleichen Subnetz ja auch schon nicht nötig sein oder?

                            1 Reply Last reply Reply Quote 0
                            • R
                              ronnyw last edited by

                              Ach, noch eine Ergänzung: ich habe vor 1-2 Wochen die IP des ioBroker Servers geändert (nachdem der Harmony-Adapter schon installiert war), hat das eine Auswirkung auf den Adapter? (nicht dass der Adapter ab Installation mit der ursprünglichen IP mit dem Hub kommunizieren möchte - was ich mir aber eigentlich nicht vorstellen kann…)

                              1 Reply Last reply Reply Quote 0
                              • R
                                ronnyw last edited by

                                Update: das oben geschrieben war Stand gestern Abend - jetzt geht's plötzlich.

                                Hatte gerade noch mal ins Log geschaut und siehe da: Hub discovered, connected und synched - ca. 10 Stunden nach dem ich das letzte mal was mit ioBroker oder Harmony gemacht hab :roll: (also der zeitliche Zusammenhang erschließt sich mir auch nicht). Ich gucke jetzt mal näher, wie lange das anhält…

                                1 Reply Last reply Reply Quote 0
                                • M
                                  manne01 last edited by

                                  Bei mir ist zwischenzeitlich alles okay seit ich 0.7.1 installiert habe. Mal weiter beobachten. Bisher kam es ja so 2x pro Woche vor.

                                  1 Reply Last reply Reply Quote 0
                                  • M
                                    mikiline last edited by

                                    Hi zusammen,

                                    ich hab das Problem so gelöst:

                                    wenn Adapter (Trigger) bzw. "indicator.hubConnected" auf "false" steht, dann restarte Adapter

                                    on({id: "harmony.0.Harmony_Hub.hubConnected"/*Harmony_Hub:hubConnected*/, change: "ne"}, function (obj) {
                                      var value = obj.state.val;
                                      var oldValue = obj.oldState.val;
                                      if (getState("harmony.0.Harmony_Hub.hubConnected").val == false) {
                                        //var interval = getObject("system.adapter.harmony.0").native.interval;
                                        var obj = getObject("system.adapter.harmony.0");
                                        //obj.native.interval = interval;
                                        setObject("system.adapter.harmony.0", obj);
                                      }
                                    });
                                    
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • M
                                      Master77 last edited by

                                      @mikiline:

                                      Hi zusammen,

                                      ich hab das Problem so gelöst:

                                      wenn Adapter (Trigger) bzw. "indicator.hubConnected" auf "false" steht, dann restarte Adapter

                                      on({id: "harmony.0.Harmony_Hub.hubConnected"/*Harmony_Hub:hubConnected*/, change: "ne"}, function (obj) {
                                        var value = obj.state.val;
                                        var oldValue = obj.oldState.val;
                                        if (getState("harmony.0.Harmony_Hub.hubConnected").val == false) {
                                          //var interval = getObject("system.adapter.harmony.0").native.interval;
                                          var obj = getObject("system.adapter.harmony.0");
                                          //obj.native.interval = interval;
                                          setObject("system.adapter.harmony.0", obj);
                                        }
                                      });
                                      
                                      ```` `  Hallo
                                      

                                      Wie genau bindet man das ein?

                                      Einfach ein Java Script erstellen und den Code einfügen und das Script starten?

                                      Danke im voraus für die Hilfe.

                                      Gruß Markus

                                      Gesendet von meinem HUAWEI NXT-L29 mit Tapatalk

                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        Master77 last edited by

                                        Hallo zusammen

                                        Habe das Skript jetzt am laufen, jedoch schmeißt er mir einen Fehler aus. Kann mir da einer helfen was da genau falsch ist? Danke im voraus für eure Hilfe.

                                        Gruß Markus~~![](</s><URL url=)<link_text text="https://uploads.tapatalk-cdn.com/201801 ... cd9048.jpg">https://uploads.tapatalk-cdn.com/20180104/db5c0e21eb630b517661fe84f5cd9048.jpg</link_text>" />

                                        Gesendet von meinem HUAWEI NXT-L29 mit Tapatalk~~

                                        1 Reply Last reply Reply Quote 0
                                        • M
                                          manne01 last edited by

                                          Die Meldung sagt ja, dass obj schon belegt ist. So läuft es bei mir:

                                          on({id: "harmony.0.xy.hubConnected", change: "ne"}, function (obj) {
                                            var value = obj.state.val;
                                            var oldValue = obj.oldState.val;
                                            if (getState("harmony.0.xy.hubConnected").val === false) {
                                              var Xobj = getObject("system.adapter.harmony.0");
                                          
                                              setObject("system.adapter.harmony.0", Xobj);
                                              log("restart of harmony.0 initiated");
                                            } else
                                              {
                                                  log("nothing to do"); 
                                              }
                                          });
                                          
                                          

                                          Allerdings löst das Script das Problem bei mir leider nicht, dass der Adapter alle paar Tage mal auf harmony.0.xy.hubConnected springt. Ein Adapter-Restart löst das Problem bei mir also leider nicht.

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post

                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate
                                          FAQ Cloud / IOT
                                          HowTo: Node.js-Update
                                          HowTo: Backup/Restore
                                          Downloads
                                          BLOG

                                          479
                                          Online

                                          31.8k
                                          Users

                                          80.0k
                                          Topics

                                          1.3m
                                          Posts

                                          15
                                          53
                                          7451
                                          Loading More Posts
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                          The ioBroker Community 2014-2023
                                          logo