Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • 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

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. Blockly Skript HILFE!

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    3.5k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.1k

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.5k

Blockly Skript HILFE!

Geplant Angeheftet Gesperrt Verschoben Blockly
blocklyjavascript
16 Beiträge 3 Kommentatoren 951 Aufrufe 1 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • marcusklM marcuskl

    Hallo zusammen,

    ich habe ein ESP32 der mir per mqtt eine Liste an vorhandenen Bluetooth Geräten in der Nähe als Datenpunkt schickt.
    Nun brauche ich ein Skript, das mir ein Datenpunkt auf true setzt, sobald eine bestimmte BT Mac Adresse in der Liste steht Beispiel:"7e:82:14:a7:67:64".

    Kann mir da jemand helfen wie ein solches Skript aussehen muss?

    Danke

    20200419_184048.jpg

    HomoranH Nicht stören
    HomoranH Nicht stören
    Homoran
    Global Moderator Administrators
    schrieb am zuletzt editiert von
    #2

    @marcuskl sagte in Blockly Skript HILFE!:

    in der Liste steht Beispiel:"7e:82:14:a7:67:64"

    was steht sonst noch im Datenpunkt?
    Wie sieht der gesamte Inhalt aus?

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

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

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

    marcusklM 1 Antwort Letzte Antwort
    0
    • HomoranH Homoran

      @marcuskl sagte in Blockly Skript HILFE!:

      in der Liste steht Beispiel:"7e:82:14:a7:67:64"

      was steht sonst noch im Datenpunkt?
      Wie sieht der gesamte Inhalt aus?

      marcusklM Offline
      marcusklM Offline
      marcuskl
      schrieb am zuletzt editiert von
      #3

      @Homoran

      {
      "41:e7:f4:19:b2:21":-83,
      "4c:31:0f:5d:ca:f7":-60,
      "54:76:67:22:44:5e":-83,
      "7c:2f:80:b9:6c:5f":-71,
      "7e:82:14:a7:67:64":-87
      }
      

      Host: Intel Nuc6cayh (16GB Ram, 240GB SSD) mit Proxmox.

      Iobroker VM, InfluxDB LXC, Pihole LXC, Tasmoadmin LXC, Easy2connect VM

      HomoranH 1 Antwort Letzte Antwort
      0
      • marcusklM marcuskl

        @Homoran

        {
        "41:e7:f4:19:b2:21":-83,
        "4c:31:0f:5d:ca:f7":-60,
        "54:76:67:22:44:5e":-83,
        "7c:2f:80:b9:6c:5f":-71,
        "7e:82:14:a7:67:64":-87
        }
        
        HomoranH Nicht stören
        HomoranH Nicht stören
        Homoran
        Global Moderator Administrators
        schrieb am zuletzt editiert von
        #4

        @marcuskl und die bestimmt MAC ist fix oder variabel?

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

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

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

        marcusklM 1 Antwort Letzte Antwort
        0
        • HomoranH Homoran

          @marcuskl und die bestimmt MAC ist fix oder variabel?

          marcusklM Offline
          marcusklM Offline
          marcuskl
          schrieb am zuletzt editiert von
          #5

          @Homoran Ist fix

          Host: Intel Nuc6cayh (16GB Ram, 240GB SSD) mit Proxmox.

          Iobroker VM, InfluxDB LXC, Pihole LXC, Tasmoadmin LXC, Easy2connect VM

          HomoranH 1 Antwort Letzte Antwort
          0
          • marcusklM marcuskl

            @Homoran Ist fix

            HomoranH Nicht stören
            HomoranH Nicht stören
            Homoran
            Global Moderator Administrators
            schrieb am zuletzt editiert von
            #6

            @marcuskl
            Jetzt lehne ich mich mal gaaanz weit aus dem fenster:
            MAC_finden.png

            Habe keine Ahnung ob das klappt

            <xml xmlns="http://www.w3.org/1999/xhtml">
             <variables>
               <variable type="" id="Gq+hJ(]M`1q4wk?WuJ31">Vorhanden</variable>
               <variable type="" id="Fy9)NJ*Ri:E`D+MB6J*f">MAC</variable>
               <variable type="undefined" id="timeout">timeout</variable>
             </variables>
             <block type="variables_set" id="b?BSL:ogTW]j@@}IXTdy" x="137" y="213">
               <field name="VAR" id="Gq+hJ(]M`1q4wk?WuJ31" variabletype="">Vorhanden</field>
               <value name="VALUE">
                 <block type="math_number" id="(25wfY#Z(sP6%O=*7e)V">
                   <field name="NUM">0</field>
                 </block>
               </value>
               <next>
                 <block type="variables_set" id="9$1@9m;7SV$`bj)P@X=U">
                   <field name="VAR" id="Fy9)NJ*Ri:E`D+MB6J*f" variabletype="">MAC</field>
                   <value name="VALUE">
                     <block type="text" id="[4IW*L=|_Zw4,CpyWGs`">
                       <field name="TEXT">AA:BB:CC:DD:EE</field>
                     </block>
                   </value>
                   <next>
                     <block type="on_ext" id="xc-DsF{ac!rVre7_uoQi">
                       <mutation items="1"></mutation>
                       <field name="CONDITION">ne</field>
                       <field name="ACK_CONDITION"></field>
                       <value name="OID0">
                         <shadow type="field_oid" id="Fr:Ep{+?+wkP4]a#}3rG">
                           <field name="oid">default</field>
                         </shadow>
                         <block type="get_value" id="Hiwj!G,5TU(CPs+auE85">
                           <field name="ATTR">val</field>
                           <field name="OID">ID auswählen</field>
                         </block>
                       </value>
                       <statement name="STATEMENT">
                         <block type="variables_set" id="VG?0Zr#Q@]7+#w:Fad!d">
                           <field name="VAR" id="Gq+hJ(]M`1q4wk?WuJ31" variabletype="">Vorhanden</field>
                           <value name="VALUE">
                             <block type="text_indexOf" id="sgIH(vOqM{-sQocl]GMW">
                               <field name="END">FIRST</field>
                               <value name="VALUE">
                                 <block type="get_value" id=")2|@peC4tY9(sYh~Zw#X">
                                   <field name="ATTR">val</field>
                                   <field name="OID">ID auswählen</field>
                                 </block>
                               </value>
                               <value name="FIND">
                                 <shadow type="text" id="Ua3tgy@JGu7#jTxWWB0H">
                                   <field name="TEXT">abc</field>
                                 </shadow>
                                 <block type="variables_get" id="}=oG^:2Vj|=n9T.Si;sA">
                                   <field name="VAR" id="Fy9)NJ*Ri:E`D+MB6J*f" variabletype="">MAC</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <next>
                             <block type="controls_if" id="e,kKh-V[.9j(3h=JmJ5+">
                               <value name="IF0">
                                 <block type="logic_compare" id="-{OAcLsNe,2NFlOO{w;5">
                                   <field name="OP">GT</field>
                                   <value name="A">
                                     <block type="variables_get" id="GBqZ^Tv3@`LFJU`VSdM?">
                                       <field name="VAR" id="Gq+hJ(]M`1q4wk?WuJ31" variabletype="">Vorhanden</field>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <block type="math_number" id="K5C$+Wno;s50BbSzv3PY">
                                       <field name="NUM">0</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <statement name="DO0">
                                 <block type="update" id=")w,I?.Zz+a/v5GJ@%UnW">
                                   <mutation delay_input="false"></mutation>
                                   <field name="OID">Object ID</field>
                                   <field name="WITH_DELAY">FALSE</field>
                                   <value name="VALUE">
                                     <block type="logic_boolean" id="1S3p5gnIHm7I4_-rZ02P">
                                       <field name="BOOL">TRUE</field>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="timeouts_settimeout" id="~3N1n$a0ZpSz%6bVFYIN">
                                       <field name="NAME">timeout</field>
                                       <field name="DELAY">1000</field>
                                       <field name="UNIT">ms</field>
                                       <statement name="STATEMENT">
                                         <block type="variables_set" id="b)QCrh-hDu--U0l[1Lih">
                                           <field name="VAR" id="Gq+hJ(]M`1q4wk?WuJ31" variabletype="">Vorhanden</field>
                                           <value name="VALUE">
                                             <block type="math_number" id="1k,HkrQ5b8xH2T=J~rs+">
                                               <field name="NUM">0</field>
                                             </block>
                                           </value>
                                         </block>
                                       </statement>
                                     </block>
                                   </next>
                                 </block>
                               </statement>
                             </block>
                           </next>
                         </block>
                       </statement>
                     </block>
                   </next>
                 </block>
               </next>
             </block>
             <block type="comment" id="%=d[,A+5G-[+dy/E)3^e" x="463" y="237">
               <field name="COMMENT">Datenpunkt</field>
             </block>
             <block type="comment" id="iERPrzZexHT(|#FH*d[[" x="588" y="312">
               <field name="COMMENT">Datenpunkt</field>
             </block>
            </xml>
            

            @paul53 wird mir schon die Leviten lesen ;-)

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

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

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

            paul53P 1 Antwort Letzte Antwort
            0
            • HomoranH Homoran

              @marcuskl
              Jetzt lehne ich mich mal gaaanz weit aus dem fenster:
              MAC_finden.png

              Habe keine Ahnung ob das klappt

              <xml xmlns="http://www.w3.org/1999/xhtml">
               <variables>
                 <variable type="" id="Gq+hJ(]M`1q4wk?WuJ31">Vorhanden</variable>
                 <variable type="" id="Fy9)NJ*Ri:E`D+MB6J*f">MAC</variable>
                 <variable type="undefined" id="timeout">timeout</variable>
               </variables>
               <block type="variables_set" id="b?BSL:ogTW]j@@}IXTdy" x="137" y="213">
                 <field name="VAR" id="Gq+hJ(]M`1q4wk?WuJ31" variabletype="">Vorhanden</field>
                 <value name="VALUE">
                   <block type="math_number" id="(25wfY#Z(sP6%O=*7e)V">
                     <field name="NUM">0</field>
                   </block>
                 </value>
                 <next>
                   <block type="variables_set" id="9$1@9m;7SV$`bj)P@X=U">
                     <field name="VAR" id="Fy9)NJ*Ri:E`D+MB6J*f" variabletype="">MAC</field>
                     <value name="VALUE">
                       <block type="text" id="[4IW*L=|_Zw4,CpyWGs`">
                         <field name="TEXT">AA:BB:CC:DD:EE</field>
                       </block>
                     </value>
                     <next>
                       <block type="on_ext" id="xc-DsF{ac!rVre7_uoQi">
                         <mutation items="1"></mutation>
                         <field name="CONDITION">ne</field>
                         <field name="ACK_CONDITION"></field>
                         <value name="OID0">
                           <shadow type="field_oid" id="Fr:Ep{+?+wkP4]a#}3rG">
                             <field name="oid">default</field>
                           </shadow>
                           <block type="get_value" id="Hiwj!G,5TU(CPs+auE85">
                             <field name="ATTR">val</field>
                             <field name="OID">ID auswählen</field>
                           </block>
                         </value>
                         <statement name="STATEMENT">
                           <block type="variables_set" id="VG?0Zr#Q@]7+#w:Fad!d">
                             <field name="VAR" id="Gq+hJ(]M`1q4wk?WuJ31" variabletype="">Vorhanden</field>
                             <value name="VALUE">
                               <block type="text_indexOf" id="sgIH(vOqM{-sQocl]GMW">
                                 <field name="END">FIRST</field>
                                 <value name="VALUE">
                                   <block type="get_value" id=")2|@peC4tY9(sYh~Zw#X">
                                     <field name="ATTR">val</field>
                                     <field name="OID">ID auswählen</field>
                                   </block>
                                 </value>
                                 <value name="FIND">
                                   <shadow type="text" id="Ua3tgy@JGu7#jTxWWB0H">
                                     <field name="TEXT">abc</field>
                                   </shadow>
                                   <block type="variables_get" id="}=oG^:2Vj|=n9T.Si;sA">
                                     <field name="VAR" id="Fy9)NJ*Ri:E`D+MB6J*f" variabletype="">MAC</field>
                                   </block>
                                 </value>
                               </block>
                             </value>
                             <next>
                               <block type="controls_if" id="e,kKh-V[.9j(3h=JmJ5+">
                                 <value name="IF0">
                                   <block type="logic_compare" id="-{OAcLsNe,2NFlOO{w;5">
                                     <field name="OP">GT</field>
                                     <value name="A">
                                       <block type="variables_get" id="GBqZ^Tv3@`LFJU`VSdM?">
                                         <field name="VAR" id="Gq+hJ(]M`1q4wk?WuJ31" variabletype="">Vorhanden</field>
                                       </block>
                                     </value>
                                     <value name="B">
                                       <block type="math_number" id="K5C$+Wno;s50BbSzv3PY">
                                         <field name="NUM">0</field>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <statement name="DO0">
                                   <block type="update" id=")w,I?.Zz+a/v5GJ@%UnW">
                                     <mutation delay_input="false"></mutation>
                                     <field name="OID">Object ID</field>
                                     <field name="WITH_DELAY">FALSE</field>
                                     <value name="VALUE">
                                       <block type="logic_boolean" id="1S3p5gnIHm7I4_-rZ02P">
                                         <field name="BOOL">TRUE</field>
                                       </block>
                                     </value>
                                     <next>
                                       <block type="timeouts_settimeout" id="~3N1n$a0ZpSz%6bVFYIN">
                                         <field name="NAME">timeout</field>
                                         <field name="DELAY">1000</field>
                                         <field name="UNIT">ms</field>
                                         <statement name="STATEMENT">
                                           <block type="variables_set" id="b)QCrh-hDu--U0l[1Lih">
                                             <field name="VAR" id="Gq+hJ(]M`1q4wk?WuJ31" variabletype="">Vorhanden</field>
                                             <value name="VALUE">
                                               <block type="math_number" id="1k,HkrQ5b8xH2T=J~rs+">
                                                 <field name="NUM">0</field>
                                               </block>
                                             </value>
                                           </block>
                                         </statement>
                                       </block>
                                     </next>
                                   </block>
                                 </statement>
                               </block>
                             </next>
                           </block>
                         </statement>
                       </block>
                     </next>
                   </block>
                 </next>
               </block>
               <block type="comment" id="%=d[,A+5G-[+dy/E)3^e" x="463" y="237">
                 <field name="COMMENT">Datenpunkt</field>
               </block>
               <block type="comment" id="iERPrzZexHT(|#FH*d[[" x="588" y="312">
                 <field name="COMMENT">Datenpunkt</field>
               </block>
              </xml>
              

              @paul53 wird mir schon die Leviten lesen ;-)

              paul53P Offline
              paul53P Offline
              paul53
              schrieb am zuletzt editiert von
              #7

              @Homoran sagte):

              @paul53 wird mir schon die Leviten lesen

              Ja, für einen Fehler, der Dir nicht mehr passieren sollte: Trigger auf einen Wert ?

              Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
              Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

              HomoranH 1 Antwort Letzte Antwort
              0
              • paul53P paul53

                @Homoran sagte):

                @paul53 wird mir schon die Leviten lesen

                Ja, für einen Fehler, der Dir nicht mehr passieren sollte: Trigger auf einen Wert ?

                HomoranH Nicht stören
                HomoranH Nicht stören
                Homoran
                Global Moderator Administrators
                schrieb am zuletzt editiert von Homoran
                #8

                @paul53 sagte in Blockly Skript HILFE!:

                Trigger auf einen Wert ?

                Ääähm
                Was ist denn da passiert

                nee, so war das wirklich nicht gemeint - Sorry!

                Dämliches C&P
                MAC_finden_02.png
                so muss es

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

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

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

                marcusklM paul53P 2 Antworten Letzte Antwort
                0
                • HomoranH Homoran

                  @paul53 sagte in Blockly Skript HILFE!:

                  Trigger auf einen Wert ?

                  Ääähm
                  Was ist denn da passiert

                  nee, so war das wirklich nicht gemeint - Sorry!

                  Dämliches C&P
                  MAC_finden_02.png
                  so muss es

                  marcusklM Offline
                  marcusklM Offline
                  marcuskl
                  schrieb am zuletzt editiert von
                  #9

                  @Homoran funktioniert danke :)

                  Host: Intel Nuc6cayh (16GB Ram, 240GB SSD) mit Proxmox.

                  Iobroker VM, InfluxDB LXC, Pihole LXC, Tasmoadmin LXC, Easy2connect VM

                  paul53P 1 Antwort Letzte Antwort
                  0
                  • HomoranH Homoran

                    @paul53 sagte in Blockly Skript HILFE!:

                    Trigger auf einen Wert ?

                    Ääähm
                    Was ist denn da passiert

                    nee, so war das wirklich nicht gemeint - Sorry!

                    Dämliches C&P
                    MAC_finden_02.png
                    so muss es

                    paul53P Offline
                    paul53P Offline
                    paul53
                    schrieb am zuletzt editiert von
                    #10

                    @Homoran sagte in Blockly Skript HILFE!:

                    so muss es

                    Ich gehe mal davon aus, dass der Datenpunkt einen JSON-String enthält. Dann kann man es so ähnlich machen, wie @Homoran vorgeschlagen hat.

                    Blockly_temp.JPG

                    Zur Erläuterung:
                    Die Variable Vorhanden ist 0 bei "nicht gefunden" und > 0 bei "gefunden"
                    nicht nicht Vorhanden wandelt alle Werte <> 0 nach true und den Wert 0 nach false.

                    <xml xmlns="http://www.w3.org/1999/xhtml">
                     <variables>
                       <variable type="" id="Fy9)NJ*Ri:E`D+MB6J*f">MAC</variable>
                       <variable type="" id="Gq+hJ(]M`1q4wk?WuJ31">Vorhanden</variable>
                     </variables>
                     <block type="variables_set" id="9$1@9m;7SV$`bj)P@X=U" x="137" y="239">
                       <field name="VAR" id="Fy9)NJ*Ri:E`D+MB6J*f" variabletype="">MAC</field>
                       <value name="VALUE">
                         <block type="text" id="[4IW*L=|_Zw4,CpyWGs`">
                           <field name="TEXT">7e:82:14:a7:67:64</field>
                         </block>
                       </value>
                       <next>
                         <block type="on_ext" id="xc-DsF{ac!rVre7_uoQi">
                           <mutation items="1"></mutation>
                           <field name="CONDITION">ne</field>
                           <field name="ACK_CONDITION"></field>
                           <value name="OID0">
                             <shadow type="field_oid" id="Fr:Ep{+?+wkP4]a#}3rG">
                               <field name="oid">default</field>
                             </shadow>
                           </value>
                           <statement name="STATEMENT">
                             <block type="variables_set" id="VG?0Zr#Q@]7+#w:Fad!d">
                               <field name="VAR" id="Gq+hJ(]M`1q4wk?WuJ31" variabletype="">Vorhanden</field>
                               <value name="VALUE">
                                 <block type="text_indexOf" id="sgIH(vOqM{-sQocl]GMW">
                                   <field name="END">FIRST</field>
                                   <value name="VALUE">
                                     <block type="on_source" id="5./8v/8wMV{yFATu)oNK">
                                       <field name="ATTR">state.val</field>
                                     </block>
                                   </value>
                                   <value name="FIND">
                                     <shadow type="text" id="Ua3tgy@JGu7#jTxWWB0H">
                                       <field name="TEXT">abc</field>
                                     </shadow>
                                     <block type="variables_get" id="}=oG^:2Vj|=n9T.Si;sA">
                                       <field name="VAR" id="Fy9)NJ*Ri:E`D+MB6J*f" variabletype="">MAC</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <next>
                                 <block type="update" id=")w,I?.Zz+a/v5GJ@%UnW">
                                   <mutation delay_input="false"></mutation>
                                   <field name="OID">Object ID</field>
                                   <field name="WITH_DELAY">FALSE</field>
                                   <value name="VALUE">
                                     <block type="logic_negate" id="7*{{jb}$p/`G!G$WSj^j">
                                       <value name="BOOL">
                                         <block type="logic_negate" id="/]MSH9:MdQx=N,h$G]6v">
                                           <value name="BOOL">
                                             <block type="variables_get" id="GBqZ^Tv3@`LFJU`VSdM?">
                                               <field name="VAR" id="Gq+hJ(]M`1q4wk?WuJ31" variabletype="">Vorhanden</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                 </block>
                               </next>
                             </block>
                           </statement>
                         </block>
                       </next>
                     </block>
                     <block type="comment" id="%=d[,A+5G-[+dy/E)3^e" x="363" y="263">
                       <field name="COMMENT">Datenpunkt</field>
                     </block>
                    </xml>
                    

                    Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                    Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                    HomoranH 1 Antwort Letzte Antwort
                    0
                    • paul53P paul53

                      @Homoran sagte in Blockly Skript HILFE!:

                      so muss es

                      Ich gehe mal davon aus, dass der Datenpunkt einen JSON-String enthält. Dann kann man es so ähnlich machen, wie @Homoran vorgeschlagen hat.

                      Blockly_temp.JPG

                      Zur Erläuterung:
                      Die Variable Vorhanden ist 0 bei "nicht gefunden" und > 0 bei "gefunden"
                      nicht nicht Vorhanden wandelt alle Werte <> 0 nach true und den Wert 0 nach false.

                      <xml xmlns="http://www.w3.org/1999/xhtml">
                       <variables>
                         <variable type="" id="Fy9)NJ*Ri:E`D+MB6J*f">MAC</variable>
                         <variable type="" id="Gq+hJ(]M`1q4wk?WuJ31">Vorhanden</variable>
                       </variables>
                       <block type="variables_set" id="9$1@9m;7SV$`bj)P@X=U" x="137" y="239">
                         <field name="VAR" id="Fy9)NJ*Ri:E`D+MB6J*f" variabletype="">MAC</field>
                         <value name="VALUE">
                           <block type="text" id="[4IW*L=|_Zw4,CpyWGs`">
                             <field name="TEXT">7e:82:14:a7:67:64</field>
                           </block>
                         </value>
                         <next>
                           <block type="on_ext" id="xc-DsF{ac!rVre7_uoQi">
                             <mutation items="1"></mutation>
                             <field name="CONDITION">ne</field>
                             <field name="ACK_CONDITION"></field>
                             <value name="OID0">
                               <shadow type="field_oid" id="Fr:Ep{+?+wkP4]a#}3rG">
                                 <field name="oid">default</field>
                               </shadow>
                             </value>
                             <statement name="STATEMENT">
                               <block type="variables_set" id="VG?0Zr#Q@]7+#w:Fad!d">
                                 <field name="VAR" id="Gq+hJ(]M`1q4wk?WuJ31" variabletype="">Vorhanden</field>
                                 <value name="VALUE">
                                   <block type="text_indexOf" id="sgIH(vOqM{-sQocl]GMW">
                                     <field name="END">FIRST</field>
                                     <value name="VALUE">
                                       <block type="on_source" id="5./8v/8wMV{yFATu)oNK">
                                         <field name="ATTR">state.val</field>
                                       </block>
                                     </value>
                                     <value name="FIND">
                                       <shadow type="text" id="Ua3tgy@JGu7#jTxWWB0H">
                                         <field name="TEXT">abc</field>
                                       </shadow>
                                       <block type="variables_get" id="}=oG^:2Vj|=n9T.Si;sA">
                                         <field name="VAR" id="Fy9)NJ*Ri:E`D+MB6J*f" variabletype="">MAC</field>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <next>
                                   <block type="update" id=")w,I?.Zz+a/v5GJ@%UnW">
                                     <mutation delay_input="false"></mutation>
                                     <field name="OID">Object ID</field>
                                     <field name="WITH_DELAY">FALSE</field>
                                     <value name="VALUE">
                                       <block type="logic_negate" id="7*{{jb}$p/`G!G$WSj^j">
                                         <value name="BOOL">
                                           <block type="logic_negate" id="/]MSH9:MdQx=N,h$G]6v">
                                             <value name="BOOL">
                                               <block type="variables_get" id="GBqZ^Tv3@`LFJU`VSdM?">
                                                 <field name="VAR" id="Gq+hJ(]M`1q4wk?WuJ31" variabletype="">Vorhanden</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                   </block>
                                 </next>
                               </block>
                             </statement>
                           </block>
                         </next>
                       </block>
                       <block type="comment" id="%=d[,A+5G-[+dy/E)3^e" x="363" y="263">
                         <field name="COMMENT">Datenpunkt</field>
                       </block>
                      </xml>
                      

                      HomoranH Nicht stören
                      HomoranH Nicht stören
                      Homoran
                      Global Moderator Administrators
                      schrieb am zuletzt editiert von
                      #11

                      @paul53 sagte in Blockly Skript HILFE!:

                      Zur Erläuterung:
                      Die Variable Vorhanden ist 0 bei "nicht gefunden" und > 0 bei "gefunden"
                      nicht nicht Vorhanden wandelt alle Werte <> 0 nach true und den Wert 0 nach false.

                      und die muss nicht zur Sicherheit wieder auf 0 gesetzt werden, damit beim nächsten Durchlauf auch alles stimmt?

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

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

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

                      paul53P 1 Antwort Letzte Antwort
                      0
                      • HomoranH Homoran

                        @paul53 sagte in Blockly Skript HILFE!:

                        Zur Erläuterung:
                        Die Variable Vorhanden ist 0 bei "nicht gefunden" und > 0 bei "gefunden"
                        nicht nicht Vorhanden wandelt alle Werte <> 0 nach true und den Wert 0 nach false.

                        und die muss nicht zur Sicherheit wieder auf 0 gesetzt werden, damit beim nächsten Durchlauf auch alles stimmt?

                        paul53P Offline
                        paul53P Offline
                        paul53
                        schrieb am zuletzt editiert von
                        #12

                        @Homoran sagte:

                        die muss nicht zur Sicherheit wieder auf 0 gesetzt werden, damit beim nächsten Durchlauf auch alles stimmt?

                        Nein, die Position im String wird jedesmal wieder neu ermittelt und wird bei "nicht vorhanden" automatisch zu 0.

                        Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                        Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                        HomoranH 1 Antwort Letzte Antwort
                        0
                        • paul53P paul53

                          @Homoran sagte:

                          die muss nicht zur Sicherheit wieder auf 0 gesetzt werden, damit beim nächsten Durchlauf auch alles stimmt?

                          Nein, die Position im String wird jedesmal wieder neu ermittelt und wird bei "nicht vorhanden" automatisch zu 0.

                          HomoranH Nicht stören
                          HomoranH Nicht stören
                          Homoran
                          Global Moderator Administrators
                          schrieb am zuletzt editiert von
                          #13

                          @paul53 Danke!

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

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

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

                          1 Antwort Letzte Antwort
                          0
                          • marcusklM marcuskl

                            @Homoran funktioniert danke :)

                            paul53P Offline
                            paul53P Offline
                            paul53
                            schrieb am zuletzt editiert von
                            #14

                            @marcuskl sagte:

                            @Homoran funktioniert danke

                            Im Script von @Homoran bleibt der Datenpunkt-Wert immer auf true, wenn er einmal auf true gesetzt wurde.

                            Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                            Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                            marcusklM HomoranH 2 Antworten Letzte Antwort
                            0
                            • paul53P paul53

                              @marcuskl sagte:

                              @Homoran funktioniert danke

                              Im Script von @Homoran bleibt der Datenpunkt-Wert immer auf true, wenn er einmal auf true gesetzt wurde.

                              marcusklM Offline
                              marcusklM Offline
                              marcuskl
                              schrieb am zuletzt editiert von
                              #15

                              @Homoran habe ein sonst setze objelt auf false gemacht.
                              So setzt es wenn nicht vorhanden auf false.

                              Host: Intel Nuc6cayh (16GB Ram, 240GB SSD) mit Proxmox.

                              Iobroker VM, InfluxDB LXC, Pihole LXC, Tasmoadmin LXC, Easy2connect VM

                              1 Antwort Letzte Antwort
                              0
                              • paul53P paul53

                                @marcuskl sagte:

                                @Homoran funktioniert danke

                                Im Script von @Homoran bleibt der Datenpunkt-Wert immer auf true, wenn er einmal auf true gesetzt wurde.

                                HomoranH Nicht stören
                                HomoranH Nicht stören
                                Homoran
                                Global Moderator Administrators
                                schrieb am zuletzt editiert von
                                #16

                                @paul53 sagte in Blockly Skript HILFE!:

                                Im Script von @Homoran bleibt der Datenpunkt-Wert immer auf true, wenn er einmal auf true gesetzt wurde.

                                so was hatte ich befürchtet - auch hier Danke!

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

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

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

                                1 Antwort Letzte Antwort
                                0
                                Antworten
                                • In einem neuen Thema antworten
                                Anmelden zum Antworten
                                • Älteste zuerst
                                • Neuste zuerst
                                • Meiste Stimmen


                                Support us

                                ioBroker
                                Community Adapters
                                Donate

                                531

                                Online

                                32.7k

                                Benutzer

                                82.4k

                                Themen

                                1.3m

                                Beiträge
                                Community
                                Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                ioBroker Community 2014-2025
                                logo
                                • Anmelden

                                • Du hast noch kein Konto? Registrieren

                                • Anmelden oder registrieren, um zu suchen
                                • Erster Beitrag
                                  Letzter Beitrag
                                0
                                • Home
                                • Aktuell
                                • Tags
                                • Ungelesen 0
                                • Kategorien
                                • Unreplied
                                • Beliebt
                                • GitHub
                                • Docu
                                • Hilfe