Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Triggerung erfolgt nicht - wo ist der Fehler?

    NEWS

    • Neues Video über Aliase, virtuelle Geräte und Kategorien

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    Triggerung erfolgt nicht - wo ist der Fehler?

    This topic has been deleted. Only users with topic management privileges can see it.
    • Meister Mopper
      Meister Mopper @brokeling last edited by Meister Mopper

      @brokeling Mach doch so, das klappt:
      236509f2-3bcc-4055-9246-a3b84592f2d4-grafik.png

      <xml xmlns="https://developers.google.com/blockly/xml">
       <block type="on" id="3iBz*;|M.bCIE]566+*%" x="-762" y="-212">
         <field name="OID">Object ID</field>
         <field name="CONDITION">ne</field>
         <field name="ACK_CONDITION"></field>
         <statement name="STATEMENT">
           <block type="controls_if" id="4wYTPA*!5.1.zV0Bz,FX">
             <mutation else="1"></mutation>
             <value name="IF0">
               <block type="on_source" id="m;Rm|8?S:wyL[9My8m-j">
                 <field name="ATTR">state.val</field>
               </block>
             </value>
             <statement name="DO0">
               <block type="control" id="3WA,X8PIS},;y1!=x$88">
                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                 <field name="OID">Object ID</field>
                 <field name="WITH_DELAY">FALSE</field>
                 <value name="VALUE">
                   <block type="logic_boolean" id="md|JLd*lNY4QoSFLf63F">
                     <field name="BOOL">TRUE</field>
                   </block>
                 </value>
               </block>
             </statement>
             <statement name="ELSE">
               <block type="control" id="n2LiuRPXa[Vv*bVM+OeD">
                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                 <field name="OID">Object ID</field>
                 <field name="WITH_DELAY">FALSE</field>
                 <value name="VALUE">
                   <block type="logic_boolean" id="3F@vz3:O.*qoh.)Z={oX">
                     <field name="BOOL">FALSE</field>
                   </block>
                 </value>
               </block>
             </statement>
           </block>
         </statement>
       </block>
      </xml>
      

      1 Reply Last reply Reply Quote 0
      • B
        brokeling @brokeling last edited by brokeling

        20200908_130707.jpg

        Dies ist ein Screenshot Bild, wenn ich das Triggerobjekt auswählen will.
        Wenn ich die Objekte +15_Min oder Buttonpressed+5 auswähle, dann erfolgt keine Triggerung. Auffallend ist auch dass unter Value bei diesen beiden Objekten nichts sthet, obwohl gleich erstellt wie die anderen.

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

          @brokeling zeig doch bitte dein Blockly

          Was du da markierst ist kein Datenpunkt

          B 1 Reply Last reply Reply Quote 0
          • B
            brokeling @Homoran last edited by

            @Homoran
            Ich will z. B. +15 Min auswählen... ich hab oben noch eine Bildbeschreibung eingefügt...

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

              @brokeling zeige bitte dein Blockly

              ...

              und den RAW von dem Datenpunkt

              B 2 Replies Last reply Reply Quote 0
              • B
                brokeling @Homoran last edited by brokeling

                @Homoran

                {
                  "_id": "admin.0.Globale_Variablen_für_Holger.Stoppuhr.+15_Min",
                  "type": "state",
                  "common": {
                    "name": "+15 Min",
                    "role": "",
                    "type": "boolean",
                    "read": true,
                    "write": true,
                    "desc": "Manuell erzeugt",
                    "def": false
                  },
                  "native": {},
                  "from": "system.adapter.admin.0",
                  "user": "system.user.admin",
                  "ts": 1599558314829,
                  "acl": {
                    "object": 1638,
                    "state": 1638
                  }
                }
                
                paul53 1 Reply Last reply Reply Quote 0
                • B
                  brokeling @Homoran last edited by brokeling

                  @Homoran

                  on({id: 'admin.0.Globale_Variablen_für_Holger.Stoppuhr.+15_Min', change: "ne"}, function (obj) {
                    var value = obj.state.val;
                    var oldValue = obj.oldState.val;
                    console.log('test');
                  });
                  
                  

                  weiß nicht wie ich blockly einstellen kann, hab das umgewandelt.
                  Es ist nur der test, ob die Triggerung funktioniert.
                  Und eben das tut er nicht 😞

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

                    @brokeling sagte in Triggerung erfolgt nicht - wo ist der Fehler?:

                    weiß nicht wie ich blockly einstellen kann

                    screenshot machen und hier per Upload-Funktion (Wolke) einstellen

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

                      @brokeling sagte:

                        "_id": "admin.0.Globale_Variablen_für_Holger.Stoppuhr.+15_Min",
                      

                      Eigene Datenpunkte erstellt man nicht unter admin.0 !

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

                        @paul53
                        o.k., aber kann das der Fehler sein?
                        Bisher und auch andere Datenpunkte funktionieren ja unter admin.

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

                          @brokeling sagte in Triggerung erfolgt nicht - wo ist der Fehler?:

                          Bisher und auch andere Datenpunkte

                          bis zu einem Update des admin.
                          Dann ist irgendwann mal alles weg - und das Geschrei groß

                          Das ist ein Systemobjekt

                          B 1 Reply Last reply Reply Quote 0
                          • B
                            brokeling @Homoran last edited by

                            @Homoran
                            tja dann muss ich sie wohl alle irgendwann mal ändern.
                            Ärgerlich, denn es sind schon ein paar...
                            Wo sollte ich sie erstellen?

                            Homoran v522533 2 Replies Last reply Reply Quote 0
                            • Homoran
                              Homoran Global Moderator Administrators @brokeling last edited by

                              @brokeling sagte in Triggerung erfolgt nicht - wo ist der Fehler?:

                              Wo sollte ich sie erstellen?

                              0_userdata.0 ist der Standardpfad dafür

                              1 Reply Last reply Reply Quote 0
                              • v522533
                                v522533 @brokeling last edited by

                                @brokeling

                                unter 0_userdata.0 oder unter javascript.0

                                B 1 Reply Last reply Reply Quote 0
                                • B
                                  brokeling @v522533 last edited by

                                  tja, nur eine Zeile verrutscht 😕
                                  Schön wäre es, wenn man die Strukur verschieben/kopieren könnte, geht das?

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

                                    @brokeling sagte in Triggerung erfolgt nicht - wo ist der Fehler?:

                                    tja, nur eine Zeile verrutscht

                                    ohne Tricks ist in admin.0 "eigentlich" kein Datenpunkt zu erstellen

                                    Aber BTT:
                                    wie sieht denn jetzt dein Blockly aus?
                                    Datenpunktbereinigung kannst du ein andermal Stück für Stück umsetzen, aber nicht allzulange aufschieben

                                    B 2 Replies Last reply Reply Quote 0
                                    • B
                                      brokeling @Homoran last edited by

                                      @Homoran
                                      Blockly ganz einfach, nur die Anzeige ob Trigger ausgelöst wird:
                                      ebdd470d-c1a4-48b1-935e-a73ed6c07d60-grafik.png

                                      Homoran 1 Reply Last reply Reply Quote 0
                                      • B
                                        brokeling @Homoran last edited by

                                        @Homoran said in Triggerung erfolgt nicht - wo ist der Fehler?:

                                        ohne Tricks ist in admin.0 "eigentlich" kein Datenpunkt zu erstellen

                                        verstehe ich nicht, denn man makiert doch einfach nur die Zeile admin und geht auf + , schon wird ein Unterpunkt erstellt.

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

                                          @brokeling ok!
                                          und da kommt im log nichts, wenn du den Wert in den Objekten änderst?

                                          B 1 Reply Last reply Reply Quote 0
                                          • B
                                            brokeling @Homoran last edited by

                                            @Homoran
                                            nö, das mag nicht.
                                            Aber wie gesagt, die Datenpunkte unterscheiden sich schon in der Auswahl - bei +15 steht bei Value z. B. nichts.
                                            Die anderen Datenpunkte funktionieren außer dieser Bottonpressed+5, wo auch kein value steht!

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            529
                                            Online

                                            32.0k
                                            Users

                                            80.5k
                                            Topics

                                            1.3m
                                            Posts

                                            trigger erfolgt nicht
                                            5
                                            38
                                            869
                                            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