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

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Test Javascript-Adapter 5.0.7 - RULES

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

      @ente34 hehe ... ja das haben wir vorhein gefunden... von daher liegt es ggf echt daran. But Issue ist schon angelegt

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

        @apollon77 sagte in Test Javascript-Adapter 5.0.0 - RULES:

        Ud was war der andere Fall wo einfach nichts passiert war?

        ich war das - suche aber noch

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

          DIe 5.0.3 hat einige weitere Fixes - vor allem State basierte Conditions tun nun so wie Sie sollen 🙂

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

            Und die 5.0.4 verbessert nochmal einiges!

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

              @apollon77 gibtś die schon? gerade versucht zu installieren

              apollon77 1 Reply Last reply Reply Quote 0
              • 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
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            942
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

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