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

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    Test Javascript-Adapter 5.0.7 - RULES

    This topic has been deleted. Only users with topic management privileges can see it.
    • sigi234
      sigi234 Forum Testing Most Active @Bluefox last edited by sigi234

      @bluefox

      Cool, läuft, Installation ohne Fehler. Teste gerade.

      Screenshot (3413).png

      Platform: Windows
      RAM: 16 GB 
      Node.js: 12.20.2
      NPM: 6.14.10
      JS Controler: 3.2.16
      Admin: 4.2.1
      Web: 3.3.0
      Socket.io: 3.1.4
      Script Engine: 5.0.2
      

      Bericht:

      Bei Say It kann das Volume nicht geändert werden.

      Screenshot (3415)_LI.jpg

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

        @sigi234 machste bitte GitHub issue? :-))

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

          Für alle Tester: 5.0.2 ist verfügbar. Bitte updaten

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

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

            @sigi234 machste bitte GitHub issue? :-))

            https://github.com/ioBroker/ioBroker.javascript/issues/771

            sigi2345 created this issue in ioBroker/ioBroker.javascript

            closed Rules: Say It Volume keine Funktion #771

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

              ich raff's irgendwie noch nicht, da tut sich nichts, hab alle möglichen Variationen probiert
              einfaches script,
              BWM aktualisiert, Wert true, sende message, egal ob telegram instanz 0 oder 1, auch user all oder ausgewählter user, kommt keine Meldung
              ce5e351b-b501-44aa-b80b-b86271f757d5-grafik.png

              on({id: "zigbee.0.00158d0002fd50c5.occupancy", change: "any"}, async function (obj) {
                 if (obj.state.value == true) {
                 	sendTo("telegram.0", {user: _, text: "Bewegung".replace(/%s/g, obj.state.value)});
                 } else {
                 	
                 }
              });
              /*const demo = {
               "triggers": [
                 {
                   "id": "TriggerState",
                   "acceptedBy": "triggers",
                   "_id": 1614511445135,
                   "tagCard": "on update",
                   "oid": "zigbee.0.00158d0002fd50c5.occupancy",
                   "oidRole": "sensor.motion",
                   "oidType": "boolean",
                   "oidWrite": false,
                   "oidRead": true
                 }
               ],
               "conditions": [
                 [
                   {
                     "id": "ConditionState",
                     "acceptedBy": "conditions",
                     "_id": 1614511496747,
                     "tagCard": "=",
                     "oid": "",
                     "value": true,
                     "useTrigger": true
                   }
                 ]
               ],
               "actions": {
                 "then": [
                   {
                     "id": "ActionTelegram",
                     "acceptedBy": "actions",
                     "_id": 1614511565462,
                     "instance": "telegram.0",
                     "user": "_",
                     "text": "Bewegung"
                   }
                 ],
                 "else": []
               }
              };*/
              
              

              setz ich equal to false kommt folgende Meldung

              12:28:11.971	error	javascript.0 (13816) script.js.testrule: ReferenceError: _ is not defined
              12:28:11.972	error	javascript.0 (13816) at Object.<anonymous> (script.js.testrule:2:28)
              12:28:12.090	error	javascript.0 (13816) script.js.testrule: ReferenceError: _ is not defined
              12:28:12.091	error	javascript.0 (13816) at Object.<anonymous> (script.js.testrule:2:28)
              

              auch wenn ich es mit einem Fenstersensor probiere, kommt nichts

              on({id: "zigbee.0.00158d00036b3fef.opened", change: "ne"}, async function (obj) {
                  if (obj.state.value == true) {
              		sendTo("telegram.0", {user: _, text: "fenster offen".replace(/%s/g, obj.state.value)});
                  } else {
              		
                  }
              });
              
              apollon77 1 Reply Last reply Reply Quote 0
              • apollon77
                apollon77 @crunchip last edited by

                @crunchip Bitte schau mal und nimmt de 5.0.2 fasll nicht und Zeig bitte mal das generierte Javascript

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

                  @apollon77 das script ist im spoiler
                  hatte das gestern ja schon mal probiert und eben zuvor ja frisch 5.0.2 installiert

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

                    @crunchip Bitte Github issue für die Telegram Action. Mit Bild und code bitte 🙂

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

                    crunchip E Homoran 3 Replies Last reply Reply Quote 0
                    • crunchip
                      crunchip Forum Testing Most Active @apollon77 last edited by

                      @apollon77 ist an und für sich ja das gleiche Script.BWM steht ja längere Zeit auf true und wird aktualisiert, deshalb hab ich nen Fenstersensor im zweiten script als "Trigger" genommen, der auf Änderung true/falls auslöst, da ich dachte, es könnte daran liegen, aber scheinbar ist telegram das Problem. In beiden Fällen passiert einfach gar nichts und wie beschrieben, beim setzen des equal to false, erscheint die error Meldung beim Auslösen

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

                        @apollon77
                        Muss das nicht obj.state.val statt .value heißen?

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            464
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

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