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 @nole last edited by

      @nole
      Der stop timeout direkt vor den timeout fehlt und dann noch auf wurde aktualisiert getriggert. So startet jedes mal ein weiterer timeout wenn der Trigger zuckt und die Bedingung erfüllt ist, was dazu führt, dass sehr viele timeouts gleichzeitig laufen können.

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

        @jan1 Hallo, ich stehe da ehrlich gesagt auf dem Schlauch. Wie müsste das denn dann aussehen? Einen timeout habe ich doch eingebaut, aber ich denke nach deiner Aussage an der falschen Stelle. Durch was muss ich den "aktualisiert" Trigger ersetzen?
        Für deine weitere Hilfe wäre ich dir wirklich sehr dankbar. Ich werde aber versuchen ob ich das mit deinen bisherigen Informationen hinbekomme.

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

          @nole
          Trigger auf "wurde geändert" und den "stop timeout" direkt vor den "timeout", den Rest lasse wie es ist.

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

            @jan1 meinst du das so?

            Screenshot_2021-05-10 javascript - ioBroker(1).png

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

              @nole
              wo ist der stoptimeout vor dem timeout???

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

                @jan1
                poste den Code, bevor sich das hier zieht 😉

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

                  @jan1

                  <xml xmlns="https://developers.google.com/blockly/xml">
                    <variables>
                      <variable type="timeout" id="timeout">timeout</variable>
                      <variable type="timeout" id="timeout3">timeout3</variable>
                      <variable type="timeout" id="timeout2">timeout2</variable>
                    </variables>
                    <block type="on_ext" id="q-2pBvl6%n5S#abWP$s/" disabled="true" x="-412" y="-462">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                      <field name="CONDITION">any</field>
                      <field name="ACK_CONDITION"></field>
                      <value name="OID0">
                        <shadow type="field_oid" id="iWm~)rPccpnpWh2X$U!8">
                          <field name="oid">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power</field>
                        </shadow>
                      </value>
                      <statement name="STATEMENT">
                        <block type="controls_if" id="*u:Y?-)4@!`l4f]Mv^nP">
                          <value name="IF0">
                            <block type="logic_compare" id="VP9e)6J]zYn7/7fQo9/J">
                              <field name="OP">LTE</field>
                              <value name="A">
                                <block type="on_source" id="7a*`arM=5Ulas9,HvJxA">
                                  <field name="ATTR">state.val</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="text" id="E+`CVo}+](X)+^n{ImEd">
                                  <field name="TEXT">40</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="timeouts_cleartimeout" id="V!fe@mMn?^/.j2HWR*1L">
                              <field name="NAME">timeout</field>
                            </block>
                          </statement>
                          <next>
                            <block type="controls_if" id="UA})2Q/8,{VDo355I116">
                              <value name="IF0">
                                <block type="logic_compare" id="H)wpGiQ/+!`8]y2m^:yh">
                                  <field name="OP">GTE</field>
                                  <value name="A">
                                    <block type="on_source" id="WBhKao3;JRCl[NMAkixS">
                                      <field name="ATTR">state.val</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="text" id="K3?gQkN15DhcM5r]Ioi@">
                                      <field name="TEXT">100</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="timeouts_settimeout" id="`!0nMKO~NS@s;6q;Q%?l">
                                  <field name="NAME">timeout</field>
                                  <field name="DELAY">30</field>
                                  <field name="UNIT">min</field>
                                  <statement name="STATEMENT">
                                    <block type="control" id="]Bk-sBrZB@ibgfZIvpr%">
                                      <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="I(Ro$K$)^XNfZ,r%WhUO">
                                          <field name="BOOL">FALSE</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="email" id="nrf23U9Yfr*(k#{OltHa">
                                          <field name="INSTANCE"></field>
                                          <field name="IS_HTML">FALSE</field>
                                          <field name="LOG">warn</field>
                                          <value name="TO">
                                            <shadow type="text" id="LGB]yJ5pt)::Vuc{ONtF">
                                              <field name="TEXT">nobtukpetploy@web.de</field>
                                            </shadow>
                                          </value>
                                          <value name="TEXT">
                                            <shadow type="text" id="f*-:)PlYFmAIyrk|Z+P0">
                                              <field name="TEXT">Die Hauswasserpumpe ist OFF, bitte Wasser auffüllen und wieder einschalten. Danke.</field>
                                            </shadow>
                                          </value>
                                          <value name="SUBJECT">
                                            <shadow type="text" id="Qz]4x8.nF4@KH?n7Bkhw">
                                              <field name="TEXT">Warnung Hauswasserpumpe</field>
                                            </shadow>
                                          </value>
                                        </block>
                                      </next>
                                    </block>
                                  </statement>
                                </block>
                              </statement>
                              <next>
                                <block type="debug" id="QMYtq(@P%Zl/UpGh+VOy">
                                  <field name="Severity">log</field>
                                  <value name="TEXT">
                                    <shadow type="text" id="[e_]XwfIyK%VQAOw9JTX">
                                      <field name="TEXT">test</field>
                                    </shadow>
                                    <block type="text_join" id="-l@!yvf1+^N+0AIc|.p^">
                                      <mutation items="2"></mutation>
                                      <value name="ADD0">
                                        <block type="text" id="(p|^-:)CM*w;(ua-#0~C">
                                          <field name="TEXT">Watt:</field>
                                        </block>
                                      </value>
                                      <value name="ADD1">
                                        <block type="on_source" id="F4Q/0h$*.npgi2yJ,%{[">
                                          <field name="ATTR">state.val</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                    <block type="math_number" id="gDW`KdlQb%.Ce{!86K;x" x="262" y="-387">
                      <field name="NUM">50</field>
                    </block>
                    <block type="math_number" id="?Q%hf#T}`?PA4?|LYvRU" x="287" y="-312">
                      <field name="NUM">100</field>
                    </block>
                    <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>
                                      <next>
                                        <block type="email" id="$9UHB7f:5pH}KOb-MKc+">
                                          <field name="INSTANCE"></field>
                                          <field name="IS_HTML">FALSE</field>
                                          <field name="LOG">warn</field>
                                          <value name="TO">
                                            <shadow type="text" id="k[:)o{+Cw9TDavPP#q~0">
                                              <field name="TEXT">nobtukpetploy@web.de</field>
                                            </shadow>
                                          </value>
                                          <value name="TEXT">
                                            <shadow type="text" id="Jg,,Cl.tlM@syT9Y]D#}">
                                              <field name="TEXT">Die Hauswasserpumpe ist OFF, bitte Wasser auffüllen und wieder einschalten. Danke.</field>
                                            </shadow>
                                          </value>
                                          <value name="SUBJECT">
                                            <shadow type="text" id="qh:kGtW{TIeASi#IVI)A">
                                              <field name="TEXT">Warnung Hauswasserpumpe</field>
                                            </shadow>
                                          </value>
                                        </block>
                                      </next>
                                    </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>
                    <block type="on" id="oxhUH-RyPNmr.a,fC__1" disabled="true" x="-37" y="863">
                      <field name="OID">sonoff.0.Sonoff-POWR2-Hauswasserpumpe.ENERGY_Power</field>
                      <field name="CONDITION">ne</field>
                      <field name="ACK_CONDITION"></field>
                      <statement name="STATEMENT">
                        <block type="controls_if" id="3GRR6%ye(/hgO28(b]EO">
                          <value name="IF0">
                            <block type="logic_compare" id="?R`IVDoVJ4yuKNq~v^/J">
                              <field name="OP">LTE</field>
                              <value name="A">
                                <block type="on_source" id="-gME%kj1-KiYw.g301j!">
                                  <field name="ATTR">state.val</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="text" id="znQ4C7/;8Jroo*M)1QT,">
                                  <field name="TEXT">50</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="timeouts_cleartimeout" id="3~jLu%Czt8OhrV9=@Wp`">
                              <field name="NAME">timeout2</field>
                            </block>
                          </statement>
                          <next>
                            <block type="controls_if" id="SQ$YSGNMJkiaCy9J|4~X">
                              <value name="IF0">
                                <block type="logic_compare" id=":]fSqM`[tiZY4)D5qUz`">
                                  <field name="OP">GTE</field>
                                  <value name="A">
                                    <block type="on_source" id="hdZ$E)elS9c-18U?%s7:">
                                      <field name="ATTR">state.val</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="text" id="??7)9|bdG5X@kSTuO]kA">
                                      <field name="TEXT">100</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="timeouts_settimeout" id="z1NU*AXh?bxJI=ZQWF/R">
                                  <field name="NAME">timeout2</field>
                                  <field name="DELAY">60</field>
                                  <field name="UNIT">min</field>
                                  <statement name="STATEMENT">
                                    <block type="control" id="%pM}j2/2mt5hACT($/bo">
                                      <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="Y0RLb-Aa+BOV$uMCp[YC">
                                          <field name="BOOL">FALSE</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="email" id="YiD/n[z_VBa:UBF^{1::">
                                          <field name="INSTANCE"></field>
                                          <field name="IS_HTML">FALSE</field>
                                          <field name="LOG">warn</field>
                                          <value name="TO">
                                            <shadow type="text" id="f1fd.qX_q5rG)Z@#qUn)">
                                              <field name="TEXT">nobtukpetploy@web.de</field>
                                            </shadow>
                                          </value>
                                          <value name="TEXT">
                                            <shadow type="text" id="/OzyS$JOBSpZ-hfUq8[{">
                                              <field name="TEXT">Die Hauswasserpumpe ist OFF, bitte Wasser auffüllen und wieder einschalten. Danke.</field>
                                            </shadow>
                                          </value>
                                          <value name="SUBJECT">
                                            <shadow type="text" id="xzEa[0h6Gc}K6or#Gb,q">
                                              <field name="TEXT">Warnung Hauswasserpumpe</field>
                                            </shadow>
                                          </value>
                                          <next>
                                            <block type="debug" id="I1YpWvCvoTpWI5DpC%Lx">
                                              <field name="Severity">log</field>
                                              <value name="TEXT">
                                                <shadow type="text">
                                                  <field name="TEXT">test</field>
                                                </shadow>
                                                <block type="text_join" id="-SE=`^q9kO76.G)R)%WJ">
                                                  <mutation items="2"></mutation>
                                                  <value name="ADD0">
                                                    <block type="text" id="g140IN00}r!gtJomXW5B">
                                                      <field name="TEXT">Watt:</field>
                                                    </block>
                                                  </value>
                                                  <value name="ADD1">
                                                    <block type="on_source" id=";i{OtvxN_wRB;nvOwTMG">
                                                      <field name="ATTR">state.val</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </statement>
                                </block>
                              </statement>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                  </xml>
                  
                  J 1 Reply Last reply Reply Quote 0
                  • J
                    Jan1 @nole last edited by

                    @nole
                    Jetzt packst das noch schnell in Code Tag und Spoiler, dann bau ich das um 😉

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

                      @jan1 ???????????
                      Da mußt du mir jetzt aber sagen wie das geht.

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

                        @jan1 Ich hatte da noch nicht aktive Bausteine auf der Seite.

                        <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)SArnar=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)O8kWxQv,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+HxZZZ[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|12S1gi{?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>
                        <next>
                        <block type="email" id="$9UHB7f:5pH}KOb-MKc+">
                        <field name="INSTANCE"></field>
                        <field name="IS_HTML">FALSE</field>
                        <field name="LOG">warn</field>
                        <value name="TO">
                        <shadow type="text" id="k[:)o{+Cw9TDavPP#q~0">
                        <field name="TEXT">nobtukpetploy@web.de</field>
                        </shadow>
                        </value>
                        <value name="TEXT">
                        <shadow type="text" id="Jg,,Cl.tlM@syT9Y]D#}">
                        <field name="TEXT">Die Hauswasserpumpe ist OFF, bitte Wasser auffüllen und wieder einschalten. Danke.</field>
                        </shadow>
                        </value>
                        <value name="SUBJECT">
                        <shadow type="text" id="qh:kGtW{TIeASi#IVI)A">
                        <field name="TEXT">Warnung Hauswasserpumpe</field>
                        </shadow>
                        </value>
                        </block>
                        </next>
                        </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>
                        
                        J 1 Reply Last reply Reply Quote 0
                        • J
                          Jan1 @nole last edited by Jan1

                          @nole
                          Hast schon mal die Symbole über dem Editor gesehen wenn Du was postest? Da gibts nix zu erklären, weil das selbsterklärend ist und lösche den letzten Post, bevor ich keine Lust mehr habe mir den Finger wund zu scrollen 😉

                          Edit:
                          ich kenne übrigens kein Forum bei dem das nicht so gehandhabt wird und das hat nix mit Linux oder sonstigen zu tun 🙂

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

                            @jan1

                            <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>
                                               <next>
                                                 <block type="email" id="$9UHB7f:5pH}KOb-MKc+">
                                                   <field name="INSTANCE"></field>
                                                   <field name="IS_HTML">FALSE</field>
                                                   <field name="LOG">warn</field>
                                                   <value name="TO">
                                                     <shadow type="text" id="k[:)o{+Cw9TDavPP#q~0">
                                                       <field name="TEXT">nobtukpetploy@web.de</field>
                                                     </shadow>
                                                   </value>
                                                   <value name="TEXT">
                                                     <shadow type="text" id="Jg,,Cl.tlM@syT9Y]D#}">
                                                       <field name="TEXT">Die Hauswasserpumpe ist OFF, bitte Wasser auffüllen und wieder einschalten. Danke.</field>
                                                     </shadow>
                                                   </value>
                                                   <value name="SUBJECT">
                                                     <shadow type="text" id="qh:kGtW{TIeASi#IVI)A">
                                                       <field name="TEXT">Warnung Hauswasserpumpe</field>
                                                     </shadow>
                                                   </value>
                                                 </block>
                                               </next>
                                             </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>
                            [/s]
                            
                            J 1 Reply Last reply Reply Quote 0
                            • J
                              Jan1 @nole last edited by

                              @nole
                              Dann noch in Code Tags im Spoiler da ich das erhalte:
                              a1d6e0f1-a0ad-4d81-88a1-3a6cd77e67c2-grafik.png

                              Wobei, was hast denn jetzt gepostet, das Blockly als Export (wie ich das haben möchte), oder einfach in Java Script umgeschaltet? Könnte natürlich auch an der versauten Codierung liegen, weil nicht i Code Tags gepackt.

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

                                @jan1 Tut mir leid, das ist mein erstes Forum und ich lerne den Umgang damit noch. Aber du hast Recht, wer richtig hinsieht ist im Vorteil.

                                Habe ich das jetzt so richtig gemacht.```

                                <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>
                                                    <next>
                                                      <block type="email" id="$9UHB7f:5pH}KOb-MKc+">
                                                        <field name="INSTANCE"></field>
                                                        <field name="IS_HTML">FALSE</field>
                                                        <field name="LOG">warn</field>
                                                        <value name="TO">
                                                          <shadow type="text" id="k[:)o{+Cw9TDavPP#q~0">
                                                            <field name="TEXT">nobtukpetploy@web.de</field>
                                                          </shadow>
                                                        </value>
                                                        <value name="TEXT">
                                                          <shadow type="text" id="Jg,,Cl.tlM@syT9Y]D#}">
                                                            <field name="TEXT">Die Hauswasserpumpe ist OFF, bitte Wasser auffüllen und wieder einschalten. Danke.</field>
                                                          </shadow>
                                                        </value>
                                                        <value name="SUBJECT">
                                                          <shadow type="text" id="qh:kGtW{TIeASi#IVI)A">
                                                            <field name="TEXT">Warnung Hauswasserpumpe</field>
                                                          </shadow>
                                                        </value>
                                                      </block>
                                                    </next>
                                                  </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>
                                <
                                
                                J 1 Reply Last reply Reply Quote 0
                                • N
                                  nole @Jan1 last edited by

                                  @jan1 Blockly als Export

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

                                    @nole
                                    wenn Du jetzt noch mal was offen gepostest, dann bin ich hier raus!

                                    Ich kann das nicht importieren, weil wohl was fehlt oder das Ding ohne Code Tags schlicht versaut wird.

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

                                      @jan1 Tut mir leid, was habe ich denn bis jetzt richtig? Was benötigst du noch und wie mache ich das?
                                      Ich bin dir wirklich sehr dankbar für deine Hilfe.

                                      liv-in-sky 1 Reply Last reply Reply Quote 0
                                      • liv-in-sky
                                        liv-in-sky @nole last edited by

                                        @nole https://forum.iobroker.net/post/394912

                                        J 1 Reply Last reply Reply Quote 1
                                        • J
                                          Jan1 @liv-in-sky last edited by

                                          @liv-in-sky
                                          geil, ne Anleitung dazu.
                                          Kann man die irgendwie oben anpinnen?

                                          liv-in-sky N 2 Replies Last reply Reply Quote 0
                                          • liv-in-sky
                                            liv-in-sky @Jan1 last edited by

                                            @jan1 habe sie in den lesezeichen

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            870
                                            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