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. OpenDTU - falls DTU "falsch", dann Fritz Dect Steckdose aus!

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    12
    1
    131

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

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

OpenDTU - falls DTU "falsch", dann Fritz Dect Steckdose aus!

Geplant Angeheftet Gesperrt Verschoben Blockly
11 Beiträge 3 Kommentatoren 760 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.
  • K knopers1

    Hallo liebe Kollegen, Hallo @paul53

    ich habe einen Balkonkraftwerk mit Akku. Damit speisse ich Nachts die gespeicherte Energie wieder ein.
    Im Falle, dass meine DTU (Steuerung) aus welchem Grund auch immer nicht über den Ping Adapter erreichbar ist, und damit der Akku in dem Falle bis zum letzten Watt nicht leer gezogen wird, würde ich gerne meine Fritz Dect 200 AC seitig abschalten.

    Falls Ping auf die DTU länger als 30min "falsch" ist, und die Fritz Deckt 200 (wahr) ist, steuere Fritz Deckt auf "falsch".
    sonst, falls Ping auf die DTU "wahr" ist, steuere Fritz Deck 200 auf "wahr)

    Kann mir jemand behilflich sein, etwas brauchbares als Blockly zu erstellen? Die DTU ist gewöhnlich 24 Std. am Netz. Manchmal starte ich den Roter neu, so dass der Ping auf die DTU manchmal ca. 5 min nicht funktioniert. Deshalb wollte ich an der Stelle die Zeit von 30 min. einbauen! Eventuell habt Ihr eine bessere Idee zum Script? Kann jemand Helfen das ganze in ein Blockly unterzubringen?
    Gruß Lukas

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

    @knopers1 sagte: Falls Ping auf die DTU länger als 30min "falsch" ist, und die Fritz Deckt 200 (wahr) ist, steuere Fritz Deckt auf "falsch". sonst, falls Ping auf die DTU "wahr" ist, steuere Fritz Deck 200 auf "wahr)

    Blockly_temp.JPG

    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

    K 1 Antwort Letzte Antwort
    0
    • paul53P paul53

      @knopers1 sagte: Falls Ping auf die DTU länger als 30min "falsch" ist, und die Fritz Deckt 200 (wahr) ist, steuere Fritz Deckt auf "falsch". sonst, falls Ping auf die DTU "wahr" ist, steuere Fritz Deck 200 auf "wahr)

      Blockly_temp.JPG

      K Offline
      K Offline
      knopers1
      schrieb am zuletzt editiert von
      #3

      Danke @paul53 ,
      leider komme ich noch nicht zum Ziel, da ich das Script nicht ganz verstehe!
      Was genau kommt beim "Wert"? Der Ping Adapter liefert true oder false.....

      dtu.png

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable type="timeout" id="timeout2">timeout2</variable>
        </variables>
        <block type="on_ext" id="13k~%BXuW:dn^bzTXH?t" x="-87" y="-462">
          <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
          <field name="CONDITION">ne</field>
          <field name="ACK_CONDITION"></field>
          <value name="OID0">
            <shadow type="field_oid" id="D%+u;:[j;Ls5e|sffdom">
              <field name="oid">ping.0.raspberrypi.192_168_1_155</field>
            </shadow>
          </value>
          <statement name="STATEMENT">
            <block type="timeouts_cleartimeout" id="phJQ_1$Tx1t|~O@|IdMI">
              <field name="NAME">timeout</field>
              <next>
                <block type="controls_if" id="Cv|YRH`Ln_h)X$$,+C^p">
                  <mutation elseif="1"></mutation>
                  <value name="IF0">
                    <block type="logic_negate" id="b/xvU,[jSe?PlbIJ.Hg8">
                      <value name="BOOL">
                        <block type="on_source" id="eI4nb`bgI/y6:[^d%ANF">
                          <field name="ATTR">state.val</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="timeouts_settimeout" id="u9Zdd7N0rtv9+/:wI]++">
                      <field name="NAME">timeout2</field>
                      <field name="DELAY">30</field>
                      <field name="UNIT">min</field>
                      <statement name="STATEMENT">
                        <block type="control" id="Z!^ByDqmlh]b`?B(dved">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">fritzdect.0.DECT_116570570860.state</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="mTwv!d5NuFJbke$wy$Rd">
                              <field name="BOOL">FALSE</field>
                            </block>
                          </value>
                        </block>
                      </statement>
                    </block>
                  </statement>
                  <value name="IF1">
                    <block type="logic_negate" id="-.T5a%R-(wNX+|xaH7CG">
                      <value name="BOOL">
                        <block type="get_value" id="s*{{?xWUr3q}]sxG0vqq">
                          <field name="ATTR">val</field>
                          <field name="OID">ping.0.raspberrypi.192_168_1_155</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO1">
                    <block type="control" id="QF2_R8$?nn313/.]nPj6">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">fritzdect.0.DECT_116570570860.state</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="|tvtV_^FI_kfm|TdD.K)">
                          <field name="BOOL">TRUE</field>
                        </block>
                      </value>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
          </statement>
        </block>
      </xml>
      

      HP Microserver Gen8, RPI-4, IoBroker,

      HomoranH paul53P 2 Antworten Letzte Antwort
      0
      • K knopers1

        Danke @paul53 ,
        leider komme ich noch nicht zum Ziel, da ich das Script nicht ganz verstehe!
        Was genau kommt beim "Wert"? Der Ping Adapter liefert true oder false.....

        dtu.png

        <xml xmlns="https://developers.google.com/blockly/xml">
          <variables>
            <variable type="timeout" id="timeout2">timeout2</variable>
          </variables>
          <block type="on_ext" id="13k~%BXuW:dn^bzTXH?t" x="-87" y="-462">
            <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
            <field name="CONDITION">ne</field>
            <field name="ACK_CONDITION"></field>
            <value name="OID0">
              <shadow type="field_oid" id="D%+u;:[j;Ls5e|sffdom">
                <field name="oid">ping.0.raspberrypi.192_168_1_155</field>
              </shadow>
            </value>
            <statement name="STATEMENT">
              <block type="timeouts_cleartimeout" id="phJQ_1$Tx1t|~O@|IdMI">
                <field name="NAME">timeout</field>
                <next>
                  <block type="controls_if" id="Cv|YRH`Ln_h)X$$,+C^p">
                    <mutation elseif="1"></mutation>
                    <value name="IF0">
                      <block type="logic_negate" id="b/xvU,[jSe?PlbIJ.Hg8">
                        <value name="BOOL">
                          <block type="on_source" id="eI4nb`bgI/y6:[^d%ANF">
                            <field name="ATTR">state.val</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="timeouts_settimeout" id="u9Zdd7N0rtv9+/:wI]++">
                        <field name="NAME">timeout2</field>
                        <field name="DELAY">30</field>
                        <field name="UNIT">min</field>
                        <statement name="STATEMENT">
                          <block type="control" id="Z!^ByDqmlh]b`?B(dved">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">fritzdect.0.DECT_116570570860.state</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="mTwv!d5NuFJbke$wy$Rd">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </statement>
                    <value name="IF1">
                      <block type="logic_negate" id="-.T5a%R-(wNX+|xaH7CG">
                        <value name="BOOL">
                          <block type="get_value" id="s*{{?xWUr3q}]sxG0vqq">
                            <field name="ATTR">val</field>
                            <field name="OID">ping.0.raspberrypi.192_168_1_155</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO1">
                      <block type="control" id="QF2_R8$?nn313/.]nPj6">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">fritzdect.0.DECT_116570570860.state</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="|tvtV_^FI_kfm|TdD.K)">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </statement>
          </block>
        </xml>
        
        HomoranH Nicht stören
        HomoranH Nicht stören
        Homoran
        Global Moderator Administrators
        schrieb am zuletzt editiert von
        #4

        @knopers1 sagte in OpenDTU - falls DTU "falsch", dann Fritz Dect Steckdose aus!:

        Was genau kommt beim "Wert"?

        der Wert des Triggerdatenpunkts

        kein Support per PN! - Fragen im Forum stellen -

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

        ioBroker freut sich auch über eine Spende für das Forum. Benutzt dazu den Spendenbutton im Header. Danke!

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

        1 Antwort Letzte Antwort
        0
        • K knopers1

          Danke @paul53 ,
          leider komme ich noch nicht zum Ziel, da ich das Script nicht ganz verstehe!
          Was genau kommt beim "Wert"? Der Ping Adapter liefert true oder false.....

          dtu.png

          <xml xmlns="https://developers.google.com/blockly/xml">
            <variables>
              <variable type="timeout" id="timeout2">timeout2</variable>
            </variables>
            <block type="on_ext" id="13k~%BXuW:dn^bzTXH?t" x="-87" y="-462">
              <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
              <field name="CONDITION">ne</field>
              <field name="ACK_CONDITION"></field>
              <value name="OID0">
                <shadow type="field_oid" id="D%+u;:[j;Ls5e|sffdom">
                  <field name="oid">ping.0.raspberrypi.192_168_1_155</field>
                </shadow>
              </value>
              <statement name="STATEMENT">
                <block type="timeouts_cleartimeout" id="phJQ_1$Tx1t|~O@|IdMI">
                  <field name="NAME">timeout</field>
                  <next>
                    <block type="controls_if" id="Cv|YRH`Ln_h)X$$,+C^p">
                      <mutation elseif="1"></mutation>
                      <value name="IF0">
                        <block type="logic_negate" id="b/xvU,[jSe?PlbIJ.Hg8">
                          <value name="BOOL">
                            <block type="on_source" id="eI4nb`bgI/y6:[^d%ANF">
                              <field name="ATTR">state.val</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="timeouts_settimeout" id="u9Zdd7N0rtv9+/:wI]++">
                          <field name="NAME">timeout2</field>
                          <field name="DELAY">30</field>
                          <field name="UNIT">min</field>
                          <statement name="STATEMENT">
                            <block type="control" id="Z!^ByDqmlh]b`?B(dved">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">fritzdect.0.DECT_116570570860.state</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="mTwv!d5NuFJbke$wy$Rd">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                            </block>
                          </statement>
                        </block>
                      </statement>
                      <value name="IF1">
                        <block type="logic_negate" id="-.T5a%R-(wNX+|xaH7CG">
                          <value name="BOOL">
                            <block type="get_value" id="s*{{?xWUr3q}]sxG0vqq">
                              <field name="ATTR">val</field>
                              <field name="OID">ping.0.raspberrypi.192_168_1_155</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO1">
                        <block type="control" id="QF2_R8$?nn313/.]nPj6">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">fritzdect.0.DECT_116570570860.state</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="|tvtV_^FI_kfm|TdD.K)">
                              <field name="BOOL">TRUE</field>
                            </block>
                          </value>
                        </block>
                      </statement>
                    </block>
                  </next>
                </block>
              </statement>
            </block>
          </xml>
          
          paul53P Offline
          paul53P Offline
          paul53
          schrieb am zuletzt editiert von
          #5

          @knopers1 sagte: Was genau kommt beim "Wert"?

          Wert enthält den Wert des Trigger-Datenpunktes "ping.0.raspberrypi.192_168_1_155".
          Es muss der richtige timeout2 gestoppt werden. Bei "sonst falls" muss die Steckdose geprüft werden.

          Blockly_temp.JPG

          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

          K 1 Antwort Letzte Antwort
          0
          • paul53P paul53

            @knopers1 sagte: Was genau kommt beim "Wert"?

            Wert enthält den Wert des Trigger-Datenpunktes "ping.0.raspberrypi.192_168_1_155".
            Es muss der richtige timeout2 gestoppt werden. Bei "sonst falls" muss die Steckdose geprüft werden.

            Blockly_temp.JPG

            K Offline
            K Offline
            knopers1
            schrieb am zuletzt editiert von
            #6

            @paul53

            okay, demnach sollte das Blockly doch laufen! Habe ich es richtig verstanden?

            HP Microserver Gen8, RPI-4, IoBroker,

            paul53P 1 Antwort Letzte Antwort
            0
            • K knopers1

              @paul53

              okay, demnach sollte das Blockly doch laufen! Habe ich es richtig verstanden?

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

              @knopers1 sagte: demnach sollte das Blockly doch laufen! Habe ich es richtig verstanden?

              Ja, nachdem die beiden Korrekturen erfolgt sind.

              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

              K 1 Antwort Letzte Antwort
              0
              • paul53P paul53

                @knopers1 sagte: demnach sollte das Blockly doch laufen! Habe ich es richtig verstanden?

                Ja, nachdem die beiden Korrekturen erfolgt sind.

                K Offline
                K Offline
                knopers1
                schrieb am zuletzt editiert von knopers1
                #8

                @paul53

                puhh ,

                Bei "sonst falls" muss die Steckdose geprüft werden - habe verstanden und abgeändert!

                dtu.png

                Jetzt noch mal zum Wert! Schaust Du nach? Die zwei " nicht" Bausteine machen für mich keinen Sinn! Kann es so funktionieren? Sorry Paul, habe mich damit zu wenig befasst :(

                <xml xmlns="https://developers.google.com/blockly/xml">
                  <variables>
                    <variable type="timeout" id="timeout2">timeout2</variable>
                  </variables>
                  <block type="on_ext" id="13k~%BXuW:dn^bzTXH?t" x="-87" y="-462">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                    <field name="CONDITION">ne</field>
                    <field name="ACK_CONDITION"></field>
                    <value name="OID0">
                      <shadow type="field_oid" id="D%+u;:[j;Ls5e|sffdom">
                        <field name="oid">ping.0.raspberrypi.192_168_1_155</field>
                      </shadow>
                    </value>
                    <statement name="STATEMENT">
                      <block type="timeouts_cleartimeout" id="phJQ_1$Tx1t|~O@|IdMI">
                        <field name="NAME">timeout2</field>
                        <next>
                          <block type="controls_if" id="Cv|YRH`Ln_h)X$$,+C^p">
                            <mutation elseif="1"></mutation>
                            <value name="IF0">
                              <block type="logic_compare" id="[6cMqYlc3#7E)Aqo@v})">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="?vm|uWEZ/|M_%JctG[9!">
                                    <field name="ATTR">val</field>
                                    <field name="OID">ping.0.raspberrypi.192_168_1_155</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_boolean" id="!TBMhH{RAeGShuQPH4.?">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="timeouts_settimeout" id="u9Zdd7N0rtv9+/:wI]++">
                                <field name="NAME">timeout2</field>
                                <field name="DELAY">30</field>
                                <field name="UNIT">min</field>
                                <statement name="STATEMENT">
                                  <block type="control" id="Z!^ByDqmlh]b`?B(dved">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">fritzdect.0.DECT_116570570860.state</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="logic_boolean" id="mTwv!d5NuFJbke$wy$Rd">
                                        <field name="BOOL">FALSE</field>
                                      </block>
                                    </value>
                                  </block>
                                </statement>
                              </block>
                            </statement>
                            <value name="IF1">
                              <block type="logic_compare" id="FyjQ4z/2$!p;s^zeEXl~">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="F88jE*;R.|KIds;n[v_L">
                                    <field name="ATTR">val</field>
                                    <field name="OID">fritzdect.0.DECT_116570570860.state</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_boolean" id="M+8{#_W$41=p!),Fc]3%">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO1">
                              <block type="control" id="QF2_R8$?nn313/.]nPj6">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">fritzdect.0.DECT_116570570860.state</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="|tvtV_^FI_kfm|TdD.K)">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                          </block>
                        </next>
                      </block>
                    </statement>
                  </block>
                  <block type="logic_negate" id="b/xvU,[jSe?PlbIJ.Hg8" x="588" y="-462"></block>
                  <block type="logic_negate" id="-.T5a%R-(wNX+|xaH7CG" x="638" y="-387"></block>
                </xml>
                

                HP Microserver Gen8, RPI-4, IoBroker,

                paul53P 1 Antwort Letzte Antwort
                0
                • K knopers1

                  @paul53

                  puhh ,

                  Bei "sonst falls" muss die Steckdose geprüft werden - habe verstanden und abgeändert!

                  dtu.png

                  Jetzt noch mal zum Wert! Schaust Du nach? Die zwei " nicht" Bausteine machen für mich keinen Sinn! Kann es so funktionieren? Sorry Paul, habe mich damit zu wenig befasst :(

                  <xml xmlns="https://developers.google.com/blockly/xml">
                    <variables>
                      <variable type="timeout" id="timeout2">timeout2</variable>
                    </variables>
                    <block type="on_ext" id="13k~%BXuW:dn^bzTXH?t" x="-87" y="-462">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                      <field name="CONDITION">ne</field>
                      <field name="ACK_CONDITION"></field>
                      <value name="OID0">
                        <shadow type="field_oid" id="D%+u;:[j;Ls5e|sffdom">
                          <field name="oid">ping.0.raspberrypi.192_168_1_155</field>
                        </shadow>
                      </value>
                      <statement name="STATEMENT">
                        <block type="timeouts_cleartimeout" id="phJQ_1$Tx1t|~O@|IdMI">
                          <field name="NAME">timeout2</field>
                          <next>
                            <block type="controls_if" id="Cv|YRH`Ln_h)X$$,+C^p">
                              <mutation elseif="1"></mutation>
                              <value name="IF0">
                                <block type="logic_compare" id="[6cMqYlc3#7E)Aqo@v})">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                    <block type="get_value" id="?vm|uWEZ/|M_%JctG[9!">
                                      <field name="ATTR">val</field>
                                      <field name="OID">ping.0.raspberrypi.192_168_1_155</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_boolean" id="!TBMhH{RAeGShuQPH4.?">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="timeouts_settimeout" id="u9Zdd7N0rtv9+/:wI]++">
                                  <field name="NAME">timeout2</field>
                                  <field name="DELAY">30</field>
                                  <field name="UNIT">min</field>
                                  <statement name="STATEMENT">
                                    <block type="control" id="Z!^ByDqmlh]b`?B(dved">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">fritzdect.0.DECT_116570570860.state</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="mTwv!d5NuFJbke$wy$Rd">
                                          <field name="BOOL">FALSE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </statement>
                                </block>
                              </statement>
                              <value name="IF1">
                                <block type="logic_compare" id="FyjQ4z/2$!p;s^zeEXl~">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                    <block type="get_value" id="F88jE*;R.|KIds;n[v_L">
                                      <field name="ATTR">val</field>
                                      <field name="OID">fritzdect.0.DECT_116570570860.state</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_boolean" id="M+8{#_W$41=p!),Fc]3%">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO1">
                                <block type="control" id="QF2_R8$?nn313/.]nPj6">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">fritzdect.0.DECT_116570570860.state</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="logic_boolean" id="|tvtV_^FI_kfm|TdD.K)">
                                      <field name="BOOL">TRUE</field>
                                    </block>
                                  </value>
                                </block>
                              </statement>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                    <block type="logic_negate" id="b/xvU,[jSe?PlbIJ.Hg8" x="588" y="-462"></block>
                    <block type="logic_negate" id="-.T5a%R-(wNX+|xaH7CG" x="638" y="-387"></block>
                  </xml>
                  
                  paul53P Offline
                  paul53P Offline
                  paul53
                  schrieb am zuletzt editiert von paul53
                  #9

                  @knopers1 sagte: Kann es so funktionieren?

                  Ja.

                  @knopers1 sagte in OpenDTU - falls DTU "falsch", dann Fritz Dect Steckdose aus!:

                  Die zwei " nicht" Bausteine machen für mich keinen Sinn!

                  "nicht x" entspricht "x = falsch" bei Logikwerten (true / false).

                  Wenn der Wert schon als Variable vorliegt, vermeidet man das Einlesen des Datenpunktes:

                  Blockly_temp.JPG

                  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

                  K 1 Antwort Letzte Antwort
                  1
                  • paul53P paul53

                    @knopers1 sagte: Kann es so funktionieren?

                    Ja.

                    @knopers1 sagte in OpenDTU - falls DTU "falsch", dann Fritz Dect Steckdose aus!:

                    Die zwei " nicht" Bausteine machen für mich keinen Sinn!

                    "nicht x" entspricht "x = falsch" bei Logikwerten (true / false).

                    Wenn der Wert schon als Variable vorliegt, vermeidet man das Einlesen des Datenpunktes:

                    Blockly_temp.JPG

                    K Offline
                    K Offline
                    knopers1
                    schrieb am zuletzt editiert von
                    #10

                    @paul53
                    okay, wieder etwas dazu gelernt. Danke vielmals für deine Zeit! Auf Dich ist immer Verlass...
                    Dann lasse ich jetzt die letzte Scriptversion stehen, die ich da mit deiner Hilfe umgebaut habe!
                    Ich hoffe, sie läuft......

                    HP Microserver Gen8, RPI-4, IoBroker,

                    K 1 Antwort Letzte Antwort
                    0
                    • K knopers1

                      @paul53
                      okay, wieder etwas dazu gelernt. Danke vielmals für deine Zeit! Auf Dich ist immer Verlass...
                      Dann lasse ich jetzt die letzte Scriptversion stehen, die ich da mit deiner Hilfe umgebaut habe!
                      Ich hoffe, sie läuft......

                      K Offline
                      K Offline
                      knopers1
                      schrieb am zuletzt editiert von knopers1
                      #11

                      @paul53
                      jetzt leuchtet es mir ein.... Ich habe die Variable nicht wahr genommen !
                      Dein Hinweis mit der Variablen und dem erneuten Einlesen des Datenpunktes hat bei mir klick gemacht :) Somit passe ich nochmal das Script nach deiner Version an!

                      dtu.png

                      <xml xmlns="https://developers.google.com/blockly/xml">
                        <variables>
                          <variable type="timeout" id="timeout2">timeout2</variable>
                        </variables>
                        <block type="on_ext" id="13k~%BXuW:dn^bzTXH?t" x="-87" y="-462">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                          <field name="CONDITION">ne</field>
                          <field name="ACK_CONDITION"></field>
                          <value name="OID0">
                            <shadow type="field_oid" id="D%+u;:[j;Ls5e|sffdom">
                              <field name="oid">ping.0.raspberrypi.192_168_1_155</field>
                            </shadow>
                          </value>
                          <statement name="STATEMENT">
                            <block type="timeouts_cleartimeout" id="phJQ_1$Tx1t|~O@|IdMI">
                              <field name="NAME">timeout2</field>
                              <next>
                                <block type="controls_if" id="Cv|YRH`Ln_h)X$$,+C^p">
                                  <mutation elseif="1"></mutation>
                                  <value name="IF0">
                                    <block type="logic_negate" id="kCrhu_a0f%ly@+J[o9UI">
                                      <value name="BOOL">
                                        <block type="on_source" id="PfW^]VSV37G+NvLcZH{s">
                                          <field name="ATTR">state.val</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO0">
                                    <block type="timeouts_settimeout" id="u9Zdd7N0rtv9+/:wI]++">
                                      <field name="NAME">timeout2</field>
                                      <field name="DELAY">30</field>
                                      <field name="UNIT">min</field>
                                      <statement name="STATEMENT">
                                        <block type="control" id="Z!^ByDqmlh]b`?B(dved">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">fritzdect.0.DECT_116570570860.state</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="logic_boolean" id="mTwv!d5NuFJbke$wy$Rd">
                                              <field name="BOOL">FALSE</field>
                                            </block>
                                          </value>
                                        </block>
                                      </statement>
                                    </block>
                                  </statement>
                                  <value name="IF1">
                                    <block type="logic_negate" id="rXLteYmHZ8gBR95GQ2xv">
                                      <value name="BOOL">
                                        <block type="get_value" id="F88jE*;R.|KIds;n[v_L">
                                          <field name="ATTR">val</field>
                                          <field name="OID">fritzdect.0.DECT_116570570860.state</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO1">
                                    <block type="control" id="QF2_R8$?nn313/.]nPj6">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">fritzdect.0.DECT_116570570860.state</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="|tvtV_^FI_kfm|TdD.K)">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </statement>
                                </block>
                              </next>
                            </block>
                          </statement>
                        </block>
                      </xml>
                      
                      <xml xmlns="https://developers.google.com/blockly/xml">
                        <variables>
                          <variable type="timeout" id="timeout2">timeout2</variable>
                        </variables>
                        <block type="on_ext" id="13k~%BXuW:dn^bzTXH?t" x="-87" y="-462">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                          <field name="CONDITION">ne</field>
                          <field name="ACK_CONDITION"></field>
                          <value name="OID0">
                            <shadow type="field_oid" id="D%+u;:[j;Ls5e|sffdom">
                              <field name="oid">ping.0.raspberrypi.192_168_1_155</field>
                            </shadow>
                          </value>
                          <statement name="STATEMENT">
                            <block type="timeouts_cleartimeout" id="phJQ_1$Tx1t|~O@|IdMI">
                              <field name="NAME">timeout2</field>
                              <next>
                                <block type="controls_if" id="Cv|YRH`Ln_h)X$$,+C^p">
                                  <mutation elseif="1"></mutation>
                                  <value name="IF0">
                                    <block type="logic_negate" id="kCrhu_a0f%ly@+J[o9UI">
                                      <value name="BOOL">
                                        <block type="on_source" id="PfW^]VSV37G+NvLcZH{s">
                                          <field name="ATTR">state.val</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO0">
                                    <block type="timeouts_settimeout" id="u9Zdd7N0rtv9+/:wI]++">
                                      <field name="NAME">timeout2</field>
                                      <field name="DELAY">30</field>
                                      <field name="UNIT">min</field>
                                      <statement name="STATEMENT">
                                        <block type="control" id="Z!^ByDqmlh]b`?B(dved">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">fritzdect.0.DECT_116570570860.state</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="logic_boolean" id="mTwv!d5NuFJbke$wy$Rd">
                                              <field name="BOOL">FALSE</field>
                                            </block>
                                          </value>
                                        </block>
                                      </statement>
                                    </block>
                                  </statement>
                                  <value name="IF1">
                                    <block type="logic_negate" id="rXLteYmHZ8gBR95GQ2xv">
                                      <value name="BOOL">
                                        <block type="get_value" id="F88jE*;R.|KIds;n[v_L">
                                          <field name="ATTR">val</field>
                                          <field name="OID">fritzdect.0.DECT_116570570860.state</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO1">
                                    <block type="control" id="QF2_R8$?nn313/.]nPj6">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">fritzdect.0.DECT_116570570860.state</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="|tvtV_^FI_kfm|TdD.K)">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </statement>
                                </block>
                              </next>
                            </block>
                          </statement>
                        </block>
                      </xml>
                      

                      HP Microserver Gen8, RPI-4, IoBroker,

                      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

                      551

                      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