Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Tester
  4. Test Javascript-Adapter 5.0.7 - RULES

NEWS

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    22
    1
    1.2k

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    9.2k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    14
    1
    2.5k

Test Javascript-Adapter 5.0.7 - RULES

Scheduled Pinned Locked Moved Tester
rules
113 Posts 25 Posters 21.6k Views 31 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • sigi234S 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

    apollon77A Offline
    apollon77A Offline
    apollon77
    wrote on last edited by
    #4

    @sigi234 machste bitte GitHub issue? :-))

    Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

    • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
    • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
    sigi234S 1 Reply Last reply
    0
    • apollon77A Offline
      apollon77A Offline
      apollon77
      wrote on last edited by
      #5

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

      Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

      • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
      • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
      1 Reply Last reply
      0
      • apollon77A apollon77

        @sigi234 machste bitte GitHub issue? :-))

        sigi234S Online
        sigi234S Online
        sigi234
        Forum Testing Most Active
        wrote on last edited by
        #6

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

        @sigi234 machste bitte GitHub issue? :-))

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

        Bitte benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.
        Immer Daten sichern!

        1 Reply Last reply
        1
        • crunchipC Away
          crunchipC Away
          crunchip
          Forum Testing Most Active
          wrote on last edited by crunchip
          #7

          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 {
          		
              }
          });
          

          umgestiegen von Proxmox auf Unraid

          apollon77A 1 Reply Last reply
          0
          • crunchipC 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 {
            		
                }
            });
            
            apollon77A Offline
            apollon77A Offline
            apollon77
            wrote on last edited by
            #8

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

            Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

            • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
            • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
            crunchipC 1 Reply Last reply
            0
            • apollon77A apollon77

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

              crunchipC Away
              crunchipC Away
              crunchip
              Forum Testing Most Active
              wrote on last edited by crunchip
              #9

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

              umgestiegen von Proxmox auf Unraid

              apollon77A 1 Reply Last reply
              0
              • crunchipC crunchip

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

                apollon77A Offline
                apollon77A Offline
                apollon77
                wrote on last edited by
                #10

                @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?

                Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

                • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
                • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
                crunchipC E HomoranH 3 Replies Last reply
                0
                • apollon77A apollon77

                  @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?

                  crunchipC Away
                  crunchipC Away
                  crunchip
                  Forum Testing Most Active
                  wrote on last edited by
                  #11

                  @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

                  umgestiegen von Proxmox auf Unraid

                  1 Reply Last reply
                  0
                  • apollon77A apollon77

                    @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?

                    E Offline
                    E Offline
                    ente34
                    wrote on last edited by
                    #12

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

                    apollon77A 1 Reply Last reply
                    0
                    • E ente34

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

                      apollon77A Offline
                      apollon77A Offline
                      apollon77
                      wrote on last edited by
                      #13

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

                      Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

                      • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
                      • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
                      1 Reply Last reply
                      0
                      • apollon77A apollon77

                        @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?

                        HomoranH Do not disturb
                        HomoranH Do not disturb
                        Homoran
                        Global Moderator Administrators
                        wrote on last edited by
                        #14

                        @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

                        kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

                        Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                        der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

                        1 Reply Last reply
                        0
                        • apollon77A Offline
                          apollon77A Offline
                          apollon77
                          wrote on last edited by
                          #15

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

                          Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

                          • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
                          • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
                          1 Reply Last reply
                          0
                          • apollon77A Offline
                            apollon77A Offline
                            apollon77
                            wrote on last edited by
                            #16

                            Und die 5.0.4 verbessert nochmal einiges!

                            Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

                            • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
                            • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
                            crunchipC 1 Reply Last reply
                            0
                            • apollon77A apollon77

                              Und die 5.0.4 verbessert nochmal einiges!

                              crunchipC Away
                              crunchipC Away
                              crunchip
                              Forum Testing Most Active
                              wrote on last edited by
                              #17

                              @apollon77 gibtś die schon? gerade versucht zu installieren

                              umgestiegen von Proxmox auf Unraid

                              apollon77A 1 Reply Last reply
                              0
                              • crunchipC crunchip

                                @apollon77 gibtś die schon? gerade versucht zu installieren

                                apollon77A Offline
                                apollon77A Offline
                                apollon77
                                wrote on last edited by
                                #18

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

                                Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

                                • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
                                • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
                                crunchipC 1 Reply Last reply
                                0
                                • apollon77A apollon77

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

                                  crunchipC Away
                                  crunchipC Away
                                  crunchip
                                  Forum Testing Most Active
                                  wrote on last edited by
                                  #19

                                  @apollon77 ok, hatte npm probiert

                                  umgestiegen von Proxmox auf Unraid

                                  apollon77A 1 Reply Last reply
                                  0
                                  • crunchipC crunchip

                                    @apollon77 ok, hatte npm probiert

                                    apollon77A Offline
                                    apollon77A Offline
                                    apollon77
                                    wrote on last edited by
                                    #20

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

                                    Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

                                    • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
                                    • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
                                    crunchipC 1 Reply Last reply
                                    0
                                    • apollon77A apollon77

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

                                      crunchipC Away
                                      crunchipC Away
                                      crunchip
                                      Forum Testing Most Active
                                      wrote on last edited by
                                      #21

                                      @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;    
                                      		
                                          }
                                      

                                      umgestiegen von Proxmox auf Unraid

                                      apollon77A 2 Replies Last reply
                                      0
                                      • crunchipC crunchip

                                        @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;    
                                        		
                                            }
                                        
                                        apollon77A Offline
                                        apollon77A Offline
                                        apollon77
                                        wrote on last edited by
                                        #22

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

                                        Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

                                        • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
                                        • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
                                        1 Reply Last reply
                                        0
                                        • crunchipC crunchip

                                          @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;    
                                          		
                                              }
                                          
                                          apollon77A Offline
                                          apollon77A Offline
                                          apollon77
                                          wrote on last edited by
                                          #23

                                          @crunchip 5.0.4 ist auf npm

                                          Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

                                          • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
                                          • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
                                          crunchipC paul53P E 3 Replies Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          615

                                          Online

                                          32.5k

                                          Users

                                          81.7k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Home
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe