Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. Test Javascript-Adapter 5.0.7 - RULES

    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 Javascript-Adapter 5.0.7 - RULES

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

      @crunchip Ja hatte ich auch geradde mitbekommen ... Github sollte gehen ... npm kommt bald

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

        @apollon77 ok, hatte npm probiert

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

          @crunchip Ok, wir warten mit 5.04 mal noch bissl .. meld emich nochmal

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

            @apollon77 alles klar, so wie ich es gesehen habe wurde telegram bzw obj.state.val gefixt, habe aktuell 5.0.3 installiert jedoch immer noch das gleiche Problem, keine telegram ausgabe und beim Auslösen

            18:43:14.112	error	javascript.0 (2769) script.js.testrule: ReferenceError: _ is not defined
            18:43:14.112	error	javascript.0 (2769) at Object.<anonymous> (script.js.testrule:7:31)
            
            
            let cond0 = false;
            
            on({id: "zigbee.0.00158d00036b3fef.opened", change: "ne"}, async function (obj) {
                const _cond = obj.state.val == true;
                if (cond0 === false && _cond) {
                    cond0 = true;    
            		sendTo("telegram.0", {user: _, text: "Fenster offen".replace(/%s/g, obj.state.value)});
                } else if (cond0 === true && !_cond) {
                    cond0 = false;    
            		
                }
            
            apollon77 2 Replies Last reply Reply Quote 0
            • apollon77
              apollon77 @crunchip last edited by

              @crunchip Das sollte in 5.0.4 gefixt sein, kommt demnächst(TM) ins Latest ...

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

                @crunchip 5.0.4 ist auf npm

                crunchip paul53 E 3 Replies Last reply Reply Quote 0
                • David G.
                  David G. @Bluefox last edited by

                  @bluefox

                  Hey,

                  die Rules sehen cool aus.
                  Hätten mir in den Anfangszeiten bestimmt geholfen.

                  Wurde am Adapte neben den Rules noch viel verändert?

                  Habe nur ein Produktivsystem. Würde mir die Rules gerne mal anschauen und testen.
                  Aber nur, wenn (voraussichtlich) in anderen Bereichen keine Fehler auftreten.

                  apollon77 liv-in-sky 2 Replies Last reply Reply Quote 0
                  • crunchip
                    crunchip Forum Testing Most Active @apollon77 last edited by

                    @apollon77 funktioniert nun, musste jedoch das script löschen und neu anlegen

                    Homoran 1 Reply Last reply Reply Quote 0
                    • Homoran
                      Homoran Global Moderator Administrators @crunchip last edited by

                      @crunchip sagte in Test Javascript-Adapter 5.0.3 - RULES:

                      @apollon77 funktioniert nun, musste jedoch das script löschen und neu anlegen

                      wahrscheinlich hätte eine kleine Änderung (und nach speichern rückgängig) gereicht

                      crunchip 1 Reply Last reply Reply Quote 0
                      • crunchip
                        crunchip Forum Testing Most Active @Homoran last edited by

                        @homoran ich hatte jeden einzelnen posten mal verändert und auch entfernt und wieder zugefügt, war ja schon kurz davor zu schreiben, das es immer noch nicht klappt😊

                        1 Reply Last reply Reply Quote 1
                        • paul53
                          paul53 @apollon77 last edited by

                          @apollon77 sagte: 5.0.4 ist auf npm

                          Fehler: value

                          		console.log("Wert: ".replace(/%s/g, obj.state.value).replace(/%id/g, obj.id));
                          
                          apollon77 1 Reply Last reply Reply Quote 0
                          • E
                            ente34 @apollon77 last edited by

                            @apollon77

                            State condition false funktioniert noch nicht + noch ein obj.state.value
                            (5.0.4, habe nur state condition gelöscht und neu gemacht)

                            let cond0 = false;
                            
                            on({id: "fritzdect.0.DECT_5C:49:79:EF:51:FA.state", change: "ne"}, async function (obj) {
                                const _cond = obj.state.val == _;
                                if (cond0 === false && _cond) {
                                    cond0 = true;    
                            		console.log("TEST Trigger %s (%id)".replace(/%s/g, obj.state.value).replace(/%id/g, obj.id));
                                } else if (cond0 === true && !_cond) {
                                    cond0 = false;    
                            		
                                }
                            });
                            
                            
                            crunchip apollon77 2 Replies Last reply Reply Quote 0
                            • crunchip
                              crunchip Forum Testing Most Active @ente34 last edited by

                              @ente34 sagte in Test Javascript-Adapter 5.0.3 - RULES:

                              noch ein obj.state.value

                              hab ich auch noch, aber telegram kommt nun an
                              was noch aufgefallen ist, kommt wenn man das script aufruft
                              b678e1de-ddb5-4caf-88b5-6abe7c96b53c-grafik.png

                              apollon77 2 Replies Last reply Reply Quote 0
                              • apollon77
                                apollon77 @crunchip last edited by

                                @crunchip dann ist der state in den du schreiben willst als read only geflaggt. Kann das sein?? Wenn ja darfst du den nicht beschreiben an sich. Daher die Warnung. Also ggf Bug beim Adapter öffnen der den state anbietet.

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

                                  @ente34 Bitte GitHub issue mit screeenshot und dem vollständigen js code

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

                                    @paul53 Bitte GitHub issue mit Screenshot und komplettem js

                                    1 Reply Last reply Reply Quote 0
                                    • apollon77
                                      apollon77 @David G. last edited by

                                      @david-g Siehe oben im einführungsartikel:

                                      Das neue Feature hat keine Auswirkungen auf die Ausführung der bestehenden Skripte und läuft ausschließlich im Browser.

                                      Das Risiko ist eher gering

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

                                        @apollon77 ist richtig, dann verstehe ich aber das Prinzip nicht ganz, warum dafür ne Warnung ausgegeben wird. Ist doch üblich via device zu triggern was nicht beschreibbar ist.

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

                                          @crunchip sagte in Test Javascript-Adapter 5.0.4 - RULES:

                                          Ist doch üblich via device zu triggern was nicht beschreibbar ist.

                                          Also lesend ja ... an sich sollte die meldung nur kommen wenn man in ein read-only Feld SCHREIBT

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

                                            @crunchip Jupp der Dialog kam zu oft ... ist in nächster Version später gefixt (also 5.0.5 vorasuss)

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            377
                                            Online

                                            31.8k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

                                            rules
                                            25
                                            113
                                            13667
                                            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