Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Steckdose abschalten nach x sek unter wert x..

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Steckdose abschalten nach x sek unter wert x..

    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      michael_4358 last edited by

      Hallo

      Ich habe eine Tasmota Steckdose mit leistungs aufnahme.
      dort ist mein ebike angeschlossen, wenn dort kein storm mehr abgenommen wird soll nach 15 sekunden die steckdose abgeschaltet werden.

      leider ist im blockly irgenwo was am klemmen....

      ich finde den fehler nicht..

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable id="|^k{v~]8PHjRUl(6FunB">timer 1 mal ausführen</variable>
          <variable id="^O9MRmi4VnW)QW8h+`ry">weniger als 99Watt</variable>
          <variable type="timeout" id="timeout2">timeout2</variable>
        </variables>
        <block type="variables_set" id=",{ae@N2/`l,mcDyBGp4(" x="-1012" y="-1912">
          <field name="VAR" id="|^k{v~]8PHjRUl(6FunB">timer 1 mal ausführen</field>
          <value name="VALUE">
            <block type="logic_boolean" id=";=7l0IHnX:4Xmn2:3LKy">
              <field name="BOOL">FALSE</field>
            </block>
          </value>
          <next>
            <block type="variables_set" id="B*V@kA}NlCJ]~hIsuSak">
              <field name="VAR" id="^O9MRmi4VnW)QW8h+`ry">weniger als 99Watt</field>
              <value name="VALUE">
                <block type="logic_boolean" id="]sM:HtyG!!:MTR_B.ET9">
                  <field name="BOOL">FALSE</field>
                </block>
              </value>
              <next>
                <block type="on_ext" id="y-Gu4Km[Up)X857P$uZ{">
                  <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="`gfSGH/Pb1%:*31CG8zt">
                      <field name="oid">default</field>
                    </shadow>
                    <block type="field_oid" id="vYB.G=;n^|7Emy~lZAFD">
                      <field name="oid">sonoff.0.Steck_E_Bike.ENERGY_Power</field>
                    </block>
                  </value>
                  <statement name="STATEMENT">
                    <block type="debug" id="dhNviA%r@,8DB@qnjV`S">
                      <field name="Severity">log</field>
                      <value name="TEXT">
                        <shadow type="text" id="(tmm_9b{Gc-GHod0NZAu">
                          <field name="TEXT">Wurde aktualisierte</field>
                        </shadow>
                      </value>
                      <next>
                        <block type="controls_if" id="muzxbrU(@@PGO/)#F!vL">
                          <mutation elseif="2"></mutation>
                          <value name="IF0">
                            <block type="logic_operation" id="ME%JBZ6cnUiQ|X8KjT[`" inline="false">
                              <field name="OP">AND</field>
                              <value name="A">
                                <block type="logic_compare" id="5fYf=(lCbv^}D]~dII2X">
                                  <field name="OP">LT</field>
                                  <value name="A">
                                    <block type="on_source" id="wxy=XldBmiY[ou/,rPDi">
                                      <field name="ATTR">state.val</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="math_number" id="DXu|X%`bXV!rhus@|-ru">
                                      <field name="NUM">99</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_compare" id="SI)!NFovK@2[,=D9vi$N">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                    <block type="variables_get" id="o?@Stx#Rdm8$tts0oOtI">
                                      <field name="VAR" id="|^k{v~]8PHjRUl(6FunB">timer 1 mal ausführen</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_boolean" id="A}q$F;r{_qyGi{QvQi|j">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="debug" id="P3WOiAvZejT3`2eXTR]b">
                              <field name="Severity">log</field>
                              <value name="TEXT">
                                <shadow type="text" id="NPITzcW{=o{#vfhT,;vb">
                                  <field name="TEXT">Timer wird ausgeführt</field>
                                </shadow>
                              </value>
                              <next>
                                <block type="timeouts_settimeout" id="=xVMI|0^GZRC3L!w:^;=">
                                  <field name="NAME">timeout2</field>
                                  <field name="DELAY">15</field>
                                  <field name="UNIT">sec</field>
                                  <statement name="STATEMENT">
                                    <block type="variables_set" id="`P;H(4CmmSv#I14?NC34">
                                      <field name="VAR" id="^O9MRmi4VnW)QW8h+`ry">weniger als 99Watt</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="p$ju?)DW#EaS;TU?[?(!">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="variables_set" id="O3(sqQyuQc*G7~Kn[T[n">
                                          <field name="VAR" id="|^k{v~]8PHjRUl(6FunB">timer 1 mal ausführen</field>
                                          <value name="VALUE">
                                            <block type="logic_boolean" id="u~/HjjhDgjz92jg21gwO">
                                              <field name="BOOL">TRUE</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="debug" id="TW]]8OC3|#tka+MWB34W">
                                              <field name="Severity">log</field>
                                              <value name="TEXT">
                                                <shadow type="text" id="xG2YFFW*4,f@5g5)CjJ#">
                                                  <field name="TEXT">15sek vorbei</field>
                                                </shadow>
                                              </value>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </statement>
                                </block>
                              </next>
                            </block>
                          </statement>
                          <value name="IF1">
                            <block type="logic_compare" id="Fc@xMakb{4LE7zR/W4NW">
                              <field name="OP">GT</field>
                              <value name="A">
                                <block type="on_source" id="RKH!UHj[ayv@|~XsfE/J">
                                  <field name="ATTR">state.val</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="math_number" id="G`-$w0eLy=I=GP]QcZk(">
                                  <field name="NUM">99</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO1">
                            <block type="debug" id="-XUcaZ@hod~mD^yw(N{1">
                              <field name="Severity">log</field>
                              <value name="TEXT">
                                <shadow type="text" id="P}*!p1?n0jQ7fM.xqZw]">
                                  <field name="TEXT">stop timer</field>
                                </shadow>
                              </value>
                              <next>
                                <block type="timeouts_cleartimeout" id="~5o6P$pNOvmGpiE3eT^X">
                                  <field name="NAME">timeout2</field>
                                </block>
                              </next>
                            </block>
                          </statement>
                          <value name="IF2">
                            <block type="logic_operation" id="lP)c6WJ3Xm.!rf}y0=JB" inline="false">
                              <field name="OP">AND</field>
                              <value name="A">
                                <block type="logic_compare" id="y--^]F!QD9hrKp5(em?G">
                                  <field name="OP">LT</field>
                                  <value name="A">
                                    <block type="on_source" id=":}HUG=PZ$TGyv%W)`E4q">
                                      <field name="ATTR">state.val</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="math_number" id="LLyAhQQVfi;vGMD_.^x?">
                                      <field name="NUM">99</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_compare" id="*w-!j^3j@5]Wm__j_0{o">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                    <block type="variables_get" id="jx)?,Ber/[}0-CF#)nn(">
                                      <field name="VAR" id="^O9MRmi4VnW)QW8h+`ry">weniger als 99Watt</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_boolean" id="fj4?;{P[)fWW!4P++/U_">
                                      <field name="BOOL">TRUE</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO2">
                            <block type="debug" id="}|m~ug:w|=*WUo_|]b@k">
                              <field name="Severity">log</field>
                              <value name="TEXT">
                                <shadow type="text" id="q!ocb$wBhb-,u)H{rGyq">
                                  <field name="TEXT">Steckdose ausschalten</field>
                                </shadow>
                              </value>
                              <next>
                                <block type="control" id="bfuMMeFp!R(_,C{d.|yX">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">sonoff.0.Steck_E_Bike.POWER</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="logic_boolean" id="!1W]N[LWAV85@ld#wu7z">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="variables_set" id="9{0GmTtbl{RMg#W(Zzfd">
                                      <field name="VAR" id="^O9MRmi4VnW)QW8h+`ry">weniger als 99Watt</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="HHc:O5WL*ild7}]j^{`G">
                                          <field name="BOOL">FALSE</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="variables_set" id="6p1T@JRZy1%pDH-Dwu-m">
                                          <field name="VAR" id="|^k{v~]8PHjRUl(6FunB">timer 1 mal ausführen</field>
                                          <value name="VALUE">
                                            <block type="logic_boolean" id="25yvqvpR3HM/d6W}$A2A">
                                              <field name="BOOL">FALSE</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="telegram" id="XG]EXKcRyW2in%HwNxl|">
                                              <field name="INSTANCE">.0</field>
                                              <field name="LOG"></field>
                                              <field name="SILENT">FALSE</field>
                                              <field name="PARSEMODE">default</field>
                                              <value name="MESSAGE">
                                                <shadow type="text" id="ji=XPEB;dU;96$[fm#C$">
                                                  <field name="TEXT">Die ladestation ......is aus...</field>
                                                </shadow>
                                              </value>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </statement>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
          </next>
        </block>
      </xml>
      
      M 1 Reply Last reply Reply Quote 0
      • M
        michael_4358 @michael_4358 last edited by

        ea10c20d-9279-409a-9352-d6dc38950468-grafik.png

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

          @michael_4358
          Versuche es mal so:

          Blockly_temp.JPG

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

            @paul53

            hast du ggf den code?

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

              @michael_4358 sagte:

              code?

              <xml xmlns="https://developers.google.com/blockly/xml">
               <variables>
                 <variable type="timeout" id="timeout2">timeout2</variable>
               </variables>
               <block type="on_ext" id="y-Gu4Km[Up)X857P$uZ{" x="-1012" y="-1858">
                 <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="`gfSGH/Pb1%:*31CG8zt">
                     <field name="oid">default</field>
                   </shadow>
                   <block type="field_oid" id="vYB.G=;n^|7Emy~lZAFD">
                     <field name="oid">sonoff.0.Steck_E_Bike.ENERGY_Power</field>
                   </block>
                 </value>
                 <statement name="STATEMENT">
                   <block type="controls_if" id="muzxbrU(@@PGO/)#F!vL">
                     <mutation elseif="1"></mutation>
                     <value name="IF0">
                       <block type="logic_compare" id="5fYf=(lCbv^}D]~dII2X">
                         <field name="OP">GT</field>
                         <value name="A">
                           <block type="on_source" id="wxy=XldBmiY[ou/,rPDi">
                             <field name="ATTR">state.val</field>
                           </block>
                         </value>
                         <value name="B">
                           <block type="math_number" id="DXu|X%`bXV!rhus@|-ru">
                             <field name="NUM">99</field>
                           </block>
                         </value>
                       </block>
                     </value>
                     <statement name="DO0">
                       <block type="debug" id="-XUcaZ@hod~mD^yw(N{1">
                         <field name="Severity">log</field>
                         <value name="TEXT">
                           <shadow type="text" id="P}*!p1?n0jQ7fM.xqZw]">
                             <field name="TEXT">stop timer</field>
                           </shadow>
                         </value>
                         <next>
                           <block type="timeouts_cleartimeout" id="~5o6P$pNOvmGpiE3eT^X">
                             <field name="NAME">timeout2</field>
                           </block>
                         </next>
                       </block>
                     </statement>
                     <value name="IF1">
                       <block type="logic_compare" id="Fc@xMakb{4LE7zR/W4NW">
                         <field name="OP">GT</field>
                         <value name="A">
                           <block type="on_source" id="RKH!UHj[ayv@|~XsfE/J">
                             <field name="ATTR">oldState.val</field>
                           </block>
                         </value>
                         <value name="B">
                           <block type="math_number" id="G`-$w0eLy=I=GP]QcZk(">
                             <field name="NUM">99</field>
                           </block>
                         </value>
                       </block>
                     </value>
                     <statement name="DO1">
                       <block type="debug" id="P3WOiAvZejT3`2eXTR]b">
                         <field name="Severity">log</field>
                         <value name="TEXT">
                           <shadow type="text" id="NPITzcW{=o{#vfhT,;vb">
                             <field name="TEXT">Timer wird ausgeführt</field>
                           </shadow>
                         </value>
                         <next>
                           <block type="timeouts_settimeout" id="=xVMI|0^GZRC3L!w:^;=">
                             <field name="NAME">timeout2</field>
                             <field name="DELAY">15</field>
                             <field name="UNIT">sec</field>
                             <statement name="STATEMENT">
                               <block type="debug" id="}|m~ug:w|=*WUo_|]b@k">
                                 <field name="Severity">log</field>
                                 <value name="TEXT">
                                   <shadow type="text" id="q!ocb$wBhb-,u)H{rGyq">
                                     <field name="TEXT">Steckdose ausschalten</field>
                                   </shadow>
                                 </value>
                                 <next>
                                   <block type="control" id="bfuMMeFp!R(_,C{d.|yX">
                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                     <field name="OID">sonoff.0.Steck_E_Bike.POWER</field>
                                     <field name="WITH_DELAY">FALSE</field>
                                     <value name="VALUE">
                                       <block type="logic_boolean" id="!1W]N[LWAV85@ld#wu7z">
                                         <field name="BOOL">FALSE</field>
                                       </block>
                                     </value>
                                     <next>
                                       <block type="telegram" id="XG]EXKcRyW2in%HwNxl|">
                                         <field name="INSTANCE">.0</field>
                                         <field name="LOG"></field>
                                         <field name="SILENT">FALSE</field>
                                         <field name="PARSEMODE">default</field>
                                         <value name="MESSAGE">
                                           <shadow type="text" id="ji=XPEB;dU;96$[fm#C$">
                                             <field name="TEXT">Die ladestation ......is aus...</field>
                                           </shadow>
                                         </value>
                                       </block>
                                     </next>
                                   </block>
                                 </next>
                               </block>
                             </statement>
                           </block>
                         </next>
                       </block>
                     </statement>
                   </block>
                 </statement>
               </block>
              </xml>
              

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

                @paul53

                dort ist jedesmal wenn der wert größer als 99 ist müsste das nicht kleiner sein?

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

                  @michael_4358 sagte:

                  dort ist jedesmal wenn der wert größer als 99 ist müsste das nicht kleiner sein?

                  Die Steckdose soll doch abschalten, wenn die Leistung unter einen bestimmten Wert sinkt ?

                  falls Wert > 99
                  sonst falls vorheriger Wert > 99
                  

                  ist gleichbedeutend mit

                  falls Wert <= 99 und vorheriger Wert > 99
                  

                  also erstmaliges Unterschreiten des Grenzwertes.

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

                    @paul53

                    ein neustart des brokers und es geht 🙂 danke dir

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

                    Support us

                    ioBroker
                    Community Adapters
                    Donate

                    908
                    Online

                    32.0k
                    Users

                    80.4k
                    Topics

                    1.3m
                    Posts

                    2
                    8
                    358
                    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