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.
    • 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
                          • crunchip
                            crunchip Forum Testing Most Active @apollon77 last edited by

                            @apollon77 also bug, denn ich schreibe ja nichts
                            fenster auf, sende nachricht

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

                              generelle Frage zu Sayit
                              wie verwendet man denn das?

                              hab das einfach mal so hinterlegt, mit dem Text "Bewegung erkannt"
                              6cc16871-d73b-4d0b-97e8-72c83534c1ca-grafik.png
                              als Sprachausgabe kommt aber mein Wetterbericht
                              e4340150-c099-4c45-86a3-4fbe5c581ae9-grafik.png

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

                                @crunchip

                                Screenshot (3419).png
                                Denke es kommt auf den State an.

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

                                  @sigi234 das ist egal, ob ich ne Lampe wie in deinem Beispiel, oder nen BWM als Trigger nehme, auch nicht, wenn ich die Sprache verändere.

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

                                    @crunchip Dann leg mal Issue an. Wie soll da ein Wetterbericht kommen? 😉

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

                                      @apollon77 weil der im Datenpunkt(mp3) hinterlegt ist als letzte Ausgabe, siehe oben
                                      und bevor ich nun wegen jedem "Furz" gleich ein issue anlege, wollte ich sicherheitshalber erst mal nachfragen, ob es nicht ein "Bedienungsfehler" meinerseits ist

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

                                        @crunchip Also am Ende macht der Adapter nix anderes als sayit eine Message zu schicken das der was tut. rest wäre damit eher sayit als Rules

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

                                          Die Funktion setStateDelayed fehlt wohl noch. Zumindest kann ich sie auf Anhieb nicht finden.

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

                                            @msauer Dann bitte GitHub issue anlegen als Feature Request

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            534
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

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