Weiter zum Inhalt
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Hell
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dunkel
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

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

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. Skript für Spülmaschine mag nicht richtig zu funktionieren

NEWS

  • Neuer ioBroker-Blog online: Monatsrückblick März/April 2026
    BluefoxB
    Bluefox
    8
    1
    446

  • Verwendung von KI bitte immer deutlich kennzeichnen
    HomoranH
    Homoran
    10
    1
    368

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    966

Skript für Spülmaschine mag nicht richtig zu funktionieren

Geplant Angeheftet Gesperrt Verschoben Blockly
11 Beiträge 3 Kommentatoren 464 Aufrufe 1 Beobachtet
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • D Offline
    D Offline
    derroadrunner
    schrieb am zuletzt editiert von
    #1

    Hallo, ich benötige bitte für dieses Skript mal Hilfe. Es soll die Meldung Spülmaschine fertig kommen, wenn der Zähler größer als 75 ist. Nun Zählt er schön, aber stoppt das ganze nicht. Erst als ich die Spülmaschine ausgeschaltet habe (der Zähler war mittlerweile auf 822) hat er die Meldung ausgeworfen. Wenn ich den Zähler auf 40 stelle, funktioniert es. Da ist die Spülmaschine aber noch nicht fertig.

    Wo ist hier der Fehler?

    Vielen Dank schon mal.

    <xml xmlns="https://developers.google.com/blockly/xml">
      <variables>
        <variable id="_15VMX!RZlq%=ybVAz@@">Meldetext</variable>
        <variable id="eDU:(iyKogwdk(uJ#v=8">SpuelmaVerzoegerungAktiv</variable>
        <variable id="uVoAQZ6`(wm2IS=4jDRf">SpuelmaGrenzWertInWatt</variable>
        <variable type="timeout" id="Einschaltverzoegerung">Einschaltverzoegerung</variable>
        <variable id="H?Yq0BJ!zZ_^*Q$OF$bo">SpuelmaEnergyToday</variable>
        <variable type="interval" id="Intervall">Intervall</variable>
        <variable id="g@8Zqg%)I@g0%8,P8fT1">SpuelmaZwischensumme</variable>
        <variable id="n`]^(OBF3H5whqiy-K6e">SpuelmaKostenToday</variable>
      </variables>
      <block type="comment" id="){{k{;f|!i!?gII9`zwj" x="746" y="-1497">
        <field name="COMMENT">Initialisierung. Wird nur bei (Neu)Start augefuehrt</field>
        <next>
          <block type="create" id="::^lQfgj!hCg^z3b{ncl">
            <field name="NAME">Variablen.SpuelmaZaehler</field>
            <next>
              <block type="create" id=":XvakORUFJ^_I1/^;0qD">
                <field name="NAME">POW.SpuelmaAN</field>
                <next>
                  <block type="control" id=";sX{)v2.LF(@*T{:0Jn)">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">javascript.0.POW.SpuelmaAN</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="8n1CerEfb/!a:kF]n.;P">
                        <field name="BOOL">FALSE</field>
                      </block>
                    </value>
                    <next>
                      <block type="control" id="Y-_]d[36yjOa0%LH9PuX">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">javascript.0.Variablen.SpuelmaZaehler</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="math_number" id="csR_EPjcky-A[)|H5^oB">
                            <field name="NUM">0</field>
                          </block>
                        </value>
                        <next>
                          <block type="timeouts_clearinterval" id="phO^MXVR-_9fNy?Ouvr(">
                            <field name="NAME">Intervall</field>
                            <next>
                              <block type="variables_set" id="jsP;q}fZB(WVv))@=~@4">
                                <field name="VAR" id="eDU:(iyKogwdk(uJ#v=8">SpuelmaVerzoegerungAktiv</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id=")vqq*;$=oLq#kNU9WBX{">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="variables_set" id="BYD=sZ^j7=(,}~!O|+wa">
                                    <field name="VAR" id="uVoAQZ6`(wm2IS=4jDRf">SpuelmaGrenzWertInWatt</field>
                                    <value name="VALUE">
                                      <block type="math_number" id="z}4.zbafXpd+$~M7(Kau">
                                        <field name="NUM">35</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="comment" id="D=EVD+t0j;mPSBKtQX3]">
                                        <field name="COMMENT">Zyklisch ausgefuehrtes Script</field>
                                        <next>
                                          <block type="on_ext" id="m|v)q:,F4om_rc6-e(ql">
                                            <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="H$3hkrvIhp$]3-H:I8*(">
                                                <field name="oid">sonoff.0.Spühlmaschine.ENERGY_Power</field>
                                              </shadow>
                                            </value>
                                            <statement name="STATEMENT">
                                              <block type="debug" id="p3otZ0Ue+aic5y)*qagV" disabled="true">
                                                <field name="Severity">error</field>
                                                <value name="TEXT">
                                                  <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="3ifrWq./6CI{ImTjIVFF">
                                                    <field name="TEXT">test</field>
                                                  </shadow>
                                                  <block type="text_join" id="eM+{y.ZWwk:y6S!X$uXV">
                                                    <mutation items="5"></mutation>
                                                    <value name="ADD0">
                                                      <block type="text" id="7!y]j(dE=:Mhy54F-`T`">
                                                        <field name="TEXT">Aktuelle Leistung:  </field>
                                                      </block>
                                                    </value>
                                                    <value name="ADD1">
                                                      <block type="get_value" id="eStx6Z7AQaakv7uuDN#h">
                                                        <field name="ATTR">val</field>
                                                        <field name="OID">sonoff.0.Waschmaschine.ENERGY_Power</field>
                                                      </block>
                                                    </value>
                                                    <value name="ADD2">
                                                      <block type="time_get" id="{Y)!68k#A!4?U.8]sSGN">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" format="true" language="false"></mutation>
                                                        <field name="OPTION">custom</field>
                                                        <field name="FORMAT">\n</field>
                                                      </block>
                                                    </value>
                                                    <value name="ADD3">
                                                      <block type="text" id="Gz32orjw-zzQz7nvG$`4">
                                                        <field name="TEXT">Zählerstand:  </field>
                                                      </block>
                                                    </value>
                                                    <value name="ADD4">
                                                      <block type="get_value" id="~EQ5i8B]o]1+9p?h?mly">
                                                        <field name="ATTR">val</field>
                                                        <field name="OID">javascript.0.Variablen.SpuelmaZaehler</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="controls_if" id=".OPb[gmyqdYk8a-?FUqL" disabled="true">
                                                    <value name="IF0">
                                                      <block type="logic_operation" id="b^@Y(bi#Ex}7H*UK8u#g" inline="false">
                                                        <field name="OP">AND</field>
                                                        <value name="A">
                                                          <block type="logic_compare" id="AKPkm*qa*J{8tPZ%ERAF">
                                                            <field name="OP">LTE</field>
                                                            <value name="A">
                                                              <block type="on_source" id="(3b1pLSM=k6,6sMpLzTw">
                                                                <field name="ATTR">oldState.val</field>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="math_number" id="8w3Exow=PNqj=Bt0_gSn">
                                                                <field name="NUM">3</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="logic_compare" id="XQ|{5n.F[WvSNm*{mm=w">
                                                            <field name="OP">GTE</field>
                                                            <value name="A">
                                                              <block type="get_value" id="L)RiJ/%`okfa-l#`$9;U">
                                                                <field name="ATTR">val</field>
                                                                <field name="OID">sonoff.0.Waschmaschine.ENERGY_Power</field>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="math_number" id="pMjP`y}Npk/q)VSFLv,~">
                                                                <field name="NUM">18</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <statement name="DO0">
                                                      <block type="variables_set" id="rQiXWo2fiv){I^C}`ffb">
                                                        <field name="VAR" id="eDU:(iyKogwdk(uJ#v=8">SpuelmaVerzoegerungAktiv</field>
                                                        <value name="VALUE">
                                                          <block type="logic_boolean" id="-1~^EYz^knC8G{YQ02$:">
                                                            <field name="BOOL">TRUE</field>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="debug" id="dld)E_WrMNZS=a7Tw-^1">
                                                            <field name="Severity">warn</field>
                                                            <value name="TEXT">
                                                              <shadow type="text" id="`1WuF9vR+S|3)WXNsXRL">
                                                                <field name="TEXT">***Starte Verzögerung</field>
                                                              </shadow>
                                                            </value>
                                                            <next>
                                                              <block type="timeouts_cleartimeout" id="*2bYxF_KkvjuukbeG(Gg">
                                                                <field name="NAME">Einschaltverzoegerung</field>
                                                                <next>
                                                                  <block type="timeouts_settimeout" id="ApTRnB=Drq2%Tu)/w7{C">
                                                                    <field name="NAME">Einschaltverzoegerung</field>
                                                                    <field name="DELAY">10</field>
                                                                    <field name="UNIT">sec</field>
                                                                    <statement name="STATEMENT">
                                                                      <block type="variables_set" id="whRgs!/iRnR_[;o^Y_0*">
                                                                        <field name="VAR" id="eDU:(iyKogwdk(uJ#v=8">SpuelmaVerzoegerungAktiv</field>
                                                                        <value name="VALUE">
                                                                          <block type="logic_boolean" id="z|6B7%$PfNm3w#G?Jd{f">
                                                                            <field name="BOOL">FALSE</field>
                                                                          </block>
                                                                        </value>
                                                                        <next>
                                                                          <block type="debug" id="uo:O;yS#V^Sm:RKk:9f)">
                                                                            <field name="Severity">warn</field>
                                                                            <value name="TEXT">
                                                                              <shadow type="text" id="uwqVI{~F,a8Q8E/*QTce">
                                                                                <field name="TEXT">***Beende Verzögerung</field>
                                                                              </shadow>
                                                                            </value>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </statement>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </statement>
                                                    <next>
                                                      <block type="comment" id="Od8P;f=Ahd~Oc,giwr2x">
                                                        <field name="COMMENT">Ab hier wird gewaschen</field>
                                                        <next>
                                                          <block type="controls_if" id="#zA4Kd6F6^,~4xXh0O|.">
                                                            <value name="IF0">
                                                              <block type="logic_operation" id="eKlVY%ZzI.6NeCC7RfZ8" inline="false">
                                                                <field name="OP">AND</field>
                                                                <value name="A">
                                                                  <block type="logic_compare" id="6vFT@3bQ~`[1jTZ`b`Od">
                                                                    <field name="OP">GT</field>
                                                                    <value name="A">
                                                                      <block type="get_value" id="e#Ljh[h5j#3I5:NB@%;~">
                                                                        <field name="ATTR">val</field>
                                                                        <field name="OID">sonoff.0.Spühlmaschine.ENERGY_Power</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <block type="math_number" id="I#HAP[bGlgaYQ+^IK@}o">
                                                                        <field name="NUM">35</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="logic_operation" id="P7,!zcq:IXvk%|y^)A--" inline="false">
                                                                    <field name="OP">AND</field>
                                                                    <value name="A">
                                                                      <block type="logic_compare" id="AdBv+wnLZqE6{|{biw|U">
                                                                        <field name="OP">EQ</field>
                                                                        <value name="A">
                                                                          <block type="get_value" id="^n4Lja5$n~7{`_4Vs^^I">
                                                                            <field name="ATTR">val</field>
                                                                            <field name="OID">javascript.0.POW.SpuelmaAN</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <block type="logic_boolean" id="6t?Klsj(qNwesNFTl}=j">
                                                                            <field name="BOOL">FALSE</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <block type="logic_compare" id="va|tpj,U^=}|lgCjxkBw">
                                                                        <field name="OP">EQ</field>
                                                                        <value name="A">
                                                                          <block type="variables_get" id="g?,=0dYW1gFuLw7cywPA">
                                                                            <field name="VAR" id="eDU:(iyKogwdk(uJ#v=8">SpuelmaVerzoegerungAktiv</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <block type="logic_boolean" id="Dxo8]?oH[6O0Kb=_:]Wq">
                                                                            <field name="BOOL">FALSE</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <statement name="DO0">
                                                              <block type="control" id="E!C2o?%|([kFG1--/7Lj">
                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                <field name="OID">javascript.0.POW.SpuelmaAN</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="logic_boolean" id="DUIeA2!B3-5d*:ADdEb{">
                                                                    <field name="BOOL">TRUE</field>
                                                                  </block>
                                                                </value>
                                                                <next>
                                                                  <block type="procedures_callnoreturn" id="ZKJ^Z,T62:Vq)4K?wcdW">
                                                                    <mutation name="Melden">
                                                                      <arg name="Meldetext"></arg>
                                                                    </mutation>
                                                                    <value name="ARG0">
                                                                      <block type="text" id="F5i*yktx;6[+Xg7,{;Ov">
                                                                        <field name="TEXT">Spülmaschine LÃUFT!</field>
                                                                      </block>
                                                                    </value>
                                                                    <next>
                                                                      <block type="comment" id="Q8,yuD??T`7ptRF.4~wj">
                                                                        <field name="COMMENT">Ab hier "Pause" oder "Ende" erkennen</field>
                                                                        <next>
                                                                          <block type="comment" id="^kYZ1OXg/$d5*?#,j]Th">
                                                                            <field name="COMMENT">Maschine laeuft. Jetzt wird periodisch </field>
                                                                            <next>
                                                                              <block type="comment" id="EFQ9(D78Wdz|yx:hN{v6">
                                                                                <field name="COMMENT">alle 10 Sekunden geprueft ob Leistung  &lt; 15 Watt</field>
                                                                                <next>
                                                                                  <block type="timeouts_setinterval" id="XV32C3CNcm8xNMfa.ET!">
                                                                                    <field name="NAME">Intervall</field>
                                                                                    <field name="INTERVAL">10</field>
                                                                                    <field name="UNIT">sec</field>
                                                                                    <statement name="STATEMENT">
                                                                                      <block type="debug" id="e?K3Jx=iP4D!L:2#,ZVL" disabled="true">
                                                                                        <field name="Severity">warn</field>
                                                                                        <value name="TEXT">
                                                                                          <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="3ifrWq./6CI{ImTjIVFF">
                                                                                            <field name="TEXT">test</field>
                                                                                          </shadow>
                                                                                          <block type="text_join" id="2TmK2|(IH),nu-8ayk8,">
                                                                                            <mutation items="5"></mutation>
                                                                                            <value name="ADD0">
                                                                                              <block type="text" id="^*Ect$xL+~qh/Jttx.mt">
                                                                                                <field name="TEXT">Zyklisch Aktuelle Leistung:  </field>
                                                                                              </block>
                                                                                            </value>
                                                                                            <value name="ADD1">
                                                                                              <block type="get_value" id="*ceqT[7M3fy`2D^bzZ4}">
                                                                                                <field name="ATTR">val</field>
                                                                                                <field name="OID">sonoff.0.Spühlmaschine.ENERGY_Power</field>
                                                                                              </block>
                                                                                            </value>
                                                                                            <value name="ADD2">
                                                                                              <block type="time_get" id="K!?IMD-ZKRl_$Hr=X3,0">
                                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" format="true" language="false"></mutation>
                                                                                                <field name="OPTION">custom</field>
                                                                                                <field name="FORMAT">\n</field>
                                                                                              </block>
                                                                                            </value>
                                                                                            <value name="ADD3">
                                                                                              <block type="text" id="LBa%X4hqR#/)^VX9DWGL">
                                                                                                <field name="TEXT">Zaehlerstand:  </field>
                                                                                              </block>
                                                                                            </value>
                                                                                            <value name="ADD4">
                                                                                              <block type="get_value" id="a=[mI6Nht$,#mSmD#:}P">
                                                                                                <field name="ATTR">val</field>
                                                                                                <field name="OID">javascript.0.Variablen.SpuelmaZaehler</field>
                                                                                              </block>
                                                                                            </value>
                                                                                          </block>
                                                                                        </value>
                                                                                        <next>
                                                                                          <block type="controls_if" id="In%ioU5iEAFuAFO#(=L-">
                                                                                            <mutation elseif="1"></mutation>
                                                                                            <value name="IF0">
                                                                                              <block type="logic_operation" id="a=_%$?pGPyZg:[:hla(u" inline="false">
                                                                                                <field name="OP">AND</field>
                                                                                                <value name="A">
                                                                                                  <block type="logic_compare" id="RPz.XcaqJ}V@/SM.?}Q}">
                                                                                                    <field name="OP">EQ</field>
                                                                                                    <value name="A">
                                                                                                      <block type="get_value" id="G)N?nqy#h6WA(r.Om!~{">
                                                                                                        <field name="ATTR">val</field>
                                                                                                        <field name="OID">javascript.0.POW.SpuelmaAN</field>
                                                                                                      </block>
                                                                                                    </value>
                                                                                                    <value name="B">
                                                                                                      <block type="logic_boolean" id="qp{bV0h0K414/PR_`b?[">
                                                                                                        <field name="BOOL">TRUE</field>
                                                                                                      </block>
                                                                                                    </value>
                                                                                                  </block>
                                                                                                </value>
                                                                                                <value name="B">
                                                                                                  <block type="logic_compare" id="bL3JAh)Y~7~5u!Jz^YGS">
                                                                                                    <field name="OP">LT</field>
                                                                                                    <value name="A">
                                                                                                      <block type="get_value" id="SD0,Rxl#*vX+Dw_5@M/U">
                                                                                                        <field name="ATTR">val</field>
                                                                                                        <field name="OID">sonoff.0.Spühlmaschine.ENERGY_Power</field>
                                                                                                      </block>
                                                                                                    </value>
                                                                                                    <value name="B">
                                                                                                      <block type="math_number" id="*+52d)~L1R!UO3i+C0tF">
                                                                                                        <field name="NUM">12</field>
                                                                                                      </block>
                                                                                                    </value>
                                                                                                  </block>
                                                                                                </value>
                                                                                              </block>
                                                                                            </value>
                                                                                            <statement name="DO0">
                                                                                              <block type="comment" id="M7.~:~mV$PrhbgDO*gsl">
                                                                                                <field name="COMMENT">Zaehler um 1 erhoehen weil Leistung &lt; 15 Watt</field>
                                                                                                <next>
                                                                                                  <block type="control" id="Xmm`J)~83y=Zc`Oks..g">
                                                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                    <field name="OID">javascript.0.Variablen.SpuelmaZaehler</field>
                                                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                                                    <value name="VALUE">
                                                                                                      <block type="math_arithmetic" id="Vw`3`Q^nNNVR$qXU{uoE">
                                                                                                        <field name="OP">ADD</field>
                                                                                                        <value name="A">
                                                                                                          <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="oC`YC/L4OS:|F,4f/B,e">
                                                                                                            <field name="NUM">1</field>
                                                                                                          </shadow>
                                                                                                          <block type="get_value" id="=L_xw%f}d!Rw^+E%YwKN">
                                                                                                            <field name="ATTR">val</field>
                                                                                                            <field name="OID">javascript.0.Variablen.SpuelmaZaehler</field>
                                                                                                          </block>
                                                                                                        </value>
                                                                                                        <value name="B">
                                                                                                          <shadow type="math_number" id="ZA_xfDJy7{`F8gK]X|*[">
                                                                                                            <field name="NUM">1</field>
                                                                                                          </shadow>
                                                                                                        </value>
                                                                                                      </block>
                                                                                                    </value>
                                                                                                  </block>
                                                                                                </next>
                                                                                              </block>
                                                                                            </statement>
                                                                                            <value name="IF1">
                                                                                              <block type="logic_operation" id="c{k=_lt_Gqj6AJyDI34U" inline="false">
                                                                                                <field name="OP">AND</field>
                                                                                                <value name="A">
                                                                                                  <block type="logic_compare" id="SCt?CI18R=x/10pgwA%R">
                                                                                                    <field name="OP">EQ</field>
                                                                                                    <value name="A">
                                                                                                      <block type="get_value" id="F)W3^Z0=-0r~/vS%c|yf">
                                                                                                        <field name="ATTR">val</field>
                                                                                                        <field name="OID">javascript.0.POW.SpuelmaAN</field>
                                                                                                      </block>
                                                                                                    </value>
                                                                                                    <value name="B">
                                                                                                      <block type="logic_boolean" id="lRB=B_Bx~U[.h_LTw1we">
                                                                                                        <field name="BOOL">TRUE</field>
                                                                                                      </block>
                                                                                                    </value>
                                                                                                  </block>
                                                                                                </value>
                                                                                                <value name="B">
                                                                                                  <block type="logic_compare" id="QksT|8c!~HEc)=P8a$V6">
                                                                                                    <field name="OP">GT</field>
                                                                                                    <value name="A">
                                                                                                      <block type="get_value" id="1JC.T1aB}:ilkI8U2/nQ">
                                                                                                        <field name="ATTR">val</field>
                                                                                                        <field name="OID">sonoff.0.Spühlmaschine.ENERGY_Power</field>
                                                                                                      </block>
                                                                                                    </value>
                                                                                                    <value name="B">
                                                                                                      <block type="math_number" id="cb*h(]6=9yd64aS:V21V">
                                                                                                        <field name="NUM">38</field>
                                                                                                      </block>
                                                                                                    </value>
                                                                                                  </block>
                                                                                                </value>
                                                                                              </block>
                                                                                            </value>
                                                                                            <statement name="DO1">
                                                                                              <block type="comment" id="^-sGN~PYX|;+F+=wVYt(">
                                                                                                <field name="COMMENT">Schwelle ueberschritten, Maschine laeuft noch</field>
                                                                                                <next>
                                                                                                  <block type="comment" id="WAV82BiJKp3K7b]f3Li$">
                                                                                                    <field name="COMMENT">darum Zaehler wieder auf 0 setzen</field>
                                                                                                    <next>
                                                                                                      <block type="control" id="CFvn{ed0OMWsphQ.]Q2D">
                                                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                        <field name="OID">javascript.0.Variablen.SpuelmaZaehler</field>
                                                                                                        <field name="WITH_DELAY">FALSE</field>
                                                                                                        <value name="VALUE">
                                                                                                          <block type="math_number" id="mzl}/VaPq~f%z[No/+G}">
                                                                                                            <field name="NUM">0</field>
                                                                                                          </block>
                                                                                                        </value>
                                                                                                      </block>
                                                                                                    </next>
                                                                                                  </block>
                                                                                                </next>
                                                                                              </block>
                                                                                            </statement>
                                                                                          </block>
                                                                                        </next>
                                                                                      </block>
                                                                                    </statement>
                                                                                  </block>
                                                                                </next>
                                                                              </block>
                                                                            </next>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </statement>
                                                            <next>
                                                              <block type="comment" id="MO:tcQW{k8-F?qh$AX0P">
                                                                <field name="COMMENT">Wenn Zaehler &gt; 30 (30 x 10 Sekunden), </field>
                                                                <next>
                                                                  <block type="comment" id="NMulWW1R$ZU1O^=zD@x?">
                                                                    <field name="COMMENT">wurde das Ende wurde erkannt</field>
                                                                    <next>
                                                                      <block type="controls_if" id="J~G~OsPP[[.(Oq$kqV]Z">
                                                                        <value name="IF0">
                                                                          <block type="logic_operation" id=".(sT,{y+{OOyU|9eZq!r" inline="false">
                                                                            <field name="OP">AND</field>
                                                                            <value name="A">
                                                                              <block type="logic_compare" id="=y4fjU]UmjDw+*lpHIfQ">
                                                                                <field name="OP">GT</field>
                                                                                <value name="A">
                                                                                  <block type="get_value" id="L0*-_z7P^8PW%6NY|:2?">
                                                                                    <field name="ATTR">val</field>
                                                                                    <field name="OID">javascript.0.Variablen.SpuelmaZaehler</field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="B">
                                                                                  <block type="math_number" id="wCd;p)YQ*APo!atkQ~dI">
                                                                                    <field name="NUM">75</field>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </value>
                                                                            <value name="B">
                                                                              <block type="logic_compare" id="b2t8g(g{MT[Ov9Xo$HV=">
                                                                                <field name="OP">EQ</field>
                                                                                <value name="A">
                                                                                  <block type="get_value" id=".DqC/G)=cm7M,jI-f}-o">
                                                                                    <field name="ATTR">val</field>
                                                                                    <field name="OID">javascript.0.POW.SpuelmaAN</field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="B">
                                                                                  <block type="logic_boolean" id="6C#woUlUr8O]HtJ):Drf">
                                                                                    <field name="BOOL">TRUE</field>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                        <statement name="DO0">
                                                                          <block type="comment" id=",mX3hAKq.@#YQsQWJtzd">
                                                                            <field name="COMMENT">Verbrauch in kWh auf 2 Nachkommastellen runden</field>
                                                                            <next>
                                                                              <block type="variables_set" id="Z,rJAd!;I/c0+;|+leKB">
                                                                                <field name="VAR" id="H?Yq0BJ!zZ_^*Q$OF$bo">SpuelmaEnergyToday</field>
                                                                                <value name="VALUE">
                                                                                  <block type="math_arithmetic" id="0`0.3iq:ea1!uzl)l[L0">
                                                                                    <field name="OP">DIVIDE</field>
                                                                                    <value name="A">
                                                                                      <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="YCJ?Nzg[9*Uwp%ONL^gj">
                                                                                        <field name="NUM">1</field>
                                                                                      </shadow>
                                                                                      <block type="math_round" id="I2]cIrexlDHR8Ge+$YVM">
                                                                                        <field name="OP">ROUND</field>
                                                                                        <value name="NUM">
                                                                                          <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="7{o**Z/AJ^,b-Pb}.l~?">
                                                                                            <field name="NUM">3.1</field>
                                                                                          </shadow>
                                                                                          <block type="math_arithmetic" id="Rxo-WixlL`-:kv-0Lg0p">
                                                                                            <field name="OP">MULTIPLY</field>
                                                                                            <value name="A">
                                                                                              <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="4Qs-LB;83N)%F/~#nt.B">
                                                                                                <field name="NUM">1</field>
                                                                                              </shadow>
                                                                                              <block type="get_value" id="Ac6ea|3H-em0jz-`W|-7">
                                                                                                <field name="ATTR">val</field>
                                                                                                <field name="OID">sonoff.0.Spühlmaschine.ENERGY_Today</field>
                                                                                              </block>
                                                                                            </value>
                                                                                            <value name="B">
                                                                                              <shadow type="math_number" id="Ej73GN+2Iapwc,2mKIdg">
                                                                                                <field name="NUM">100</field>
                                                                                              </shadow>
                                                                                            </value>
                                                                                          </block>
                                                                                        </value>
                                                                                      </block>
                                                                                    </value>
                                                                                    <value name="B">
                                                                                      <shadow type="math_number" id="-u8|;7^uJRtipB@x_7Vb">
                                                                                        <field name="NUM">100</field>
                                                                                      </shadow>
                                                                                    </value>
                                                                                  </block>
                                                                                </value>
                                                                                <next>
                                                                                  <block type="comment" id="ya]`WZ:JGO.u$ltyV-1?">
                                                                                    <field name="COMMENT">Kosten berechnen (0,47Euro/kWh)</field>
                                                                                    <next>
                                                                                      <block type="variables_set" id="y0aN.phPl]olYk@NfPZ;">
                                                                                        <field name="VAR" id="g@8Zqg%)I@g0%8,P8fT1">SpuelmaZwischensumme</field>
                                                                                        <value name="VALUE">
                                                                                          <block type="math_arithmetic" id="oQM:sfgPn@}|O[^uN)[~">
                                                                                            <field name="OP">MULTIPLY</field>
                                                                                            <value name="A">
                                                                                              <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="|d151rU%IdHyFN(`q^0~">
                                                                                                <field name="NUM">1</field>
                                                                                              </shadow>
                                                                                              <block type="variables_get" id="`BdAgr:7kLRMk~w?RIOj">
                                                                                                <field name="VAR" id="H?Yq0BJ!zZ_^*Q$OF$bo">SpuelmaEnergyToday</field>
                                                                                              </block>
                                                                                            </value>
                                                                                            <value name="B">
                                                                                              <shadow type="math_number" id="{Gk2ie7/:RxhcpZPG_q2">
                                                                                                <field name="NUM">0.47</field>
                                                                                              </shadow>
                                                                                            </value>
                                                                                          </block>
                                                                                        </value>
                                                                                        <next>
                                                                                          <block type="comment" id="=ih~ONA)NiQ%^dWCj8Wb">
                                                                                            <field name="COMMENT">Betrag auf 2 Nachkommastellen runden</field>
                                                                                            <next>
                                                                                              <block type="variables_set" id="YIOg]|,PD9:|nD6|96Yc">
                                                                                                <field name="VAR" id="n`]^(OBF3H5whqiy-K6e">SpuelmaKostenToday</field>
                                                                                                <value name="VALUE">
                                                                                                  <block type="math_arithmetic" id="X#w:{X[oB%R;$nS0ICs4">
                                                                                                    <field name="OP">DIVIDE</field>
                                                                                                    <value name="A">
                                                                                                      <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="YCJ?Nzg[9*Uwp%ONL^gj">
                                                                                                        <field name="NUM">1</field>
                                                                                                      </shadow>
                                                                                                      <block type="math_round" id="fOW~*FJmQtGeXn2mj1t{">
                                                                                                        <field name="OP">ROUND</field>
                                                                                                        <value name="NUM">
                                                                                                          <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="7{o**Z/AJ^,b-Pb}.l~?">
                                                                                                            <field name="NUM">3.1</field>
                                                                                                          </shadow>
                                                                                                          <block type="math_arithmetic" id="n|RacA$|!-!xb[Gc/DxQ">
                                                                                                            <field name="OP">MULTIPLY</field>
                                                                                                            <value name="A">
                                                                                                              <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="4Qs-LB;83N)%F/~#nt.B">
                                                                                                                <field name="NUM">1</field>
                                                                                                              </shadow>
                                                                                                              <block type="variables_get" id="kix-b|P+34lEXy:e.Sqc">
                                                                                                                <field name="VAR" id="g@8Zqg%)I@g0%8,P8fT1">SpuelmaZwischensumme</field>
                                                                                                              </block>
                                                                                                            </value>
                                                                                                            <value name="B">
                                                                                                              <shadow type="math_number" id="ax3}qczLK6n!7N*+XlAw">
                                                                                                                <field name="NUM">100</field>
                                                                                                              </shadow>
                                                                                                            </value>
                                                                                                          </block>
                                                                                                        </value>
                                                                                                      </block>
                                                                                                    </value>
                                                                                                    <value name="B">
                                                                                                      <shadow type="math_number" id="UPD-4-3c,Ts8#1fX?i#5">
                                                                                                        <field name="NUM">100</field>
                                                                                                      </shadow>
                                                                                                    </value>
                                                                                                  </block>
                                                                                                </value>
                                                                                                <next>
                                                                                                  <block type="comment" id="ltvKhNq~uIyjg04mG5WY">
                                                                                                    <field name="COMMENT">Fertigmeldung mit Verbrauch und Kosten via Telegram senden</field>
                                                                                                    <next>
                                                                                                      <block type="procedures_callnoreturn" id="))8WoF*n#J2(boyH{_T9">
                                                                                                        <mutation name="Melden">
                                                                                                          <arg name="Meldetext"></arg>
                                                                                                        </mutation>
                                                                                                        <value name="ARG0">
                                                                                                          <block type="text_join" id="dPQ@U19JA2ApS}Sal#[F" inline="false">
                                                                                                            <mutation items="8"></mutation>
                                                                                                            <value name="ADD0">
                                                                                                              <block type="text" id="+Ss`gHGZE?+:fqA@C[u7">
                                                                                                                <field name="TEXT">Spülmaschine ist FERTIG! </field>
                                                                                                              </block>
                                                                                                            </value>
                                                                                                            <value name="ADD1">
                                                                                                              <block type="time_get" id="[wOX*9hGy/Pjcv[FMa)/">
                                                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" format="true" language="false"></mutation>
                                                                                                                <field name="OPTION">custom</field>
                                                                                                                <field name="FORMAT">\n</field>
                                                                                                              </block>
                                                                                                            </value>
                                                                                                            <value name="ADD2">
                                                                                                              <block type="text" id="=-4:@}^NcHxGD!(/Ey-l">
                                                                                                                <field name="TEXT">Stromverbrauch / Kosten heute: </field>
                                                                                                              </block>
                                                                                                            </value>
                                                                                                            <value name="ADD3">
                                                                                                              <block type="time_get" id="_7]^D@aNHqp8Mu{~oqfS">
                                                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" format="true" language="false"></mutation>
                                                                                                                <field name="OPTION">custom</field>
                                                                                                                <field name="FORMAT">\n</field>
                                                                                                              </block>
                                                                                                            </value>
                                                                                                            <value name="ADD4">
                                                                                                              <block type="variables_get" id="[MJbgq@G:JJ`:V9s(]K5">
                                                                                                                <field name="VAR" id="H?Yq0BJ!zZ_^*Q$OF$bo">SpuelmaEnergyToday</field>
                                                                                                              </block>
                                                                                                            </value>
                                                                                                            <value name="ADD5">
                                                                                                              <block type="text" id="dUpd)Y=jBF27=AC8*.4b">
                                                                                                                <field name="TEXT"> kWh / </field>
                                                                                                              </block>
                                                                                                            </value>
                                                                                                            <value name="ADD6">
                                                                                                              <block type="variables_get" id="*!U((@+{0@l(e#frx`oP">
                                                                                                                <field name="VAR" id="n`]^(OBF3H5whqiy-K6e">SpuelmaKostenToday</field>
                                                                                                              </block>
                                                                                                            </value>
                                                                                                            <value name="ADD7">
                                                                                                              <block type="text" id="n|D5?)^|v{t@/M*bxu,z">
                                                                                                                <field name="TEXT">Euro</field>
                                                                                                              </block>
                                                                                                            </value>
                                                                                                          </block>
                                                                                                        </value>
                                                                                                        <next>
                                                                                                          <block type="comment" id=",WsvipX(Riy[QR[X5V?3">
                                                                                                            <field name="COMMENT">Maschine ausschalten und Zaehler zuruecksetzen</field>
                                                                                                            <next>
                                                                                                              <block type="control" id="iG@4UuVEIwY[hkHrz^f{">
                                                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                                <field name="OID">javascript.0.POW.SpuelmaAN</field>
                                                                                                                <field name="WITH_DELAY">FALSE</field>
                                                                                                                <value name="VALUE">
                                                                                                                  <block type="logic_boolean" id="-plv%7s2k9%k;R,T!c4:">
                                                                                                                    <field name="BOOL">FALSE</field>
                                                                                                                  </block>
                                                                                                                </value>
                                                                                                                <next>
                                                                                                                  <block type="control" id="|L=|I6@%[|)MHL,Ug121">
                                                                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                                    <field name="OID">javascript.0.Variablen.SpuelmaZaehler</field>
                                                                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                                                                    <value name="VALUE">
                                                                                                                      <block type="math_number" id="]?dq*EMMd[$S}4sKgY%.">
                                                                                                                        <field name="NUM">0</field>
                                                                                                                      </block>
                                                                                                                    </value>
                                                                                                                    <next>
                                                                                                                      <block type="timeouts_clearinterval" id="VBU0J{H-A5Y8C,Hd,h-W">
                                                                                                                        <field name="NAME">Intervall</field>
                                                                                                                        <next>
                                                                                                                          <block type="on_ext" id="t2s+pGwSVXrE4L6wLf8y">
                                                                                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                                                                                                            <field name="CONDITION">false</field>
                                                                                                                            <field name="ACK_CONDITION"></field>
                                                                                                                            <value name="OID0">
                                                                                                                              <shadow type="field_oid" id="$USo0u@YH7s.bh~s9m5L">
                                                                                                                                <field name="oid">javascript.0.POW.SpuelmaAN</field>
                                                                                                                              </shadow>
                                                                                                                            </value>
                                                                                                                            <statement name="STATEMENT">
                                                                                                                              <block type="control" id="5:CLKxSk)|_8p+}tpVgC" disabled="true">
                                                                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                                                <field name="OID">sonoff.0.Spühlmaschine.POWER</field>
                                                                                                                                <field name="WITH_DELAY">FALSE</field>
                                                                                                                                <value name="VALUE">
                                                                                                                                  <block type="logic_boolean" id="bDN;BfTjS/CL+GrW5]J:">
                                                                                                                                    <field name="BOOL">FALSE</field>
                                                                                                                                  </block>
                                                                                                                                </value>
                                                                                                                              </block>
                                                                                                                            </statement>
                                                                                                                          </block>
                                                                                                                        </next>
                                                                                                                      </block>
                                                                                                                    </next>
                                                                                                                  </block>
                                                                                                                </next>
                                                                                                              </block>
                                                                                                            </next>
                                                                                                          </block>
                                                                                                        </next>
                                                                                                      </block>
                                                                                                    </next>
                                                                                                  </block>
                                                                                                </next>
                                                                                              </block>
                                                                                            </next>
                                                                                          </block>
                                                                                        </next>
                                                                                      </block>
                                                                                    </next>
                                                                                  </block>
                                                                                </next>
                                                                              </block>
                                                                            </next>
                                                                          </block>
                                                                        </statement>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </statement>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
      <block type="comment" id="w7z#aAX?/DGjJMy(HBgO" x="1537" y="-1088">
        <field name="COMMENT">Anzeige von Leistung und Zählerstand in Logs</field>
      </block>
      <block type="comment" id="rei-]8Y?Hx!V:)O?8(:[" x="1537" y="-938">
        <field name="COMMENT">Start Verzögerung wenn Steckdose geschaltet wird</field>
        <next>
          <block type="comment" id="?m]E$Mf$4{a62u/Jp%/z">
            <field name="COMMENT">Bei mir nicht notwendig, darum deaktiviert</field>
          </block>
        </next>
      </block>
      <block type="comment" id="]7:CHLr;StliP_p0.)}1" x="1537" y="-313">
        <field name="COMMENT">Anzeige von Leistung und Zaehlerstand in Logs</field>
      </block>
      <block type="comment" id="O^kvcRTTvbGha(numsLD" x="1538" y="288">
        <field name="COMMENT">Sollten die Pausen deiner Maschine anders sein,</field>
        <next>
          <block type="comment" id="x?TLezXs0q7mvu.0e|@X">
            <field name="COMMENT">kann ueber den Zaehler die Zeit angepasst werden</field>
          </block>
        </next>
      </block>
      <block type="procedures_defnoreturn" id="l1.gm`YNTt2#Ww;_Stf+" x="738" y="1488">
        <mutation>
          <arg name="Meldetext" varid="_15VMX!RZlq%=ybVAz@@"></arg>
        </mutation>
        <field name="NAME">Melden</field>
        <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
        <statement name="STACK">
          <block type="comment" id="CgkHkrp5c26e`w3uU(i`">
            <field name="COMMENT">Hier wird die Meldung ausgegeben</field>
            <next>
              <block type="debug" id="SYQu;@N0JgE!W~[JZcZ_">
                <field name="Severity">log</field>
                <value name="TEXT">
                  <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="4+J8c.^+FrkDV^]dAda-">
                    <field name="TEXT">test</field>
                  </shadow>
                  <block type="variables_get" id="KuX^Hf4/i6gnp|rmq9WR">
                    <field name="VAR" id="_15VMX!RZlq%=ybVAz@@">Meldetext</field>
                  </block>
                </value>
                <next>
                  <block type="telegram" id="O_F(%KTLgxT1wAEm@feP">
                    <field name="INSTANCE"></field>
                    <field name="LOG"></field>
                    <field name="SILENT">FALSE</field>
                    <field name="PARSEMODE">default</field>
                    <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field>
                    <value name="MESSAGE">
                      <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="E_N-%Xm!jp|A-Wil^s6U">
                        <field name="TEXT">text</field>
                      </shadow>
                      <block type="variables_get" id="6oEN9IEFsi7M]Rl6D/Xi">
                        <field name="VAR" id="_15VMX!RZlq%=ybVAz@@">Meldetext</field>
                      </block>
                    </value>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </statement>
      </block>
    </xml>
    

    Raspberry Pi 3+

    HomoranH paul53P 2 Antworten Letzte Antwort
    0
    • D derroadrunner

      Hallo, ich benötige bitte für dieses Skript mal Hilfe. Es soll die Meldung Spülmaschine fertig kommen, wenn der Zähler größer als 75 ist. Nun Zählt er schön, aber stoppt das ganze nicht. Erst als ich die Spülmaschine ausgeschaltet habe (der Zähler war mittlerweile auf 822) hat er die Meldung ausgeworfen. Wenn ich den Zähler auf 40 stelle, funktioniert es. Da ist die Spülmaschine aber noch nicht fertig.

      Wo ist hier der Fehler?

      Vielen Dank schon mal.

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable id="_15VMX!RZlq%=ybVAz@@">Meldetext</variable>
          <variable id="eDU:(iyKogwdk(uJ#v=8">SpuelmaVerzoegerungAktiv</variable>
          <variable id="uVoAQZ6`(wm2IS=4jDRf">SpuelmaGrenzWertInWatt</variable>
          <variable type="timeout" id="Einschaltverzoegerung">Einschaltverzoegerung</variable>
          <variable id="H?Yq0BJ!zZ_^*Q$OF$bo">SpuelmaEnergyToday</variable>
          <variable type="interval" id="Intervall">Intervall</variable>
          <variable id="g@8Zqg%)I@g0%8,P8fT1">SpuelmaZwischensumme</variable>
          <variable id="n`]^(OBF3H5whqiy-K6e">SpuelmaKostenToday</variable>
        </variables>
        <block type="comment" id="){{k{;f|!i!?gII9`zwj" x="746" y="-1497">
          <field name="COMMENT">Initialisierung. Wird nur bei (Neu)Start augefuehrt</field>
          <next>
            <block type="create" id="::^lQfgj!hCg^z3b{ncl">
              <field name="NAME">Variablen.SpuelmaZaehler</field>
              <next>
                <block type="create" id=":XvakORUFJ^_I1/^;0qD">
                  <field name="NAME">POW.SpuelmaAN</field>
                  <next>
                    <block type="control" id=";sX{)v2.LF(@*T{:0Jn)">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">javascript.0.POW.SpuelmaAN</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="8n1CerEfb/!a:kF]n.;P">
                          <field name="BOOL">FALSE</field>
                        </block>
                      </value>
                      <next>
                        <block type="control" id="Y-_]d[36yjOa0%LH9PuX">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">javascript.0.Variablen.SpuelmaZaehler</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="math_number" id="csR_EPjcky-A[)|H5^oB">
                              <field name="NUM">0</field>
                            </block>
                          </value>
                          <next>
                            <block type="timeouts_clearinterval" id="phO^MXVR-_9fNy?Ouvr(">
                              <field name="NAME">Intervall</field>
                              <next>
                                <block type="variables_set" id="jsP;q}fZB(WVv))@=~@4">
                                  <field name="VAR" id="eDU:(iyKogwdk(uJ#v=8">SpuelmaVerzoegerungAktiv</field>
                                  <value name="VALUE">
                                    <block type="logic_boolean" id=")vqq*;$=oLq#kNU9WBX{">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="variables_set" id="BYD=sZ^j7=(,}~!O|+wa">
                                      <field name="VAR" id="uVoAQZ6`(wm2IS=4jDRf">SpuelmaGrenzWertInWatt</field>
                                      <value name="VALUE">
                                        <block type="math_number" id="z}4.zbafXpd+$~M7(Kau">
                                          <field name="NUM">35</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="comment" id="D=EVD+t0j;mPSBKtQX3]">
                                          <field name="COMMENT">Zyklisch ausgefuehrtes Script</field>
                                          <next>
                                            <block type="on_ext" id="m|v)q:,F4om_rc6-e(ql">
                                              <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="H$3hkrvIhp$]3-H:I8*(">
                                                  <field name="oid">sonoff.0.Spühlmaschine.ENERGY_Power</field>
                                                </shadow>
                                              </value>
                                              <statement name="STATEMENT">
                                                <block type="debug" id="p3otZ0Ue+aic5y)*qagV" disabled="true">
                                                  <field name="Severity">error</field>
                                                  <value name="TEXT">
                                                    <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="3ifrWq./6CI{ImTjIVFF">
                                                      <field name="TEXT">test</field>
                                                    </shadow>
                                                    <block type="text_join" id="eM+{y.ZWwk:y6S!X$uXV">
                                                      <mutation items="5"></mutation>
                                                      <value name="ADD0">
                                                        <block type="text" id="7!y]j(dE=:Mhy54F-`T`">
                                                          <field name="TEXT">Aktuelle Leistung:  </field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD1">
                                                        <block type="get_value" id="eStx6Z7AQaakv7uuDN#h">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">sonoff.0.Waschmaschine.ENERGY_Power</field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD2">
                                                        <block type="time_get" id="{Y)!68k#A!4?U.8]sSGN">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" format="true" language="false"></mutation>
                                                          <field name="OPTION">custom</field>
                                                          <field name="FORMAT">\n</field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD3">
                                                        <block type="text" id="Gz32orjw-zzQz7nvG$`4">
                                                          <field name="TEXT">Zählerstand:  </field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD4">
                                                        <block type="get_value" id="~EQ5i8B]o]1+9p?h?mly">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">javascript.0.Variablen.SpuelmaZaehler</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="controls_if" id=".OPb[gmyqdYk8a-?FUqL" disabled="true">
                                                      <value name="IF0">
                                                        <block type="logic_operation" id="b^@Y(bi#Ex}7H*UK8u#g" inline="false">
                                                          <field name="OP">AND</field>
                                                          <value name="A">
                                                            <block type="logic_compare" id="AKPkm*qa*J{8tPZ%ERAF">
                                                              <field name="OP">LTE</field>
                                                              <value name="A">
                                                                <block type="on_source" id="(3b1pLSM=k6,6sMpLzTw">
                                                                  <field name="ATTR">oldState.val</field>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <block type="math_number" id="8w3Exow=PNqj=Bt0_gSn">
                                                                  <field name="NUM">3</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="logic_compare" id="XQ|{5n.F[WvSNm*{mm=w">
                                                              <field name="OP">GTE</field>
                                                              <value name="A">
                                                                <block type="get_value" id="L)RiJ/%`okfa-l#`$9;U">
                                                                  <field name="ATTR">val</field>
                                                                  <field name="OID">sonoff.0.Waschmaschine.ENERGY_Power</field>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <block type="math_number" id="pMjP`y}Npk/q)VSFLv,~">
                                                                  <field name="NUM">18</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <statement name="DO0">
                                                        <block type="variables_set" id="rQiXWo2fiv){I^C}`ffb">
                                                          <field name="VAR" id="eDU:(iyKogwdk(uJ#v=8">SpuelmaVerzoegerungAktiv</field>
                                                          <value name="VALUE">
                                                            <block type="logic_boolean" id="-1~^EYz^knC8G{YQ02$:">
                                                              <field name="BOOL">TRUE</field>
                                                            </block>
                                                          </value>
                                                          <next>
                                                            <block type="debug" id="dld)E_WrMNZS=a7Tw-^1">
                                                              <field name="Severity">warn</field>
                                                              <value name="TEXT">
                                                                <shadow type="text" id="`1WuF9vR+S|3)WXNsXRL">
                                                                  <field name="TEXT">***Starte Verzögerung</field>
                                                                </shadow>
                                                              </value>
                                                              <next>
                                                                <block type="timeouts_cleartimeout" id="*2bYxF_KkvjuukbeG(Gg">
                                                                  <field name="NAME">Einschaltverzoegerung</field>
                                                                  <next>
                                                                    <block type="timeouts_settimeout" id="ApTRnB=Drq2%Tu)/w7{C">
                                                                      <field name="NAME">Einschaltverzoegerung</field>
                                                                      <field name="DELAY">10</field>
                                                                      <field name="UNIT">sec</field>
                                                                      <statement name="STATEMENT">
                                                                        <block type="variables_set" id="whRgs!/iRnR_[;o^Y_0*">
                                                                          <field name="VAR" id="eDU:(iyKogwdk(uJ#v=8">SpuelmaVerzoegerungAktiv</field>
                                                                          <value name="VALUE">
                                                                            <block type="logic_boolean" id="z|6B7%$PfNm3w#G?Jd{f">
                                                                              <field name="BOOL">FALSE</field>
                                                                            </block>
                                                                          </value>
                                                                          <next>
                                                                            <block type="debug" id="uo:O;yS#V^Sm:RKk:9f)">
                                                                              <field name="Severity">warn</field>
                                                                              <value name="TEXT">
                                                                                <shadow type="text" id="uwqVI{~F,a8Q8E/*QTce">
                                                                                  <field name="TEXT">***Beende Verzögerung</field>
                                                                                </shadow>
                                                                              </value>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </statement>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </statement>
                                                      <next>
                                                        <block type="comment" id="Od8P;f=Ahd~Oc,giwr2x">
                                                          <field name="COMMENT">Ab hier wird gewaschen</field>
                                                          <next>
                                                            <block type="controls_if" id="#zA4Kd6F6^,~4xXh0O|.">
                                                              <value name="IF0">
                                                                <block type="logic_operation" id="eKlVY%ZzI.6NeCC7RfZ8" inline="false">
                                                                  <field name="OP">AND</field>
                                                                  <value name="A">
                                                                    <block type="logic_compare" id="6vFT@3bQ~`[1jTZ`b`Od">
                                                                      <field name="OP">GT</field>
                                                                      <value name="A">
                                                                        <block type="get_value" id="e#Ljh[h5j#3I5:NB@%;~">
                                                                          <field name="ATTR">val</field>
                                                                          <field name="OID">sonoff.0.Spühlmaschine.ENERGY_Power</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="B">
                                                                        <block type="math_number" id="I#HAP[bGlgaYQ+^IK@}o">
                                                                          <field name="NUM">35</field>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <block type="logic_operation" id="P7,!zcq:IXvk%|y^)A--" inline="false">
                                                                      <field name="OP">AND</field>
                                                                      <value name="A">
                                                                        <block type="logic_compare" id="AdBv+wnLZqE6{|{biw|U">
                                                                          <field name="OP">EQ</field>
                                                                          <value name="A">
                                                                            <block type="get_value" id="^n4Lja5$n~7{`_4Vs^^I">
                                                                              <field name="ATTR">val</field>
                                                                              <field name="OID">javascript.0.POW.SpuelmaAN</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="B">
                                                                            <block type="logic_boolean" id="6t?Klsj(qNwesNFTl}=j">
                                                                              <field name="BOOL">FALSE</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                      <value name="B">
                                                                        <block type="logic_compare" id="va|tpj,U^=}|lgCjxkBw">
                                                                          <field name="OP">EQ</field>
                                                                          <value name="A">
                                                                            <block type="variables_get" id="g?,=0dYW1gFuLw7cywPA">
                                                                              <field name="VAR" id="eDU:(iyKogwdk(uJ#v=8">SpuelmaVerzoegerungAktiv</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="B">
                                                                            <block type="logic_boolean" id="Dxo8]?oH[6O0Kb=_:]Wq">
                                                                              <field name="BOOL">FALSE</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <statement name="DO0">
                                                                <block type="control" id="E!C2o?%|([kFG1--/7Lj">
                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                  <field name="OID">javascript.0.POW.SpuelmaAN</field>
                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                  <value name="VALUE">
                                                                    <block type="logic_boolean" id="DUIeA2!B3-5d*:ADdEb{">
                                                                      <field name="BOOL">TRUE</field>
                                                                    </block>
                                                                  </value>
                                                                  <next>
                                                                    <block type="procedures_callnoreturn" id="ZKJ^Z,T62:Vq)4K?wcdW">
                                                                      <mutation name="Melden">
                                                                        <arg name="Meldetext"></arg>
                                                                      </mutation>
                                                                      <value name="ARG0">
                                                                        <block type="text" id="F5i*yktx;6[+Xg7,{;Ov">
                                                                          <field name="TEXT">Spülmaschine LÃUFT!</field>
                                                                        </block>
                                                                      </value>
                                                                      <next>
                                                                        <block type="comment" id="Q8,yuD??T`7ptRF.4~wj">
                                                                          <field name="COMMENT">Ab hier "Pause" oder "Ende" erkennen</field>
                                                                          <next>
                                                                            <block type="comment" id="^kYZ1OXg/$d5*?#,j]Th">
                                                                              <field name="COMMENT">Maschine laeuft. Jetzt wird periodisch </field>
                                                                              <next>
                                                                                <block type="comment" id="EFQ9(D78Wdz|yx:hN{v6">
                                                                                  <field name="COMMENT">alle 10 Sekunden geprueft ob Leistung  &lt; 15 Watt</field>
                                                                                  <next>
                                                                                    <block type="timeouts_setinterval" id="XV32C3CNcm8xNMfa.ET!">
                                                                                      <field name="NAME">Intervall</field>
                                                                                      <field name="INTERVAL">10</field>
                                                                                      <field name="UNIT">sec</field>
                                                                                      <statement name="STATEMENT">
                                                                                        <block type="debug" id="e?K3Jx=iP4D!L:2#,ZVL" disabled="true">
                                                                                          <field name="Severity">warn</field>
                                                                                          <value name="TEXT">
                                                                                            <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="3ifrWq./6CI{ImTjIVFF">
                                                                                              <field name="TEXT">test</field>
                                                                                            </shadow>
                                                                                            <block type="text_join" id="2TmK2|(IH),nu-8ayk8,">
                                                                                              <mutation items="5"></mutation>
                                                                                              <value name="ADD0">
                                                                                                <block type="text" id="^*Ect$xL+~qh/Jttx.mt">
                                                                                                  <field name="TEXT">Zyklisch Aktuelle Leistung:  </field>
                                                                                                </block>
                                                                                              </value>
                                                                                              <value name="ADD1">
                                                                                                <block type="get_value" id="*ceqT[7M3fy`2D^bzZ4}">
                                                                                                  <field name="ATTR">val</field>
                                                                                                  <field name="OID">sonoff.0.Spühlmaschine.ENERGY_Power</field>
                                                                                                </block>
                                                                                              </value>
                                                                                              <value name="ADD2">
                                                                                                <block type="time_get" id="K!?IMD-ZKRl_$Hr=X3,0">
                                                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" format="true" language="false"></mutation>
                                                                                                  <field name="OPTION">custom</field>
                                                                                                  <field name="FORMAT">\n</field>
                                                                                                </block>
                                                                                              </value>
                                                                                              <value name="ADD3">
                                                                                                <block type="text" id="LBa%X4hqR#/)^VX9DWGL">
                                                                                                  <field name="TEXT">Zaehlerstand:  </field>
                                                                                                </block>
                                                                                              </value>
                                                                                              <value name="ADD4">
                                                                                                <block type="get_value" id="a=[mI6Nht$,#mSmD#:}P">
                                                                                                  <field name="ATTR">val</field>
                                                                                                  <field name="OID">javascript.0.Variablen.SpuelmaZaehler</field>
                                                                                                </block>
                                                                                              </value>
                                                                                            </block>
                                                                                          </value>
                                                                                          <next>
                                                                                            <block type="controls_if" id="In%ioU5iEAFuAFO#(=L-">
                                                                                              <mutation elseif="1"></mutation>
                                                                                              <value name="IF0">
                                                                                                <block type="logic_operation" id="a=_%$?pGPyZg:[:hla(u" inline="false">
                                                                                                  <field name="OP">AND</field>
                                                                                                  <value name="A">
                                                                                                    <block type="logic_compare" id="RPz.XcaqJ}V@/SM.?}Q}">
                                                                                                      <field name="OP">EQ</field>
                                                                                                      <value name="A">
                                                                                                        <block type="get_value" id="G)N?nqy#h6WA(r.Om!~{">
                                                                                                          <field name="ATTR">val</field>
                                                                                                          <field name="OID">javascript.0.POW.SpuelmaAN</field>
                                                                                                        </block>
                                                                                                      </value>
                                                                                                      <value name="B">
                                                                                                        <block type="logic_boolean" id="qp{bV0h0K414/PR_`b?[">
                                                                                                          <field name="BOOL">TRUE</field>
                                                                                                        </block>
                                                                                                      </value>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                  <value name="B">
                                                                                                    <block type="logic_compare" id="bL3JAh)Y~7~5u!Jz^YGS">
                                                                                                      <field name="OP">LT</field>
                                                                                                      <value name="A">
                                                                                                        <block type="get_value" id="SD0,Rxl#*vX+Dw_5@M/U">
                                                                                                          <field name="ATTR">val</field>
                                                                                                          <field name="OID">sonoff.0.Spühlmaschine.ENERGY_Power</field>
                                                                                                        </block>
                                                                                                      </value>
                                                                                                      <value name="B">
                                                                                                        <block type="math_number" id="*+52d)~L1R!UO3i+C0tF">
                                                                                                          <field name="NUM">12</field>
                                                                                                        </block>
                                                                                                      </value>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                </block>
                                                                                              </value>
                                                                                              <statement name="DO0">
                                                                                                <block type="comment" id="M7.~:~mV$PrhbgDO*gsl">
                                                                                                  <field name="COMMENT">Zaehler um 1 erhoehen weil Leistung &lt; 15 Watt</field>
                                                                                                  <next>
                                                                                                    <block type="control" id="Xmm`J)~83y=Zc`Oks..g">
                                                                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                      <field name="OID">javascript.0.Variablen.SpuelmaZaehler</field>
                                                                                                      <field name="WITH_DELAY">FALSE</field>
                                                                                                      <value name="VALUE">
                                                                                                        <block type="math_arithmetic" id="Vw`3`Q^nNNVR$qXU{uoE">
                                                                                                          <field name="OP">ADD</field>
                                                                                                          <value name="A">
                                                                                                            <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="oC`YC/L4OS:|F,4f/B,e">
                                                                                                              <field name="NUM">1</field>
                                                                                                            </shadow>
                                                                                                            <block type="get_value" id="=L_xw%f}d!Rw^+E%YwKN">
                                                                                                              <field name="ATTR">val</field>
                                                                                                              <field name="OID">javascript.0.Variablen.SpuelmaZaehler</field>
                                                                                                            </block>
                                                                                                          </value>
                                                                                                          <value name="B">
                                                                                                            <shadow type="math_number" id="ZA_xfDJy7{`F8gK]X|*[">
                                                                                                              <field name="NUM">1</field>
                                                                                                            </shadow>
                                                                                                          </value>
                                                                                                        </block>
                                                                                                      </value>
                                                                                                    </block>
                                                                                                  </next>
                                                                                                </block>
                                                                                              </statement>
                                                                                              <value name="IF1">
                                                                                                <block type="logic_operation" id="c{k=_lt_Gqj6AJyDI34U" inline="false">
                                                                                                  <field name="OP">AND</field>
                                                                                                  <value name="A">
                                                                                                    <block type="logic_compare" id="SCt?CI18R=x/10pgwA%R">
                                                                                                      <field name="OP">EQ</field>
                                                                                                      <value name="A">
                                                                                                        <block type="get_value" id="F)W3^Z0=-0r~/vS%c|yf">
                                                                                                          <field name="ATTR">val</field>
                                                                                                          <field name="OID">javascript.0.POW.SpuelmaAN</field>
                                                                                                        </block>
                                                                                                      </value>
                                                                                                      <value name="B">
                                                                                                        <block type="logic_boolean" id="lRB=B_Bx~U[.h_LTw1we">
                                                                                                          <field name="BOOL">TRUE</field>
                                                                                                        </block>
                                                                                                      </value>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                  <value name="B">
                                                                                                    <block type="logic_compare" id="QksT|8c!~HEc)=P8a$V6">
                                                                                                      <field name="OP">GT</field>
                                                                                                      <value name="A">
                                                                                                        <block type="get_value" id="1JC.T1aB}:ilkI8U2/nQ">
                                                                                                          <field name="ATTR">val</field>
                                                                                                          <field name="OID">sonoff.0.Spühlmaschine.ENERGY_Power</field>
                                                                                                        </block>
                                                                                                      </value>
                                                                                                      <value name="B">
                                                                                                        <block type="math_number" id="cb*h(]6=9yd64aS:V21V">
                                                                                                          <field name="NUM">38</field>
                                                                                                        </block>
                                                                                                      </value>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                </block>
                                                                                              </value>
                                                                                              <statement name="DO1">
                                                                                                <block type="comment" id="^-sGN~PYX|;+F+=wVYt(">
                                                                                                  <field name="COMMENT">Schwelle ueberschritten, Maschine laeuft noch</field>
                                                                                                  <next>
                                                                                                    <block type="comment" id="WAV82BiJKp3K7b]f3Li$">
                                                                                                      <field name="COMMENT">darum Zaehler wieder auf 0 setzen</field>
                                                                                                      <next>
                                                                                                        <block type="control" id="CFvn{ed0OMWsphQ.]Q2D">
                                                                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                          <field name="OID">javascript.0.Variablen.SpuelmaZaehler</field>
                                                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                                                          <value name="VALUE">
                                                                                                            <block type="math_number" id="mzl}/VaPq~f%z[No/+G}">
                                                                                                              <field name="NUM">0</field>
                                                                                                            </block>
                                                                                                          </value>
                                                                                                        </block>
                                                                                                      </next>
                                                                                                    </block>
                                                                                                  </next>
                                                                                                </block>
                                                                                              </statement>
                                                                                            </block>
                                                                                          </next>
                                                                                        </block>
                                                                                      </statement>
                                                                                    </block>
                                                                                  </next>
                                                                                </block>
                                                                              </next>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </statement>
                                                              <next>
                                                                <block type="comment" id="MO:tcQW{k8-F?qh$AX0P">
                                                                  <field name="COMMENT">Wenn Zaehler &gt; 30 (30 x 10 Sekunden), </field>
                                                                  <next>
                                                                    <block type="comment" id="NMulWW1R$ZU1O^=zD@x?">
                                                                      <field name="COMMENT">wurde das Ende wurde erkannt</field>
                                                                      <next>
                                                                        <block type="controls_if" id="J~G~OsPP[[.(Oq$kqV]Z">
                                                                          <value name="IF0">
                                                                            <block type="logic_operation" id=".(sT,{y+{OOyU|9eZq!r" inline="false">
                                                                              <field name="OP">AND</field>
                                                                              <value name="A">
                                                                                <block type="logic_compare" id="=y4fjU]UmjDw+*lpHIfQ">
                                                                                  <field name="OP">GT</field>
                                                                                  <value name="A">
                                                                                    <block type="get_value" id="L0*-_z7P^8PW%6NY|:2?">
                                                                                      <field name="ATTR">val</field>
                                                                                      <field name="OID">javascript.0.Variablen.SpuelmaZaehler</field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="B">
                                                                                    <block type="math_number" id="wCd;p)YQ*APo!atkQ~dI">
                                                                                      <field name="NUM">75</field>
                                                                                    </block>
                                                                                  </value>
                                                                                </block>
                                                                              </value>
                                                                              <value name="B">
                                                                                <block type="logic_compare" id="b2t8g(g{MT[Ov9Xo$HV=">
                                                                                  <field name="OP">EQ</field>
                                                                                  <value name="A">
                                                                                    <block type="get_value" id=".DqC/G)=cm7M,jI-f}-o">
                                                                                      <field name="ATTR">val</field>
                                                                                      <field name="OID">javascript.0.POW.SpuelmaAN</field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="B">
                                                                                    <block type="logic_boolean" id="6C#woUlUr8O]HtJ):Drf">
                                                                                      <field name="BOOL">TRUE</field>
                                                                                    </block>
                                                                                  </value>
                                                                                </block>
                                                                              </value>
                                                                            </block>
                                                                          </value>
                                                                          <statement name="DO0">
                                                                            <block type="comment" id=",mX3hAKq.@#YQsQWJtzd">
                                                                              <field name="COMMENT">Verbrauch in kWh auf 2 Nachkommastellen runden</field>
                                                                              <next>
                                                                                <block type="variables_set" id="Z,rJAd!;I/c0+;|+leKB">
                                                                                  <field name="VAR" id="H?Yq0BJ!zZ_^*Q$OF$bo">SpuelmaEnergyToday</field>
                                                                                  <value name="VALUE">
                                                                                    <block type="math_arithmetic" id="0`0.3iq:ea1!uzl)l[L0">
                                                                                      <field name="OP">DIVIDE</field>
                                                                                      <value name="A">
                                                                                        <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="YCJ?Nzg[9*Uwp%ONL^gj">
                                                                                          <field name="NUM">1</field>
                                                                                        </shadow>
                                                                                        <block type="math_round" id="I2]cIrexlDHR8Ge+$YVM">
                                                                                          <field name="OP">ROUND</field>
                                                                                          <value name="NUM">
                                                                                            <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="7{o**Z/AJ^,b-Pb}.l~?">
                                                                                              <field name="NUM">3.1</field>
                                                                                            </shadow>
                                                                                            <block type="math_arithmetic" id="Rxo-WixlL`-:kv-0Lg0p">
                                                                                              <field name="OP">MULTIPLY</field>
                                                                                              <value name="A">
                                                                                                <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="4Qs-LB;83N)%F/~#nt.B">
                                                                                                  <field name="NUM">1</field>
                                                                                                </shadow>
                                                                                                <block type="get_value" id="Ac6ea|3H-em0jz-`W|-7">
                                                                                                  <field name="ATTR">val</field>
                                                                                                  <field name="OID">sonoff.0.Spühlmaschine.ENERGY_Today</field>
                                                                                                </block>
                                                                                              </value>
                                                                                              <value name="B">
                                                                                                <shadow type="math_number" id="Ej73GN+2Iapwc,2mKIdg">
                                                                                                  <field name="NUM">100</field>
                                                                                                </shadow>
                                                                                              </value>
                                                                                            </block>
                                                                                          </value>
                                                                                        </block>
                                                                                      </value>
                                                                                      <value name="B">
                                                                                        <shadow type="math_number" id="-u8|;7^uJRtipB@x_7Vb">
                                                                                          <field name="NUM">100</field>
                                                                                        </shadow>
                                                                                      </value>
                                                                                    </block>
                                                                                  </value>
                                                                                  <next>
                                                                                    <block type="comment" id="ya]`WZ:JGO.u$ltyV-1?">
                                                                                      <field name="COMMENT">Kosten berechnen (0,47Euro/kWh)</field>
                                                                                      <next>
                                                                                        <block type="variables_set" id="y0aN.phPl]olYk@NfPZ;">
                                                                                          <field name="VAR" id="g@8Zqg%)I@g0%8,P8fT1">SpuelmaZwischensumme</field>
                                                                                          <value name="VALUE">
                                                                                            <block type="math_arithmetic" id="oQM:sfgPn@}|O[^uN)[~">
                                                                                              <field name="OP">MULTIPLY</field>
                                                                                              <value name="A">
                                                                                                <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="|d151rU%IdHyFN(`q^0~">
                                                                                                  <field name="NUM">1</field>
                                                                                                </shadow>
                                                                                                <block type="variables_get" id="`BdAgr:7kLRMk~w?RIOj">
                                                                                                  <field name="VAR" id="H?Yq0BJ!zZ_^*Q$OF$bo">SpuelmaEnergyToday</field>
                                                                                                </block>
                                                                                              </value>
                                                                                              <value name="B">
                                                                                                <shadow type="math_number" id="{Gk2ie7/:RxhcpZPG_q2">
                                                                                                  <field name="NUM">0.47</field>
                                                                                                </shadow>
                                                                                              </value>
                                                                                            </block>
                                                                                          </value>
                                                                                          <next>
                                                                                            <block type="comment" id="=ih~ONA)NiQ%^dWCj8Wb">
                                                                                              <field name="COMMENT">Betrag auf 2 Nachkommastellen runden</field>
                                                                                              <next>
                                                                                                <block type="variables_set" id="YIOg]|,PD9:|nD6|96Yc">
                                                                                                  <field name="VAR" id="n`]^(OBF3H5whqiy-K6e">SpuelmaKostenToday</field>
                                                                                                  <value name="VALUE">
                                                                                                    <block type="math_arithmetic" id="X#w:{X[oB%R;$nS0ICs4">
                                                                                                      <field name="OP">DIVIDE</field>
                                                                                                      <value name="A">
                                                                                                        <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="YCJ?Nzg[9*Uwp%ONL^gj">
                                                                                                          <field name="NUM">1</field>
                                                                                                        </shadow>
                                                                                                        <block type="math_round" id="fOW~*FJmQtGeXn2mj1t{">
                                                                                                          <field name="OP">ROUND</field>
                                                                                                          <value name="NUM">
                                                                                                            <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="7{o**Z/AJ^,b-Pb}.l~?">
                                                                                                              <field name="NUM">3.1</field>
                                                                                                            </shadow>
                                                                                                            <block type="math_arithmetic" id="n|RacA$|!-!xb[Gc/DxQ">
                                                                                                              <field name="OP">MULTIPLY</field>
                                                                                                              <value name="A">
                                                                                                                <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="4Qs-LB;83N)%F/~#nt.B">
                                                                                                                  <field name="NUM">1</field>
                                                                                                                </shadow>
                                                                                                                <block type="variables_get" id="kix-b|P+34lEXy:e.Sqc">
                                                                                                                  <field name="VAR" id="g@8Zqg%)I@g0%8,P8fT1">SpuelmaZwischensumme</field>
                                                                                                                </block>
                                                                                                              </value>
                                                                                                              <value name="B">
                                                                                                                <shadow type="math_number" id="ax3}qczLK6n!7N*+XlAw">
                                                                                                                  <field name="NUM">100</field>
                                                                                                                </shadow>
                                                                                                              </value>
                                                                                                            </block>
                                                                                                          </value>
                                                                                                        </block>
                                                                                                      </value>
                                                                                                      <value name="B">
                                                                                                        <shadow type="math_number" id="UPD-4-3c,Ts8#1fX?i#5">
                                                                                                          <field name="NUM">100</field>
                                                                                                        </shadow>
                                                                                                      </value>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                  <next>
                                                                                                    <block type="comment" id="ltvKhNq~uIyjg04mG5WY">
                                                                                                      <field name="COMMENT">Fertigmeldung mit Verbrauch und Kosten via Telegram senden</field>
                                                                                                      <next>
                                                                                                        <block type="procedures_callnoreturn" id="))8WoF*n#J2(boyH{_T9">
                                                                                                          <mutation name="Melden">
                                                                                                            <arg name="Meldetext"></arg>
                                                                                                          </mutation>
                                                                                                          <value name="ARG0">
                                                                                                            <block type="text_join" id="dPQ@U19JA2ApS}Sal#[F" inline="false">
                                                                                                              <mutation items="8"></mutation>
                                                                                                              <value name="ADD0">
                                                                                                                <block type="text" id="+Ss`gHGZE?+:fqA@C[u7">
                                                                                                                  <field name="TEXT">Spülmaschine ist FERTIG! </field>
                                                                                                                </block>
                                                                                                              </value>
                                                                                                              <value name="ADD1">
                                                                                                                <block type="time_get" id="[wOX*9hGy/Pjcv[FMa)/">
                                                                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" format="true" language="false"></mutation>
                                                                                                                  <field name="OPTION">custom</field>
                                                                                                                  <field name="FORMAT">\n</field>
                                                                                                                </block>
                                                                                                              </value>
                                                                                                              <value name="ADD2">
                                                                                                                <block type="text" id="=-4:@}^NcHxGD!(/Ey-l">
                                                                                                                  <field name="TEXT">Stromverbrauch / Kosten heute: </field>
                                                                                                                </block>
                                                                                                              </value>
                                                                                                              <value name="ADD3">
                                                                                                                <block type="time_get" id="_7]^D@aNHqp8Mu{~oqfS">
                                                                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" format="true" language="false"></mutation>
                                                                                                                  <field name="OPTION">custom</field>
                                                                                                                  <field name="FORMAT">\n</field>
                                                                                                                </block>
                                                                                                              </value>
                                                                                                              <value name="ADD4">
                                                                                                                <block type="variables_get" id="[MJbgq@G:JJ`:V9s(]K5">
                                                                                                                  <field name="VAR" id="H?Yq0BJ!zZ_^*Q$OF$bo">SpuelmaEnergyToday</field>
                                                                                                                </block>
                                                                                                              </value>
                                                                                                              <value name="ADD5">
                                                                                                                <block type="text" id="dUpd)Y=jBF27=AC8*.4b">
                                                                                                                  <field name="TEXT"> kWh / </field>
                                                                                                                </block>
                                                                                                              </value>
                                                                                                              <value name="ADD6">
                                                                                                                <block type="variables_get" id="*!U((@+{0@l(e#frx`oP">
                                                                                                                  <field name="VAR" id="n`]^(OBF3H5whqiy-K6e">SpuelmaKostenToday</field>
                                                                                                                </block>
                                                                                                              </value>
                                                                                                              <value name="ADD7">
                                                                                                                <block type="text" id="n|D5?)^|v{t@/M*bxu,z">
                                                                                                                  <field name="TEXT">Euro</field>
                                                                                                                </block>
                                                                                                              </value>
                                                                                                            </block>
                                                                                                          </value>
                                                                                                          <next>
                                                                                                            <block type="comment" id=",WsvipX(Riy[QR[X5V?3">
                                                                                                              <field name="COMMENT">Maschine ausschalten und Zaehler zuruecksetzen</field>
                                                                                                              <next>
                                                                                                                <block type="control" id="iG@4UuVEIwY[hkHrz^f{">
                                                                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                                  <field name="OID">javascript.0.POW.SpuelmaAN</field>
                                                                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                                                                  <value name="VALUE">
                                                                                                                    <block type="logic_boolean" id="-plv%7s2k9%k;R,T!c4:">
                                                                                                                      <field name="BOOL">FALSE</field>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                  <next>
                                                                                                                    <block type="control" id="|L=|I6@%[|)MHL,Ug121">
                                                                                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                                      <field name="OID">javascript.0.Variablen.SpuelmaZaehler</field>
                                                                                                                      <field name="WITH_DELAY">FALSE</field>
                                                                                                                      <value name="VALUE">
                                                                                                                        <block type="math_number" id="]?dq*EMMd[$S}4sKgY%.">
                                                                                                                          <field name="NUM">0</field>
                                                                                                                        </block>
                                                                                                                      </value>
                                                                                                                      <next>
                                                                                                                        <block type="timeouts_clearinterval" id="VBU0J{H-A5Y8C,Hd,h-W">
                                                                                                                          <field name="NAME">Intervall</field>
                                                                                                                          <next>
                                                                                                                            <block type="on_ext" id="t2s+pGwSVXrE4L6wLf8y">
                                                                                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                                                                                                              <field name="CONDITION">false</field>
                                                                                                                              <field name="ACK_CONDITION"></field>
                                                                                                                              <value name="OID0">
                                                                                                                                <shadow type="field_oid" id="$USo0u@YH7s.bh~s9m5L">
                                                                                                                                  <field name="oid">javascript.0.POW.SpuelmaAN</field>
                                                                                                                                </shadow>
                                                                                                                              </value>
                                                                                                                              <statement name="STATEMENT">
                                                                                                                                <block type="control" id="5:CLKxSk)|_8p+}tpVgC" disabled="true">
                                                                                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                                                  <field name="OID">sonoff.0.Spühlmaschine.POWER</field>
                                                                                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                                                                                  <value name="VALUE">
                                                                                                                                    <block type="logic_boolean" id="bDN;BfTjS/CL+GrW5]J:">
                                                                                                                                      <field name="BOOL">FALSE</field>
                                                                                                                                    </block>
                                                                                                                                  </value>
                                                                                                                                </block>
                                                                                                                              </statement>
                                                                                                                            </block>
                                                                                                                          </next>
                                                                                                                        </block>
                                                                                                                      </next>
                                                                                                                    </block>
                                                                                                                  </next>
                                                                                                                </block>
                                                                                                              </next>
                                                                                                            </block>
                                                                                                          </next>
                                                                                                        </block>
                                                                                                      </next>
                                                                                                    </block>
                                                                                                  </next>
                                                                                                </block>
                                                                                              </next>
                                                                                            </block>
                                                                                          </next>
                                                                                        </block>
                                                                                      </next>
                                                                                    </block>
                                                                                  </next>
                                                                                </block>
                                                                              </next>
                                                                            </block>
                                                                          </statement>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </statement>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </next>
        </block>
        <block type="comment" id="w7z#aAX?/DGjJMy(HBgO" x="1537" y="-1088">
          <field name="COMMENT">Anzeige von Leistung und Zählerstand in Logs</field>
        </block>
        <block type="comment" id="rei-]8Y?Hx!V:)O?8(:[" x="1537" y="-938">
          <field name="COMMENT">Start Verzögerung wenn Steckdose geschaltet wird</field>
          <next>
            <block type="comment" id="?m]E$Mf$4{a62u/Jp%/z">
              <field name="COMMENT">Bei mir nicht notwendig, darum deaktiviert</field>
            </block>
          </next>
        </block>
        <block type="comment" id="]7:CHLr;StliP_p0.)}1" x="1537" y="-313">
          <field name="COMMENT">Anzeige von Leistung und Zaehlerstand in Logs</field>
        </block>
        <block type="comment" id="O^kvcRTTvbGha(numsLD" x="1538" y="288">
          <field name="COMMENT">Sollten die Pausen deiner Maschine anders sein,</field>
          <next>
            <block type="comment" id="x?TLezXs0q7mvu.0e|@X">
              <field name="COMMENT">kann ueber den Zaehler die Zeit angepasst werden</field>
            </block>
          </next>
        </block>
        <block type="procedures_defnoreturn" id="l1.gm`YNTt2#Ww;_Stf+" x="738" y="1488">
          <mutation>
            <arg name="Meldetext" varid="_15VMX!RZlq%=ybVAz@@"></arg>
          </mutation>
          <field name="NAME">Melden</field>
          <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
          <statement name="STACK">
            <block type="comment" id="CgkHkrp5c26e`w3uU(i`">
              <field name="COMMENT">Hier wird die Meldung ausgegeben</field>
              <next>
                <block type="debug" id="SYQu;@N0JgE!W~[JZcZ_">
                  <field name="Severity">log</field>
                  <value name="TEXT">
                    <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="4+J8c.^+FrkDV^]dAda-">
                      <field name="TEXT">test</field>
                    </shadow>
                    <block type="variables_get" id="KuX^Hf4/i6gnp|rmq9WR">
                      <field name="VAR" id="_15VMX!RZlq%=ybVAz@@">Meldetext</field>
                    </block>
                  </value>
                  <next>
                    <block type="telegram" id="O_F(%KTLgxT1wAEm@feP">
                      <field name="INSTANCE"></field>
                      <field name="LOG"></field>
                      <field name="SILENT">FALSE</field>
                      <field name="PARSEMODE">default</field>
                      <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field>
                      <value name="MESSAGE">
                        <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="E_N-%Xm!jp|A-Wil^s6U">
                          <field name="TEXT">text</field>
                        </shadow>
                        <block type="variables_get" id="6oEN9IEFsi7M]Rl6D/Xi">
                          <field name="VAR" id="_15VMX!RZlq%=ybVAz@@">Meldetext</field>
                        </block>
                      </value>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </statement>
        </block>
      </xml>
      
      HomoranH Nicht stören
      HomoranH Nicht stören
      Homoran
      Global Moderator Administrators
      schrieb am zuletzt editiert von
      #2

      @derroadrunner sagte in Skript für Spülmaschine mag nicht richtig zu funktionieren:

      Wo ist hier der Fehler?

      wo ist hier das Blockly?
      ich sehe nur eine xml-Datei.
      Mit der kann ich am Handy nichts anfangen.

      kein Support per PN! - Fragen im Forum stellen -
      Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.
      Das Forum freut sich über eine Spende. Benutzt dazu den Spendenbutton oben rechts. Danke!
      der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

      1 Antwort Letzte Antwort
      0
      • D Offline
        D Offline
        derroadrunner
        schrieb am zuletzt editiert von
        #3

        Hallo, gibt es eine andere Möglichkeit als Screenshot das Blockly hier rein zu bringen?

        Raspberry Pi 3+

        HomoranH 1 Antwort Letzte Antwort
        0
        • D derroadrunner

          Hallo, ich benötige bitte für dieses Skript mal Hilfe. Es soll die Meldung Spülmaschine fertig kommen, wenn der Zähler größer als 75 ist. Nun Zählt er schön, aber stoppt das ganze nicht. Erst als ich die Spülmaschine ausgeschaltet habe (der Zähler war mittlerweile auf 822) hat er die Meldung ausgeworfen. Wenn ich den Zähler auf 40 stelle, funktioniert es. Da ist die Spülmaschine aber noch nicht fertig.

          Wo ist hier der Fehler?

          Vielen Dank schon mal.

          <xml xmlns="https://developers.google.com/blockly/xml">
            <variables>
              <variable id="_15VMX!RZlq%=ybVAz@@">Meldetext</variable>
              <variable id="eDU:(iyKogwdk(uJ#v=8">SpuelmaVerzoegerungAktiv</variable>
              <variable id="uVoAQZ6`(wm2IS=4jDRf">SpuelmaGrenzWertInWatt</variable>
              <variable type="timeout" id="Einschaltverzoegerung">Einschaltverzoegerung</variable>
              <variable id="H?Yq0BJ!zZ_^*Q$OF$bo">SpuelmaEnergyToday</variable>
              <variable type="interval" id="Intervall">Intervall</variable>
              <variable id="g@8Zqg%)I@g0%8,P8fT1">SpuelmaZwischensumme</variable>
              <variable id="n`]^(OBF3H5whqiy-K6e">SpuelmaKostenToday</variable>
            </variables>
            <block type="comment" id="){{k{;f|!i!?gII9`zwj" x="746" y="-1497">
              <field name="COMMENT">Initialisierung. Wird nur bei (Neu)Start augefuehrt</field>
              <next>
                <block type="create" id="::^lQfgj!hCg^z3b{ncl">
                  <field name="NAME">Variablen.SpuelmaZaehler</field>
                  <next>
                    <block type="create" id=":XvakORUFJ^_I1/^;0qD">
                      <field name="NAME">POW.SpuelmaAN</field>
                      <next>
                        <block type="control" id=";sX{)v2.LF(@*T{:0Jn)">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">javascript.0.POW.SpuelmaAN</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="8n1CerEfb/!a:kF]n.;P">
                              <field name="BOOL">FALSE</field>
                            </block>
                          </value>
                          <next>
                            <block type="control" id="Y-_]d[36yjOa0%LH9PuX">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">javascript.0.Variablen.SpuelmaZaehler</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="math_number" id="csR_EPjcky-A[)|H5^oB">
                                  <field name="NUM">0</field>
                                </block>
                              </value>
                              <next>
                                <block type="timeouts_clearinterval" id="phO^MXVR-_9fNy?Ouvr(">
                                  <field name="NAME">Intervall</field>
                                  <next>
                                    <block type="variables_set" id="jsP;q}fZB(WVv))@=~@4">
                                      <field name="VAR" id="eDU:(iyKogwdk(uJ#v=8">SpuelmaVerzoegerungAktiv</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id=")vqq*;$=oLq#kNU9WBX{">
                                          <field name="BOOL">FALSE</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="variables_set" id="BYD=sZ^j7=(,}~!O|+wa">
                                          <field name="VAR" id="uVoAQZ6`(wm2IS=4jDRf">SpuelmaGrenzWertInWatt</field>
                                          <value name="VALUE">
                                            <block type="math_number" id="z}4.zbafXpd+$~M7(Kau">
                                              <field name="NUM">35</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="comment" id="D=EVD+t0j;mPSBKtQX3]">
                                              <field name="COMMENT">Zyklisch ausgefuehrtes Script</field>
                                              <next>
                                                <block type="on_ext" id="m|v)q:,F4om_rc6-e(ql">
                                                  <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="H$3hkrvIhp$]3-H:I8*(">
                                                      <field name="oid">sonoff.0.Spühlmaschine.ENERGY_Power</field>
                                                    </shadow>
                                                  </value>
                                                  <statement name="STATEMENT">
                                                    <block type="debug" id="p3otZ0Ue+aic5y)*qagV" disabled="true">
                                                      <field name="Severity">error</field>
                                                      <value name="TEXT">
                                                        <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="3ifrWq./6CI{ImTjIVFF">
                                                          <field name="TEXT">test</field>
                                                        </shadow>
                                                        <block type="text_join" id="eM+{y.ZWwk:y6S!X$uXV">
                                                          <mutation items="5"></mutation>
                                                          <value name="ADD0">
                                                            <block type="text" id="7!y]j(dE=:Mhy54F-`T`">
                                                              <field name="TEXT">Aktuelle Leistung:  </field>
                                                            </block>
                                                          </value>
                                                          <value name="ADD1">
                                                            <block type="get_value" id="eStx6Z7AQaakv7uuDN#h">
                                                              <field name="ATTR">val</field>
                                                              <field name="OID">sonoff.0.Waschmaschine.ENERGY_Power</field>
                                                            </block>
                                                          </value>
                                                          <value name="ADD2">
                                                            <block type="time_get" id="{Y)!68k#A!4?U.8]sSGN">
                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" format="true" language="false"></mutation>
                                                              <field name="OPTION">custom</field>
                                                              <field name="FORMAT">\n</field>
                                                            </block>
                                                          </value>
                                                          <value name="ADD3">
                                                            <block type="text" id="Gz32orjw-zzQz7nvG$`4">
                                                              <field name="TEXT">Zählerstand:  </field>
                                                            </block>
                                                          </value>
                                                          <value name="ADD4">
                                                            <block type="get_value" id="~EQ5i8B]o]1+9p?h?mly">
                                                              <field name="ATTR">val</field>
                                                              <field name="OID">javascript.0.Variablen.SpuelmaZaehler</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="controls_if" id=".OPb[gmyqdYk8a-?FUqL" disabled="true">
                                                          <value name="IF0">
                                                            <block type="logic_operation" id="b^@Y(bi#Ex}7H*UK8u#g" inline="false">
                                                              <field name="OP">AND</field>
                                                              <value name="A">
                                                                <block type="logic_compare" id="AKPkm*qa*J{8tPZ%ERAF">
                                                                  <field name="OP">LTE</field>
                                                                  <value name="A">
                                                                    <block type="on_source" id="(3b1pLSM=k6,6sMpLzTw">
                                                                      <field name="ATTR">oldState.val</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <block type="math_number" id="8w3Exow=PNqj=Bt0_gSn">
                                                                      <field name="NUM">3</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <block type="logic_compare" id="XQ|{5n.F[WvSNm*{mm=w">
                                                                  <field name="OP">GTE</field>
                                                                  <value name="A">
                                                                    <block type="get_value" id="L)RiJ/%`okfa-l#`$9;U">
                                                                      <field name="ATTR">val</field>
                                                                      <field name="OID">sonoff.0.Waschmaschine.ENERGY_Power</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <block type="math_number" id="pMjP`y}Npk/q)VSFLv,~">
                                                                      <field name="NUM">18</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <statement name="DO0">
                                                            <block type="variables_set" id="rQiXWo2fiv){I^C}`ffb">
                                                              <field name="VAR" id="eDU:(iyKogwdk(uJ#v=8">SpuelmaVerzoegerungAktiv</field>
                                                              <value name="VALUE">
                                                                <block type="logic_boolean" id="-1~^EYz^knC8G{YQ02$:">
                                                                  <field name="BOOL">TRUE</field>
                                                                </block>
                                                              </value>
                                                              <next>
                                                                <block type="debug" id="dld)E_WrMNZS=a7Tw-^1">
                                                                  <field name="Severity">warn</field>
                                                                  <value name="TEXT">
                                                                    <shadow type="text" id="`1WuF9vR+S|3)WXNsXRL">
                                                                      <field name="TEXT">***Starte Verzögerung</field>
                                                                    </shadow>
                                                                  </value>
                                                                  <next>
                                                                    <block type="timeouts_cleartimeout" id="*2bYxF_KkvjuukbeG(Gg">
                                                                      <field name="NAME">Einschaltverzoegerung</field>
                                                                      <next>
                                                                        <block type="timeouts_settimeout" id="ApTRnB=Drq2%Tu)/w7{C">
                                                                          <field name="NAME">Einschaltverzoegerung</field>
                                                                          <field name="DELAY">10</field>
                                                                          <field name="UNIT">sec</field>
                                                                          <statement name="STATEMENT">
                                                                            <block type="variables_set" id="whRgs!/iRnR_[;o^Y_0*">
                                                                              <field name="VAR" id="eDU:(iyKogwdk(uJ#v=8">SpuelmaVerzoegerungAktiv</field>
                                                                              <value name="VALUE">
                                                                                <block type="logic_boolean" id="z|6B7%$PfNm3w#G?Jd{f">
                                                                                  <field name="BOOL">FALSE</field>
                                                                                </block>
                                                                              </value>
                                                                              <next>
                                                                                <block type="debug" id="uo:O;yS#V^Sm:RKk:9f)">
                                                                                  <field name="Severity">warn</field>
                                                                                  <value name="TEXT">
                                                                                    <shadow type="text" id="uwqVI{~F,a8Q8E/*QTce">
                                                                                      <field name="TEXT">***Beende Verzögerung</field>
                                                                                    </shadow>
                                                                                  </value>
                                                                                </block>
                                                                              </next>
                                                                            </block>
                                                                          </statement>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </statement>
                                                          <next>
                                                            <block type="comment" id="Od8P;f=Ahd~Oc,giwr2x">
                                                              <field name="COMMENT">Ab hier wird gewaschen</field>
                                                              <next>
                                                                <block type="controls_if" id="#zA4Kd6F6^,~4xXh0O|.">
                                                                  <value name="IF0">
                                                                    <block type="logic_operation" id="eKlVY%ZzI.6NeCC7RfZ8" inline="false">
                                                                      <field name="OP">AND</field>
                                                                      <value name="A">
                                                                        <block type="logic_compare" id="6vFT@3bQ~`[1jTZ`b`Od">
                                                                          <field name="OP">GT</field>
                                                                          <value name="A">
                                                                            <block type="get_value" id="e#Ljh[h5j#3I5:NB@%;~">
                                                                              <field name="ATTR">val</field>
                                                                              <field name="OID">sonoff.0.Spühlmaschine.ENERGY_Power</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="B">
                                                                            <block type="math_number" id="I#HAP[bGlgaYQ+^IK@}o">
                                                                              <field name="NUM">35</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                      <value name="B">
                                                                        <block type="logic_operation" id="P7,!zcq:IXvk%|y^)A--" inline="false">
                                                                          <field name="OP">AND</field>
                                                                          <value name="A">
                                                                            <block type="logic_compare" id="AdBv+wnLZqE6{|{biw|U">
                                                                              <field name="OP">EQ</field>
                                                                              <value name="A">
                                                                                <block type="get_value" id="^n4Lja5$n~7{`_4Vs^^I">
                                                                                  <field name="ATTR">val</field>
                                                                                  <field name="OID">javascript.0.POW.SpuelmaAN</field>
                                                                                </block>
                                                                              </value>
                                                                              <value name="B">
                                                                                <block type="logic_boolean" id="6t?Klsj(qNwesNFTl}=j">
                                                                                  <field name="BOOL">FALSE</field>
                                                                                </block>
                                                                              </value>
                                                                            </block>
                                                                          </value>
                                                                          <value name="B">
                                                                            <block type="logic_compare" id="va|tpj,U^=}|lgCjxkBw">
                                                                              <field name="OP">EQ</field>
                                                                              <value name="A">
                                                                                <block type="variables_get" id="g?,=0dYW1gFuLw7cywPA">
                                                                                  <field name="VAR" id="eDU:(iyKogwdk(uJ#v=8">SpuelmaVerzoegerungAktiv</field>
                                                                                </block>
                                                                              </value>
                                                                              <value name="B">
                                                                                <block type="logic_boolean" id="Dxo8]?oH[6O0Kb=_:]Wq">
                                                                                  <field name="BOOL">FALSE</field>
                                                                                </block>
                                                                              </value>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                  <statement name="DO0">
                                                                    <block type="control" id="E!C2o?%|([kFG1--/7Lj">
                                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                      <field name="OID">javascript.0.POW.SpuelmaAN</field>
                                                                      <field name="WITH_DELAY">FALSE</field>
                                                                      <value name="VALUE">
                                                                        <block type="logic_boolean" id="DUIeA2!B3-5d*:ADdEb{">
                                                                          <field name="BOOL">TRUE</field>
                                                                        </block>
                                                                      </value>
                                                                      <next>
                                                                        <block type="procedures_callnoreturn" id="ZKJ^Z,T62:Vq)4K?wcdW">
                                                                          <mutation name="Melden">
                                                                            <arg name="Meldetext"></arg>
                                                                          </mutation>
                                                                          <value name="ARG0">
                                                                            <block type="text" id="F5i*yktx;6[+Xg7,{;Ov">
                                                                              <field name="TEXT">Spülmaschine LÃUFT!</field>
                                                                            </block>
                                                                          </value>
                                                                          <next>
                                                                            <block type="comment" id="Q8,yuD??T`7ptRF.4~wj">
                                                                              <field name="COMMENT">Ab hier "Pause" oder "Ende" erkennen</field>
                                                                              <next>
                                                                                <block type="comment" id="^kYZ1OXg/$d5*?#,j]Th">
                                                                                  <field name="COMMENT">Maschine laeuft. Jetzt wird periodisch </field>
                                                                                  <next>
                                                                                    <block type="comment" id="EFQ9(D78Wdz|yx:hN{v6">
                                                                                      <field name="COMMENT">alle 10 Sekunden geprueft ob Leistung  &lt; 15 Watt</field>
                                                                                      <next>
                                                                                        <block type="timeouts_setinterval" id="XV32C3CNcm8xNMfa.ET!">
                                                                                          <field name="NAME">Intervall</field>
                                                                                          <field name="INTERVAL">10</field>
                                                                                          <field name="UNIT">sec</field>
                                                                                          <statement name="STATEMENT">
                                                                                            <block type="debug" id="e?K3Jx=iP4D!L:2#,ZVL" disabled="true">
                                                                                              <field name="Severity">warn</field>
                                                                                              <value name="TEXT">
                                                                                                <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="3ifrWq./6CI{ImTjIVFF">
                                                                                                  <field name="TEXT">test</field>
                                                                                                </shadow>
                                                                                                <block type="text_join" id="2TmK2|(IH),nu-8ayk8,">
                                                                                                  <mutation items="5"></mutation>
                                                                                                  <value name="ADD0">
                                                                                                    <block type="text" id="^*Ect$xL+~qh/Jttx.mt">
                                                                                                      <field name="TEXT">Zyklisch Aktuelle Leistung:  </field>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                  <value name="ADD1">
                                                                                                    <block type="get_value" id="*ceqT[7M3fy`2D^bzZ4}">
                                                                                                      <field name="ATTR">val</field>
                                                                                                      <field name="OID">sonoff.0.Spühlmaschine.ENERGY_Power</field>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                  <value name="ADD2">
                                                                                                    <block type="time_get" id="K!?IMD-ZKRl_$Hr=X3,0">
                                                                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" format="true" language="false"></mutation>
                                                                                                      <field name="OPTION">custom</field>
                                                                                                      <field name="FORMAT">\n</field>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                  <value name="ADD3">
                                                                                                    <block type="text" id="LBa%X4hqR#/)^VX9DWGL">
                                                                                                      <field name="TEXT">Zaehlerstand:  </field>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                  <value name="ADD4">
                                                                                                    <block type="get_value" id="a=[mI6Nht$,#mSmD#:}P">
                                                                                                      <field name="ATTR">val</field>
                                                                                                      <field name="OID">javascript.0.Variablen.SpuelmaZaehler</field>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                </block>
                                                                                              </value>
                                                                                              <next>
                                                                                                <block type="controls_if" id="In%ioU5iEAFuAFO#(=L-">
                                                                                                  <mutation elseif="1"></mutation>
                                                                                                  <value name="IF0">
                                                                                                    <block type="logic_operation" id="a=_%$?pGPyZg:[:hla(u" inline="false">
                                                                                                      <field name="OP">AND</field>
                                                                                                      <value name="A">
                                                                                                        <block type="logic_compare" id="RPz.XcaqJ}V@/SM.?}Q}">
                                                                                                          <field name="OP">EQ</field>
                                                                                                          <value name="A">
                                                                                                            <block type="get_value" id="G)N?nqy#h6WA(r.Om!~{">
                                                                                                              <field name="ATTR">val</field>
                                                                                                              <field name="OID">javascript.0.POW.SpuelmaAN</field>
                                                                                                            </block>
                                                                                                          </value>
                                                                                                          <value name="B">
                                                                                                            <block type="logic_boolean" id="qp{bV0h0K414/PR_`b?[">
                                                                                                              <field name="BOOL">TRUE</field>
                                                                                                            </block>
                                                                                                          </value>
                                                                                                        </block>
                                                                                                      </value>
                                                                                                      <value name="B">
                                                                                                        <block type="logic_compare" id="bL3JAh)Y~7~5u!Jz^YGS">
                                                                                                          <field name="OP">LT</field>
                                                                                                          <value name="A">
                                                                                                            <block type="get_value" id="SD0,Rxl#*vX+Dw_5@M/U">
                                                                                                              <field name="ATTR">val</field>
                                                                                                              <field name="OID">sonoff.0.Spühlmaschine.ENERGY_Power</field>
                                                                                                            </block>
                                                                                                          </value>
                                                                                                          <value name="B">
                                                                                                            <block type="math_number" id="*+52d)~L1R!UO3i+C0tF">
                                                                                                              <field name="NUM">12</field>
                                                                                                            </block>
                                                                                                          </value>
                                                                                                        </block>
                                                                                                      </value>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                  <statement name="DO0">
                                                                                                    <block type="comment" id="M7.~:~mV$PrhbgDO*gsl">
                                                                                                      <field name="COMMENT">Zaehler um 1 erhoehen weil Leistung &lt; 15 Watt</field>
                                                                                                      <next>
                                                                                                        <block type="control" id="Xmm`J)~83y=Zc`Oks..g">
                                                                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                          <field name="OID">javascript.0.Variablen.SpuelmaZaehler</field>
                                                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                                                          <value name="VALUE">
                                                                                                            <block type="math_arithmetic" id="Vw`3`Q^nNNVR$qXU{uoE">
                                                                                                              <field name="OP">ADD</field>
                                                                                                              <value name="A">
                                                                                                                <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="oC`YC/L4OS:|F,4f/B,e">
                                                                                                                  <field name="NUM">1</field>
                                                                                                                </shadow>
                                                                                                                <block type="get_value" id="=L_xw%f}d!Rw^+E%YwKN">
                                                                                                                  <field name="ATTR">val</field>
                                                                                                                  <field name="OID">javascript.0.Variablen.SpuelmaZaehler</field>
                                                                                                                </block>
                                                                                                              </value>
                                                                                                              <value name="B">
                                                                                                                <shadow type="math_number" id="ZA_xfDJy7{`F8gK]X|*[">
                                                                                                                  <field name="NUM">1</field>
                                                                                                                </shadow>
                                                                                                              </value>
                                                                                                            </block>
                                                                                                          </value>
                                                                                                        </block>
                                                                                                      </next>
                                                                                                    </block>
                                                                                                  </statement>
                                                                                                  <value name="IF1">
                                                                                                    <block type="logic_operation" id="c{k=_lt_Gqj6AJyDI34U" inline="false">
                                                                                                      <field name="OP">AND</field>
                                                                                                      <value name="A">
                                                                                                        <block type="logic_compare" id="SCt?CI18R=x/10pgwA%R">
                                                                                                          <field name="OP">EQ</field>
                                                                                                          <value name="A">
                                                                                                            <block type="get_value" id="F)W3^Z0=-0r~/vS%c|yf">
                                                                                                              <field name="ATTR">val</field>
                                                                                                              <field name="OID">javascript.0.POW.SpuelmaAN</field>
                                                                                                            </block>
                                                                                                          </value>
                                                                                                          <value name="B">
                                                                                                            <block type="logic_boolean" id="lRB=B_Bx~U[.h_LTw1we">
                                                                                                              <field name="BOOL">TRUE</field>
                                                                                                            </block>
                                                                                                          </value>
                                                                                                        </block>
                                                                                                      </value>
                                                                                                      <value name="B">
                                                                                                        <block type="logic_compare" id="QksT|8c!~HEc)=P8a$V6">
                                                                                                          <field name="OP">GT</field>
                                                                                                          <value name="A">
                                                                                                            <block type="get_value" id="1JC.T1aB}:ilkI8U2/nQ">
                                                                                                              <field name="ATTR">val</field>
                                                                                                              <field name="OID">sonoff.0.Spühlmaschine.ENERGY_Power</field>
                                                                                                            </block>
                                                                                                          </value>
                                                                                                          <value name="B">
                                                                                                            <block type="math_number" id="cb*h(]6=9yd64aS:V21V">
                                                                                                              <field name="NUM">38</field>
                                                                                                            </block>
                                                                                                          </value>
                                                                                                        </block>
                                                                                                      </value>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                  <statement name="DO1">
                                                                                                    <block type="comment" id="^-sGN~PYX|;+F+=wVYt(">
                                                                                                      <field name="COMMENT">Schwelle ueberschritten, Maschine laeuft noch</field>
                                                                                                      <next>
                                                                                                        <block type="comment" id="WAV82BiJKp3K7b]f3Li$">
                                                                                                          <field name="COMMENT">darum Zaehler wieder auf 0 setzen</field>
                                                                                                          <next>
                                                                                                            <block type="control" id="CFvn{ed0OMWsphQ.]Q2D">
                                                                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                              <field name="OID">javascript.0.Variablen.SpuelmaZaehler</field>
                                                                                                              <field name="WITH_DELAY">FALSE</field>
                                                                                                              <value name="VALUE">
                                                                                                                <block type="math_number" id="mzl}/VaPq~f%z[No/+G}">
                                                                                                                  <field name="NUM">0</field>
                                                                                                                </block>
                                                                                                              </value>
                                                                                                            </block>
                                                                                                          </next>
                                                                                                        </block>
                                                                                                      </next>
                                                                                                    </block>
                                                                                                  </statement>
                                                                                                </block>
                                                                                              </next>
                                                                                            </block>
                                                                                          </statement>
                                                                                        </block>
                                                                                      </next>
                                                                                    </block>
                                                                                  </next>
                                                                                </block>
                                                                              </next>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </statement>
                                                                  <next>
                                                                    <block type="comment" id="MO:tcQW{k8-F?qh$AX0P">
                                                                      <field name="COMMENT">Wenn Zaehler &gt; 30 (30 x 10 Sekunden), </field>
                                                                      <next>
                                                                        <block type="comment" id="NMulWW1R$ZU1O^=zD@x?">
                                                                          <field name="COMMENT">wurde das Ende wurde erkannt</field>
                                                                          <next>
                                                                            <block type="controls_if" id="J~G~OsPP[[.(Oq$kqV]Z">
                                                                              <value name="IF0">
                                                                                <block type="logic_operation" id=".(sT,{y+{OOyU|9eZq!r" inline="false">
                                                                                  <field name="OP">AND</field>
                                                                                  <value name="A">
                                                                                    <block type="logic_compare" id="=y4fjU]UmjDw+*lpHIfQ">
                                                                                      <field name="OP">GT</field>
                                                                                      <value name="A">
                                                                                        <block type="get_value" id="L0*-_z7P^8PW%6NY|:2?">
                                                                                          <field name="ATTR">val</field>
                                                                                          <field name="OID">javascript.0.Variablen.SpuelmaZaehler</field>
                                                                                        </block>
                                                                                      </value>
                                                                                      <value name="B">
                                                                                        <block type="math_number" id="wCd;p)YQ*APo!atkQ~dI">
                                                                                          <field name="NUM">75</field>
                                                                                        </block>
                                                                                      </value>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="B">
                                                                                    <block type="logic_compare" id="b2t8g(g{MT[Ov9Xo$HV=">
                                                                                      <field name="OP">EQ</field>
                                                                                      <value name="A">
                                                                                        <block type="get_value" id=".DqC/G)=cm7M,jI-f}-o">
                                                                                          <field name="ATTR">val</field>
                                                                                          <field name="OID">javascript.0.POW.SpuelmaAN</field>
                                                                                        </block>
                                                                                      </value>
                                                                                      <value name="B">
                                                                                        <block type="logic_boolean" id="6C#woUlUr8O]HtJ):Drf">
                                                                                          <field name="BOOL">TRUE</field>
                                                                                        </block>
                                                                                      </value>
                                                                                    </block>
                                                                                  </value>
                                                                                </block>
                                                                              </value>
                                                                              <statement name="DO0">
                                                                                <block type="comment" id=",mX3hAKq.@#YQsQWJtzd">
                                                                                  <field name="COMMENT">Verbrauch in kWh auf 2 Nachkommastellen runden</field>
                                                                                  <next>
                                                                                    <block type="variables_set" id="Z,rJAd!;I/c0+;|+leKB">
                                                                                      <field name="VAR" id="H?Yq0BJ!zZ_^*Q$OF$bo">SpuelmaEnergyToday</field>
                                                                                      <value name="VALUE">
                                                                                        <block type="math_arithmetic" id="0`0.3iq:ea1!uzl)l[L0">
                                                                                          <field name="OP">DIVIDE</field>
                                                                                          <value name="A">
                                                                                            <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="YCJ?Nzg[9*Uwp%ONL^gj">
                                                                                              <field name="NUM">1</field>
                                                                                            </shadow>
                                                                                            <block type="math_round" id="I2]cIrexlDHR8Ge+$YVM">
                                                                                              <field name="OP">ROUND</field>
                                                                                              <value name="NUM">
                                                                                                <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="7{o**Z/AJ^,b-Pb}.l~?">
                                                                                                  <field name="NUM">3.1</field>
                                                                                                </shadow>
                                                                                                <block type="math_arithmetic" id="Rxo-WixlL`-:kv-0Lg0p">
                                                                                                  <field name="OP">MULTIPLY</field>
                                                                                                  <value name="A">
                                                                                                    <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="4Qs-LB;83N)%F/~#nt.B">
                                                                                                      <field name="NUM">1</field>
                                                                                                    </shadow>
                                                                                                    <block type="get_value" id="Ac6ea|3H-em0jz-`W|-7">
                                                                                                      <field name="ATTR">val</field>
                                                                                                      <field name="OID">sonoff.0.Spühlmaschine.ENERGY_Today</field>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                  <value name="B">
                                                                                                    <shadow type="math_number" id="Ej73GN+2Iapwc,2mKIdg">
                                                                                                      <field name="NUM">100</field>
                                                                                                    </shadow>
                                                                                                  </value>
                                                                                                </block>
                                                                                              </value>
                                                                                            </block>
                                                                                          </value>
                                                                                          <value name="B">
                                                                                            <shadow type="math_number" id="-u8|;7^uJRtipB@x_7Vb">
                                                                                              <field name="NUM">100</field>
                                                                                            </shadow>
                                                                                          </value>
                                                                                        </block>
                                                                                      </value>
                                                                                      <next>
                                                                                        <block type="comment" id="ya]`WZ:JGO.u$ltyV-1?">
                                                                                          <field name="COMMENT">Kosten berechnen (0,47Euro/kWh)</field>
                                                                                          <next>
                                                                                            <block type="variables_set" id="y0aN.phPl]olYk@NfPZ;">
                                                                                              <field name="VAR" id="g@8Zqg%)I@g0%8,P8fT1">SpuelmaZwischensumme</field>
                                                                                              <value name="VALUE">
                                                                                                <block type="math_arithmetic" id="oQM:sfgPn@}|O[^uN)[~">
                                                                                                  <field name="OP">MULTIPLY</field>
                                                                                                  <value name="A">
                                                                                                    <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="|d151rU%IdHyFN(`q^0~">
                                                                                                      <field name="NUM">1</field>
                                                                                                    </shadow>
                                                                                                    <block type="variables_get" id="`BdAgr:7kLRMk~w?RIOj">
                                                                                                      <field name="VAR" id="H?Yq0BJ!zZ_^*Q$OF$bo">SpuelmaEnergyToday</field>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                  <value name="B">
                                                                                                    <shadow type="math_number" id="{Gk2ie7/:RxhcpZPG_q2">
                                                                                                      <field name="NUM">0.47</field>
                                                                                                    </shadow>
                                                                                                  </value>
                                                                                                </block>
                                                                                              </value>
                                                                                              <next>
                                                                                                <block type="comment" id="=ih~ONA)NiQ%^dWCj8Wb">
                                                                                                  <field name="COMMENT">Betrag auf 2 Nachkommastellen runden</field>
                                                                                                  <next>
                                                                                                    <block type="variables_set" id="YIOg]|,PD9:|nD6|96Yc">
                                                                                                      <field name="VAR" id="n`]^(OBF3H5whqiy-K6e">SpuelmaKostenToday</field>
                                                                                                      <value name="VALUE">
                                                                                                        <block type="math_arithmetic" id="X#w:{X[oB%R;$nS0ICs4">
                                                                                                          <field name="OP">DIVIDE</field>
                                                                                                          <value name="A">
                                                                                                            <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="YCJ?Nzg[9*Uwp%ONL^gj">
                                                                                                              <field name="NUM">1</field>
                                                                                                            </shadow>
                                                                                                            <block type="math_round" id="fOW~*FJmQtGeXn2mj1t{">
                                                                                                              <field name="OP">ROUND</field>
                                                                                                              <value name="NUM">
                                                                                                                <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="7{o**Z/AJ^,b-Pb}.l~?">
                                                                                                                  <field name="NUM">3.1</field>
                                                                                                                </shadow>
                                                                                                                <block type="math_arithmetic" id="n|RacA$|!-!xb[Gc/DxQ">
                                                                                                                  <field name="OP">MULTIPLY</field>
                                                                                                                  <value name="A">
                                                                                                                    <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="4Qs-LB;83N)%F/~#nt.B">
                                                                                                                      <field name="NUM">1</field>
                                                                                                                    </shadow>
                                                                                                                    <block type="variables_get" id="kix-b|P+34lEXy:e.Sqc">
                                                                                                                      <field name="VAR" id="g@8Zqg%)I@g0%8,P8fT1">SpuelmaZwischensumme</field>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                  <value name="B">
                                                                                                                    <shadow type="math_number" id="ax3}qczLK6n!7N*+XlAw">
                                                                                                                      <field name="NUM">100</field>
                                                                                                                    </shadow>
                                                                                                                  </value>
                                                                                                                </block>
                                                                                                              </value>
                                                                                                            </block>
                                                                                                          </value>
                                                                                                          <value name="B">
                                                                                                            <shadow type="math_number" id="UPD-4-3c,Ts8#1fX?i#5">
                                                                                                              <field name="NUM">100</field>
                                                                                                            </shadow>
                                                                                                          </value>
                                                                                                        </block>
                                                                                                      </value>
                                                                                                      <next>
                                                                                                        <block type="comment" id="ltvKhNq~uIyjg04mG5WY">
                                                                                                          <field name="COMMENT">Fertigmeldung mit Verbrauch und Kosten via Telegram senden</field>
                                                                                                          <next>
                                                                                                            <block type="procedures_callnoreturn" id="))8WoF*n#J2(boyH{_T9">
                                                                                                              <mutation name="Melden">
                                                                                                                <arg name="Meldetext"></arg>
                                                                                                              </mutation>
                                                                                                              <value name="ARG0">
                                                                                                                <block type="text_join" id="dPQ@U19JA2ApS}Sal#[F" inline="false">
                                                                                                                  <mutation items="8"></mutation>
                                                                                                                  <value name="ADD0">
                                                                                                                    <block type="text" id="+Ss`gHGZE?+:fqA@C[u7">
                                                                                                                      <field name="TEXT">Spülmaschine ist FERTIG! </field>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                  <value name="ADD1">
                                                                                                                    <block type="time_get" id="[wOX*9hGy/Pjcv[FMa)/">
                                                                                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" format="true" language="false"></mutation>
                                                                                                                      <field name="OPTION">custom</field>
                                                                                                                      <field name="FORMAT">\n</field>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                  <value name="ADD2">
                                                                                                                    <block type="text" id="=-4:@}^NcHxGD!(/Ey-l">
                                                                                                                      <field name="TEXT">Stromverbrauch / Kosten heute: </field>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                  <value name="ADD3">
                                                                                                                    <block type="time_get" id="_7]^D@aNHqp8Mu{~oqfS">
                                                                                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" format="true" language="false"></mutation>
                                                                                                                      <field name="OPTION">custom</field>
                                                                                                                      <field name="FORMAT">\n</field>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                  <value name="ADD4">
                                                                                                                    <block type="variables_get" id="[MJbgq@G:JJ`:V9s(]K5">
                                                                                                                      <field name="VAR" id="H?Yq0BJ!zZ_^*Q$OF$bo">SpuelmaEnergyToday</field>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                  <value name="ADD5">
                                                                                                                    <block type="text" id="dUpd)Y=jBF27=AC8*.4b">
                                                                                                                      <field name="TEXT"> kWh / </field>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                  <value name="ADD6">
                                                                                                                    <block type="variables_get" id="*!U((@+{0@l(e#frx`oP">
                                                                                                                      <field name="VAR" id="n`]^(OBF3H5whqiy-K6e">SpuelmaKostenToday</field>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                  <value name="ADD7">
                                                                                                                    <block type="text" id="n|D5?)^|v{t@/M*bxu,z">
                                                                                                                      <field name="TEXT">Euro</field>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                </block>
                                                                                                              </value>
                                                                                                              <next>
                                                                                                                <block type="comment" id=",WsvipX(Riy[QR[X5V?3">
                                                                                                                  <field name="COMMENT">Maschine ausschalten und Zaehler zuruecksetzen</field>
                                                                                                                  <next>
                                                                                                                    <block type="control" id="iG@4UuVEIwY[hkHrz^f{">
                                                                                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                                      <field name="OID">javascript.0.POW.SpuelmaAN</field>
                                                                                                                      <field name="WITH_DELAY">FALSE</field>
                                                                                                                      <value name="VALUE">
                                                                                                                        <block type="logic_boolean" id="-plv%7s2k9%k;R,T!c4:">
                                                                                                                          <field name="BOOL">FALSE</field>
                                                                                                                        </block>
                                                                                                                      </value>
                                                                                                                      <next>
                                                                                                                        <block type="control" id="|L=|I6@%[|)MHL,Ug121">
                                                                                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                                          <field name="OID">javascript.0.Variablen.SpuelmaZaehler</field>
                                                                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                                                                          <value name="VALUE">
                                                                                                                            <block type="math_number" id="]?dq*EMMd[$S}4sKgY%.">
                                                                                                                              <field name="NUM">0</field>
                                                                                                                            </block>
                                                                                                                          </value>
                                                                                                                          <next>
                                                                                                                            <block type="timeouts_clearinterval" id="VBU0J{H-A5Y8C,Hd,h-W">
                                                                                                                              <field name="NAME">Intervall</field>
                                                                                                                              <next>
                                                                                                                                <block type="on_ext" id="t2s+pGwSVXrE4L6wLf8y">
                                                                                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                                                                                                                  <field name="CONDITION">false</field>
                                                                                                                                  <field name="ACK_CONDITION"></field>
                                                                                                                                  <value name="OID0">
                                                                                                                                    <shadow type="field_oid" id="$USo0u@YH7s.bh~s9m5L">
                                                                                                                                      <field name="oid">javascript.0.POW.SpuelmaAN</field>
                                                                                                                                    </shadow>
                                                                                                                                  </value>
                                                                                                                                  <statement name="STATEMENT">
                                                                                                                                    <block type="control" id="5:CLKxSk)|_8p+}tpVgC" disabled="true">
                                                                                                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                                                      <field name="OID">sonoff.0.Spühlmaschine.POWER</field>
                                                                                                                                      <field name="WITH_DELAY">FALSE</field>
                                                                                                                                      <value name="VALUE">
                                                                                                                                        <block type="logic_boolean" id="bDN;BfTjS/CL+GrW5]J:">
                                                                                                                                          <field name="BOOL">FALSE</field>
                                                                                                                                        </block>
                                                                                                                                      </value>
                                                                                                                                    </block>
                                                                                                                                  </statement>
                                                                                                                                </block>
                                                                                                                              </next>
                                                                                                                            </block>
                                                                                                                          </next>
                                                                                                                        </block>
                                                                                                                      </next>
                                                                                                                    </block>
                                                                                                                  </next>
                                                                                                                </block>
                                                                                                              </next>
                                                                                                            </block>
                                                                                                          </next>
                                                                                                        </block>
                                                                                                      </next>
                                                                                                    </block>
                                                                                                  </next>
                                                                                                </block>
                                                                                              </next>
                                                                                            </block>
                                                                                          </next>
                                                                                        </block>
                                                                                      </next>
                                                                                    </block>
                                                                                  </next>
                                                                                </block>
                                                                              </statement>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </statement>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </next>
            </block>
            <block type="comment" id="w7z#aAX?/DGjJMy(HBgO" x="1537" y="-1088">
              <field name="COMMENT">Anzeige von Leistung und Zählerstand in Logs</field>
            </block>
            <block type="comment" id="rei-]8Y?Hx!V:)O?8(:[" x="1537" y="-938">
              <field name="COMMENT">Start Verzögerung wenn Steckdose geschaltet wird</field>
              <next>
                <block type="comment" id="?m]E$Mf$4{a62u/Jp%/z">
                  <field name="COMMENT">Bei mir nicht notwendig, darum deaktiviert</field>
                </block>
              </next>
            </block>
            <block type="comment" id="]7:CHLr;StliP_p0.)}1" x="1537" y="-313">
              <field name="COMMENT">Anzeige von Leistung und Zaehlerstand in Logs</field>
            </block>
            <block type="comment" id="O^kvcRTTvbGha(numsLD" x="1538" y="288">
              <field name="COMMENT">Sollten die Pausen deiner Maschine anders sein,</field>
              <next>
                <block type="comment" id="x?TLezXs0q7mvu.0e|@X">
                  <field name="COMMENT">kann ueber den Zaehler die Zeit angepasst werden</field>
                </block>
              </next>
            </block>
            <block type="procedures_defnoreturn" id="l1.gm`YNTt2#Ww;_Stf+" x="738" y="1488">
              <mutation>
                <arg name="Meldetext" varid="_15VMX!RZlq%=ybVAz@@"></arg>
              </mutation>
              <field name="NAME">Melden</field>
              <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
              <statement name="STACK">
                <block type="comment" id="CgkHkrp5c26e`w3uU(i`">
                  <field name="COMMENT">Hier wird die Meldung ausgegeben</field>
                  <next>
                    <block type="debug" id="SYQu;@N0JgE!W~[JZcZ_">
                      <field name="Severity">log</field>
                      <value name="TEXT">
                        <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="4+J8c.^+FrkDV^]dAda-">
                          <field name="TEXT">test</field>
                        </shadow>
                        <block type="variables_get" id="KuX^Hf4/i6gnp|rmq9WR">
                          <field name="VAR" id="_15VMX!RZlq%=ybVAz@@">Meldetext</field>
                        </block>
                      </value>
                      <next>
                        <block type="telegram" id="O_F(%KTLgxT1wAEm@feP">
                          <field name="INSTANCE"></field>
                          <field name="LOG"></field>
                          <field name="SILENT">FALSE</field>
                          <field name="PARSEMODE">default</field>
                          <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field>
                          <value name="MESSAGE">
                            <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="E_N-%Xm!jp|A-Wil^s6U">
                              <field name="TEXT">text</field>
                            </shadow>
                            <block type="variables_get" id="6oEN9IEFsi7M]Rl6D/Xi">
                              <field name="VAR" id="_15VMX!RZlq%=ybVAz@@">Meldetext</field>
                            </block>
                          </value>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </statement>
            </block>
          </xml>
          
          paul53P Offline
          paul53P Offline
          paul53
          schrieb am zuletzt editiert von paul53
          #4

          @derroadrunner sagte: Es soll die Meldung Spülmaschine fertig kommen

          Viel zu kompliziert und außerdem Trigger innerhalb eines Triggers!

          Einfaches Prinzip:

          Blockly_temp.JPG

          EDIT: Ab Javascript-Version 7.0.5 funktioniert es so nicht mehr, da die Variable fertig bei Ablauf der Verzögerung automatisch auf null gesetzt wird.
          Alternative für "nicht Verzögerung fertig": "vorheriger Wert > 4".

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

          D 2 Antworten Letzte Antwort
          0
          • D derroadrunner

            Hallo, gibt es eine andere Möglichkeit als Screenshot das Blockly hier rein zu bringen?

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

            @derroadrunner sagte in Skript für Spülmaschine mag nicht richtig zu funktionieren:

            gibt es eine andere Möglichkeit als Screenshot

            warum?
            Screenshot ist das Mittel der Wahl dafür.

            https://forum.iobroker.net/topic/51555/hinweise-für-gute-forenbeiträge/1

            kein Support per PN! - Fragen im Forum stellen -
            Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.
            Das Forum freut sich über eine Spende. Benutzt dazu den Spendenbutton oben rechts. Danke!
            der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

            D 1 Antwort Letzte Antwort
            0
            • HomoranH Homoran

              @derroadrunner sagte in Skript für Spülmaschine mag nicht richtig zu funktionieren:

              gibt es eine andere Möglichkeit als Screenshot

              warum?
              Screenshot ist das Mittel der Wahl dafür.

              https://forum.iobroker.net/topic/51555/hinweise-für-gute-forenbeiträge/1

              D Offline
              D Offline
              derroadrunner
              schrieb am zuletzt editiert von
              #6

              @homoran Würde ich gerne machen, nur das Skript ist so lang, dass es auf meinem Laptop nicht komplett zu sehen ist. Das wären dann vier Bilder. Oder gibt es da einen Trick den ich nicht kenne?

              Raspberry Pi 3+

              HomoranH 1 Antwort Letzte Antwort
              0
              • paul53P paul53

                @derroadrunner sagte: Es soll die Meldung Spülmaschine fertig kommen

                Viel zu kompliziert und außerdem Trigger innerhalb eines Triggers!

                Einfaches Prinzip:

                Blockly_temp.JPG

                EDIT: Ab Javascript-Version 7.0.5 funktioniert es so nicht mehr, da die Variable fertig bei Ablauf der Verzögerung automatisch auf null gesetzt wird.
                Alternative für "nicht Verzögerung fertig": "vorheriger Wert > 4".

                D Offline
                D Offline
                derroadrunner
                schrieb am zuletzt editiert von
                #7

                @paul53 Geht das Skript dann auch bei der Waschmaschine, die zwischen durch mal eine Pause einlegt?

                Raspberry Pi 3+

                paul53P 1 Antwort Letzte Antwort
                0
                • D derroadrunner

                  @paul53 Geht das Skript dann auch bei der Waschmaschine, die zwischen durch mal eine Pause einlegt?

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

                  @derroadrunner sagte: Geht das Skript dann auch bei der Waschmaschine, die zwischen durch mal eine Pause einlegt?

                  Mit dem Timeout fertig werden die Pausen überbrückt. Es muss etwas länger sein als die längste Pause.

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

                  1 Antwort Letzte Antwort
                  0
                  • D derroadrunner

                    @homoran Würde ich gerne machen, nur das Skript ist so lang, dass es auf meinem Laptop nicht komplett zu sehen ist. Das wären dann vier Bilder. Oder gibt es da einen Trick den ich nicht kenne?

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

                    @derroadrunner sagte in Skript für Spülmaschine mag nicht richtig zu funktionieren:

                    Oder gibt es da einen Trick den ich nicht kenne?

                    4 bilder, oder mit irfanview zum vertikalen Panorama zusammenkleben.

                    Aber wenn es sooo groß ist, wird @paul53 recht haben, dass es

                    @paul53 sagte in Skript für Spülmaschine mag nicht richtig zu funktionieren:

                    Viel zu kompliziert

                    ist.

                    kein Support per PN! - Fragen im Forum stellen -
                    Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.
                    Das Forum freut sich über eine Spende. Benutzt dazu den Spendenbutton oben rechts. Danke!
                    der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

                    1 Antwort Letzte Antwort
                    0
                    • paul53P paul53

                      @derroadrunner sagte: Es soll die Meldung Spülmaschine fertig kommen

                      Viel zu kompliziert und außerdem Trigger innerhalb eines Triggers!

                      Einfaches Prinzip:

                      Blockly_temp.JPG

                      EDIT: Ab Javascript-Version 7.0.5 funktioniert es so nicht mehr, da die Variable fertig bei Ablauf der Verzögerung automatisch auf null gesetzt wird.
                      Alternative für "nicht Verzögerung fertig": "vorheriger Wert > 4".

                      D Offline
                      D Offline
                      derroadrunner
                      schrieb am zuletzt editiert von
                      #10

                      @paul53
                      Frage?
                      Muss ich hier noch etwas ändern oder bleibt das so!

                      a158fd58-9b5d-49e6-9e5f-884b5040804e-image.png

                      Raspberry Pi 3+

                      paul53P 1 Antwort Letzte Antwort
                      0
                      • D derroadrunner

                        @paul53
                        Frage?
                        Muss ich hier noch etwas ändern oder bleibt das so!

                        a158fd58-9b5d-49e6-9e5f-884b5040804e-image.png

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

                        @derroadrunner sagte: Muss ich hier noch etwas ändern oder bleibt das so!

                        Erstelle einen eigenen Datenpunkt vom Typ "Zahl" für die Laufzeit unter "0_userdata.0" - natürlich nur, wenn die Laufzeit dargestellt werden soll. Andernfalls lösche die Variable und die damit verbundenen Operationen.

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

                        1 Antwort Letzte Antwort
                        0

                        Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.

                        Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.

                        Mit deinem Input könnte dieser Beitrag noch besser werden 💗

                        Registrieren Anmelden
                        Antworten
                        • In einem neuen Thema antworten
                        Anmelden zum Antworten
                        • Älteste zuerst
                        • Neuste zuerst
                        • Meiste Stimmen


                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        549

                        Online

                        32.8k

                        Benutzer

                        82.8k

                        Themen

                        1.3m

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

                        • Du hast noch kein Konto? Registrieren

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