Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. Test js-controller v2.0.x (GitHub)

    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

    Test js-controller v2.0.x (GitHub)

    This topic has been deleted. Only users with topic management privileges can see it.
    • apollon77
      apollon77 @coyote last edited by

      @coyote Also 1.) Bei npm installs vom javascript adapter werden alle normalen npm Ausgaben ins Log geschrieben. Also: Das ist einfach die ganz normale Ausgabe von npm beim installieren dieses Pakets. Also alles ok, muss so in dem Fall

      2.) Der Fehler mit _id kommt aus dem Javascript Adapter. Der liesst alle Objekte und an der Stelle gabs einen Zustand den er nicht erwartet hat - auch strange das beim nächsten Restart das nicht aufgetreten ist. Im nächsten javascript Update wird die Stelle gefixt sein ... Interessant wäre trotzdem es nochmal herzustellen

      1 Reply Last reply Reply Quote 0
      • ?
        A Former User last edited by A Former User

        Jungs, ich habe es schon immer gewusst. Ihr seid spitze.
        Obwohl ich schon einen Platz in der Psychiatrie klar gemacht habe 😂 musste ich feststellen, ihr habt mich gerettet.

        Es funktioniert auf beiden Systemen (Master/Client) die Version 2.0.25 soweit wunderbar. Wenn ich ein Datenobjekt erstellen möchte, ist dies wie gewohnt möglich, allerdings ist nach dem Löschen die Aktualisierung über den Pfeil von Nöten. So wie sonst, gleich nach dem Löschen, verschwindet das Objekt nicht, ist aber nicht so schlimm. Alle Adapter funktionieren bei mir wunderbar.

        Mein Problem mit dem Xiaomi Temperatursensor scheint entweder am Adapter oder dem Sensor zu liegen. Ich glaube es ist besser, wenn ich mich da an die Jungs vom Zigbee Adapter wende.
        Was ich festgestellt habe, dass (vielleicht durch die Umstellung) der ioBroker dort keine Sonderzeichen akzeptiert werden. Für die Verbindung des Datenpunktes "lumi.weather" und Alexa ist es wichtig, dass "°C" unter "unit" zu stehen hat, aber jetzt taucht ständig (bei jeder Temperaturaktualisierung) anstatt " ° " , "�" auf. Bin noch am Suchen woran das liegt.

        Super, ich freue mich, dass es, dank Euch, jetzt funktioniert.
        DANKE

        apollon77 3 Replies Last reply Reply Quote 0
        • apollon77
          apollon77 @Guest last edited by

          @Nuggelbeb sagte in [Aufruf] js-controller 2.0 Beta Test:

          allerdings ist nach dem Löschen die Aktualisierung über den Pfeil von Nöten. So wie sonst, gleich nach dem Löschen, verschwindet das Objekt nicht,

          Das ist ein Admin Bug der in 3.6.8 hoffentlich gefixt sein wird

          1 Reply Last reply Reply Quote 0
          • apollon77
            apollon77 @Guest last edited by apollon77

            @Nuggelbeb sagte in [Aufruf] js-controller 2.0 Beta Test:

            Für die Verbindung des Datenpunktes "lumi.weather" und Alexa ist es wichtig, dass "°C" unter "unit" zu stehen hat, aber jetzt taucht ständig (bei jeder Temperaturaktualisierung) anstatt " ° " , "�" auf. Bin noch am Suchen woran das liegt.

            Exportiere mir bitte mal einen Baum mit solchen States, das muss ich mir ansehen. nicht das da nochwas mit encodings im Argen ist ... Du hast ein file/file System richtig?

            bzw: Wenn Du in den Datenpunkt gehst in die Objektdefinition und dort die Unit korrigierst. Ist Sie ab dann korrekt auch über restarts hinaus?

            ? 1 Reply Last reply Reply Quote 0
            • apollon77
              apollon77 @Guest last edited by apollon77

              @Nuggelbeb Ok, mit em Gradzeichen hab ich alles durchsucht. Das passt alles und auch bei mir (weatherundeground) sind "grad-Zeichen" alle korrekt da.
              Wieviele sind denn bei dir betroffen? Nu "grad Zeichen"? Oder auch andere?

              Wie ist es bei anderen? Kann jemand solche "kaputten Sonderzeichen in Units nachvollziehen?

              SBorg 1 Reply Last reply Reply Quote 0
              • SBorg
                SBorg Forum Testing Most Active @apollon77 last edited by

                @apollon77 sagte in [Aufruf] js-controller 2.0 Beta Test:

                Kann jemand solche "kaputten Sonderzeichen in Units nachvollziehen?

                Hatte gestern schon alles abgegrast, alles iO ° µ ² ³ 🙂

                1 Reply Last reply Reply Quote 1
                • ?
                  A Former User @apollon77 last edited by

                  @apollon77
                  Ja ich habe ein file/file System.
                  Die Umänderung in unit geht kurzzeitig bis sich wieder die Temperatur ändert und dann taucht wieder das Hieroglyphzeichen auf.
                  Hier die Datei aus Objekte: zigbee.0.00158d00034d13af.json

                  apollon77 2 Replies Last reply Reply Quote 0
                  • coyote
                    coyote Most Active last edited by

                    @apollon77 irgendwie wollen manche Scripte nicht laufen und warum steht bei mir an jedem Script "Instanz deaktiviert" obwohl sie aktiviert ist? 🤔

                    javascript.JPG

                    Dieses Script hier will auch nicht mehr:

                    
                    var HueApi = require("node-hue-api").HueApi;
                     
                    // Replace IP and username!!!
                     var host = "192.168.66.31",
                         username = "16f4f7d727e98e3f3eaXXXXXXX",
                         api = new HueApi(host, username);
                         
                     var groups_ = [],
                         lights_ = [],
                         objects_ = [];
                      
                     // Log JSON results
                     var displayResults = function(result) {
                         console.log('Reponse: '+JSON.stringify(result, null, 2));
                     };
                      
                     // Parse Light Group 0 (All Lights)
                     var parseGroup0 = function(result) {
                         if (!result.lights){return} // Empty group
                         
                         var id = result.id,
                             lights = result.lights,
                             name = "All Lights";
                         console.debug('group: '+name+', lights: '+lights);
                         groups_[lights] = name;
                     };
                      
                     // Parse Light Groups
                     var parseGroups = function(result) {
                         for (var i = 0; i < result.length; i++) {
                             if (!result[i].lights){continue} // Empty group
                             
                             var id = result[i].id,
                                 lights = result[i].lights,
                                 name = result[i].name;
                             console.debug('group: '+name+', lights: '+lights);
                             groups_[lights] = name;
                         }
                     };
                      
                     // Parse Lights
                     var parseLights = function(result) {
                         for (var i = 0; i < result.length; i++) {
                             var id = result[i].id,
                                 name = result[i].name;
                             console.debug('light: '+name+', id: '+id);
                             lights_[id] = name;
                         } 
                     };
                      
                     // Create States in ioBroker
                     var createStates = function(result) {
                         // Resync button
                         createState('PhilipsHue.Scenes.Resync', false, {role: "button", name: 'Resync Philips Hue Groups, Lights and Scenes'});
                      
                         for (var i = 0; i < result.length; i++) {
                             if (!result[i].appdata.data){continue} // skip internal szenes
                      
                             var id = result[i].id,
                                 lights = result[i].lights,
                                 name = result[i].name.replace(/"/g,''),
                                 pathname = name.replace(/ /g,'_');
                             
                             // Get light names
                             var light_names = [];
                             for (var j = 0; j < lights.length; j++) {
                                 var light_name = lights_[lights[j]];
                                 light_names.push(light_name);
                             }
                      
                             // Room, group or lights linked with scene
                             var group = 'Group: '+groups_[lights] || 'Lights: '+light_names.join(", ");
                             
                             // Create States and skip duplicates
                             if (!objects_[lights+pathname]){
                                 console.debug('scene: '+name+', '+group);
                                 createState('PhilipsHue.Scenes.'+pathname+'.'+id, false, {role: "button", name: 'Scene: '+name+' ('+group+')'});
                                 objects_[lights+pathname] = true;
                             }
                         }
                     };
                      
                     // Delete States
                     function deleteStates(){
                         console.log('Deleting current objects for scenes...');
                         objects_ = [];
                         $('javascript.0.PhilipsHue.Scenes.*').each(function (id) {
                             deleteState(id);
                         });
                     }
                      
                     // Fetch data from Hue API
                     function init(){
                         api.getGroup(0, function(err, group0) {
                             if (err) throw err;
                             console.log('Processing group 0...');
                             //displayResults(group0);
                             parseGroup0(group0);
                         });
                         api.groups(function(err, groups) {
                             if (err) throw err;
                             console.log('Processing ' + groups.length + ' groups...');
                             //displayResults(groups);
                             parseGroups(groups);
                         });
                      
                         api.lights(function(err, lights) {
                             if (err) throw err;
                             console.log('Processing ' + lights.lights.length + ' lights...');
                             //displayResults(lights);
                             parseLights(lights.lights);
                         });
                      
                         api.scenes(function(err, scenes) {
                             if (err) throw err;
                             console.log('Processing ' + scenes.length + ' scenes...');
                             //displayResults(scenes);
                             createStates(scenes);
                         });
                     }
                      
                     // Init on start
                     init();
                      
                     // Activate scene
                     on({id: /^javascript\.0\.PhilipsHue.Scenes\./, val: true}, function (obj) {
                         if (obj.id == 'javascript.0.PhilipsHue.Scenes.Resync'){return}
                         sceneId = obj.id.split('.').pop();
                         console.log('Activating '+obj.name);
                         api.activateScene(sceneId, function(err, result) {
                             if (err) throw err;
                             displayResults(result);
                         });
                         setState(obj.id, false);
                     });
                      
                     // Resync
                     on({id: 'javascript.0.PhilipsHue.Scenes.Resync', val: true}, function (obj) {
                         console.log('Resync triggered...');
                         groups_ = [];
                         lights_ = [];
                         deleteStates();
                         init();
                     });
                      
                     /*schedule("0 3 * * *", function () {
                         console.log('Resync triggered...');
                         groups_ = [];
                         lights_ = [];
                         deleteStates();
                         init();
                     });*/
                    
                    javascript.0	2019-10-10 19:49:59.137	info	(15370) script.js.Hue_Szenen_abfragen: registered 2 subscriptions and 1 schedule
                    javascript.0	2019-10-10 19:49:59.099	info	(15370) Start javascript script.js.Hue_Szenen_abfragen
                    javascript.0	2019-10-10 19:49:55.995	info	(15370) Stop script script.js.Hue_Szenen_abfragen
                    

                    Das wars mehr kommt da nicht mehr... Ne Idee wo ich suchen kann? Mir ist es nur aufgefallen, als meine Hue Lampe heute nicht an ging, wird über ein Script gesteuert.

                    apollon77 1 Reply Last reply Reply Quote 0
                    • apollon77
                      apollon77 @Guest last edited by

                      @Nuggelbeb ok wenn zigbee das überschreibt bitte issue bei zigbee anlegen.

                      1 Reply Last reply Reply Quote 0
                      • apollon77
                        apollon77 @coyote last edited by

                        @coyote ich hab beim JavaScript Adapter dazu ein issue gesehn.

                        coyote 1 Reply Last reply Reply Quote 0
                        • coyote
                          coyote Most Active @apollon77 last edited by

                          @apollon77 ah ok, alles klar.

                          Warum das Script nicht mehr korrekt läuft, muss ich selbst mal schauen, irgendwas passt da nicht.
                          Die anderen Scripte laufen anscheinend ja.

                          1 Reply Last reply Reply Quote 0
                          • apollon77
                            apollon77 @Guest last edited by

                            @Nuggelbeb welche zigbee Version?

                            ? 1 Reply Last reply Reply Quote 0
                            • ?
                              A Former User @apollon77 last edited by

                              @apollon77

                              Installierte Version: 0.11.3

                              apollon77 1 Reply Last reply Reply Quote 0
                              • apollon77
                                apollon77 @Guest last edited by

                                @Nuggelbeb @arteck sagte mir du sollst mal aktuelle GitHub nehmen.

                                ? 1 Reply Last reply Reply Quote 0
                                • ?
                                  A Former User @apollon77 last edited by

                                  @apollon77
                                  Auf GitHub ist es doch die aktuelle Version.
                                  1.JPG

                                  1 Reply Last reply Reply Quote 0
                                  • D
                                    darkiop Most Active last edited by

                                    Direkt von Github installieren (Adapter --> Katze Symbol oder 'iobroker url http://.....), dann hast die letzten Commits unabhängig der letzten Version.

                                    ? 1 Reply Last reply Reply Quote 0
                                    • ?
                                      A Former User @darkiop last edited by

                                      @darkiop
                                      Okay, da ist es V 0.11.4
                                      Bis jetzt geht es. melde mich morgen noch einmal.

                                      ? 1 Reply Last reply Reply Quote 0
                                      • MathiasJ
                                        MathiasJ last edited by

                                        Weiß jemand, was mit Frankjoke los ist?
                                        So wie ich mich kenne, zerschieße ich was bei einer Änderung. Dashalb lasse ich es lieber.......

                                        apollon77 1 Reply Last reply Reply Quote 0
                                        • apollon77
                                          apollon77 @MathiasJ last edited by

                                          @MathiasJ Er ist dran. Das eine File manuell abzupassen tut vorher und nachher!

                                          1 Reply Last reply Reply Quote 0
                                          • coyote
                                            coyote Most Active last edited by

                                            @apollon77 kannst du mir vllt da weiterhelfen? Habe diese "node-hue-api" gerade nochmal neu in die javascript instanz hinzugefügt, dann kommt folgendes:

                                            host.debian	2019-10-10 22:53:54.042	info	instance system.adapter.javascript.0 terminated with code 156 (156)
                                            host.debian	2019-10-10 22:53:54.042	error	Caught by controller[9]: (node:20588) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by
                                            host.debian	2019-10-10 22:53:54.042	error	Caught by controller[8]: at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1106:14)
                                            host.debian	2019-10-10 22:53:54.042	error	Caught by controller[8]: (node:20588) UnhandledPromiseRejectionWarning: Error: connect ECONNREFUSED 192.168.66.31:443
                                            host.debian	2019-10-10 22:53:54.042	error	Caught by controller[7]: (node:20588) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by
                                            host.debian	2019-10-10 22:53:54.041	error	Caught by controller[6]: at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1106:14)
                                            host.debian	2019-10-10 22:53:54.041	error	Caught by controller[6]: (node:20588) UnhandledPromiseRejectionWarning: Error: connect ECONNREFUSED 192.168.66.31:443
                                            host.debian	2019-10-10 22:53:54.041	error	Caught by controller[5]: (node:20588) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by
                                            host.debian	2019-10-10 22:53:54.041	error	Caught by controller[4]: at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1106:14)
                                            host.debian	2019-10-10 22:53:54.041	error	Caught by controller[4]: (node:20588) UnhandledPromiseRejectionWarning: Error: connect ECONNREFUSED 192.168.66.31:443
                                            host.debian	2019-10-10 22:53:54.041	error	Caught by controller[3]: (node:20588) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js proc
                                            host.debian	2019-10-10 22:53:54.041	error	Caught by controller[2]: (node:20588) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by
                                            host.debian	2019-10-10 22:53:54.041	error	Caught by controller[1]: at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1106:14)
                                            host.debian	2019-10-10 22:53:54.040	error	Caught by controller[1]: (node:20588) UnhandledPromiseRejectionWarning: Error: connect ECONNREFUSED 192.168.66.31:443
                                            host.debian	2019-10-10 22:53:54.040	error	Caught by controller[0]: ********************************************************************************
                                            host.debian	2019-10-10 22:53:54.040	error	Caught by controller[0]: Please consult the documentation at https://github.com/peter-murray/node-hue-api for the documentation on the new API.
                                            host.debian	2019-10-10 22:53:54.040	error	Caught by controller[0]: require("node-hue-api").v3
                                            host.debian	2019-10-10 22:53:54.040	error	Caught by controller[0]: You need to migrate your code to use the new API available via import
                                            host.debian	2019-10-10 22:53:54.040	error	Caught by controller[0]: This will be removed in v4.x of node-hue-api.
                                            host.debian	2019-10-10 22:53:54.040	error	Caught by controller[0]: This shim provides a limited backporting of the features available in the updated API in v3.x.
                                            host.debian	2019-10-10 22:53:54.039	error	Caught by controller[0]: Backwards compatibility shim for node-hue-api.
                                            host.debian	2019-10-10 22:53:54.035	error	Caught by controller[0]: ********************************************************************************
                                            javascript.0	2019-10-10 22:53:52.981	info	(20588) Terminated (START_IMMEDIATELY_AFTER_STOP): Without reason
                                            javascript.0	2019-10-10 22:53:52.432	info	(20588) Got terminate signal TERMINATE_YOURSELF
                                            

                                            Vorher hatte das ohne Probleme funktioniert

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            577
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            js-controller
                                            48
                                            1047
                                            256403
                                            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