Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. [gelöst]Trockenlaufschutz, Problem mit Blockly

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    [gelöst]Trockenlaufschutz, Problem mit Blockly

    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      Jan1 @liv-in-sky last edited by Jan1

      @liv-in-sky
      da bin ich schon fast angepisst, wenn ich für ne Grundfunktion was installieren muss, was ich nicht will und brauche.

      @nole
      Du brauchst hier nichts tun, weil das ein anderes Thema ist 😉

      Ich bin dann mal weg, Kater muss zum TÜV 🙂

      N 2 Replies Last reply Reply Quote 0
      • N
        nole @Jan1 last edited by

        @jan1 Ich probiere und teste dann. Ich wünsche noch einen schönen Tag. Danke

        1 Reply Last reply Reply Quote 0
        • BBTown
          BBTown @nole last edited by

          @nole

          code_text
          

          Der Code (grün) gehört zwischen die "Begrenzer" (pink), dann sieht es so wie oberhalb dieses Textes aus
          016c531e-25e1-478c-9cf0-188bd964d24b-image.png

          1 Reply Last reply Reply Quote 0
          • N
            nole @Jan1 last edited by

            Hatte ich so gemacht. mache ich dann nochmal. Also Blockly exportieren und hier einfügen.

            <xml xmlns="https://developers.google.com/blockly/xml">
              <variables>
                <variable type="timeout" id="timeout3">timeout3</variable>
              </variables>
              <block type="on_ext" id=")3Y6O)OSZ6,a.eId9_([" x="-412" y="213">
                <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="FB}qA2j)SArn`ar=BQ8z">
                    <field name="oid">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power</field>
                  </shadow>
                </value>
                <statement name="STATEMENT">
                  <block type="controls_if" id="nT8{B{T^As}6|P1eFdAp">
                    <value name="IF0">
                      <block type="logic_compare" id="h=ll3)j0~lH*]vID@v{h">
                        <field name="OP">GTE</field>
                        <value name="A">
                          <block type="get_value" id="prv]M@]WP)O8k`WxQv,M">
                            <field name="ATTR">val</field>
                            <field name="OID">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_number" id="QWMd~%R.#BvSN.-Jr7|S">
                            <field name="NUM">100</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="controls_if" id=";N~?jZO,:^+(B6c4+e.p">
                        <value name="IF0">
                          <block type="logic_compare" id="nLGp=iM$L~IydiZi8!Z?">
                            <field name="OP">LTE</field>
                            <value name="A">
                              <block type="get_value" id="#X;Nd8faxS1r?ibN,9Ur">
                                <field name="ATTR">val</field>
                                <field name="OID">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="3L+Hx`ZZZ[6;bcStTgXv">
                                <field name="NUM">50</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="timeouts_cleartimeout" id="s_tu+G)JzfXKRo!,-i?j">
                            <field name="NAME">timeout3</field>
                          </block>
                        </statement>
                        <next>
                          <block type="timeouts_settimeout" id="|y|12`S1gi{?f|+:!d87">
                            <field name="NAME">timeout3</field>
                            <field name="DELAY">30</field>
                            <field name="UNIT">min</field>
                            <statement name="STATEMENT">
                              <block type="control" id="]:Q/hgD*3Ye$XrhiCKVK">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.POWER</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="]qeVb0?p3y!^dSP8T!{!">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                          </block>
                        </next>
                      </block>
                    </statement>
                    <next>
                      <block type="debug" id="jv2kcn+O#/wer{(+o+DW">
                        <field name="Severity">log</field>
                        <value name="TEXT">
                          <shadow type="text">
                            <field name="TEXT">test</field>
                          </shadow>
                          <block type="text_join" id="FXin0|uc^i=Wm;0R-Jtj">
                            <mutation items="2"></mutation>
                            <value name="ADD0">
                              <block type="text" id="Z##h?{^2;N/L6AAv4~..">
                                <field name="TEXT">Watt:</field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block type="on_source" id="t@LBx#Y!8Fv5({,pHM[,">
                                <field name="ATTR">state.val</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </next>
                  </block>
                </statement>
              </block>
            </xml>
            
            1 Reply Last reply Reply Quote 0
            • BBTown
              BBTown @nole last edited by BBTown

              @nole
              Bitte bearbeite auch deinen älteren Beiträge hier nachträglich mit den code-Tags, alleine schon weil hier viele auch mit Mobilgeräten mitlesen, für diese ist das eine Horror solche Beiträge zu lesen.

              Um so schneller bekommst Du Unterstützung.
              d183c2dc-2d90-4d42-96ab-cfb31a89e4bf-image.png

              N 1 Reply Last reply Reply Quote 0
              • N
                nole @BBTown last edited by

                @bbtown wenn ich auf die 3 Punkte gehe bekomme ich nicht das gleiche sondern was mit flags

                N BBTown 2 Replies Last reply Reply Quote 0
                • N
                  nole @nole last edited by

                  @nole mein Fehler, ich muß die 3 Punkte unterhalb nehmen.

                  BBTown 2 Replies Last reply Reply Quote 0
                  • BBTown
                    BBTown @nole last edited by

                    @nole
                    dein innerer "falls" Block wird nie erreicht, da Du fragst ob der Wert >= 100 ist, kann er innerhalb dieser Frage ja niemals <=50 sein

                    1 Reply Last reply Reply Quote 0
                    • BBTown
                      BBTown @nole last edited by BBTown

                      @nole

                      das könnte passen
                      e7085d49-c19a-4695-8fd2-15a2eefe8fd5-image.png

                      <xml xmlns="https://developers.google.com/blockly/xml">
                       <variables>
                         <variable type="timeout" id="timeout3">timeout3</variable>
                       </variables>
                       <block type="on_ext" id=")3Y6O)OSZ6,a.eId9_([" x="-488" y="138">
                         <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="FB}qA2j)SArn`ar=BQ8z">
                             <field name="oid">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power</field>
                           </shadow>
                         </value>
                         <statement name="STATEMENT">
                           <block type="controls_if" id="nT8{B{T^As}6|P1eFdAp">
                             <mutation elseif="1"></mutation>
                             <value name="IF0">
                               <block type="logic_operation" id="k/5vYdt)FO5#4fIMa~m;" inline="false">
                                 <field name="OP">AND</field>
                                 <value name="A">
                                   <block type="logic_compare" id="h=ll3)j0~lH*]vID@v{h">
                                     <field name="OP">GTE</field>
                                     <value name="A">
                                       <block type="on_source" id="u:72U[-3Dnb8^3xE,|!!">
                                         <field name="ATTR">state.val</field>
                                       </block>
                                     </value>
                                     <value name="B">
                                       <block type="math_number" id="QWMd~%R.#BvSN.-Jr7|S">
                                         <field name="NUM">100</field>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <value name="B">
                                   <block type="logic_compare" id="{T1t5z14z,+4|DC]gOXz">
                                     <field name="OP">LT</field>
                                     <value name="A">
                                       <block type="on_source" id="=QYK}e_eO)R!UP9V$lM^">
                                         <field name="ATTR">oldState.val</field>
                                       </block>
                                     </value>
                                     <value name="B">
                                       <block type="math_number" id="hLUSUOYJL$qWXsN7kTk8">
                                         <field name="NUM">100</field>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                               </block>
                             </value>
                             <statement name="DO0">
                               <block type="timeouts_cleartimeout" id="U_%ugF^L^YUcG@wP=]~Z">
                                 <field name="NAME">timeout3</field>
                                 <next>
                                   <block type="control" id="hZTA=BSjCVV{]?(0pVgY">
                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                     <field name="OID">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.POWER</field>
                                     <field name="WITH_DELAY">FALSE</field>
                                     <value name="VALUE">
                                       <block type="logic_boolean" id="R||h%3X{{l}e4p`%Yawz">
                                         <field name="BOOL">TRUE</field>
                                       </block>
                                     </value>
                                     <next>
                                       <block type="timeouts_settimeout" id="|y|12`S1gi{?f|+:!d87">
                                         <field name="NAME">timeout3</field>
                                         <field name="DELAY">30</field>
                                         <field name="UNIT">min</field>
                                         <statement name="STATEMENT">
                                           <block type="control" id="]:Q/hgD*3Ye$XrhiCKVK">
                                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                             <field name="OID">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.POWER</field>
                                             <field name="WITH_DELAY">FALSE</field>
                                             <value name="VALUE">
                                               <block type="logic_boolean" id="]qeVb0?p3y!^dSP8T!{!">
                                                 <field name="BOOL">FALSE</field>
                                               </block>
                                             </value>
                                           </block>
                                         </statement>
                                       </block>
                                     </next>
                                   </block>
                                 </next>
                               </block>
                             </statement>
                             <value name="IF1">
                               <block type="logic_operation" id="!/F3qNm$R2Q]m/jo|f#T" inline="false">
                                 <field name="OP">AND</field>
                                 <value name="A">
                                   <block type="logic_compare" id="iHA4@^BN{s/[}$=sq31n">
                                     <field name="OP">LTE</field>
                                     <value name="A">
                                       <block type="on_source" id="gQBF^?(7;hKwq*ro`;LK">
                                         <field name="ATTR">state.val</field>
                                       </block>
                                     </value>
                                     <value name="B">
                                       <block type="math_number" id="E1Co9VoP0Z]U].V}:dk6">
                                         <field name="NUM">50</field>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <value name="B">
                                   <block type="logic_compare" id="2[[fJeqHxkcfP[F^]I-Q">
                                     <field name="OP">GT</field>
                                     <value name="A">
                                       <block type="on_source" id="f5IDFVCeLD}U6K[_XEG@">
                                         <field name="ATTR">oldState.val</field>
                                       </block>
                                     </value>
                                     <value name="B">
                                       <block type="math_number" id="2k,M4Zr}0C_#uR%MuF|Q">
                                         <field name="NUM">50</field>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                               </block>
                             </value>
                             <statement name="DO1">
                               <block type="timeouts_cleartimeout" id="s_tu+G)JzfXKRo!,-i?j">
                                 <field name="NAME">timeout3</field>
                                 <next>
                                   <block type="control" id="dYN%$E|/?la90IKRz{*w">
                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                     <field name="OID">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.POWER</field>
                                     <field name="WITH_DELAY">FALSE</field>
                                     <value name="VALUE">
                                       <block type="logic_boolean" id="lU?:V,sk#5e#Zs@){!|m">
                                         <field name="BOOL">FALSE</field>
                                       </block>
                                     </value>
                                   </block>
                                 </next>
                               </block>
                             </statement>
                             <next>
                               <block type="debug" id="jv2kcn+O#/wer{(+o+DW">
                                 <field name="Severity">log</field>
                                 <value name="TEXT">
                                   <shadow type="text">
                                     <field name="TEXT">test</field>
                                   </shadow>
                                   <block type="text_join" id="FXin0|uc^i=Wm;0R-Jtj">
                                     <mutation items="2"></mutation>
                                     <value name="ADD0">
                                       <block type="text" id="Z##h?{^2;N/L6AAv4~..">
                                         <field name="TEXT">Watt:</field>
                                       </block>
                                     </value>
                                     <value name="ADD1">
                                       <block type="on_source" id="t@LBx#Y!8Fv5({,pHM[,">
                                         <field name="ATTR">state.val</field>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                               </block>
                             </next>
                           </block>
                         </statement>
                       </block>
                      </xml>
                      

                      [Edit]
                      Nun bekommst Du allerdings bei jeder Temperatur-Änderung eine Meldung.
                      Womöglich ist es sinnvoller die Meldungen auch innerhalb der falls Blöcke zu platzieren, je nachdem wann Du welche Meldung haben möchtest

                      N 1 Reply Last reply Reply Quote 0
                      • BBTown
                        BBTown @nole last edited by

                        @nole
                        Mit Beispielmeldungen
                        e9df0c85-6944-4e97-9f73-7f955e9ecf8c-image.png

                        1 Reply Last reply Reply Quote 0
                        • N
                          nole @BBTown last edited by

                          @bbtown Wenn ich dein Skript importiere habe ich da "Ausführen timeout4" drin, die anderen beiden sind timeout3.

                          BBTown 1 Reply Last reply Reply Quote 0
                          • BBTown
                            BBTown @nole last edited by BBTown

                            @nole ich habe den Timeout gar nicht angefasst, sondern von deinem Import übernommen und nur den Baustein einmal dupliziert. Umbenennen kannst Du ihn wie Du willst. Der Timeout muss nur zum Timer passen

                            [EDIT] benutze doch mal die Auswahlliste des Timeout-Bausteins (DropDown) und wähle die korrekte Bezeichnung aus

                            N 2 Replies Last reply Reply Quote 0
                            • N
                              nole @BBTown last edited by

                              @bbtown Umbenennen geht nicht, ändert sich immer wieder auf 4

                              1 Reply Last reply Reply Quote 0
                              • N
                                nole @BBTown last edited by

                                @bbtown kommt das durch das kopieren des Bausteins?

                                BBTown N 2 Replies Last reply Reply Quote 0
                                • BBTown
                                  BBTown @nole last edited by

                                  @nole benutze doch mal die Auswahlliste des Timeout-Bausteins (DropDown) und wähle die korrekte Bezeichnung aus

                                  1 Reply Last reply Reply Quote 0
                                  • N
                                    nole @nole last edited by

                                    @nole Der timeout 4 hat komischerweise keine Auswahlliste, kann ich die anderen beiden einfach auf 4 ändern?

                                    BBTown 2 Replies Last reply Reply Quote 0
                                    • BBTown
                                      BBTown @nole last edited by

                                      @nole dann lösche den Baustein und füge ihn neu hinzu

                                      N 1 Reply Last reply Reply Quote 0
                                      • N
                                        nole @BBTown last edited by

                                        @bbtown dann ändert sich dieser timeout automatisch von der eingegebenen 3 auf 5

                                        BBTown J 2 Replies Last reply Reply Quote 0
                                        • BBTown
                                          BBTown @nole last edited by

                                          @nole Du kannst die Bezeichnung des Timers ändern und die neue Bezeichnung steht danach in den Auswahllisten der Timeout Bausteine zur Verfügung

                                          N 1 Reply Last reply Reply Quote 0
                                          • N
                                            nole @BBTown last edited by

                                            @bbtown ich habe jetzt die beiden anderen auf 4 geändert, das hat geklappt.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            558
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            6
                                            107
                                            6304
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo