Skip to content
  • 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
Logo
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. [Vorlage] Flexible Pin-Eingabe mit Blockly

NEWS

  • Wartung am 15.11. – Forum ab 22:00 Uhr nicht erreichbar
    BluefoxB
    Bluefox
    12
    2
    280

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

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    1.7k

[Vorlage] Flexible Pin-Eingabe mit Blockly

[Vorlage] Flexible Pin-Eingabe mit Blockly

Scheduled Pinned Locked Moved Skripten / Logik
blocklytemplate
72 Posts 16 Posters 18.0k Views 7 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.
  • A Offline
    A Offline
    anubiss1337
    wrote on last edited by
    #55

    Sorry aber ganz verstehe ich dass nicht. Habs aber eingefügt und getestet leider ohne erfolg.

    Hab ich das richtig umgesetzt? Komischerweise macht er jetzt nichts mehr…
    2134_3.jpg

    1 Reply Last reply
    0
    • rantanplanR Offline
      rantanplanR Offline
      rantanplan
      wrote on last edited by
      #56

      Auf aktualisieren triggern.

      Rantanplan

      CCU3 / MS Server 2019(VM) / Scripten mit Blockly

      1 Reply Last reply
      0
      • A Offline
        A Offline
        anubiss1337
        wrote on last edited by
        #57

        hallo nochmal,

        jetzt erst Zeit gehabt dass weiter zu testen. Leider bekomme ich ein endlos schleife wenn ich auf Aktualisieren umstelle.

        Ich stelle nochmal dass ganze Script rein:

        ! ````
        <block xmlns="http://www.w3.org/1999/xhtml" type="on_ext" id="7r*}c).]GtkEH)FR.:s." x="-87" y="239"><mutation items="4"></mutation>
        <field name="CONDITION">any</field>

        <value name="OID0"><shadow type="field_oid" id="qWM98DOf90FmZ?BT;~"><field name="oid">hm-rpc.0.NEQ1001257.3.PRESS_SHORT</field></shadow></value> <value name="OID1"><shadow type="field_oid" id="db.g;R[uTi-M|khCqfC"><field name="oid">hm-rpc.0.NEQ1001257.4.PRESS_SHORT</field></shadow></value>
        <value name="OID2"><shadow type="field_oid" id="xXI+u{uUm0V4mOYK!n]j"><field name="oid">hm-rpc.0.NEQ1001257.5.PRESS_SHORT</field></shadow></value>
        <value name="OID3"><shadow type="field_oid" id="){~4|);z/p?cVcp9IL)?"><field name="oid">hm-rpc.0.NEQ1001257.6.PRESS_SHORT</field></shadow></value>
        <statement name="STATEMENT"><block type="comment" id="Yg;,[I7Ex=?rcz#y?kj%"><field name="COMMENT">Timer für zu lange Eingabepause stoppen</field>
        <next><block type="timeouts_cleartimeout" id="#p8Sw}HSQK?cYiU:YHiK"><field name="NAME">timeout</field>
        <next><block type="comment" id="?pNSp?WhqKPHT/B_pJo:"><field name="COMMENT">Nur ausführen wenn Eingabe nicht geblockt</field>
        <next><block type="controls_if" id="dn-O]h-kTj)k:Hx)Xkz"><value name="IF0"><block type="logic_compare" id="aahnsRO!(k,8K;ftiGcN"><field name="OP">NEQ</field> <value name="A"><block type="variables_get" id="~1[*:7k/oGI/ZT1ie-F5"><field name="VAR">AnzahlVersuche</field></block></value> <value name="B"><block type="variables_get" id="9EtqToNOpvma_:nUc:I3"><field name="VAR">maxVersuche</field></block></value></block></value> <statement name="DO0"><block type="controls_if" id="53won3Q~KRaZW)3F6_["><mutation elseif="3"></mutation>
        <value name="IF0"><block type="get_value" id="73#_D/?hW=+je)pXEOH]"><field name="ATTR">val</field>
        <field name="OID">hm-rpc.0.NEQ1001257.3.PRESS_SHORT</field></block></value>
        <statement name="DO0"><block type="comment" id="iDWo7Ppf@/PIDOC3,nQg"><field name="COMMENT">Die Eingabe an Funktion übergeben</field>
        <next><block type="procedures_callnoreturn" id="9ND8^RRRst6J
        Tr1aF:P" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation>
        <value name="ARG0"><block type="text" id=";{hUhJ|FuWgRnG+Vx/"><field name="TEXT">3</field></block></value></block></next></block></statement>
        <value name="IF1"><block type="get_value" id="NHZ%eeYxhwr?#M_(BhP/"><field name="ATTR">val</field>
        <field name="OID">hm-rpc.0.NEQ1001257.4.PRESS_SHORT</field></block></value>
        <statement name="DO1"><block type="procedures_callnoreturn" id="TUEyn}|x(z36g?T63y*" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation>
        <value name="ARG0"><block type="text" id="]Rf6@?xK*gplLyQ-bQP"><field name="TEXT">4</field></block></value></block></statement> <value name="IF2"><block type="get_value" id="D5^##Kxmy;bo1B=Nj
        ?"><field name="ATTR">val</field>
        <field name="OID">hm-rpc.0.NEQ1001257.5.PRESS_SHORT</field></block></value>
        <statement name="DO2"><block type="procedures_callnoreturn" id="?}Q)OGY}05Ms(#R@Kycz" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation>
        <value name="ARG0"><block type="text" id=";dy%FKdEuIq;eorrIp|h"><field name="TEXT">5</field></block></value></block></statement>
        <value name="IF3"><block type="get_value" id="SRUoRf~4WWTa8Xu/dE!E"><field name="ATTR">val</field>
        <field name="OID">hm-rpc.0.NEQ1001257.6.PRESS_SHORT</field></block></value>
        <statement name="DO3"><block type="procedures_callnoreturn" id="gk`-Y{g/Q.j1Re7GF%;{" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation>
        <value name="ARG0"><block type="text" id="F13L8vUOy2([X(lz|u[l"><field name="TEXT">6</field></block></value></block></statement>
        <next><block type="control_ex" id="_:AWXR[GfGd)hImP]K~+"><field name="TYPE">true</field>
        <field name="CLEAR_RUNNING">FALSE</field>
        <value name="OID"><shadow type="field_oid" id="#0Y*%|P|@}R:Dv9h~60a"><field name="oid">Object ID</field></shadow>
        <block type="on_source" id="LI0xyz}7FooT0wLwAxC|"><field name="ATTR">id</field></block></value>
        <value name="VALUE"><shadow type="logic_boolean" id=",qW7t8(uC5=aedflFGNt"><field name="BOOL">FALSE</field></shadow></value>
        <value name="DELAY_MS"><shadow type="math_number" id="N[i??KQZ^f[ik5UI2U8("><field name="NUM">0</field></shadow></value></block></next></block></statement></block></next></block></next></block></next></block></statement></block>

        
        dass ist mal ein kurzer ausschnitt von meinem Log:
        
        >! ````
        4:16.878	[info]	javascript.0 script.js.common.pineingabe: *****Abwesend aktivieren****
        14:24:16.886	[info]	javascript.0 script.js.common.pineingabe: *****Eingabe -> 33333
        14:24:16.886	[info]	javascript.0 script.js.common.pineingabe: *****Zuviele Zeichen*****
        14:24:16.894	[info]	javascript.0 script.js.common.pineingabe: *****Eingabe -> 3
        14:24:16.902	[info]	javascript.0 script.js.common.pineingabe: *****Eingabe -> 33
        14:24:16.910	[info]	javascript.0 script.js.common.pineingabe: *****Eingabe -> 333
        14:24:16.918	[info]	javascript.0 script.js.common.pineingabe: *****Eingabe -> 3333
        14:24:16.919	[info]	javascript.0 script.js.common.pineingabe: *****Abwesend aktivieren****
        14:24:16.926	[info]	javascript.0 script.js.common.pineingabe: *****Eingabe -> 33333
        14:24:16.926	[info]	javascript.0 script.js.common.pineingabe: *****Zuviele Zeichen*****
        14:24:16.933	[info]	javascript.0 script.js.common.pineingabe: *****Eingabe -> 3
        14:24:16.941	[info]	javascript.0 script.js.common.pineingabe: *****Eingabe -> 33
        14:24:16.948	[info]	javascript.0 script.js.common.pineingabe: *****Eingabe -> 333
        14:24:16.957	[info]	javascript.0 script.js.common.pineingabe: *****Eingabe -> 3333
        14:24:16.958	[info]	javascript.0 script.js.common.pineingabe: *****Abwesend aktivieren****
        14:24:16.979	[info]	javascript.0 script.js.common.pineingabe: *****Eingabe -> 33333
        14:24:16.980	[info]	javascript.0 script.js.common.pineingabe: *****Zuviele Zeichen*****
        14:24:16.988	[info]	javascript.0 script.js.common.pineingabe: *****Eingabe -> 3
        14:24:16.996	[info]	javascript.0 script.js.common.pineingabe: *****Eingabe -> 33
        14:24:17.003	[info]	javascript.0 script.js.common.pineingabe: *****Eingabe -> 333
        14:24:17.011	[info]	javascript.0 script.js.common.pineingabe: *****Eingabe -> 3333
        14:24:17.013	[info]	javascript.0 script.js.common.pineingabe: *****Abwesend aktivieren****
        14:24:17.020	[info]	javascript.0 script.js.common.pineingabe: *****Eingabe -> 33333
        14:24:17.020	[info]	javascript.0 script.js.common.pineingabe: *****Zuviele Zeichen*****
        14:24:17.027	[info]	javascript.0 script.js.common.pineingabe: *****Eingabe -> 3
        14:24:17.040	[info]	javascript.0 script.js.common.pineingabe: *****Eingabe -> 33
        14:24:17.051	[info]	javascript.0 script.js.common.pineingabe: *****Eingabe -> 333
        14:24:17.070	[info]	javascript.0 script.js.common.pineingabe: *****Eingabe -> 3333
        14:24:17.071	[info]	javascript.0 script.js.common.pineingabe: *****Abwesend aktivieren****
        14:24:17.071	[info]	javascript.0 script.js.common.pineingabe: *****Eingabe -> 33333
        14:24:17.071	[info]	javascript.0 script.js.common.pineingabe: *****Zuviele Zeichen*****
        14:24:17.077	[info]	javascript.0 script.js.common.pineingabe: *****Eingabe -> 3
        14:24:17.090	[info]	javascript.0 Stop script script.js.common.pineingabe
        

        und so macht er dass bis ich dass Script anhalte.

        1 Reply Last reply
        0
        • rantanplanR Offline
          rantanplanR Offline
          rantanplan
          wrote on last edited by
          #58

          @anubiss1337:

          jetzt erst Zeit gehabt dass weiter zu testen. Leider bekomme ich ein endlos schleife wenn ich auf Aktualisieren umstelle. `
          Ja, ja, mein Fehler 😢

          Mal eben schnell so nebenbei ist für mein Alter wohl nichts mehr. 😉

          Also bitte den Trigger wieder auf "ist wahr" setzen.

          Dann den Block für das zurücksetzen auf "unwahr" nicht in den Falls-Block sondern darunter.
          147_beispiel.png

          Bei mir ist der Datenpunkt Wandtaster.x.PRESS_SHORT auf "schreiben erlaubt" gesetzt.

          Ich habe keine Ahnung mehr ob das so war oder ob ich das bei dem ganzen testen mal selbst geändert habe.

          Überprüfe das bitte mal bei Dir unter Objekte.

          Ich werde das Teil wohl demnächst nochmal komplett überarbeiten.

          Melde Dich wenn's klappt…..oder auch nicht 🙂

          Grüße

          [EDIT] Exporte demnächst auch bitte in einem "spoiler" Tag. Also erst "spoiler" und dann "code" anklicken und da zwischen den Export.

          Rantanplan

          CCU3 / MS Server 2019(VM) / Scripten mit Blockly

          1 Reply Last reply
          0
          • A Offline
            A Offline
            anubiss1337
            wrote on last edited by
            #59

            geht doch :shock: hab beim trigger auf Update gestellt und es schein zu funktionieren.

            ! ou ja sorry, spoiler hieß es :oops: habs ganz übersehen…
            ! alsooo es geht immer noch nicht 😢
            ! egal was ich drücke 6 oder 5 oder 4 oder 3...... im log erscheint nur die 3
            ! 19:20:21.203 [info] javascript.0 script.js.common.pineingabe: registered 1 subscription and 0 schedules
            ! 19:20:38.503 [info] javascript.0 script.js.common.pineingabe: *****Eingabe -> 3
            ! 19:21:00.128 [info] javascript.0 script.js.common.pineingabe: *****Eingabe -> 3
            ! 19:21:22.857 [info] javascript.0 script.js.common.pineingabe: *****Eingabe -> 3
            ! 19:21:27.857 [info] javascript.0 script.js.common.pineingabe: Eingabe gesperrt
            ! 19:21:37.858 [info] javascript.0 script.js.common.pineingabe: Eingabe entsperrt
            ! write ist bei mir auch gesetzt (siehe Bild)
            2134_1.jpg

            1 Reply Last reply
            0
            • rantanplanR Offline
              rantanplanR Offline
              rantanplan
              wrote on last edited by
              #60

              Mit "spoiler" zu sieht Deine Antwort besser aus 😄

              Also mein Trigger steht auf "ist wahr".

              Was ich eventuell noch anders haben könnte, ist das altbekannte "Dummy Script" auf der CCU.

              Wenn ich morgen Zeit finde, stelle ich mal mein Script hier rein.

              Rantanplan

              CCU3 / MS Server 2019(VM) / Scripten mit Blockly

              1 Reply Last reply
              0
              • A Offline
                A Offline
                anubiss1337
                wrote on last edited by
                #61

                @rantanplan:

                …. mein Trigger steht auf "ist wahr"..... `

                ja meiner auch und bei "anerkannt ist" hab ich auf update umgestellt und es ging dann…

                1 Reply Last reply
                0
                • W Offline
                  W Offline
                  Walkinlarge2010
                  wrote on last edited by
                  #62

                  Hallo zusammen,

                  danke für die super Vorarbeit!

                  Ich habe das Script etwas angepasst. Nun kann man jeglichen Schalter im VIS nehmen und braucht keinen extra Taster mehr. Wenn der PIN richtig ist, gebe ich das für eine Sekunde in den TempCode, dann kann man das als Ausgabe in der VIS nutzen.

                  Hier der Export, muss natürlich individuell angepasst werden.

                   <xml xmlns="http://www.w3.org/1999/xhtml"><block type="comment" id=".M/Q%KRmxbXWc2P9~_MO" x="-267" y="-132"><field name="COMMENT">Einmalige Initialisierung bei Programmstart</field>
                      <next><block type="procedures_callnoreturn" id="tjP%K@i{#i,h1Dyax-gY"><mutation name="Initialisierung"></mutation>
                          <next><block type="comment" id="?bXfiCYH0h;wOsNVLQT1"><field name="COMMENT">Hier beginnt das Triggern</field>
                              <next><block type="comment" id="Ox)}[Fr#C.VldaJS5L^k"><field name="COMMENT">Beliebig erweiterbar</field>
                                  <next><block type="on_ext" id="7r*}c).]GtkEH)FR.:s."><mutation items="12"></mutation>
                                      <field name="CONDITION">ne</field>
                  
                                      <value name="OID0"><shadow type="field_oid" id="qW*M98D`Of90FmZ?BT;~"><field name="oid">javascript.0.Alarmsystem.PIN.Nummer_1</field></shadow></value> 
                                      <value name="OID1"><shadow type="field_oid" id="db.g;R`[uTi-M|khCqfC"><field name="oid">javascript.0.Alarmsystem.PIN.Nummer_2</field></shadow></value> 
                                      <value name="OID2"><shadow type="field_oid" id="xXI+u{uUm0V4mOYK!n]j"><field name="oid">javascript.0.Alarmsystem.PIN.Nummer_3</field></shadow></value> 
                                      <value name="OID3"><shadow type="field_oid" id="L/.+Co%HVmPx|6[dkKDf"><field name="oid">javascript.0.Alarmsystem.PIN.Nummer_4</field></shadow></value> 
                                      <value name="OID4"><shadow type="field_oid" id="YVdua@J5e.V_U-U26+?x"><field name="oid">javascript.0.Alarmsystem.PIN.Nummer_5</field></shadow></value> 
                                      <value name="OID5"><shadow type="field_oid" id="3p-_6#@zV#xSNcEo/hbt"><field name="oid">javascript.0.Alarmsystem.PIN.Nummer_6</field></shadow></value> 
                                      <value name="OID6"><shadow type="field_oid" id="[XON[zsvmV^USlAkKTMv"><field name="oid">javascript.0.Alarmsystem.PIN.Nummer_7</field></shadow></value> 
                                      <value name="OID7"><shadow type="field_oid" id="%{._9]MXCKmMWiwrYR}w"><field name="oid">javascript.0.Alarmsystem.PIN.Nummer_8</field></shadow></value> 
                                      <value name="OID8"><shadow type="field_oid" id="ME,JB!1D%xbAV}6ir2wG"><field name="oid">javascript.0.Alarmsystem.PIN.Nummer_9</field></shadow></value> 
                                      <value name="OID9"><shadow type="field_oid" id="raHa*UG!:Q]~4]zEv1,#"><field name="oid">javascript.0.Alarmsystem.PIN.Nummer_0</field></shadow></value> 
                                      <value name="OID10"><shadow type="field_oid" id="t/lBj:{1Z*;LCZ!?G/?g"><field name="oid">javascript.0.Alarmsystem.PIN.Nummer_Raute</field></shadow></value> 
                                      <value name="OID11"><shadow type="field_oid" id="[jEp!64??uE`5I.NeKqk"><field name="oid">javascript.0.Alarmsystem.PIN.Nummer_Stern</field></shadow></value> 
                                      <statement name="STATEMENT"><block type="comment" id="Yg;,[I7Ex=?rcz#y?kj%"><field name="COMMENT">Timer für zu lange Eingabepause stoppen</field>
                                          <next><block type="timeouts_cleartimeout" id="#p8Sw}HSQK?cYiU:YHiK"><field name="NAME">timeout</field>
                                              <next><block type="comment" id="?pNSp?WhqKPHT/B_pJo:"><field name="COMMENT">Nur ausführen wenn Eingabe nicht geblockt</field>
                                                  <next><block type="controls_if" id="`dn-O]h-kTj)k:Hx)Xkz"><value name="IF0"><block type="logic_compare" id="aahnsRO!(k,8K;ftiGcN"><field name="OP">NEQ</field>
                                                          <value name="A"><block type="variables_get" id="~1[*:7k/oGI/ZT1ie-F5"><field name="VAR">AnzahlVersuche</field></block></value> 
                                                          <value name="B"><block type="variables_get" id="9EtqToNOpvma_:nUc:I3"><field name="VAR">maxVersuche</field></block></value></block></value> 
                                                      <statement name="DO0"><block type="controls_if" id="53w`on3Q~KRaZW)3F6_["><mutation elseif="11"></mutation>
                                                          <value name="IF0"><block type="logic_compare" id="=Vuh)csdD]A:f+;xaY0c"><field name="OP">EQ</field>
                                                              <value name="A"><block type="get_value" id="73#_D/?hW=+je)pXEOH]"><field name="ATTR">val</field>
                                                                  <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_1</field></block></value> 
                                                              <value name="B"><block type="logic_boolean" id="-nBqftYopC%u~4,0#S:J"><field name="BOOL">TRUE</field></block></value></block></value> 
                                                          <statement name="DO0"><block type="comment" id="iDWo7Ppf@/PIDOC3,nQg"><field name="COMMENT">Die Eingabe an Funktion übergeben</field>
                                                              <next><block type="procedures_callnoreturn" id="9ND8^RRRst6J*Tr1aF:P" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation> 
                                                                  <value name="ARG0"><block type="text" id=";{hUh`J|FuWgRnG+V`x/"><field name="TEXT">1</field></block></value> 
                                                                  <next><block type="update" id="9@@s@)al,NFi:Fv!o)^v"><mutation delay_input="true"></mutation>
                                                                      <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_1</field>
                                                                      <field name="WITH_DELAY">TRUE</field>
                                                                      <field name="DELAY_MS">250</field>
                                                                      <field name="UNIT">ms</field>
                                                                      <field name="CLEAR_RUNNING">FALSE</field>
                                                                      <value name="VALUE"><block type="logic_boolean" id="CLmw7YVC/r6HoA_issE="><field name="BOOL">FALSE</field></block></value></block></next></block></next></block></statement> 
                                                          <value name="IF1"><block type="logic_compare" id="7OCP}UF3YaQ|gs=RDF`y"><field name="OP">EQ</field>
                                                              <value name="A"><block type="get_value" id="NHZ%eeYxhwr?#M_(BhP/"><field name="ATTR">val</field>
                                                                  <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_2</field></block></value> 
                                                              <value name="B"><block type="logic_boolean" id="*2NWW1B~r6Z2E}P%j2wg"><field name="BOOL">TRUE</field></block></value></block></value> 
                                                          <statement name="DO1"><block type="procedures_callnoreturn" id="TUEyn}|x(z36g?T63y*_" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation> 
                                                              <value name="ARG0"><block type="text" id="]Rf`6@?xK*gplLyQ-bQP"><field name="TEXT">2</field></block></value> 
                                                              <next><block type="update" id="qf^]8rxXq{N3)E`W#^k3"><mutation delay_input="true"></mutation>
                                                                  <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_2</field>
                                                                  <field name="WITH_DELAY">TRUE</field>
                                                                  <field name="DELAY_MS">250</field>
                                                                  <field name="UNIT">ms</field>
                                                                  <field name="CLEAR_RUNNING">FALSE</field>
                                                                  <value name="VALUE"><block type="logic_boolean" id="mv;V~3AH@eQKWfkD;*Sc"><field name="BOOL">FALSE</field></block></value></block></next></block></statement> 
                                                          <value name="IF2"><block type="logic_compare" id="8oUmv2o%~@wjdNn_2bB}"><field name="OP">EQ</field>
                                                              <value name="A"><block type="get_value" id="D5^##Kxmy;b`o1B=Nj_?"><field name="ATTR">val</field>
                                                                  <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_3</field></block></value> 
                                                              <value name="B"><block type="logic_boolean" id="=+FvloDpnlxoQhQt]biY"><field name="BOOL">TRUE</field></block></value></block></value> 
                                                          <statement name="DO2"><block type="procedures_callnoreturn" id="?}Q)OGY}05Ms(#R@Kycz" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation> 
                                                              <value name="ARG0"><block type="text" id=";dy%FKdEuIq;eorrIp|h"><field name="TEXT">3</field></block></value> 
                                                              <next><block type="update" id="|rh0[ZSafFT2P9^i2a5g"><mutation delay_input="true"></mutation>
                                                                  <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_3</field>
                                                                  <field name="WITH_DELAY">TRUE</field>
                                                                  <field name="DELAY_MS">250</field>
                                                                  <field name="UNIT">ms</field>
                                                                  <field name="CLEAR_RUNNING">FALSE</field>
                                                                  <value name="VALUE"><block type="logic_boolean" id="KeQpkP;!xJz0l9UcDt~e"><field name="BOOL">FALSE</field></block></value></block></next></block></statement> 
                                                          <value name="IF3"><block type="logic_compare" id="8apFtO:LEW0/,#=:U)gd"><field name="OP">EQ</field>
                                                              <value name="A"><block type="get_value" id="o{]OcOspYPH~(gC1%t*~"><field name="ATTR">val</field>
                                                                  <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_4</field></block></value> 
                                                              <value name="B"><block type="logic_boolean" id="ReP45uSYnPV5dI4r!HX_"><field name="BOOL">TRUE</field></block></value></block></value> 
                                                          <statement name="DO3"><block type="procedures_callnoreturn" id="G8i%d,3Hk8Lb6pdBrmS=" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation> 
                                                              <value name="ARG0"><block type="text" id="5L75`L}7L;|+}rmrp~ed"><field name="TEXT">4</field></block></value> 
                                                              <next><block type="update" id="bm[gN*}7`b_a*u%Y^;h-"><mutation delay_input="true"></mutation>
                                                                  <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_4</field>
                                                                  <field name="WITH_DELAY">TRUE</field>
                                                                  <field name="DELAY_MS">250</field>
                                                                  <field name="UNIT">ms</field>
                                                                  <field name="CLEAR_RUNNING">FALSE</field>
                                                                  <value name="VALUE"><block type="logic_boolean" id="(FFs_m.S2fc`e=?l.J#L"><field name="BOOL">FALSE</field></block></value></block></next></block></statement> 
                                                          <value name="IF4"><block type="logic_compare" id="`gGdjrCEvp4|F-9!_c+0"><field name="OP">EQ</field>
                                                              <value name="A"><block type="get_value" id="x+N2@@K^{v%b#d9D3A*C"><field name="ATTR">val</field>
                                                                  <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_5</field></block></value> 
                                                              <value name="B"><block type="logic_boolean" id="e5HB-~R%#;:(zua1A#:q"><field name="BOOL">TRUE</field></block></value></block></value> 
                                                          <statement name="DO4"><block type="procedures_callnoreturn" id="|/1B/2TwZ]sg^_fCkpF[" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation> 
                                                              <value name="ARG0"><block type="text" id="ijb/fyL}D^0].JEH9]-P"><field name="TEXT">5</field></block></value> 
                                                              <next><block type="update" id="fziQxD0_K@qe}AT3latd"><mutation delay_input="true"></mutation>
                                                                  <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_5</field>
                                                                  <field name="WITH_DELAY">TRUE</field>
                                                                  <field name="DELAY_MS">250</field>
                                                                  <field name="UNIT">ms</field>
                                                                  <field name="CLEAR_RUNNING">FALSE</field>
                                                                  <value name="VALUE"><block type="logic_boolean" id="k1Hyug],*iN=l(;#R;0{"><field name="BOOL">FALSE</field></block></value></block></next></block></statement> 
                                                          <value name="IF5"><block type="logic_compare" id="@h**sD7_;Ec|/{~=VcOx"><field name="OP">EQ</field>
                                                              <value name="A"><block type="get_value" id=",9]o#s/huPstS?,abr|a"><field name="ATTR">val</field>
                                                                  <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_6</field></block></value> 
                                                              <value name="B"><block type="logic_boolean" id="m8U*gfnHC7age(*^FvFt"><field name="BOOL">TRUE</field></block></value></block></value> 
                                                          <statement name="DO5"><block type="procedures_callnoreturn" id="}7YRsjFgISkt2DLczOWQ" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation> 
                                                              <value name="ARG0"><block type="text" id="7GbS.fw03D#3Rk9dkG-I"><field name="TEXT">6</field></block></value> 
                                                              <next><block type="update" id="Awmw{e4.R5:degkZ0%#j"><mutation delay_input="true"></mutation>
                                                                  <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_6</field>
                                                                  <field name="WITH_DELAY">TRUE</field>
                                                                  <field name="DELAY_MS">250</field>
                                                                  <field name="UNIT">ms</field>
                                                                  <field name="CLEAR_RUNNING">FALSE</field>
                                                                  <value name="VALUE"><block type="logic_boolean" id="Ub1A8rhNt[G=~CP(Du{*"><field name="BOOL">FALSE</field></block></value></block></next></block></statement> 
                                                          <value name="IF6"><block type="logic_compare" id="V4Lo]/iv6ty6Uke?gMq."><field name="OP">EQ</field>
                                                              <value name="A"><block type="get_value" id="grF#N7VRzA68b^W*R3~_"><field name="ATTR">val</field>
                                                                  <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_7</field></block></value> 
                                                              <value name="B"><block type="logic_boolean" id="/p@#.M-G]zLevwG*RKMZ"><field name="BOOL">TRUE</field></block></value></block></value> 
                                                          <statement name="DO6"><block type="procedures_callnoreturn" id="1i/}iJlM;R_tsRR:E?(=" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation> 
                                                              <value name="ARG0"><block type="text" id=",(#40YoQ1@mn[1/l,~2Q"><field name="TEXT">7</field></block></value> 
                                                              <next><block type="update" id="MAJeC[NusfBo]SAb4f/Z"><mutation delay_input="true"></mutation>
                                                                  <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_7</field>
                                                                  <field name="WITH_DELAY">TRUE</field>
                                                                  <field name="DELAY_MS">250</field>
                                                                  <field name="UNIT">ms</field>
                                                                  <field name="CLEAR_RUNNING">FALSE</field>
                                                                  <value name="VALUE"><block type="logic_boolean" id="~XEaTw:I+V!3-o#(hpU?"><field name="BOOL">FALSE</field></block></value></block></next></block></statement> 
                                                          <value name="IF7"><block type="logic_compare" id="./V`e:V9!LTku5eXmHq9"><field name="OP">EQ</field>
                                                              <value name="A"><block type="get_value" id="i1pJ/%w0K^p+JY,sHs*q"><field name="ATTR">val</field>
                                                                  <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_8</field></block></value> 
                                                              <value name="B"><block type="logic_boolean" id="8tl;BxmxF6vkQBHqPx8S"><field name="BOOL">TRUE</field></block></value></block></value> 
                                                          <statement name="DO7"><block type="procedures_callnoreturn" id="mbo1trmU+,_m{,32Eur-" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation> 
                                                              <value name="ARG0"><block type="text" id="l/{bo.d],VOB8]NKMM-;"><field name="TEXT">8</field></block></value> 
                                                              <next><block type="update" id="92mrM??.#,x6J:kgQ{+z"><mutation delay_input="true"></mutation>
                                                                  <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_8</field>
                                                                  <field name="WITH_DELAY">TRUE</field>
                                                                  <field name="DELAY_MS">250</field>
                                                                  <field name="UNIT">ms</field>
                                                                  <field name="CLEAR_RUNNING">FALSE</field>
                                                                  <value name="VALUE"><block type="logic_boolean" id="c0ak)7T1FSS:IsY+uv{E"><field name="BOOL">FALSE</field></block></value></block></next></block></statement> 
                                                          <value name="IF8"><block type="logic_compare" id="31vz^KGQys?cG5xLnor3"><field name="OP">EQ</field>
                                                              <value name="A"><block type="get_value" id="N=#YNd-l)Y7+{Hs-j7x|"><field name="ATTR">val</field>
                                                                  <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_9</field></block></value> 
                                                              <value name="B"><block type="logic_boolean" id="0`/iv=^V158w=pO:L#aW"><field name="BOOL">TRUE</field></block></value></block></value> 
                                                          <statement name="DO8"><block type="procedures_callnoreturn" id="=2@z*Bg2jZ}Q4)dL(kL[" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation> 
                                                              <value name="ARG0"><block type="text" id="sA}=(*-aW(N3*9}=8Y!M"><field name="TEXT">9</field></block></value> 
                                                              <next><block type="update" id="UVGihdGH_J2%/H9NceS;"><mutation delay_input="true"></mutation>
                                                                  <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_9</field>
                                                                  <field name="WITH_DELAY">TRUE</field>
                                                                  <field name="DELAY_MS">250</field>
                                                                  <field name="UNIT">ms</field>
                                                                  <field name="CLEAR_RUNNING">FALSE</field>
                                                                  <value name="VALUE"><block type="logic_boolean" id="Pi2n+A!sddFA44(_^~D3"><field name="BOOL">FALSE</field></block></value></block></next></block></statement> 
                                                          <value name="IF9"><block type="logic_compare" id="Bac{;rIP^+Ucy8w@{M@d"><field name="OP">EQ</field>
                                                              <value name="A"><block type="get_value" id="!JKJ(g0-UnF?h;.5owZk"><field name="ATTR">val</field>
                                                                  <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_0</field></block></value> 
                                                              <value name="B"><block type="logic_boolean" id="L;tI%~Oa{Zb|e=m_sXIf"><field name="BOOL">TRUE</field></block></value></block></value> 
                                                          <statement name="DO9"><block type="procedures_callnoreturn" id="XL)%L_.!5pO%6*%j%s1g" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation> 
                                                              <value name="ARG0"><block type="text" id="Eb,viCwOsMo=Qu_Nk(;S"><field name="TEXT">0</field></block></value> 
                                                              <next><block type="update" id="ZE`J_g+?8fY;iXX=j8Jc"><mutation delay_input="true"></mutation>
                                                                  <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_0</field>
                                                                  <field name="WITH_DELAY">TRUE</field>
                                                                  <field name="DELAY_MS">250</field>
                                                                  <field name="UNIT">ms</field>
                                                                  <field name="CLEAR_RUNNING">FALSE</field>
                                                                  <value name="VALUE"><block type="logic_boolean" id="ey)btK??UB7{zh1lr:o7"><field name="BOOL">FALSE</field></block></value></block></next></block></statement> 
                                                          <value name="IF10"><block type="logic_compare" id="}L[GS:@L=[9^V9MPM-P?"><field name="OP">EQ</field>
                                                              <value name="A"><block type="get_value" id="*S{Utoo4?br3L?h(lo-]"><field name="ATTR">val</field>
                                                                  <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_Raute</field></block></value> 
                                                              <value name="B"><block type="logic_boolean" id="LSN]CN=uT%-d*-@{i`%s"><field name="BOOL">TRUE</field></block></value></block></value> 
                                                          <statement name="DO10"><block type="procedures_callnoreturn" id="BOgv6x.mmih[qn;`6OtO" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation> 
                                                              <value name="ARG0"><block type="text" id="uGm!*c|[SM;cvu!:~,qu"><field name="TEXT">#</field></block></value> 
                                                              <next><block type="update" id="~YA%Hxq/TvKN]kz4ieUo"><mutation delay_input="true"></mutation>
                                                                  <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_Raute</field>
                                                                  <field name="WITH_DELAY">TRUE</field>
                                                                  <field name="DELAY_MS">250</field>
                                                                  <field name="UNIT">ms</field>
                                                                  <field name="CLEAR_RUNNING">FALSE</field>
                                                                  <value name="VALUE"><block type="logic_boolean" id="HW?*QRqP+fuMncYEn(MU"><field name="BOOL">FALSE</field></block></value></block></next></block></statement> 
                                                          <value name="IF11"><block type="logic_compare" id="(H4bgUs`GZg*O}Totx_8"><field name="OP">EQ</field>
                                                              <value name="A"><block type="get_value" id="(]Gt?NFZOC#i8MaMrKIs"><field name="ATTR">val</field>
                                                                  <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_Stern</field></block></value> 
                                                              <value name="B"><block type="logic_boolean" id="??m^})f0ye?+9G;IP4bm"><field name="BOOL">TRUE</field></block></value></block></value> 
                                                          <statement name="DO11"><block type="procedures_callnoreturn" id="*q;WY(IUkpb,H0c_|0Jh" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation> 
                                                              <value name="ARG0"><block type="text" id="R:oGY=KQb(5Hu+{7BVut"><field name="TEXT">*</field></block></value> 
                                                              <next><block type="update" id="y;k7!#75?L;`lUPV]g4o"><mutation delay_input="true"></mutation>
                                                                  <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_Stern</field>
                                                                  <field name="WITH_DELAY">TRUE</field>
                                                                  <field name="DELAY_MS">250</field>
                                                                  <field name="UNIT">ms</field>
                                                                  <field name="CLEAR_RUNNING">FALSE</field>
                                                                  <value name="VALUE"><block type="logic_boolean" id="0G[+4;i_o7g;?1a!99;3"><field name="BOOL">FALSE</field></block></value></block></next></block></statement></block></statement> 
                                                      <next><block type="update" id="uk[^_Xl}2@I^c!-x*r.Z"><mutation delay_input="true"></mutation>
                                                          <field name="OID">javascript.0.Alarmsystem.PIN.Temp_Code</field>
                                                          <field name="WITH_DELAY">TRUE</field>
                                                          <field name="DELAY_MS">275</field>
                                                          <field name="UNIT">ms</field>
                                                          <field name="CLEAR_RUNNING">FALSE</field>
                                                          <value name="VALUE"><block type="variables_get" id="*@j*dTh|~Xqa~%TIZ[cn"><field name="VAR">tempCode</field></block></value></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block> 
                    <block type="procedures_defnoreturn" id="O)q*?M8Hfa5)/}O6ZsZ7" x="737" y="137"><field name="NAME">Initialisierung</field>
                      <comment pinned="false" h="80" w="160">Bei Programmstart Werte vorgeben.</comment>
                      <statement name="STACK"><block type="variables_set" id="?L69j3%sRmc}([5G2X60"><field name="VAR">AnzahlVersuche</field>
                          <value name="VALUE"><block type="math_number" id="t]h/P`X7feEalP-;RDq_"><field name="NUM">0</field></block></value> 
                          <next><block type="variables_set" id="wMeGQPHU)@|vwaJP%iqr"><field name="VAR">tempCode</field>
                              <value name="VALUE"></value> 
                              <next><block type="comment" id="_UZqDvMtW0LHk96L^T8z"><field name="COMMENT">Maximale Fehlversuche festlegen</field>
                                  <next><block type="variables_set" id="e663[k*hSCd%o_?sd(XA"><field name="VAR">maxVersuche</field>
                                      <value name="VALUE"><block type="math_number" id="{OjuYXvX(;:=T.oag~a#"><field name="NUM">3</field></block></value> 
                                      <next><block type="comment" id="K(:;y-gihBx_:{%kJ~Oo"><field name="COMMENT">Länge der Codes festlegen</field>
                                          <next><block type="variables_set" id="BGt@+4h!d)Kco3]{`,)V"><field name="VAR">maxCodeLaenge</field>
                                              <value name="VALUE"><block type="math_number" id="|Wm^i`:C`~o0Bp7;,-yy"><field name="NUM">4</field></block></value> 
                                              <next><block type="comment" id="ZgOwwPRCnNLM~@tR?DhB"><field name="COMMENT">Liste der Codes</field>
                                                  <next><block type="comment" id="|9)F(1-)Murz[PAg@Pcz"><field name="COMMENT">Beliebig erweiterbar. Auf Länge achten!</field>
                                                      <next><block type="variables_set" id=";~}[HtK6:wa8W/1,]j2a"><field name="VAR">CodeAnwesend</field>
                                                          <value name="VALUE"><block type="text" id="/%k9:KVHUC2RVgH.:^v5"><field name="TEXT">1234</field></block></value> 
                                                          <next><block type="variables_set" id=";{0Vr(56Uhr:z8Cziv*C"><field name="VAR">CodeAbwesend</field>
                                                              <value name="VALUE"><block type="text" id="^di=V@V!cAe+WZiLfuL%"><field name="TEXT">9876</field></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block> 
                    <block type="procedures_defnoreturn" id="t@lDFN#V:FHO31zeMUSV" x="738" y="463"><mutation><arg name="TastenWert"></arg></mutation> 
                      <field name="NAME">getCode</field>
                      <comment pinned="false" h="80" w="160">Code pruefen</comment>
                      <statement name="STACK"><block type="text_append" id="@0sNv=W?MJzk`622W]Q4"><field name="VAR">tempCode</field>
                          <value name="TEXT"><shadow id="6q^nqw|R(+L0{n_l/Gc4" type="text"></shadow> 
                            <block type="variables_get" id="LWMvwI0w|bcPvg-n5gGg"><field name="VAR">TastenWert</field></block></value> 
                          <next><block type="debug" id="vjr3FKb9Vi*y+77wJTx,"><field name="Severity">log</field>
                              <value name="TEXT"><shadow id=".0O)AP~8_Z_^cA%~Y=0o" type="text"></shadow> 
                                <block type="text_join" id=")*fGp8U0U/F=Wcs;KY/|"><mutation items="2"></mutation>
                                  <value name="ADD0"><block type="text" id=").fVwr0of^0wi[*+UipI"><field name="TEXT">*****Eingabe -></field></block></value> 
                                  <value name="ADD1"><block type="variables_get" id="Cw9-Bo9Tle36/K]UpAeB"><field name="VAR">tempCode</field></block></value></block></value> 
                              <next><block type="controls_if" id="n5A{||l/F/:ozsHSOg4^"><mutation elseif="1"></mutation>
                                  <value name="IF0"><block type="logic_compare" id="T`=]omffKe6S+_(UpU:6"><field name="OP">GT</field>
                                      <value name="A"><block type="text_length" id=";Xk,nZX;Io@ax2OT=s73"><value name="VALUE"><shadow id="RGYf`*(-7S#_3L-Ww7];" type="text"><field name="TEXT">abc</field></shadow> 
                                            <block type="variables_get" id="gapi+DOc_=Fi})6b*l7}"><field name="VAR">tempCode</field></block></value></block></value> 
                                      <value name="B"><block type="variables_get" id="j9RTTC,C]+Q)EY2SD}`i"><field name="VAR">maxCodeLaenge</field></block></value></block></value> 
                                  <statement name="DO0"><block type="comment" id="|T`go8I~X04G[v8TB8v3"><field name="COMMENT">Zuviele Eingaben</field>
                                      <next><block type="comment" id="+lM8)EE*fCo`n1X0.Dw="><field name="COMMENT">Eingabe löschen und Versuche hochzählen</field>
                                          <next><block type="debug" id="sRw2Xy,4}LO3T4q.5*yM"><field name="Severity">log</field>
                                              <value name="TEXT"><shadow type="text" id="+cYZRRJa1z=6hGhTLdam"><field name="TEXT">*****Zuviele Zeichen*****</field></shadow></value> 
                                              <next><block type="variables_set" id="%D8buHC|kCUU1/KVJB[2"><field name="VAR">tempCode</field>
                                                  <value name="VALUE"></value> 
                                                  <next><block type="procedures_callnoreturn" id="T/]?rq:p![ebfuT~k+i/"><mutation name="chkVersuche"></mutation></block></next></block></next></block></next></block></next></block></statement> 
                                  <value name="IF1"><block type="logic_compare" id="lDJ@;/jzBi=HTRV]yYn,"><field name="OP">EQ</field>
                                      <value name="A"><block type="variables_get" id="*v]-iY2]3*a;Ir}hU9sM"><field name="VAR">tempCode</field></block></value> 
                                      <value name="B"><block type="variables_get" id="FXw/|._t2rtHCxgNR}N{"><field name="VAR">CodeAnwesend</field></block></value></block></value> 
                                  <statement name="DO1"><block type="comment" id="l(HPe4p~ikj;pvhZJME,"><field name="COMMENT">Eingabe korrekt</field>
                                      <next><block type="update" id="R:QUWw_[Kmvca%SHrk^N"><mutation delay_input="false"></mutation>
                                          <field name="OID">javascript.0.Alarmsystem.Alarm.Zielstatus</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE"><block type="math_number" id="6LV~-IW;nfvm3/%(T)aY"><field name="NUM">3</field></block></value> 
                                          <next><block type="update" id="2Ybk+GO*e6flP9xhg%It"><mutation delay_input="false"></mutation>
                                              <field name="OID">javascript.0.Alarmsystem.Alarm.Warnung</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE"><block type="math_number" id="aWX!@-;lTda4%0PVhzxY"><field name="NUM">0</field></block></value> 
                                              <next><block type="debug" id="U;M412@-[mW58w:2/pDZ"><field name="Severity">log</field>
                                                  <value name="TEXT"><shadow type="text" id="/6PKtIv;_asj~zH1YFWm"><field name="TEXT">Alarmanlage ausgeschaltet</field></shadow></value> 
                                                  <next><block type="variables_set" id="JsF`#tPrlP((e*D(PKz;"><field name="VAR">AnzahlVersuche</field>
                                                      <value name="VALUE"><block type="math_number" id="_#wsFg(JuzNqSyCO63UI"><field name="NUM">0</field></block></value> 
                                                      <next><block type="variables_set" id="Px}Q)CvBmC02#T1cMXk@"><field name="VAR">tempCode</field>
                                                          <value name="VALUE"><block type="text" id="_2;iEf4vhv#}}w#t+U(]"><field name="TEXT">PIN richtig</field></block></value> 
                                                          <next><block type="timeouts_settimeout" id="qwA/l(1KFnv*jNTWN(m`"><field name="NAME">timeout2</field>
                                                              <field name="DELAY">1000</field>
                                                              <field name="UNIT">ms</field>
                                                              <statement name="STATEMENT"><block type="variables_set" id="qd0Wuvd(2)z!ZZoBkEpt"><field name="VAR">tempCode</field>
                                                                  <value name="VALUE"></value></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></statement> 
                                  <next><block type="timeouts_settimeout" id="*)]FG}!jqa@!^@C404zD"><field name="NAME">timeout</field>
                                      <field name="DELAY">6000</field>
                                      <field name="UNIT">ms</field>
                                      <statement name="STATEMENT"><block type="comment" id="@87rub*L(JD2dLo|`Aef"><field name="COMMENT">Wenn in 5 Sek. keine weitere Eingabe erfolgt</field>
                                          <next><block type="comment" id="/6Z(,/]_}ZhyadfHIgZ5"><field name="COMMENT">dann Eingabe löschen und Versuche hochzählen</field>
                                              <next><block type="variables_set" id="a3yX(4)M(27nSsHd.d-_"><field name="VAR">tempCode</field>
                                                  <value name="VALUE"></value> 
                                                  <next><block type="procedures_callnoreturn" id="Uq`e6b9wNj]Sp(Zb#o#X"><mutation name="chkVersuche"></mutation></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></statement></block> 
                    <block type="procedures_defnoreturn" id="c,ULx]X]~F-z^(_+{6vr" x="738" y="1213"><field name="NAME">chkVersuche</field>
                      <comment pinned="false" h="80" w="160">Fehlerhafte Eingaben zählen und Eingabe sperren wenn maxVersuche erreicht.</comment>
                      <statement name="STACK"><block type="math_change" id="+bbjB`}N7U3vkk:@%?[V"><field name="VAR">AnzahlVersuche</field>
                          <value name="DELTA"><shadow type="math_number" id="P!Tq!OVi/*(ehXZb]uC8"><field name="NUM">1</field></shadow></value> 
                          <next><block type="controls_if" id="V6AzqIh:%+F@oh[M-IQ{"><value name="IF0"><block type="logic_compare" id="!CYyilZ1svbcZ]Yf=BXd"><field name="OP">EQ</field>
                                  <value name="A"><block type="variables_get" id="@Zmti,3QUsDg5gTF6tjC"><field name="VAR">AnzahlVersuche</field></block></value> 
                                  <value name="B"><block type="variables_get" id="x=cs)@yt;A6[ua*T5FE|"><field name="VAR">maxVersuche</field></block></value></block></value> 
                              <statement name="DO0"><block type="debug" id="[d~Z|qEH+C4%5%A*xBTT"><field name="Severity">log</field>
                                  <value name="TEXT"><shadow type="text" id="v.9ViGY:H4?EbA+fzjKV"><field name="TEXT">*****Eingabe gesperrt*****</field></shadow></value> 
                                  <next><block type="timeouts_settimeout" id="(l|4)g2/(/@5-swvVF@2"><field name="NAME">sperren</field>
                                      <field name="DELAY">10000</field>
                                      <field name="UNIT">ms</field>
                                      <statement name="STATEMENT"><block type="comment" id="U22mj9gD,9P)FU@4%{K~"><field name="COMMENT">Nach 10 Sek. wieder frei</field>
                                          <next><block type="variables_set" id="d)*rJF_51+C|Z3NMW9N+"><field name="VAR">AnzahlVersuche</field>
                                              <value name="VALUE"><block type="math_number" id="^)c6!p[y)V0zk(9oMl16"><field name="NUM">0</field></block></value> 
                                              <next><block type="debug" id="SO`ZMoZ)Os7:]]y=T3yE"><field name="Severity">log</field>
                                                  <value name="TEXT"><shadow type="text" id="5.ubt?0E+m)aiIY`J``U"><field name="TEXT">*****Eingabe entsperrt*****</field></shadow></value></block></next></block></next></block></statement></block></next></block></statement></block></next></block></statement></block></xml> 
                  

                  Viele Grüße

                  Walkinlarge

                  1 Reply Last reply
                  0
                  • F Offline
                    F Offline
                    firstfreak
                    wrote on last edited by
                    #63

                    Danke für die tolle Arbeit.

                    Ich habe den Code von unten genommen und das funktioniert auch gut.

                    Aber nun meine Frage, wie kann ich jetzt mehrere Codes für unterschiedliche Sachen nutzen?

                    Vielen Dank

                    @pitje_87:

                    Guten Abend zusammen,

                    ich habe jetzt zunächst die Taster entprellt durch zurücksetzen (false) nach dem Drücken.

                    Weiterhin wird mit die Anzahl der eingegebenen Zeichen mit einem "" im Display ausgegeben. In einem weiteren Fenster werden die Hinweistexte "** Zu viele Zeichen***" etc. angezeigt.

                    Variablen anlegen:

                    ! <xml 1999/xmlns="<URL url=" http:/www.w3.org/xhtml"="">http://www.w3.org/1999/xhtml">
                    ! <block type="create" id="k45s-D}hiCCfW)QXQ13!" x="-12" y="88"><field name="NAME">Pincode_0</field>
                    ! <statement name="STATEMENT"><block type="create" id="GzGNlOW@(Fd*)A1PQwP+"><field name="NAME">Pincode_1</field>
                    ! <statement name="STATEMENT"><block type="create" id="{KMqqs^U6+Bqefj-e)_H"><field name="NAME">Pincode_2</field>
                    ! <statement name="STATEMENT"><block type="create" id="Bh|7!TU)qCE)NLUQcUox"><field name="NAME">Pincode_3</field>
                    ! <statement name="STATEMENT"><block type="create" id="BEQkl{Dy)uxW;O)Z1eU}"><field name="NAME">Pincode_4</field>
                    ! <statement name="STATEMENT"><block type="create" id="-8S]ZFn8xy]AIG=ypi?V"><field name="NAME">Pincode_5</field>
                    ! <statement name="STATEMENT"><block type="create" id="{e%@W;N!WN6)FFuzjGt%"><field name="NAME">Pincode_6</field>
                    ! <statement name="STATEMENT"><block type="create" id="_H4%;yPLLJgS[UV9a0+s"><field name="NAME">Pincode_7</field>
                    ! <statement name="STATEMENT"><block type="create" id="V5p68}x+,Ch!)qIu?ZlA"><field name="NAME">Pincode_8</field>
                    ! <statement name="STATEMENT"><block type="create" id="e9Ue+P2Wa@=C|FOhYEX4"><field name="NAME">Pincode_9</field>
                    ! <statement name="STATEMENT"><block type="create" id="ph`rh0jzx@Y5l@uKV/-/"><field name="NAME">Pindisplay</field>
                    ! <statement name="STATEMENT"><block type="create" id="WaE!rouEnP3|~2rc48PQ"><field name="NAME">Hinweisfeld</field></block></statement></block></statement></block></statement></block></statement></block></statement></block></statement></block></statement></block></statement></block></statement></block></statement></block></statement></block></xml>
                    Blockly Script:

                    ! <xml 1999/xmlns="<URL url=" http:/www.w3.org/xhtml"="">http://www.w3.org/1999/xhtml">
                    ! <block type="procedures_defnoreturn" id="O)q*?M8Hfa5)/}O6ZsZ7" x="438" y="38"><field name="NAME">Initialisierung</field>
                    ! <comment pinned="false" h="80" w="160">Bei Programmstart Werte vorgeben.</comment>
                    ! <statement name="STACK"><block type="variables_set" id="?L69j3%sRmc}([5G2X60"><field name="VAR">AnzahlVersuche</field>
                    ! <value name="VALUE"><block type="math_number" id="t]h/PX7feEalP-;RDq_"><field name="NUM">0</field></block></value> ! <next><block type="variables_set" id="wMeGQPHU)@|vwaJP%iqr"><field name="VAR">tempCode</field> ! <value name="VALUE"></value> ! <next><block type="comment" id="_UZqDvMtW0LHk96L^T8z"><field name="COMMENT">Maximale Fehlversuche festlegen</field> ! <next><block type="variables_set" id="e663[k*hSCd%o_?sd(XA"><field name="VAR">maxVersuche</field> ! <value name="VALUE"><block type="math_number" id="{OjuYXvX(;:=T.oag~a#"><field name="NUM">3</field></block></value> ! <next><block type="comment" id="K(:;y-gihBx_:{%kJ~Oo"><field name="COMMENT">Länge der Codes festlegen</field> ! <next><block type="variables_set" id="BGt@+4h!d)Kco3]{,)V"><field name="VAR">maxCodeLaenge</field>
                    ! <value name="VALUE"><block type="math_number" id="|Wm^i:C~o0Bp7;,-yy"><field name="NUM">4</field></block></value>
                    ! <next><block type="comment" id="ZgOwwPRCnNLM~@tR?DhB"><field name="COMMENT">Liste der Codes</field>
                    ! <next><block type="comment" id="|9)F(1-)Murz[PAg@Pcz"><field name="COMMENT">Beliebig erweiterbar. Auf Länge achten!</field>
                    ! <next><block type="variables_set" id=";~}[HtK6:wa8W/1,]j2a"><field name="VAR">CodeAnwesend</field>
                    ! <value name="VALUE"><block type="text" id="/%k9:KVHUC2RVgH.:^v5"><field name="TEXT">9713</field></block></value>
                    ! <next><block type="variables_set" id=";{0Vr(56Uhr:z8CzivC"><field name="VAR">CodeAbwesend</field>
                    ! <value name="VALUE"><block type="text" id="^di=V@V!cAe+WZiLfuL%"><field name="TEXT">9713</field></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block>
                    ! <block type="comment" id=".M/Q%KRmxbXWc2P9~_MO" x="-87" y="162"><field name="COMMENT">Einmalige Initialisierung bei Programmstart</field>
                    ! <next><block type="procedures_callnoreturn" id="tjP%K@i{#i,h1Dyax-gY"><mutation name="Initialisierung"></mutation>
                    ! <next><block type="comment" id="?bXfiCYH0h;wOsNVLQT1"><field name="COMMENT">Hier beginnt das Triggern</field>
                    ! <next><block type="comment" id="Ox)}[Fr#C.VldaJS5L^k"><field name="COMMENT">Beliebig erweiterbar</field>
                    ! <next><block type="on_ext" id="7r
                    }c).]GtkEH)FR.:s."><mutation items="10"></mutation>
                    ! <field name="CONDITION">ne</field>
                    ! <value name="OID0"><shadow type="field_oid" id="qWM98DOf90FmZ?BT;~"><field name="oid">javascript.0.Pincode_1</field></shadow></value> ! <value name="OID1"><shadow type="field_oid" id="db.g;R[uTi-M|khCqfC"><field name="oid">javascript.0.Pincode_2</field></shadow></value>
                    ! <value name="OID2"><shadow type="field_oid" id="xXI+u{uUm0V4mOYK!n]j"><field name="oid">javascript.0.Pincode_3</field></shadow></value>
                    ! <value name="OID3"><shadow type="field_oid" id="L/.+Co%HVmPx|6[dkKDf"><field name="oid">javascript.0.Pincode_4</field></shadow></value>
                    ! <value name="OID4"><shadow type="field_oid" id="<EMAIL email=" yvdua@j5e.v"="">YVdua@J5e.V_U-U26+?x">
                    ! <field name="oid">javascript.0.Pincode_5</field></shadow></value>
                    ! <value name="OID5"><shadow type="field_oid" id="3p-_6#@zV#xSNcEo/hbt"><field name="oid">javascript.0.Pincode_6</field></shadow></value>
                    ! <value name="OID6"><shadow type="field_oid" id="[XON[zsvmV^USlAkKTMv"><field name="oid">javascript.0.Pincode_7</field></shadow></value>
                    ! <value name="OID7"><shadow type="field_oid" id="%{._9]MXCKmMWiwrYR}w"><field name="oid">javascript.0.Pincode_8</field></shadow></value>
                    ! <value name="OID8"><shadow type="field_oid" id="ME,JB!1D%xbAV}6ir2wG"><field name="oid">javascript.0.Pincode_9</field></shadow></value>
                    ! <value name="OID9"><shadow type="field_oid" id="raHa
                    UG!:Q]~4]zEv1,#"><field name="oid">javascript.0.Pincode_0</field></shadow></value>
                    ! <statement name="STATEMENT"><block type="comment" id="Yg;,[I7Ex=?rcz#y?kj%"><field name="COMMENT">Timer für zu lange Eingabepause stoppen</field>
                    ! <next><block type="timeouts_cleartimeout" id="#p8Sw}HSQK?cYiU:YHiK"><field name="NAME">timeout</field>
                    ! <next><block type="comment" id="?pNSp?WhqKPHT/B_pJo:"><field name="COMMENT">Nur ausführen wenn Eingabe nicht geblockt</field>
                    ! <next><block type="controls_if" id="dn-O]h-kTj)k:Hx)Xkz"><value name="IF0"><block type="logic_compare" id="aahnsRO!(k,8K;ftiGcN"><field name="OP">NEQ</field> ! <value name="A"><block type="variables_get" id="~1[*:7k/oGI/ZT1ie-F5"><field name="VAR">AnzahlVersuche</field></block></value> ! <value name="B"><block type="variables_get" id="9EtqToNOpvma_:nUc:I3"><field name="VAR">maxVersuche</field></block></value></block></value> ! <statement name="DO0"><block type="controls_if" id="53won3Q~KRaZW)3F6_["><mutation elseif="9"></mutation>
                    ! <value name="IF0"><block type="logic_compare" id="=Vuh)csdD]A:f+;xaY0c"><field name="OP">EQ</field>
                    ! <value name="A"><block type="get_value" id="73#D/?hW=+je)pXEOH]"><field name="ATTR">val</field>
                    ! <field name="OID">javascript.0.Pincode_1</field></block></value>
                    ! <value name="B"><block type="logic_boolean" id="-nBqftYopC%u~4,0#S:J"><field name="BOOL">TRUE</field></block></value></block></value>
                    ! <statement name="DO0"><block type="comment" id="iDWo7Ppf@/PIDOC3,nQg"><field name="COMMENT">Die Eingabe an Funktion übergeben</field>
                    ! <next><block type="procedures_callnoreturn" id="9ND8^RRRst6J*Tr1aF:P" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation>
                    ! <value name="ARG0"><block type="text" id=";{hUhJ|FuWgRnG+Vx/"><field name="TEXT">1</field></block></value>
                    ! <next><block type="control" id="5ArdIS#b?WC|8!ZZpFYX"><mutation delay_input="false"></mutation>
                    ! <field name="OID">javascript.0.Pincode_1</field>
                    ! <field name="WITH_DELAY">FALSE</field>
                    ! <value name="VALUE"><block type="logic_boolean" id="VU=l0;
                    =Curobct^KrL6"><field name="BOOL">FALSE</field></block></value></block></next></block></next></block></statement>
                    ! <value name="IF1"><block type="logic_compare" id="7OCP}UF3YaQ|gs=RDFy"><field name="OP">EQ</field> ! <value name="A"><block type="get_value" id="NHZ%eeYxhwr?#M_(BhP/"><field name="ATTR">val</field> ! <field name="OID">javascript.0.Pincode_2</field></block></value> ! <value name="B"><block type="logic_boolean" id="*2NWW1B~r6Z2E}P%j2wg"><field name="BOOL">TRUE</field></block></value></block></value> ! <statement name="DO1"><block type="procedures_callnoreturn" id="TUEyn}|x(z36g?T63y*_" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation> ! <value name="ARG0"><block type="text" id="]Rf6@?xKgplLyQ-bQP"><field name="TEXT">2</field></block></value>
                    ! <next><block type="control" id="7@xqXq
                    ZK?@Pp@Y,:@y"><mutation delay_input="false"></mutation>
                    ! <field name="OID">javascript.0.Pincode_2</field>
                    ! <field name="WITH_DELAY">FALSE</field>
                    ! <value name="VALUE"><block type="logic_boolean" id="JUEW2PLO|cGxTg8k@;4+"><field name="BOOL">FALSE</field></block></value></block></next></block></statement>
                    ! <value name="IF2"><block type="logic_compare" id="8oUmv2o%~@wjdNn_2bB}"><field name="OP">EQ</field>
                    ! <value name="A"><block type="get_value" id="D5^##Kxmy;bo1B=Nj_?"><field name="ATTR">val</field> ! <field name="OID">javascript.0.Pincode_3</field></block></value> ! <value name="B"><block type="logic_boolean" id="=+FvloDpnlxoQhQt]biY"><field name="BOOL">TRUE</field></block></value></block></value> ! <statement name="DO2"><block type="procedures_callnoreturn" id="?}Q)OGY}05Ms(#R@Kycz" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation> ! <value name="ARG0"><block type="text" id=";dy%FKdEuIq;eorrIp|h"><field name="TEXT">3</field></block></value> ! <next><block type="control" id="+vtl:qmK~vj)km(70(8s"><mutation delay_input="false"></mutation> ! <field name="OID">javascript.0.Pincode_3</field> ! <field name="WITH_DELAY">FALSE</field> ! <value name="VALUE"><block type="logic_boolean" id="b.*7UU]7nnm/9Wsk#zLx"><field name="BOOL">FALSE</field></block></value></block></next></block></statement> ! <value name="IF3"><block type="logic_compare" id="M!?}5Rn_=mj^E0ioez~"><field name="OP">EQ</field>
                    ! <value name="A"><block type="get_value" id="NFZ;PRG#QasQLeFww|v6"><field name="ATTR">val</field>
                    ! <field name="OID">javascript.0.Pincode_4</field></block></value>
                    ! <value name="B"><block type="logic_boolean" id="U/qSY2iu]_uz|AIY;cA"><field name="BOOL">TRUE</field></block></value></block></value> ! <statement name="DO3"><block type="procedures_callnoreturn" id="G8i%d,3Hk8Lb6pdBrmS=" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation> ! <value name="ARG0"><block type="text" id="5L75L}7L;|+}rmrp~ed"><field name="TEXT">4</field></block></value>
                    ! <next><block type="control" id=";1Tyv0aIPQ,sD]2I?EX"><mutation delay_input="false"></mutation> ! <field name="OID">javascript.0.Pincode_4</field> ! <field name="WITH_DELAY">FALSE</field> ! <value name="VALUE"><block type="logic_boolean" id="(TY)1%]oBki/XSRGF"><field name="BOOL">FALSE</field></block></value></block></next></block></statement>
                    ! <value name="IF4"><block type="logic_compare" id="gGdjrCEvp4|F-9!_c+0"><field name="OP">EQ</field> ! <value name="A"><block type="get_value" id="x+N2@@K^{v%b#d9D3A*C"><field name="ATTR">val</field> ! <field name="OID">javascript.0.Pincode_5</field></block></value> ! <value name="B"><block type="logic_boolean" id="e5HB-~R%#;:(zua1A#:q"><field name="BOOL">TRUE</field></block></value></block></value> ! <statement name="DO4"><block type="procedures_callnoreturn" id="|/1B/2TwZ]sg^_fCkpF[" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation> ! <value name="ARG0"><block type="text" id="ijb/fyL}D^0].JEH9]-P"><field name="TEXT">5</field></block></value> ! <next><block type="control" id="w7*F~Yxs3+Boc:^/.Bvw"><mutation delay_input="false"></mutation> ! <field name="OID">javascript.0.Pincode_5</field> ! <field name="WITH_DELAY">FALSE</field> ! <value name="VALUE"><block type="logic_boolean" id="g+LH3L?1bo2]k})AFCb"><field name="BOOL">FALSE</field></block></value></block></next></block></statement>
                    ! <value name="IF5"><block type="logic_compare" id="@h**sD7
                    ;Ec|/{~=VcOx"><field name="OP">EQ</field>
                    ! <value name="A"><block type="get_value" id=",9]o#s/huPstS?,abr|a"><field name="ATTR">val</field>
                    ! <field name="OID">javascript.0.Pincode_6</field></block></value>
                    ! <value name="B"><block type="logic_boolean" id="m8UgfnHC7age(^FvFt"><field name="BOOL">TRUE</field></block></value></block></value>
                    ! <statement name="DO5"><block type="procedures_callnoreturn" id="}7YRsjFgISkt2DLczOWQ" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation>
                    ! <value name="ARG0"><block type="text" id="7GbS.fw03D#3Rk9dkG-I"><field name="TEXT">6</field></block></value>
                    ! <next><block type="control" id="}]!omSs+SqLO),4oTZ"><mutation delay_input="false"></mutation> ! <field name="OID">javascript.0.Pincode_6</field> ! <field name="WITH_DELAY">FALSE</field> ! <value name="VALUE"><block type="logic_boolean" id="|B/M4MH[+Tp(HiO,Kmf}"><field name="BOOL">FALSE</field></block></value></block></next></block></statement> ! <value name="IF6"><block type="logic_compare" id="V4Lo]/iv6ty6Uke?gMq."><field name="OP">EQ</field> ! <value name="A"><block type="get_value" id="grF#N7VRzA68b^W*R3~_"><field name="ATTR">val</field> ! <field name="OID">javascript.0.Pincode_7</field></block></value> ! <value name="B"><block type="logic_boolean" id="/p@#.M-G]zLevwG*RKMZ"><field name="BOOL">TRUE</field></block></value></block></value> ! <statement name="DO6"><block type="procedures_callnoreturn" id="1i/}iJlM;R_tsRR:E?(=" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation> ! <value name="ARG0"><block type="text" id=",(#40YoQ1@mn[1/l,~2Q"><field name="TEXT">7</field></block></value> ! <next><block type="control" id="4,(SWkv]qPa*qN0y6@JX"><mutation delay_input="false"></mutation> ! <field name="OID">javascript.0.Pincode_7</field> ! <field name="WITH_DELAY">FALSE</field> ! <value name="VALUE"><block type="logic_boolean" id="i+)@hC8=V!_7L5Om_vr8"><field name="BOOL">FALSE</field></block></value></block></next></block></statement> ! <value name="IF7"><block type="logic_compare" id="./Ve:V9!LTku5eXmHq9"><field name="OP">EQ</field>
                    ! <value name="A"><block type="get_value" id="i1pJ/%w0K^p+JY,sHsq"><field name="ATTR">val</field>
                    ! <field name="OID">javascript.0.Pincode_8</field></block></value>
                    ! <value name="B"><block type="logic_boolean" id="8tl;BxmxF6vkQBHqPx8S"><field name="BOOL">TRUE</field></block></value></block></value>
                    ! <statement name="DO7"><block type="procedures_callnoreturn" id="mbo1trmU+,_m{,32Eur-" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation>
                    ! <value name="ARG0"><block type="text" id="l/{bo.d],VOB8]NKMM-;"><field name="TEXT">8</field></block></value>
                    ! <next><block type="control" id="_IU#e/wxM;z
                    LIoXapSc"><mutation delay_input="false"></mutation>
                    ! <field name="OID">javascript.0.Pincode_8</field>
                    ! <field name="WITH_DELAY">FALSE</field>
                    ! <value name="VALUE"><block type="logic_boolean" id="5o[ItUtU{pey_ddb]Vo{"><field name="BOOL">FALSE</field></block></value></block></next></block></statement>
                    ! <value name="IF8"><block type="logic_compare" id="31vz^KGQys?cG5xLnor3"><field name="OP">EQ</field>
                    ! <value name="A"><block type="get_value" id="N=#YNd-l)Y7+{Hs-j7x|"><field name="ATTR">val</field>
                    ! <field name="OID">javascript.0.Pincode_9</field></block></value>
                    ! <value name="B"><block type="logic_boolean" id="0/iv=^V158w=pO:L#aW"><field name="BOOL">TRUE</field></block></value></block></value> ! <statement name="DO8"><block type="procedures_callnoreturn" id="=2@z*Bg2jZ}Q4)dL(kL[" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation> ! <value name="ARG0"><block type="text" id="sA}=(*-aW(N3*9}=8Y!M"><field name="TEXT">9</field></block></value> ! <next><block type="control" id="7_XV(bU6Z{%reCxs+N@S"><mutation delay_input="false"></mutation> ! <field name="OID">javascript.0.Pincode_9</field> ! <field name="WITH_DELAY">FALSE</field> ! <value name="VALUE"><block type="logic_boolean" id="c=*,6iXR==5({@v3ulN{"><field name="BOOL">FALSE</field></block></value></block></next></block></statement> ! <value name="IF9"><block type="logic_compare" id="Bac{;rIP^+Ucy8w@{M@d"><field name="OP">EQ</field> ! <value name="A"><block type="get_value" id="!JKJ(g0-UnF?h;.5owZk"><field name="ATTR">val</field> ! <field name="OID">javascript.0.Pincode_0</field></block></value> ! <value name="B"><block type="logic_boolean" id="L;tI%~Oa{Zb|e=m_sXIf"><field name="BOOL">TRUE</field></block></value></block></value> ! <statement name="DO9"><block type="procedures_callnoreturn" id="XL)%L_.!5pO%6*%j%s1g" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation> ! <value name="ARG0"><block type="text" id="Eb,viCwOsMo=Qu_Nk(;S"><field name="TEXT">0</field></block></value> ! <next><block type="control" id="3vndL}cJ_CG#!A:s+7?h"><mutation delay_input="false"></mutation> ! <field name="OID">javascript.0.Pincode_0</field> ! <field name="WITH_DELAY">FALSE</field> ! <value name="VALUE"><block type="logic_boolean" id="Kk7[Q2G[UHXjBU7UuBKH"><field name="BOOL">FALSE</field></block></value></block></next></block></statement></block></statement></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block> ! <block type="procedures_defnoreturn" id="t@lDFN#V:FHO31zeMUSV" x="578" y="527"><mutation><arg name="TastenWert"></arg></mutation> ! <field name="NAME">getCode</field> ! <comment pinned="false" h="80" w="160">Code pruefen</comment> ! <statement name="STACK"><block type="text_append" id="@0sNv=W?MJzk622W]Q4"><field name="VAR">tempCode</field>
                    ! <value name="TEXT"><shadow id="6q^nqw|R(+L0{n_l/Gc4" type="text"></shadow>
                    ! <block type="variables_get" id="LWMvwI0w|bcPvg-n5gGg"><field name="VAR">TastenWert</field></block></value>
                    ! <next><block type="debug" id="vjr3FKb9Vi*y+77wJTx,"><field name="Severity">log</field>
                    ! <value name="TEXT"><shadow id=".0O)AP~8_Z
                    ^cA%~Y=0o" type="text"></shadow>
                    ! <block type="text_join" id=")fGp8U0U/F=Wcs;KY/|"><mutation items="2"></mutation>
                    ! <value name="ADD0"><block type="text" id=").fVwr0of^0wi[
                    +UipI"><field name="TEXT">***Eingabe -></field></block></value>
                    ! <value name="ADD1"><block type="variables_get" id="Cw9-Bo9Tle36/K]UpAeB"><field name="VAR">tempCode</field></block></value></block></value>
                    ! <next><block type="comment" id="CX#2-}lbikX]g_bo}dG"><field name="COMMENT">Pin im Pinfeld anzeigen</field> ! <next><block type="controls_if" id="^)^=prWB6YQ8#?F8w-qB"><value name="IF0"><block type="logic_compare" id="-=)xyN+tFgK-gKy~duM8"><field name="OP">EQ</field> ! <value name="A"><block type="text_length" id="1N;.onyIaJ4)zw;Lj{sy"><value name="VALUE"><shadow id="RGYf(-7S#_3L-Ww7];" type="text"><field name="TEXT">abc</field></shadow>
                    ! <block type="variables_get" id="EJanNNr+nCGq!#Qg01Ja"><field name="VAR">tempCode</field></block></value></block></value>
                    ! <value name="B"><block type="math_number" id="_yFgE^_z%[#0!YfcCO"><field name="NUM">1</field></block></value></block></value>
                    ! <statement name="DO0"><block type="update" id="}#}]Mhr%ot
                    Vgmry7,OS"><mutation delay_input="false"></mutation>
                    ! <field name="OID">javascript.0.Pindisplay</field>
                    ! <field name="WITH_DELAY">FALSE</field>
                    ! <value name="VALUE"><block type="text" id="HF,wk/vYz=Zw5KJu}/Q}"><field name="TEXT"></field></block></value></block></statement>
                    ! <next><block type="controls_if" id="s6)LhaG?LneMFAN[=?hp"><value name="IF0"><block type="logic_compare" id="1O_a6jU}{vR
                    m^RTQ/b9"><field name="OP">EQ</field>
                    ! <value name="A"><block type="text_length" id="YYWzBrOnAp[UA26,Z[0]"><value name="VALUE"><shadow id="RGYf*(-7S#_3L-Ww7];" type="text"><field name="TEXT">abc</field></shadow> ! <block type="variables_get" id="UMZ0|8{Cs)ReA%bt2+X"><field name="VAR">tempCode</field></block></value></block></value>
                    ! <value name="B"><block type="math_number" id="H5%{pK%*X,zLS?frEz]m"><field name="NUM">2</field></block></value></block></value>
                    ! <statement name="DO0"><block type="update" id="z8z5-~}#,Q.T1-QXL%ke"><mutation delay_input="false"></mutation>
                    ! <field name="OID">javascript.0.Pindisplay</field>
                    ! <field name="WITH_DELAY">FALSE</field>
                    ! <value name="VALUE"><block type="text" id="U1e0uu+{]G(vP=dWY)r7"><field name="TEXT">
                    </field></block></value></block></statement>
                    ! <next><block type="controls_if" id="h9e;v(vwjn7Us/V1fH!"><value name="IF0"><block type="logic_compare" id="u[0~;mXARwzRY;G*4J{S"><field name="OP">EQ</field> ! <value name="A"><block type="text_length" id="jl@XkTBq/oywtUDuPV0J"><value name="VALUE"><shadow id="RGYf(-7S#_3L-Ww7];" type="text"><field name="TEXT">abc</field></shadow>
                    ! <block type="variables_get" id="d{fkjnY8sD5De!PBLQ@"><field name="VAR">tempCode</field></block></value></block></value> ! <value name="B"><block type="math_number" id="MnY}YH2|(oy^El]b?Yb1"><field name="NUM">3</field></block></value></block></value> ! <statement name="DO0"><block type="update" id=")=|5oAL}3GX5|fcr(69O"><mutation delay_input="false"></mutation> ! <field name="OID">javascript.0.Pindisplay</field> ! <field name="WITH_DELAY">FALSE</field> ! <value name="VALUE"><block type="text" id="cGLmkQh?3%Hb2sC7v-DY"><field name="TEXT">***</field></block></value></block></statement> ! <next><block type="controls_if" id=":|J6d%BT={/8CvBZYVwV"><value name="IF0"><block type="logic_compare" id="MgJK6bBkXbRAEjpLXWK."><field name="OP">EQ</field> ! <value name="A"><block type="text_length" id="8C=,P5Tg19j{!Nz]38EB"><value name="VALUE"><shadow id="RGYf
                    (-7S#3L-Ww7];" type="text"><field name="TEXT">abc</field></shadow>
                    ! <block type="variables_get" id="+n)lNTH7J#0Uo8-=l82"><field name="VAR">tempCode</field></block></value></block></value> ! <value name="B"><block type="math_number" id="ArKdmks#-Sg;tK!_3SuS"><field name="NUM">4</field></block></value></block></value> ! <statement name="DO0"><block type="update" id="NRl[{[xD;D(|7~95To"><mutation delay_input="false"></mutation>
                    ! <field name="OID">javascript.0.Pindisplay</field>
                    ! <field name="WITH_DELAY">FALSE</field>
                    ! <value name="VALUE"><block type="text" id="T/{tOKOc;x(/9dJ7!r.t"><field name="TEXT">*</field></block></value></block></statement>
                    ! <next><block type="controls_if" id="n5A{||l/F/:ozsHSOg4^"><mutation elseif="1"></mutation>
                    ! <value name="IF0"><block type="logic_compare" id="T=]omffKe6S+_(UpU:6"><field name="OP">GT</field> ! <value name="A"><block type="text_length" id=";Xk,nZX;Io@ax2OT=s73"><value name="VALUE"><shadow id="RGYf
                    (-7S#3L-Ww7];" type="text"><field name="TEXT">abc</field></shadow>
                    ! <block type="variables_get" id="gapi+DOc
                    =Fi})6b
                    l7}"><field name="VAR">tempCode</field></block></value></block></value>
                    ! <value name="B"><block type="variables_get" id="j9RTTC,C]+Q)EY2SD}i"><field name="VAR">maxCodeLaenge</field></block></value></block></value> ! <statement name="DO0"><block type="comment" id="|Tgo8I~X04G[v8TB8v3"><field name="COMMENT">Zuviele Eingaben</field>
                    ! <next><block type="comment" id="+lM8)EE
                    fCon1X0.Dw="><field name="COMMENT">Eingabe löschen und Versuche hochzählen</field> ! <next><block type="debug" id="sRw2Xy,4}LO3T4q.5*yM"><field name="Severity">log</field> ! <value name="TEXT"><shadow type="text" id="+cYZRRJa1z=6hGhTLdam"><field name="TEXT">*****Zuviele Zeichen*****</field></shadow></value> ! <next><block type="comment" id="TL|;_2S2*1B3G-!!uU:J"><field name="COMMENT">Meldung im Pinfeld anzeigen</field> ! <next><block type="update" id="GOC2C{mGi~aTqiP;9C5}"><mutation delay_input="false"></mutation> ! <field name="OID">javascript.0.Pindisplay</field> ! <field name="WITH_DELAY">FALSE</field> ! <value name="VALUE"></value> ! <next><block type="update" id="#OqtLfxxw=[A6uZtczAW"><mutation delay_input="false"></mutation> ! <field name="OID">javascript.0.Hinweisfeld</field> ! <field name="WITH_DELAY">FALSE</field> ! <value name="VALUE"><block type="text" id="ZH!2)?ih!G@_9s)7]2Pk"><field name="TEXT">*** Zuviele Zeichen ***</field></block></value> ! <next><block type="timeouts_settimeout" id="qg*q6an]aZ*7sUvFKe:*"><field name="NAME">timeout2</field> ! <field name="DELAY">1</field> ! <field name="UNIT">sec</field> ! <statement name="STATEMENT"><block type="update" id="KwkLnL*|,hhm!2bLfNHX"><mutation delay_input="false"></mutation> ! <field name="OID">javascript.0.Hinweisfeld</field> ! <field name="WITH_DELAY">FALSE</field> ! <value name="VALUE"></value></block></statement> ! <next><block type="variables_set" id="%D8buHC|kCUU1/KVJB[2"><field name="VAR">tempCode</field> ! <value name="VALUE"></value> ! <next><block type="procedures_callnoreturn" id="T/]?rq:p![ebfuT~k+i/"><mutation name="chkVersuche"></mutation></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement> ! <value name="IF1"><block type="logic_compare" id="lDJ@;/jzBi=HTRV]yYn,"><field name="OP">EQ</field> ! <value name="A"><block type="variables_get" id="*v]-iY2]3*a;Ir}hU9sM"><field name="VAR">tempCode</field></block></value> ! <value name="B"><block type="variables_get" id="FXw/|._t2rtHCxgNR}N{"><field name="VAR">CodeAnwesend</field></block></value></block></value> ! <statement name="DO1"><block type="comment" id="l(HPe4p~ikj;pvhZJME,"><field name="COMMENT">Eingabe korrekt</field> ! <next><block type="comment" id="]W5;w=NCr|pS0Jvri@V"><field name="COMMENT">Nur zu Testzwecke eine Lammpe</field>
                    ! <next><block type="control" id="Olmp]xYgxshJxPjihu}Z"><mutation delay_input="false"></mutation>
                    ! <field name="OID">hue.0.Philips_hue.Hue_Deckenlampe_Büro_EG.on</field>
                    ! <field name="WITH_DELAY">FALSE</field>
                    ! <value name="VALUE"><block type="logic_boolean" id="X~@e]v}!oR]GJo%+3Z5^"><field name="BOOL">TRUE</field></block></value>
                    ! <next><block type="debug" id="U;M412@-[mW58w:2/pDZ"><field name="Severity">log</field>
                    ! <value name="TEXT"><shadow type="text" id="/6PKtIv;asj~zH1YFWm"><field name="TEXT">*Tür öffnet</field></shadow></value>
                    ! <next><block type="variables_set" id="JsF#tPrlP((e*D(PKz;"><field name="VAR">AnzahlVersuche</field> ! <value name="VALUE"><block type="math_number" id="_#wsFg(JuzNqSyCO63UI"><field name="NUM">0</field></block></value></block></next></block></next></block></next></block></next></block></statement> ! <next><block type="timeouts_settimeout" id="*)]FG}!jqa@!^@C404zD"><field name="NAME">timeout</field> ! <field name="DELAY">2000</field> ! <field name="UNIT">ms</field> ! <statement name="STATEMENT"><block type="comment" id="@87rub*L(JD2dLo|Aef"><field name="COMMENT">Wenn in 5 Sek. keine weitere Eingabe erfolgt</field>
                    ! <next><block type="comment" id="/6Z(,/]
                    }ZhyadfHIgZ5"><field name="COMMENT">dann Eingabe löschen und Versuche hochzählen</field>
                    ! <next><block type="variables_set" id="a3yX(4)M(27nSsHd.d-
                    "><field name="VAR">tempCode</field>
                    ! <value name="VALUE"></value>
                    ! <next><block type="procedures_callnoreturn" id="Uqe6b9wNj]Sp(Zb#o#X"><mutation name="chkVersuche"></mutation> ! <next><block type="update" id="4deaz]R}xStru+WCcrf_"><mutation delay_input="false"></mutation> ! <field name="OID">javascript.0.Pindisplay</field> ! <field name="WITH_DELAY">FALSE</field> ! <value name="VALUE"></value> ! <next><block type="debug" id="k/0,htM4ZugsatRTTb{P"><field name="Severity">log</field> ! <value name="TEXT"><shadow type="text" id="+|?-9g}jSF9S,b*w;j/B"><field name="TEXT">Code gelöscht - Timeout</field></shadow></value> ! <next><block type="debug" id="G@,:7MZkgn{w=nxmS(ap"><field name="Severity">log</field> ! <value name="TEXT"><shadow id=".0O)AP~8_Z_^cA%~Y=0o" type="text"></shadow> ! <block type="text_join" id="_(_Qv|P.P([wC7Q}9Td%"><mutation items="2"></mutation> ! <value name="ADD0"><block type="text" id="gcq:vlFz__^qOq1q)IN3"><field name="TEXT">tempcode:</field></block></value> ! <value name="ADD1"><block type="variables_get" id="0ezwdtmS3*2gTRSqs~e"><field name="VAR">tempCode</field></block></value></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block>
                    ! <block type="procedures_defnoreturn" id="c,ULx]X]~F-z^(
                    +{6vr" x="-38" y="1938"><field name="NAME">chkVersuche</field>
                    ! <comment pinned="false" h="80" w="160">Fehlerhafte Eingaben zählen und Eingabe sperren wenn maxVersuche erreicht.</comment>
                    ! <statement name="STACK"><block type="math_change" id="+bbjB}N7U3vkk:@%?[V"><field name="VAR">AnzahlVersuche</field> ! <value name="DELTA"><shadow type="math_number" id="P!Tq!OVi/*(ehXZb]uC8"><field name="NUM">1</field></shadow></value> ! <next><block type="controls_if" id="V6AzqIh:%+F@oh[M-IQ{"><value name="IF0"><block type="logic_compare" id="!CYyilZ1svbcZ]Yf=BXd"><field name="OP">EQ</field> ! <value name="A"><block type="variables_get" id="@Zmti,3QUsDg5gTF6tjC"><field name="VAR">AnzahlVersuche</field></block></value> ! <value name="B"><block type="variables_get" id="x=cs)@yt;A6[ua*T5FE|"><field name="VAR">maxVersuche</field></block></value></block></value> ! <statement name="DO0"><block type="debug" id="[d~Z|qEH+C4%5%A*xBTT"><field name="Severity">log</field> ! <value name="TEXT"><shadow type="text" id="v.9ViGY:H4?EbA+fzjKV"><field name="TEXT">*****Eingabe gesperrt*****</field></shadow></value> ! <next><block type="update" id="@x0X6!U3?yVUdMNd7h|{"><mutation delay_input="false"></mutation> ! <field name="OID">javascript.0.Hinweisfeld</field> ! <field name="WITH_DELAY">FALSE</field> ! <value name="VALUE"><block type="text" id="pk*J^i-+f2m/t+[zOM_J"><field name="TEXT">*****Eingabe gesperrt*****</field></block></value> ! <next><block type="timeouts_settimeout" id="(l|4)g2/(/@5-swvVF@2"><field name="NAME">sperren</field> ! <field name="DELAY">10</field> ! <field name="UNIT">sec</field> ! <statement name="STATEMENT"><block type="comment" id="U22mj9gD,9P)FU@4%{K~"><field name="COMMENT">Nach 10 Sek. wieder frei</field> ! <next><block type="variables_set" id="d)*rJF_51+C|Z3NMW9N+"><field name="VAR">AnzahlVersuche</field> ! <value name="VALUE"><block type="math_number" id="^)c6!p[y)V0zk(9oMl16"><field name="NUM">0</field></block></value> ! <next><block type="debug" id="SOZMoZ)Os7:]]y=T3yE"><field name="Severity">log</field>
                    ! <value name="TEXT"><shadow type="text" id="5.ubt?0E+m)aiIY`J``U"><field name="TEXT">Eingabe entsperrt</field></shadow></value>
                    ! <next><block type="update" id="n?/Wqp|%{T0nwPvf?%:T"><mutation delay_input="false"></mutation>
                    ! <field name="OID">javascript.0.Hinweisfeld</field>
                    ! <field name="WITH_DELAY">FALSE</field>
                    ! <value name="VALUE"><block type="text" id="GB9SLzcriiU0SdyEUpNs"><field name="TEXT">Entsperrt</field></block></value>
                    ! <next><block type="timeouts_settimeout" id="nW]9op/Y^v#^H{[:+.Bx"><field name="NAME">timeout3</field>
                    ! <field name="DELAY">2</field>
                    ! <field name="UNIT">sec</field>
                    ! <statement name="STATEMENT"><block type="update" id="]Lw{SdcV7|#^hS9vin^R"><mutation delay_input="false"></mutation>
                    ! <field name="OID">javascript.0.Hinweisfeld</field>
                    ! <field name="WITH_DELAY">FALSE</field>
                    ! <value name="VALUE"></value>
                    ! <next><block type="debug" id="aM7XM-wZ2Q3PGi0l^=Kf"><field name="Severity">log</field>
                    ! <value name="TEXT"><shadow type="text" id="woQna6mN}m=s%tKD]TQ."><field name="TEXT">Eingabe entsperrt ausgeblendet</field></shadow></value></block></next></block></statement></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block></statement></block></next></block></statement></block></xml>

                    Jetzt versuche ich doch die "Enter- und Löschentaste" zu integrieren.

                    LG `

                    1 Reply Last reply
                    0
                    • rantanplanR Offline
                      rantanplanR Offline
                      rantanplan
                      wrote on last edited by
                      #64

                      @firstfreak:

                      Aber nun meine Frage, wie kann ich jetzt mehrere Codes für unterschiedliche Sachen nutzen? `
                      Hallo

                      Hier kannst Du die Liste erweitern.
                      147_beispiel.png

                      Neue Variablen anlegen.

                      Z.B. LampeAn und LampeAus

                      Setze LampeAn auf "456"

                      Setze LampeAus auf "555"

                      Und dann in der Funktion "GetCode" die "Sonst falls" Abfragen erweitern.

                      Sonst falls tempCode = LampeAn mache …...

                      Grüße

                      Rantanplan

                      CCU3 / MS Server 2019(VM) / Scripten mit Blockly

                      1 Reply Last reply
                      0
                      • X Offline
                        X Offline
                        xADDRx
                        wrote on last edited by
                        #65

                        Moin zusammen,

                        kann mir jemand eventuell helfen?

                        Wie bekomme ich es hin, dass die Pineingabe im Feld (siehe Bild) angezeigt wird?

                        3372_pin.jpg

                        Danke.

                        Sonos, Intel Nuc, Iobroker Pro, Proxmox, IPad Air (Wand), Vis, Xiaomi, Devolo, Bose, Philips Hue, Instar, Synology

                        1 Reply Last reply
                        0
                        • rantanplanR Offline
                          rantanplanR Offline
                          rantanplan
                          wrote on last edited by
                          #66

                          @xADDRx:

                          Wie bekomme ich es hin, dass die Pineingabe im Feld (siehe Bild) angezeigt wird? `
                          Der PIN wird in der lokalen Variablen "tempCode" zusammengebaut.

                          Damit Du darauf über VIS zugreifen kannst, musst die "tempCode" an einen globalen Datenpunkt übergeben.

                          "aktualisiere MeinDatenPunkt mit tempCode"

                          Z.B. in der Funktion "getCode" unter dem Baustein "an tempCode an Text anhängen tempCode".

                          Und an den Stellen wo "tempCode", wegen Fehleingaben, gelehrt wird.

                          Grüße

                          Rantanplan

                          CCU3 / MS Server 2019(VM) / Scripten mit Blockly

                          1 Reply Last reply
                          0
                          • L Offline
                            L Offline
                            LJSven
                            wrote on last edited by
                            #67

                            Irgendwie nimmt er immer die Zeichen doppelt - was kann ich da machen? Habe das Script aus dem ersten Post.

                            javascript.0	2018-11-01 09:48:55.510	info	script.js.common.Sonstige.Pincode: *****Eingabe -> 3
                            javascript.0	2018-11-01 09:48:55.081	info	script.js.common.Sonstige.Pincode: *****Zuviele Zeichen*****
                            javascript.0	2018-11-01 09:48:55.080	info	script.js.common.Sonstige.Pincode: *****Eingabe -> 01122
                            javascript.0	2018-11-01 09:48:54.581	info	script.js.common.Sonstige.Pincode: *****Eingabe -> 0112
                            javascript.0	2018-11-01 09:48:54.400	info	script.js.common.Sonstige.Pincode: *****Eingabe -> 011
                            javascript.0	2018-11-01 09:48:53.789	info	script.js.common.Sonstige.Pincode: *****Eingabe -> 01
                            javascript.0	2018-11-01 09:48:53.633	info	script.js.common.Sonstige.Pincode: *****Eingabe -> 0
                            javascript.0	2018-11-01 09:48:52.870	info	script.js.common.Sonstige.Pincode: *****Zuviele Zeichen*****
                            javascript.0	2018-11-01 09:48:52.869	info	script.js.common.Sonstige.Pincode: *****Eingabe -> 32100
                            
                            1 Reply Last reply
                            0
                            • rantanplanR Offline
                              rantanplanR Offline
                              rantanplan
                              wrote on last edited by
                              #68

                              @LJSven:

                              Irgendwie nimmt er immer die Zeichen doppelt - was kann ich da machen? Habe das Script aus dem ersten Post. `
                              Welches Widget nimmst Du?

                              Rantanplan

                              CCU3 / MS Server 2019(VM) / Scripten mit Blockly

                              1 Reply Last reply
                              0
                              • L Offline
                                L Offline
                                LJSven
                                wrote on last edited by
                                #69

                                Dieses Widget - habe es mal exportiert.

                                [{"tpl":"tplHqButton","data":{"g_fixed":false,"g_visibility":false,"g_css_font_text":false,"g_css_background":false,"g_css_shadow_padding":false,"g_css_border":false,"g_gestures":false,"g_signals":false,"g_last_change":false,"visibility-cond":"==","visibility-val":1,"visibility-groups-action":"hide","oid":"javascript.0.Pincode_1","min":"false","max":"true","iconName":"","btIconWidth":"56","offsetAuto":true,"leftOffset":"15","topOffset":"55","timeAsInterval":"true","infoLeftFontSize":"10","infoFontRightSize":"10","infoLeftPaddingLeft":"15","infoLeftPaddingRight":"50","infoRightPaddingRight":"15","signals-cond-0":"==","signals-val-0":true,"signals-icon-0":"/vis/signals/lowbattery.png","signals-icon-size-0":0,"signals-blink-0":false,"signals-horz-0":0,"signals-vert-0":0,"signals-hide-edit-0":false,"signals-cond-1":"==","signals-val-1":true,"signals-icon-1":"/vis/signals/lowbattery.png","signals-icon-size-1":0,"signals-blink-1":false,"signals-horz-1":0,"signals-vert-1":0,"signals-hide-edit-1":false,"signals-cond-2":"==","signals-val-2":true,"signals-icon-2":"/vis/signals/lowbattery.png","signals-icon-size-2":0,"signals-blink-2":false,"signals-horz-2":0,"signals-vert-2":0,"signals-hide-edit-2":false,"lc-type":"last-change","lc-is-interval":true,"lc-is-moment":false,"lc-format":"","lc-position-vert":"top","lc-position-horz":"right","lc-offset-vert":0,"lc-offset-horz":0,"lc-font-size":"12px","lc-font-family":"","lc-font-style":"","lc-bkg-color":"","lc-color":"","lc-border-width":"0","lc-border-style":"","lc-border-color":"","lc-border-radius":10,"lc-zindex":0,"pushButton":true,"caption":"1","captionOn":"1","descriptionLeft":"Pincode_1","descriptionLeftDisabled":true,"infoRight":""},"style":{"left":"630px","top":"90px","width":"50px","height":"50px"},"widgetSet":"hqwidgets"}]
                                
                                1 Reply Last reply
                                0
                                • rantanplanR Offline
                                  rantanplanR Offline
                                  rantanplan
                                  wrote on last edited by
                                  #70

                                  @LJSven:

                                  Dieses Widget - habe es mal exportiert. `
                                  Der Name des Widget wäre besser gewesen.

                                  Probiere doch mal die Anpassung von Walkinglarge2010 aus.(ein paar Einträge höher)

                                  Habe ich aber selbst noch nicht getestet.

                                  Rantanplan

                                  CCU3 / MS Server 2019(VM) / Scripten mit Blockly

                                  1 Reply Last reply
                                  0
                                  • L Offline
                                    L Offline
                                    LJSven
                                    wrote on last edited by
                                    #71

                                    Ich habe das HQWidget genommen

                                    Gesendet von iPhone mit Tapatalk

                                    1 Reply Last reply
                                    0
                                    • L Offline
                                      L Offline
                                      LJSven
                                      wrote on last edited by
                                      #72

                                      @Walkinlarge2010!:

                                      Hallo zusammen,

                                      danke für die super Vorarbeit!

                                      Ich habe das Script etwas angepasst. Nun kann man jeglichen Schalter im VIS nehmen und braucht keinen extra Taster mehr. Wenn der PIN richtig ist, gebe ich das für eine Sekunde in den TempCode, dann kann man das als Ausgabe in der VIS nutzen.

                                      Hier der Export, muss natürlich individuell angepasst werden.

                                       <xml xmlns="http://www.w3.org/1999/xhtml"><block type="comment" id=".M/Q%KRmxbXWc2P9~_MO" x="-267" y="-132"><field name="COMMENT">Einmalige Initialisierung bei Programmstart</field>
                                          <next><block type="procedures_callnoreturn" id="tjP%K@i{#i,h1Dyax-gY"><mutation name="Initialisierung"></mutation>
                                              <next><block type="comment" id="?bXfiCYH0h;wOsNVLQT1"><field name="COMMENT">Hier beginnt das Triggern</field>
                                                  <next><block type="comment" id="Ox)}[Fr#C.VldaJS5L^k"><field name="COMMENT">Beliebig erweiterbar</field>
                                                      <next><block type="on_ext" id="7r*}c).]GtkEH)FR.:s."><mutation items="12"></mutation>
                                                          <field name="CONDITION">ne</field>
                                                          
                                                          <value name="OID0"><shadow type="field_oid" id="qW*M98D`Of90FmZ?BT;~"><field name="oid">javascript.0.Alarmsystem.PIN.Nummer_1</field></shadow></value> 
                                                          <value name="OID1"><shadow type="field_oid" id="db.g;R`[uTi-M|khCqfC"><field name="oid">javascript.0.Alarmsystem.PIN.Nummer_2</field></shadow></value> 
                                                          <value name="OID2"><shadow type="field_oid" id="xXI+u{uUm0V4mOYK!n]j"><field name="oid">javascript.0.Alarmsystem.PIN.Nummer_3</field></shadow></value> 
                                                          <value name="OID3"><shadow type="field_oid" id="L/.+Co%HVmPx|6[dkKDf"><field name="oid">javascript.0.Alarmsystem.PIN.Nummer_4</field></shadow></value> 
                                                          <value name="OID4"><shadow type="field_oid" id="YVdua@J5e.V_U-U26+?x"><field name="oid">javascript.0.Alarmsystem.PIN.Nummer_5</field></shadow></value> 
                                                          <value name="OID5"><shadow type="field_oid" id="3p-_6#@zV#xSNcEo/hbt"><field name="oid">javascript.0.Alarmsystem.PIN.Nummer_6</field></shadow></value> 
                                                          <value name="OID6"><shadow type="field_oid" id="[XON[zsvmV^USlAkKTMv"><field name="oid">javascript.0.Alarmsystem.PIN.Nummer_7</field></shadow></value> 
                                                          <value name="OID7"><shadow type="field_oid" id="%{._9]MXCKmMWiwrYR}w"><field name="oid">javascript.0.Alarmsystem.PIN.Nummer_8</field></shadow></value> 
                                                          <value name="OID8"><shadow type="field_oid" id="ME,JB!1D%xbAV}6ir2wG"><field name="oid">javascript.0.Alarmsystem.PIN.Nummer_9</field></shadow></value> 
                                                          <value name="OID9"><shadow type="field_oid" id="raHa*UG!:Q]~4]zEv1,#"><field name="oid">javascript.0.Alarmsystem.PIN.Nummer_0</field></shadow></value> 
                                                          <value name="OID10"><shadow type="field_oid" id="t/lBj:{1Z*;LCZ!?G/?g"><field name="oid">javascript.0.Alarmsystem.PIN.Nummer_Raute</field></shadow></value> 
                                                          <value name="OID11"><shadow type="field_oid" id="[jEp!64??uE`5I.NeKqk"><field name="oid">javascript.0.Alarmsystem.PIN.Nummer_Stern</field></shadow></value> 
                                                          <statement name="STATEMENT"><block type="comment" id="Yg;,[I7Ex=?rcz#y?kj%"><field name="COMMENT">Timer für zu lange Eingabepause stoppen</field>
                                                              <next><block type="timeouts_cleartimeout" id="#p8Sw}HSQK?cYiU:YHiK"><field name="NAME">timeout</field>
                                                                  <next><block type="comment" id="?pNSp?WhqKPHT/B_pJo:"><field name="COMMENT">Nur ausführen wenn Eingabe nicht geblockt</field>
                                                                      <next><block type="controls_if" id="`dn-O]h-kTj)k:Hx)Xkz"><value name="IF0"><block type="logic_compare" id="aahnsRO!(k,8K;ftiGcN"><field name="OP">NEQ</field>
                                                                              <value name="A"><block type="variables_get" id="~1[*:7k/oGI/ZT1ie-F5"><field name="VAR">AnzahlVersuche</field></block></value> 
                                                                              <value name="B"><block type="variables_get" id="9EtqToNOpvma_:nUc:I3"><field name="VAR">maxVersuche</field></block></value></block></value> 
                                                                          <statement name="DO0"><block type="controls_if" id="53w`on3Q~KRaZW)3F6_["><mutation elseif="11"></mutation>
                                                                              <value name="IF0"><block type="logic_compare" id="=Vuh)csdD]A:f+;xaY0c"><field name="OP">EQ</field>
                                                                                  <value name="A"><block type="get_value" id="73#_D/?hW=+je)pXEOH]"><field name="ATTR">val</field>
                                                                                      <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_1</field></block></value> 
                                                                                  <value name="B"><block type="logic_boolean" id="-nBqftYopC%u~4,0#S:J"><field name="BOOL">TRUE</field></block></value></block></value> 
                                                                              <statement name="DO0"><block type="comment" id="iDWo7Ppf@/PIDOC3,nQg"><field name="COMMENT">Die Eingabe an Funktion übergeben</field>
                                                                                  <next><block type="procedures_callnoreturn" id="9ND8^RRRst6J*Tr1aF:P" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation> 
                                                                                      <value name="ARG0"><block type="text" id=";{hUh`J|FuWgRnG+V`x/"><field name="TEXT">1</field></block></value> 
                                                                                      <next><block type="update" id="9@@s@)al,NFi:Fv!o)^v"><mutation delay_input="true"></mutation>
                                                                                          <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_1</field>
                                                                                          <field name="WITH_DELAY">TRUE</field>
                                                                                          <field name="DELAY_MS">250</field>
                                                                                          <field name="UNIT">ms</field>
                                                                                          <field name="CLEAR_RUNNING">FALSE</field>
                                                                                          <value name="VALUE"><block type="logic_boolean" id="CLmw7YVC/r6HoA_issE="><field name="BOOL">FALSE</field></block></value></block></next></block></next></block></statement> 
                                                                              <value name="IF1"><block type="logic_compare" id="7OCP}UF3YaQ|gs=RDF`y"><field name="OP">EQ</field>
                                                                                  <value name="A"><block type="get_value" id="NHZ%eeYxhwr?#M_(BhP/"><field name="ATTR">val</field>
                                                                                      <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_2</field></block></value> 
                                                                                  <value name="B"><block type="logic_boolean" id="*2NWW1B~r6Z2E}P%j2wg"><field name="BOOL">TRUE</field></block></value></block></value> 
                                                                              <statement name="DO1"><block type="procedures_callnoreturn" id="TUEyn}|x(z36g?T63y*_" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation> 
                                                                                  <value name="ARG0"><block type="text" id="]Rf`6@?xK*gplLyQ-bQP"><field name="TEXT">2</field></block></value> 
                                                                                  <next><block type="update" id="qf^]8rxXq{N3)E`W#^k3"><mutation delay_input="true"></mutation>
                                                                                      <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_2</field>
                                                                                      <field name="WITH_DELAY">TRUE</field>
                                                                                      <field name="DELAY_MS">250</field>
                                                                                      <field name="UNIT">ms</field>
                                                                                      <field name="CLEAR_RUNNING">FALSE</field>
                                                                                      <value name="VALUE"><block type="logic_boolean" id="mv;V~3AH@eQKWfkD;*Sc"><field name="BOOL">FALSE</field></block></value></block></next></block></statement> 
                                                                              <value name="IF2"><block type="logic_compare" id="8oUmv2o%~@wjdNn_2bB}"><field name="OP">EQ</field>
                                                                                  <value name="A"><block type="get_value" id="D5^##Kxmy;b`o1B=Nj_?"><field name="ATTR">val</field>
                                                                                      <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_3</field></block></value> 
                                                                                  <value name="B"><block type="logic_boolean" id="=+FvloDpnlxoQhQt]biY"><field name="BOOL">TRUE</field></block></value></block></value> 
                                                                              <statement name="DO2"><block type="procedures_callnoreturn" id="?}Q)OGY}05Ms(#R@Kycz" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation> 
                                                                                  <value name="ARG0"><block type="text" id=";dy%FKdEuIq;eorrIp|h"><field name="TEXT">3</field></block></value> 
                                                                                  <next><block type="update" id="|rh0[ZSafFT2P9^i2a5g"><mutation delay_input="true"></mutation>
                                                                                      <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_3</field>
                                                                                      <field name="WITH_DELAY">TRUE</field>
                                                                                      <field name="DELAY_MS">250</field>
                                                                                      <field name="UNIT">ms</field>
                                                                                      <field name="CLEAR_RUNNING">FALSE</field>
                                                                                      <value name="VALUE"><block type="logic_boolean" id="KeQpkP;!xJz0l9UcDt~e"><field name="BOOL">FALSE</field></block></value></block></next></block></statement> 
                                                                              <value name="IF3"><block type="logic_compare" id="8apFtO:LEW0/,#=:U)gd"><field name="OP">EQ</field>
                                                                                  <value name="A"><block type="get_value" id="o{]OcOspYPH~(gC1%t*~"><field name="ATTR">val</field>
                                                                                      <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_4</field></block></value> 
                                                                                  <value name="B"><block type="logic_boolean" id="ReP45uSYnPV5dI4r!HX_"><field name="BOOL">TRUE</field></block></value></block></value> 
                                                                              <statement name="DO3"><block type="procedures_callnoreturn" id="G8i%d,3Hk8Lb6pdBrmS=" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation> 
                                                                                  <value name="ARG0"><block type="text" id="5L75`L}7L;|+}rmrp~ed"><field name="TEXT">4</field></block></value> 
                                                                                  <next><block type="update" id="bm[gN*}7`b_a*u%Y^;h-"><mutation delay_input="true"></mutation>
                                                                                      <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_4</field>
                                                                                      <field name="WITH_DELAY">TRUE</field>
                                                                                      <field name="DELAY_MS">250</field>
                                                                                      <field name="UNIT">ms</field>
                                                                                      <field name="CLEAR_RUNNING">FALSE</field>
                                                                                      <value name="VALUE"><block type="logic_boolean" id="(FFs_m.S2fc`e=?l.J#L"><field name="BOOL">FALSE</field></block></value></block></next></block></statement> 
                                                                              <value name="IF4"><block type="logic_compare" id="`gGdjrCEvp4|F-9!_c+0"><field name="OP">EQ</field>
                                                                                  <value name="A"><block type="get_value" id="x+N2@@K^{v%b#d9D3A*C"><field name="ATTR">val</field>
                                                                                      <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_5</field></block></value> 
                                                                                  <value name="B"><block type="logic_boolean" id="e5HB-~R%#;:(zua1A#:q"><field name="BOOL">TRUE</field></block></value></block></value> 
                                                                              <statement name="DO4"><block type="procedures_callnoreturn" id="|/1B/2TwZ]sg^_fCkpF[" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation> 
                                                                                  <value name="ARG0"><block type="text" id="ijb/fyL}D^0].JEH9]-P"><field name="TEXT">5</field></block></value> 
                                                                                  <next><block type="update" id="fziQxD0_K@qe}AT3latd"><mutation delay_input="true"></mutation>
                                                                                      <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_5</field>
                                                                                      <field name="WITH_DELAY">TRUE</field>
                                                                                      <field name="DELAY_MS">250</field>
                                                                                      <field name="UNIT">ms</field>
                                                                                      <field name="CLEAR_RUNNING">FALSE</field>
                                                                                      <value name="VALUE"><block type="logic_boolean" id="k1Hyug],*iN=l(;#R;0{"><field name="BOOL">FALSE</field></block></value></block></next></block></statement> 
                                                                              <value name="IF5"><block type="logic_compare" id="@h**sD7_;Ec|/{~=VcOx"><field name="OP">EQ</field>
                                                                                  <value name="A"><block type="get_value" id=",9]o#s/huPstS?,abr|a"><field name="ATTR">val</field>
                                                                                      <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_6</field></block></value> 
                                                                                  <value name="B"><block type="logic_boolean" id="m8U*gfnHC7age(*^FvFt"><field name="BOOL">TRUE</field></block></value></block></value> 
                                                                              <statement name="DO5"><block type="procedures_callnoreturn" id="}7YRsjFgISkt2DLczOWQ" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation> 
                                                                                  <value name="ARG0"><block type="text" id="7GbS.fw03D#3Rk9dkG-I"><field name="TEXT">6</field></block></value> 
                                                                                  <next><block type="update" id="Awmw{e4.R5:degkZ0%#j"><mutation delay_input="true"></mutation>
                                                                                      <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_6</field>
                                                                                      <field name="WITH_DELAY">TRUE</field>
                                                                                      <field name="DELAY_MS">250</field>
                                                                                      <field name="UNIT">ms</field>
                                                                                      <field name="CLEAR_RUNNING">FALSE</field>
                                                                                      <value name="VALUE"><block type="logic_boolean" id="Ub1A8rhNt[G=~CP(Du{*"><field name="BOOL">FALSE</field></block></value></block></next></block></statement> 
                                                                              <value name="IF6"><block type="logic_compare" id="V4Lo]/iv6ty6Uke?gMq."><field name="OP">EQ</field>
                                                                                  <value name="A"><block type="get_value" id="grF#N7VRzA68b^W*R3~_"><field name="ATTR">val</field>
                                                                                      <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_7</field></block></value> 
                                                                                  <value name="B"><block type="logic_boolean" id="/p@#.M-G]zLevwG*RKMZ"><field name="BOOL">TRUE</field></block></value></block></value> 
                                                                              <statement name="DO6"><block type="procedures_callnoreturn" id="1i/}iJlM;R_tsRR:E?(=" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation> 
                                                                                  <value name="ARG0"><block type="text" id=",(#40YoQ1@mn[1/l,~2Q"><field name="TEXT">7</field></block></value> 
                                                                                  <next><block type="update" id="MAJeC[NusfBo]SAb4f/Z"><mutation delay_input="true"></mutation>
                                                                                      <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_7</field>
                                                                                      <field name="WITH_DELAY">TRUE</field>
                                                                                      <field name="DELAY_MS">250</field>
                                                                                      <field name="UNIT">ms</field>
                                                                                      <field name="CLEAR_RUNNING">FALSE</field>
                                                                                      <value name="VALUE"><block type="logic_boolean" id="~XEaTw:I+V!3-o#(hpU?"><field name="BOOL">FALSE</field></block></value></block></next></block></statement> 
                                                                              <value name="IF7"><block type="logic_compare" id="./V`e:V9!LTku5eXmHq9"><field name="OP">EQ</field>
                                                                                  <value name="A"><block type="get_value" id="i1pJ/%w0K^p+JY,sHs*q"><field name="ATTR">val</field>
                                                                                      <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_8</field></block></value> 
                                                                                  <value name="B"><block type="logic_boolean" id="8tl;BxmxF6vkQBHqPx8S"><field name="BOOL">TRUE</field></block></value></block></value> 
                                                                              <statement name="DO7"><block type="procedures_callnoreturn" id="mbo1trmU+,_m{,32Eur-" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation> 
                                                                                  <value name="ARG0"><block type="text" id="l/{bo.d],VOB8]NKMM-;"><field name="TEXT">8</field></block></value> 
                                                                                  <next><block type="update" id="92mrM??.#,x6J:kgQ{+z"><mutation delay_input="true"></mutation>
                                                                                      <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_8</field>
                                                                                      <field name="WITH_DELAY">TRUE</field>
                                                                                      <field name="DELAY_MS">250</field>
                                                                                      <field name="UNIT">ms</field>
                                                                                      <field name="CLEAR_RUNNING">FALSE</field>
                                                                                      <value name="VALUE"><block type="logic_boolean" id="c0ak)7T1FSS:IsY+uv{E"><field name="BOOL">FALSE</field></block></value></block></next></block></statement> 
                                                                              <value name="IF8"><block type="logic_compare" id="31vz^KGQys?cG5xLnor3"><field name="OP">EQ</field>
                                                                                  <value name="A"><block type="get_value" id="N=#YNd-l)Y7+{Hs-j7x|"><field name="ATTR">val</field>
                                                                                      <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_9</field></block></value> 
                                                                                  <value name="B"><block type="logic_boolean" id="0`/iv=^V158w=pO:L#aW"><field name="BOOL">TRUE</field></block></value></block></value> 
                                                                              <statement name="DO8"><block type="procedures_callnoreturn" id="=2@z*Bg2jZ}Q4)dL(kL[" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation> 
                                                                                  <value name="ARG0"><block type="text" id="sA}=(*-aW(N3*9}=8Y!M"><field name="TEXT">9</field></block></value> 
                                                                                  <next><block type="update" id="UVGihdGH_J2%/H9NceS;"><mutation delay_input="true"></mutation>
                                                                                      <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_9</field>
                                                                                      <field name="WITH_DELAY">TRUE</field>
                                                                                      <field name="DELAY_MS">250</field>
                                                                                      <field name="UNIT">ms</field>
                                                                                      <field name="CLEAR_RUNNING">FALSE</field>
                                                                                      <value name="VALUE"><block type="logic_boolean" id="Pi2n+A!sddFA44(_^~D3"><field name="BOOL">FALSE</field></block></value></block></next></block></statement> 
                                                                              <value name="IF9"><block type="logic_compare" id="Bac{;rIP^+Ucy8w@{M@d"><field name="OP">EQ</field>
                                                                                  <value name="A"><block type="get_value" id="!JKJ(g0-UnF?h;.5owZk"><field name="ATTR">val</field>
                                                                                      <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_0</field></block></value> 
                                                                                  <value name="B"><block type="logic_boolean" id="L;tI%~Oa{Zb|e=m_sXIf"><field name="BOOL">TRUE</field></block></value></block></value> 
                                                                              <statement name="DO9"><block type="procedures_callnoreturn" id="XL)%L_.!5pO%6*%j%s1g" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation> 
                                                                                  <value name="ARG0"><block type="text" id="Eb,viCwOsMo=Qu_Nk(;S"><field name="TEXT">0</field></block></value> 
                                                                                  <next><block type="update" id="ZE`J_g+?8fY;iXX=j8Jc"><mutation delay_input="true"></mutation>
                                                                                      <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_0</field>
                                                                                      <field name="WITH_DELAY">TRUE</field>
                                                                                      <field name="DELAY_MS">250</field>
                                                                                      <field name="UNIT">ms</field>
                                                                                      <field name="CLEAR_RUNNING">FALSE</field>
                                                                                      <value name="VALUE"><block type="logic_boolean" id="ey)btK??UB7{zh1lr:o7"><field name="BOOL">FALSE</field></block></value></block></next></block></statement> 
                                                                              <value name="IF10"><block type="logic_compare" id="}L[GS:@L=[9^V9MPM-P?"><field name="OP">EQ</field>
                                                                                  <value name="A"><block type="get_value" id="*S{Utoo4?br3L?h(lo-]"><field name="ATTR">val</field>
                                                                                      <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_Raute</field></block></value> 
                                                                                  <value name="B"><block type="logic_boolean" id="LSN]CN=uT%-d*-@{i`%s"><field name="BOOL">TRUE</field></block></value></block></value> 
                                                                              <statement name="DO10"><block type="procedures_callnoreturn" id="BOgv6x.mmih[qn;`6OtO" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation> 
                                                                                  <value name="ARG0"><block type="text" id="uGm!*c|[SM;cvu!:~,qu"><field name="TEXT">#</field></block></value> 
                                                                                  <next><block type="update" id="~YA%Hxq/TvKN]kz4ieUo"><mutation delay_input="true"></mutation>
                                                                                      <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_Raute</field>
                                                                                      <field name="WITH_DELAY">TRUE</field>
                                                                                      <field name="DELAY_MS">250</field>
                                                                                      <field name="UNIT">ms</field>
                                                                                      <field name="CLEAR_RUNNING">FALSE</field>
                                                                                      <value name="VALUE"><block type="logic_boolean" id="HW?*QRqP+fuMncYEn(MU"><field name="BOOL">FALSE</field></block></value></block></next></block></statement> 
                                                                              <value name="IF11"><block type="logic_compare" id="(H4bgUs`GZg*O}Totx_8"><field name="OP">EQ</field>
                                                                                  <value name="A"><block type="get_value" id="(]Gt?NFZOC#i8MaMrKIs"><field name="ATTR">val</field>
                                                                                      <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_Stern</field></block></value> 
                                                                                  <value name="B"><block type="logic_boolean" id="??m^})f0ye?+9G;IP4bm"><field name="BOOL">TRUE</field></block></value></block></value> 
                                                                              <statement name="DO11"><block type="procedures_callnoreturn" id="*q;WY(IUkpb,H0c_|0Jh" inline="true"><mutation name="getCode"><arg name="TastenWert"></arg></mutation> 
                                                                                  <value name="ARG0"><block type="text" id="R:oGY=KQb(5Hu+{7BVut"><field name="TEXT">*</field></block></value> 
                                                                                  <next><block type="update" id="y;k7!#75?L;`lUPV]g4o"><mutation delay_input="true"></mutation>
                                                                                      <field name="OID">javascript.0.Alarmsystem.PIN.Nummer_Stern</field>
                                                                                      <field name="WITH_DELAY">TRUE</field>
                                                                                      <field name="DELAY_MS">250</field>
                                                                                      <field name="UNIT">ms</field>
                                                                                      <field name="CLEAR_RUNNING">FALSE</field>
                                                                                      <value name="VALUE"><block type="logic_boolean" id="0G[+4;i_o7g;?1a!99;3"><field name="BOOL">FALSE</field></block></value></block></next></block></statement></block></statement> 
                                                                          <next><block type="update" id="uk[^_Xl}2@I^c!-x*r.Z"><mutation delay_input="true"></mutation>
                                                                              <field name="OID">javascript.0.Alarmsystem.PIN.Temp_Code</field>
                                                                              <field name="WITH_DELAY">TRUE</field>
                                                                              <field name="DELAY_MS">275</field>
                                                                              <field name="UNIT">ms</field>
                                                                              <field name="CLEAR_RUNNING">FALSE</field>
                                                                              <value name="VALUE"><block type="variables_get" id="*@j*dTh|~Xqa~%TIZ[cn"><field name="VAR">tempCode</field></block></value></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block> 
                                        <block type="procedures_defnoreturn" id="O)q*?M8Hfa5)/}O6ZsZ7" x="737" y="137"><field name="NAME">Initialisierung</field>
                                          <comment pinned="false" h="80" w="160">Bei Programmstart Werte vorgeben.</comment>
                                          <statement name="STACK"><block type="variables_set" id="?L69j3%sRmc}([5G2X60"><field name="VAR">AnzahlVersuche</field>
                                              <value name="VALUE"><block type="math_number" id="t]h/P`X7feEalP-;RDq_"><field name="NUM">0</field></block></value> 
                                              <next><block type="variables_set" id="wMeGQPHU)@|vwaJP%iqr"><field name="VAR">tempCode</field>
                                                  <value name="VALUE"></value> 
                                                  <next><block type="comment" id="_UZqDvMtW0LHk96L^T8z"><field name="COMMENT">Maximale Fehlversuche festlegen</field>
                                                      <next><block type="variables_set" id="e663[k*hSCd%o_?sd(XA"><field name="VAR">maxVersuche</field>
                                                          <value name="VALUE"><block type="math_number" id="{OjuYXvX(;:=T.oag~a#"><field name="NUM">3</field></block></value> 
                                                          <next><block type="comment" id="K(:;y-gihBx_:{%kJ~Oo"><field name="COMMENT">Länge der Codes festlegen</field>
                                                              <next><block type="variables_set" id="BGt@+4h!d)Kco3]{`,)V"><field name="VAR">maxCodeLaenge</field>
                                                                  <value name="VALUE"><block type="math_number" id="|Wm^i`:C`~o0Bp7;,-yy"><field name="NUM">4</field></block></value> 
                                                                  <next><block type="comment" id="ZgOwwPRCnNLM~@tR?DhB"><field name="COMMENT">Liste der Codes</field>
                                                                      <next><block type="comment" id="|9)F(1-)Murz[PAg@Pcz"><field name="COMMENT">Beliebig erweiterbar. Auf Länge achten!</field>
                                                                          <next><block type="variables_set" id=";~}[HtK6:wa8W/1,]j2a"><field name="VAR">CodeAnwesend</field>
                                                                              <value name="VALUE"><block type="text" id="/%k9:KVHUC2RVgH.:^v5"><field name="TEXT">1234</field></block></value> 
                                                                              <next><block type="variables_set" id=";{0Vr(56Uhr:z8Cziv*C"><field name="VAR">CodeAbwesend</field>
                                                                                  <value name="VALUE"><block type="text" id="^di=V@V!cAe+WZiLfuL%"><field name="TEXT">9876</field></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block> 
                                        <block type="procedures_defnoreturn" id="t@lDFN#V:FHO31zeMUSV" x="738" y="463"><mutation><arg name="TastenWert"></arg></mutation> 
                                          <field name="NAME">getCode</field>
                                          <comment pinned="false" h="80" w="160">Code pruefen</comment>
                                          <statement name="STACK"><block type="text_append" id="@0sNv=W?MJzk`622W]Q4"><field name="VAR">tempCode</field>
                                              <value name="TEXT"><shadow id="6q^nqw|R(+L0{n_l/Gc4" type="text"></shadow> 
                                                <block type="variables_get" id="LWMvwI0w|bcPvg-n5gGg"><field name="VAR">TastenWert</field></block></value> 
                                              <next><block type="debug" id="vjr3FKb9Vi*y+77wJTx,"><field name="Severity">log</field>
                                                  <value name="TEXT"><shadow id=".0O)AP~8_Z_^cA%~Y=0o" type="text"></shadow> 
                                                    <block type="text_join" id=")*fGp8U0U/F=Wcs;KY/|"><mutation items="2"></mutation>
                                                      <value name="ADD0"><block type="text" id=").fVwr0of^0wi[*+UipI"><field name="TEXT">*****Eingabe -></field></block></value> 
                                                      <value name="ADD1"><block type="variables_get" id="Cw9-Bo9Tle36/K]UpAeB"><field name="VAR">tempCode</field></block></value></block></value> 
                                                  <next><block type="controls_if" id="n5A{||l/F/:ozsHSOg4^"><mutation elseif="1"></mutation>
                                                      <value name="IF0"><block type="logic_compare" id="T`=]omffKe6S+_(UpU:6"><field name="OP">GT</field>
                                                          <value name="A"><block type="text_length" id=";Xk,nZX;Io@ax2OT=s73"><value name="VALUE"><shadow id="RGYf`*(-7S#_3L-Ww7];" type="text"><field name="TEXT">abc</field></shadow> 
                                                                <block type="variables_get" id="gapi+DOc_=Fi})6b*l7}"><field name="VAR">tempCode</field></block></value></block></value> 
                                                          <value name="B"><block type="variables_get" id="j9RTTC,C]+Q)EY2SD}`i"><field name="VAR">maxCodeLaenge</field></block></value></block></value> 
                                                      <statement name="DO0"><block type="comment" id="|T`go8I~X04G[v8TB8v3"><field name="COMMENT">Zuviele Eingaben</field>
                                                          <next><block type="comment" id="+lM8)EE*fCo`n1X0.Dw="><field name="COMMENT">Eingabe löschen und Versuche hochzählen</field>
                                                              <next><block type="debug" id="sRw2Xy,4}LO3T4q.5*yM"><field name="Severity">log</field>
                                                                  <value name="TEXT"><shadow type="text" id="+cYZRRJa1z=6hGhTLdam"><field name="TEXT">*****Zuviele Zeichen*****</field></shadow></value> 
                                                                  <next><block type="variables_set" id="%D8buHC|kCUU1/KVJB[2"><field name="VAR">tempCode</field>
                                                                      <value name="VALUE"></value> 
                                                                      <next><block type="procedures_callnoreturn" id="T/]?rq:p![ebfuT~k+i/"><mutation name="chkVersuche"></mutation></block></next></block></next></block></next></block></next></block></statement> 
                                                      <value name="IF1"><block type="logic_compare" id="lDJ@;/jzBi=HTRV]yYn,"><field name="OP">EQ</field>
                                                          <value name="A"><block type="variables_get" id="*v]-iY2]3*a;Ir}hU9sM"><field name="VAR">tempCode</field></block></value> 
                                                          <value name="B"><block type="variables_get" id="FXw/|._t2rtHCxgNR}N{"><field name="VAR">CodeAnwesend</field></block></value></block></value> 
                                                      <statement name="DO1"><block type="comment" id="l(HPe4p~ikj;pvhZJME,"><field name="COMMENT">Eingabe korrekt</field>
                                                          <next><block type="update" id="R:QUWw_[Kmvca%SHrk^N"><mutation delay_input="false"></mutation>
                                                              <field name="OID">javascript.0.Alarmsystem.Alarm.Zielstatus</field>
                                                              <field name="WITH_DELAY">FALSE</field>
                                                              <value name="VALUE"><block type="math_number" id="6LV~-IW;nfvm3/%(T)aY"><field name="NUM">3</field></block></value> 
                                                              <next><block type="update" id="2Ybk+GO*e6flP9xhg%It"><mutation delay_input="false"></mutation>
                                                                  <field name="OID">javascript.0.Alarmsystem.Alarm.Warnung</field>
                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                  <value name="VALUE"><block type="math_number" id="aWX!@-;lTda4%0PVhzxY"><field name="NUM">0</field></block></value> 
                                                                  <next><block type="debug" id="U;M412@-[mW58w:2/pDZ"><field name="Severity">log</field>
                                                                      <value name="TEXT"><shadow type="text" id="/6PKtIv;_asj~zH1YFWm"><field name="TEXT">Alarmanlage ausgeschaltet</field></shadow></value> 
                                                                      <next><block type="variables_set" id="JsF`#tPrlP((e*D(PKz;"><field name="VAR">AnzahlVersuche</field>
                                                                          <value name="VALUE"><block type="math_number" id="_#wsFg(JuzNqSyCO63UI"><field name="NUM">0</field></block></value> 
                                                                          <next><block type="variables_set" id="Px}Q)CvBmC02#T1cMXk@"><field name="VAR">tempCode</field>
                                                                              <value name="VALUE"><block type="text" id="_2;iEf4vhv#}}w#t+U(]"><field name="TEXT">PIN richtig</field></block></value> 
                                                                              <next><block type="timeouts_settimeout" id="qwA/l(1KFnv*jNTWN(m`"><field name="NAME">timeout2</field>
                                                                                  <field name="DELAY">1000</field>
                                                                                  <field name="UNIT">ms</field>
                                                                                  <statement name="STATEMENT"><block type="variables_set" id="qd0Wuvd(2)z!ZZoBkEpt"><field name="VAR">tempCode</field>
                                                                                      <value name="VALUE"></value></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></statement> 
                                                      <next><block type="timeouts_settimeout" id="*)]FG}!jqa@!^@C404zD"><field name="NAME">timeout</field>
                                                          <field name="DELAY">6000</field>
                                                          <field name="UNIT">ms</field>
                                                          <statement name="STATEMENT"><block type="comment" id="@87rub*L(JD2dLo|`Aef"><field name="COMMENT">Wenn in 5 Sek. keine weitere Eingabe erfolgt</field>
                                                              <next><block type="comment" id="/6Z(,/]_}ZhyadfHIgZ5"><field name="COMMENT">dann Eingabe löschen und Versuche hochzählen</field>
                                                                  <next><block type="variables_set" id="a3yX(4)M(27nSsHd.d-_"><field name="VAR">tempCode</field>
                                                                      <value name="VALUE"></value> 
                                                                      <next><block type="procedures_callnoreturn" id="Uq`e6b9wNj]Sp(Zb#o#X"><mutation name="chkVersuche"></mutation></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></statement></block> 
                                        <block type="procedures_defnoreturn" id="c,ULx]X]~F-z^(_+{6vr" x="738" y="1213"><field name="NAME">chkVersuche</field>
                                          <comment pinned="false" h="80" w="160">Fehlerhafte Eingaben zählen und Eingabe sperren wenn maxVersuche erreicht.</comment>
                                          <statement name="STACK"><block type="math_change" id="+bbjB`}N7U3vkk:@%?[V"><field name="VAR">AnzahlVersuche</field>
                                              <value name="DELTA"><shadow type="math_number" id="P!Tq!OVi/*(ehXZb]uC8"><field name="NUM">1</field></shadow></value> 
                                              <next><block type="controls_if" id="V6AzqIh:%+F@oh[M-IQ{"><value name="IF0"><block type="logic_compare" id="!CYyilZ1svbcZ]Yf=BXd"><field name="OP">EQ</field>
                                                      <value name="A"><block type="variables_get" id="@Zmti,3QUsDg5gTF6tjC"><field name="VAR">AnzahlVersuche</field></block></value> 
                                                      <value name="B"><block type="variables_get" id="x=cs)@yt;A6[ua*T5FE|"><field name="VAR">maxVersuche</field></block></value></block></value> 
                                                  <statement name="DO0"><block type="debug" id="[d~Z|qEH+C4%5%A*xBTT"><field name="Severity">log</field>
                                                      <value name="TEXT"><shadow type="text" id="v.9ViGY:H4?EbA+fzjKV"><field name="TEXT">*****Eingabe gesperrt*****</field></shadow></value> 
                                                      <next><block type="timeouts_settimeout" id="(l|4)g2/(/@5-swvVF@2"><field name="NAME">sperren</field>
                                                          <field name="DELAY">10000</field>
                                                          <field name="UNIT">ms</field>
                                                          <statement name="STATEMENT"><block type="comment" id="U22mj9gD,9P)FU@4%{K~"><field name="COMMENT">Nach 10 Sek. wieder frei</field>
                                                              <next><block type="variables_set" id="d)*rJF_51+C|Z3NMW9N+"><field name="VAR">AnzahlVersuche</field>
                                                                  <value name="VALUE"><block type="math_number" id="^)c6!p[y)V0zk(9oMl16"><field name="NUM">0</field></block></value> 
                                                                  <next><block type="debug" id="SO`ZMoZ)Os7:]]y=T3yE"><field name="Severity">log</field>
                                                                      <value name="TEXT"><shadow type="text" id="5.ubt?0E+m)aiIY`J``U"><field name="TEXT">*****Eingabe entsperrt*****</field></shadow></value></block></next></block></next></block></statement></block></next></block></statement></block></next></block></statement></block></xml> 
                                      

                                      Viele Grüße

                                      Walkinlarge `
                                      Hallo, dein Script funktioniert gut, allerdings scheint es keine zeitliche Bregenzug zu geben, oder? Ich muss zwangsläufig 5 stellen eingeben, damit ich den Code neu eingeben kann. Oder was mache ich falsch?

                                      1 Reply 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

                                      215

                                      Online

                                      32.4k

                                      Users

                                      81.3k

                                      Topics

                                      1.3m

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

                                      • Don't have an account? Register

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