Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Waschmaschine fertig

    NEWS

    • Neues Video über Aliase, virtuelle Geräte und Kategorien

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    Waschmaschine fertig

    This topic has been deleted. Only users with topic management privileges can see it.
    • falke69
      falke69 @mizin last edited by falke69

      @mizin

      ich habe meine Vorlage von hier und meinen Anforderungen entsprechend angepasst.

      <xml xmlns="https://developers.google.com/blockly/xml">
      
      <variables>
      
        <variable id="n~?d|fj1yZ@aUK`rTa8#">parameter</variable>
      
        <variable id="G]E{=lL`C~B~.kg[6T~A">Meldetext</variable>
      
        <variable id="R@xbqA3Xt@I,xg!TS^eK">VerzoegerungAktiv</variable>
      
        <variable type="timeout" id="timeout">timeout</variable>
      
        <variable id="0c(dO$43W4(;(SAX}(%W">GrenzWertInWatt</variable>
      
        <variable type="timeout" id="Einschaltverzoegerung">Einschaltverzoegerung</variable>
      
      </variables>
      
      <block type="create" id="^2Rg-q.1Ed^~t`cgEo,X" disabled="true" x="-1262" y="-688">
      
        <field name="NAME">Waschmaschine.ON</field>
      
        <value name="VALUE">
      
          <block type="logic_boolean" id="wvF4-g`2vkKhnhsDn[i1">
      
            <field name="BOOL">FALSE</field>
      
          </block>
      
        </value>
      
        <next>
      
          <block type="comment" id="YGuN~KL-Il[RnOfcZ=iB">
      
            <field name="COMMENT">https://forum.iobroker.net/topic/9569/vorlage-blockly-meldung-wenn-waschmaschine-fertig/2</field>
      
            <next>
      
              <block type="comment" id="@`s,ARMz+*DZ*ns;z2m_">
      
                <field name="COMMENT">Initialisierung bei Scriptstart</field>
      
                <next>
      
                  <block type="comment" id="Ov|lJMd@PV!y.oUN9Boj">
      
                    <field name="COMMENT">VerzögerungAktiv NICHT ändern</field>
      
                    <next>
      
                      <block type="variables_set" id="T+;|Db@bx|T]wkX[e.xT">
      
                        <field name="VAR" id="R@xbqA3Xt@I,xg!TS^eK">VerzoegerungAktiv</field>
      
                        <value name="VALUE">
      
                          <block type="logic_boolean" id="FimMeG{k6LBu0{7UjBJ4">
      
                            <field name="BOOL">FALSE</field>
      
                          </block>
      
                        </value>
      
                        <next>
      
                          <block type="comment" id="6q4+KcF6/q*eh;RCmGKL">
      
                            <field name="COMMENT">Entscheidungswert festlegen</field>
      
                            <next>
      
                              <block type="variables_set" id="pE;t15K()B2=@=,RY5D_">
      
                                <field name="VAR" id="0c(dO$43W4(;(SAX}(%W">GrenzWertInWatt</field>
      
                                <value name="VALUE">
      
                                  <block type="math_number" id="OB=)nO2pXH:1HNwm(JpG">
      
                                    <field name="NUM">4</field>
      
                                  </block>
      
                                </value>
      
                                <next>
      
                                  <block type="comment" id="|2tm%?,yK/o3_AA)J{ah">
      
                                    <field name="COMMENT">Steckdose überwachen</field>
      
                                    <next>
      
                                      <block type="on_ext" id="n)UklDS{=z!-#^HfL@Ly">
      
                                        <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="@Uda~stBc8L/=2DFzrvo">
      
                                            <field name="oid">sonoff.0.Waschmaschiene.ENERGY_Power</field>
      
                                          </shadow>
      
                                        </value>
      
                                        <statement name="STATEMENT">
      
                                          <block type="controls_if" id="=n/Jfc]x(Ib[NRPJZ%7X">
      
                                            <value name="IF0">
      
                                              <block type="logic_compare" id="?m1STicTe5=N-/f:Ji2s">
      
                                                <field name="OP">EQ</field>
      
                                                <value name="A">
      
                                                  <block type="on_source" id="QjKQBx`PdHENcy)eGM,5">
      
                                                    <field name="ATTR">oldState.val</field>
      
                                                  </block>
      
                                                </value>
      
                                                <value name="B">
      
                                                  <block type="math_number" id=":(p2PWPzD2(~R-q9upeS">
      
                                                    <field name="NUM">0</field>
      
                                                  </block>
      
                                                </value>
      
                                              </block>
      
                                            </value>
      
                                            <statement name="DO0">
      
                                              <block type="comment" id=";%e=m5A.5_U8[v[Odt7.">
      
                                                <field name="COMMENT">Dieser Teil wird NUR ausgeführt wenn</field>
      
                                                <next>
      
                                                  <block type="comment" id="Bv,r2iN_4zSfF_^X35gM">
      
                                                    <field name="COMMENT">Funkstecker oder Waschm. komplett aus war.</field>
      
                                                    <next>
      
                                                      <block type="variables_set" id="xuK#29.xYf)m6FX5LA78">
      
                                                        <field name="VAR" id="R@xbqA3Xt@I,xg!TS^eK">VerzoegerungAktiv</field>
      
                                                        <value name="VALUE">
      
                                                          <block type="logic_boolean" id=")}Jh9zUdflaLNnL+;^h=">
      
                                                            <field name="BOOL">TRUE</field>
      
                                                          </block>
      
                                                        </value>
      
                                                        <next>
      
                                                          <block type="timeouts_settimeout" id="v[ws-ZxN:-nNl,kERlT8">
      
                                                            <field name="NAME">Einschaltverzoegerung</field>
      
                                                            <field name="DELAY">20</field>
      
                                                            <field name="UNIT">sec</field>
      
                                                            <statement name="STATEMENT">
      
                                                              <block type="comment" id="UyUTD{W;Ef;u2!)%y5h|">
      
                                                                <field name="COMMENT">Eventuell hohe Einschaltspannung abfangen.</field>
      
                                                                <next>
      
                                                                  <block type="comment" id="^wiM;VZ*5RLS-+SMsG7?">
      
                                                                    <field name="COMMENT">Diese kann größer als der Grenzwert sein</field>
      
                                                                    <next>
      
                                                                      <block type="variables_set" id="@d2;tEWydly|fW:ng;eg">
      
                                                                        <field name="VAR" id="R@xbqA3Xt@I,xg!TS^eK">VerzoegerungAktiv</field>
      
                                                                        <value name="VALUE">
      
                                                                          <block type="logic_boolean" id="S5R1RMtIKx(=N;}|dM%Z">
      
                                                                            <field name="BOOL">FALSE</field>
      
                                                                          </block>
      
                                                                        </value>
      
                                                                      </block>
      
                                                                    </next>
      
                                                                  </block>
      
                                                                </next>
      
                                                              </block>
      
                                                            </statement>
      
                                                          </block>
      
                                                        </next>
      
                                                      </block>
      
                                                    </next>
      
                                                  </block>
      
                                                </next>
      
                                              </block>
      
                                            </statement>
      
                                            <next>
      
                                              <block type="comment" id="EZK4(UY%`}HZl{2F)m6p">
      
                                                <field name="COMMENT">Ab hier wird gewaschen</field>
      
                                                <next>
      
                                                  <block type="controls_if" id="S(-Xvr1uja6/vNdH|?j:">
      
                                                    <mutation elseif="2"></mutation>
      
                                                    <value name="IF0">
      
                                                      <block type="logic_operation" id="s(;r=_ekdU*dF=_Tsrbb" inline="false">
      
                                                        <field name="OP">AND</field>
      
                                                        <value name="A">
      
                                                          <block type="logic_compare" id="d_lZY_VlNaa40/Pob=Um">
      
                                                            <field name="OP">GT</field>
      
                                                            <value name="A">
      
                                                              <block type="on_source" id="`c4GU.`+o2_G+Vdxq;n/">
      
                                                                <field name="ATTR">state.val</field>
      
                                                              </block>
      
                                                            </value>
      
                                                            <value name="B">
      
                                                              <block type="variables_get" id="FD[JnQcwajuYLgGmTX`.">
      
                                                                <field name="VAR" id="0c(dO$43W4(;(SAX}(%W">GrenzWertInWatt</field>
      
                                                              </block>
      
                                                            </value>
      
                                                          </block>
      
                                                        </value>
      
                                                        <value name="B">
      
                                                          <block type="logic_operation" id="*Y`H0qa!`fsBeI/2Cv+c" inline="false">
      
                                                            <field name="OP">AND</field>
      
                                                            <value name="A">
      
                                                              <block type="logic_compare" id="zC,(}TPXAvX2yd^k`W._">
      
                                                                <field name="OP">EQ</field>
      
                                                                <value name="A">
      
                                                                  <block type="get_value" id=";a;[[bw/v2oQnG9DHZIn">
      
                                                                    <field name="ATTR">val</field>
      
                                                                    <field name="OID">0_userdata.0.fertig_Meldungen.Waschmaschine.ON</field>
      
                                                                  </block>
      
                                                                </value>
      
                                                                <value name="B">
      
                                                                  <block type="logic_boolean" id=";a5=vVD`86hstjR{4y~+">
      
                                                                    <field name="BOOL">FALSE</field>
      
                                                                  </block>
      
                                                                </value>
      
                                                              </block>
      
                                                            </value>
      
                                                            <value name="B">
      
                                                              <block type="logic_compare" id="K.3M9Le`+STB!.M_eD7O">
      
                                                                <field name="OP">EQ</field>
      
                                                                <value name="A">
      
                                                                  <block type="variables_get" id="[!KuvI83Wzp*sDDNM{S!">
      
                                                                    <field name="VAR" id="R@xbqA3Xt@I,xg!TS^eK">VerzoegerungAktiv</field>
      
                                                                  </block>
      
                                                                </value>
      
                                                                <value name="B">
      
                                                                  <block type="logic_boolean" id="9_[X?aI?X1w]lj.RY`K^">
      
                                                                    <field name="BOOL">FALSE</field>
      
                                                                  </block>
      
                                                                </value>
      
                                                              </block>
      
                                                            </value>
      
                                                          </block>
      
                                                        </value>
      
                                                      </block>
      
                                                    </value>
      
                                                    <statement name="DO0">
      
                                                      <block type="control" id="S6URE:3#}}.v#e!X.A4D">
      
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
      
                                                        <field name="OID">0_userdata.0.fertig_Meldungen.Waschmaschine.ON</field>
      
                                                        <field name="WITH_DELAY">FALSE</field>
      
                                                        <value name="VALUE">
      
                                                          <block type="logic_boolean" id="QqpwRU?xP?P=bvS9HS[1">
      
                                                            <field name="BOOL">TRUE</field>
      
                                                          </block>
      
                                                        </value>
      
                                                        <next>
      
                                                          <block type="procedures_callnoreturn" id="=!*WIp};Ta`)XeMMk,iR">
      
                                                            <mutation name="Melden">
      
                                                              <arg name="Meldetext"></arg>
      
                                                            </mutation>
      
                                                            <value name="ARG0">
      
                                                              <block type="text" id="x%,1~WeWNV|YXt:l)=3e">
      
                                                                <field name="TEXT">Waschmaschine LÄUFT??</field>
      
                                                              </block>
      
                                                            </value>
      
                                                          </block>
      
                                                        </next>
      
                                                      </block>
      
                                                    </statement>
      
                                                    <value name="IF1">
      
                                                      <block type="logic_compare" id="Yuagp|w@)mC+asceXLLu">
      
                                                        <field name="OP">GT</field>
      
                                                        <value name="A">
      
                                                          <block type="on_source" id="P(tu4AS{);E?w-p?]{1q">
      
                                                            <field name="ATTR">state.val</field>
      
                                                          </block>
      
                                                        </value>
      
                                                        <value name="B">
      
                                                          <block type="variables_get" id="ou6,Zi?vbs[;{]@93U`!">
      
                                                            <field name="VAR" id="0c(dO$43W4(;(SAX}(%W">GrenzWertInWatt</field>
      
                                                          </block>
      
                                                        </value>
      
                                                      </block>
      
                                                    </value>
      
                                                    <statement name="DO1">
      
                                                      <block type="comment" id="H90l#sdGb5I}Wqsbz=9s">
      
                                                        <field name="COMMENT">Timer stoppen</field>
      
                                                        <next>
      
                                                          <block type="procedures_callnoreturn" id="zo=cPu~=j#pus6bWVaJl">
      
                                                            <mutation name="checkFertig">
      
                                                              <arg name="parameter"></arg>
      
                                                            </mutation>
      
                                                            <value name="ARG0">
      
                                                              <block type="logic_boolean" id="1SYbGS^3xkqD/Uj?{bvJ">
      
                                                                <field name="BOOL">FALSE</field>
      
                                                              </block>
      
                                                            </value>
      
                                                          </block>
      
                                                        </next>
      
                                                      </block>
      
                                                    </statement>
      
                                                    <value name="IF2">
      
                                                      <block type="logic_operation" id="_@|YxZPYI(z3![Q=ZbX4" inline="false">
      
                                                        <field name="OP">AND</field>
      
                                                        <value name="A">
      
                                                          <block type="logic_compare" id="Ge6FX#6b5WYoc;wF%%iH">
      
                                                            <field name="OP">LT</field>
      
                                                            <value name="A">
      
                                                              <block type="on_source" id="0Vw33+AwVD~={g{aHa~d">
      
                                                                <field name="ATTR">state.val</field>
      
                                                              </block>
      
                                                            </value>
      
                                                            <value name="B">
      
                                                              <block type="variables_get" id="NufLwbvZR1.fEmqJNOTZ">
      
                                                                <field name="VAR" id="0c(dO$43W4(;(SAX}(%W">GrenzWertInWatt</field>
      
                                                              </block>
      
                                                            </value>
      
                                                          </block>
      
                                                        </value>
      
                                                        <value name="B">
      
                                                          <block type="logic_compare" id="X[1t=zl25bQ]aHT[:`,8">
      
                                                            <field name="OP">EQ</field>
      
                                                            <value name="A">
      
                                                              <block type="get_value" id="4WFkiPOYU?#zQhOL)0u(">
      
                                                                <field name="ATTR">val</field>
      
                                                                <field name="OID">0_userdata.0.fertig_Meldungen.Waschmaschine.ON</field>
      
                                                              </block>
      
                                                            </value>
      
                                                            <value name="B">
      
                                                              <block type="logic_boolean" id="?jrLY7K)k;1?sa!Ef{VO">
      
                                                                <field name="BOOL">TRUE</field>
      
                                                              </block>
      
                                                            </value>
      
                                                          </block>
      
                                                        </value>
      
                                                      </block>
      
                                                    </value>
      
                                                    <statement name="DO2">
      
                                                      <block type="comment" id="}Q59!:8+Dc~b~LwZhq-(">
      
                                                        <field name="COMMENT">Timer starten</field>
      
                                                        <next>
      
                                                          <block type="procedures_callnoreturn" id=";MD%1IF[[H29g_f=vvYH">
      
                                                            <mutation name="checkFertig">
      
                                                              <arg name="parameter"></arg>
      
                                                            </mutation>
      
                                                            <value name="ARG0">
      
                                                              <block type="logic_boolean" id="/yX*,4aU!HHUO#/2U-NR">
      
                                                                <field name="BOOL">TRUE</field>
      
                                                              </block>
      
                                                            </value>
      
                                                          </block>
      
                                                        </next>
      
                                                      </block>
      
                                                    </statement>
      
                                                  </block>
      
                                                </next>
      
                                              </block>
      
                                            </next>
      
                                          </block>
      
                                        </statement>
      
                                      </block>
      
                                    </next>
      
                                  </block>
      
                                </next>
      
                              </block>
      
                            </next>
      
                          </block>
      
                        </next>
      
                      </block>
      
                    </next>
      
                  </block>
      
                </next>
      
              </block>
      
            </next>
      
          </block>
      
        </next>
      
      </block>
      
      <block type="procedures_defnoreturn" id="sDP?w~)oJD}Z95[_?EY0" x="-1262" y="812">
      
        <mutation>
      
          <arg name="parameter" varid="n~?d|fj1yZ@aUK`rTa8#"></arg>
      
        </mutation>
      
        <field name="NAME">checkFertig</field>
      
        <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
      
        <statement name="STACK">
      
          <block type="comment" id="V2@7jqv5RTl+}q}xfEsZ">
      
            <field name="COMMENT">Timer stoppen</field>
      
            <next>
      
              <block type="timeouts_cleartimeout" id="y7iPL;/^^,*);q|%Pk6;">
      
                <field name="NAME">timeout</field>
      
                <next>
      
                  <block type="controls_if" id="*DX-*|5t*M5.|5Qw0p76">
      
                    <value name="IF0">
      
                      <block type="logic_compare" id="[-Hs2uzeFf6L7XO4:d6g">
      
                        <field name="OP">EQ</field>
      
                        <value name="A">
      
                          <block type="variables_get" id="uT*6f!Y:?Sivq1F-y;7_">
      
                            <field name="VAR" id="n~?d|fj1yZ@aUK`rTa8#">parameter</field>
      
                          </block>
      
                        </value>
      
                        <value name="B">
      
                          <block type="logic_boolean" id="w?1)4.uK{/ey3NJ)NjH:">
      
                            <field name="BOOL">TRUE</field>
      
                          </block>
      
                        </value>
      
                      </block>
      
                    </value>
      
                    <statement name="DO0">
      
                      <block type="comment" id="fU`TRz:h*y1K[t@GmyY:">
      
                        <field name="COMMENT">Timer starten</field>
      
                        <next>
      
                          <block type="timeouts_settimeout" id="k%sy5:QdTn+3f@{OZshs">
      
                            <field name="NAME">timeout</field>
      
                            <field name="DELAY">40</field>
      
                            <field name="UNIT">sec</field>
      
                            <statement name="STATEMENT">
      
                              <block type="control" id="UOquZ.)w|Dv~5_@iC*HO">
      
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
      
                                <field name="OID">0_userdata.0.fertig_Meldungen.Waschmaschine.ON</field>
      
                                <field name="WITH_DELAY">FALSE</field>
      
                                <value name="VALUE">
      
                                  <block type="logic_boolean" id="ttQizIf!/AB*HLfb9Kw1">
      
                                    <field name="BOOL">FALSE</field>
      
                                  </block>
      
                                </value>
      
                                <next>
      
                                  <block type="procedures_callnoreturn" id="HHrpaU=vtt6v1JInTG~l">
      
                                    <mutation name="Melden">
      
                                      <arg name="Meldetext"></arg>
      
                                    </mutation>
      
                                    <value name="ARG0">
      
                                      <block type="text" id="leE4:W;JI@,LD;n0Gs6r">
      
                                        <field name="TEXT">Waschmaschine FERTIG??</field>
      
                                      </block>
      
                                    </value>
      
                                  </block>
      
                                </next>
      
                              </block>
      
                            </statement>
      
                          </block>
      
                        </next>
      
                      </block>
      
                    </statement>
      
                  </block>
      
                </next>
      
              </block>
      
            </next>
      
          </block>
      
        </statement>
      
      </block>
      
      <block type="procedures_defnoreturn" id="l1.gm`YNTt2#Ww;_Stf+" x="-1262" y="1213">
      
        <mutation>
      
          <arg name="Meldetext" varid="G]E{=lL`C~B~.kg[6T~A"></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="G]E{=lL`C~B~.kg[6T~A">Meldetext</field>
      
                  </block>
      
                </value>
      
                <next>
      
                  <block type="comment" id="a;Ent4V!@/ELz)~^PTwn">
      
                    <field name="COMMENT">Hier den SendTo Baustein einsetzen,</field>
      
                    <next>
      
                      <block type="comment" id="Xc,u6Sm.@c5xeqVM)suq">
      
                        <field name="COMMENT">den man benutzen will.</field>
      
                        <next>
      
                          <block type="comment" id="cI=%X;P?/Tfam8YIny%V">
      
                            <field name="COMMENT">Die Meldung befindet sich in der Variablen</field>
      
                            <next>
      
                              <block type="comment" id="{(av)+6o4VfWo^eJEnft">
      
                                <field name="COMMENT">"Meldetext"</field>
      
                                <next>
      
                                  <block type="telegram" id="1})ew+BxwL2}W*;SNfQ4">
      
                                    <field name="INSTANCE"></field>
      
                                    <field name="LOG"></field>
      
                                    <field name="SILENT">FALSE</field>
      
                                    <field name="PARSEMODE">default</field>
      
                                    <value name="MESSAGE">
      
                                      <shadow type="text" id="l8s9bf*k]wxFu-IJPDn)">
      
                                        <field name="TEXT">text</field>
      
                                      </shadow>
      
                                      <block type="variables_get" id="^O6PQ[mgu#O,o(:|9Kzm">
      
                                        <field name="VAR" id="G]E{=lL`C~B~.kg[6T~A">Meldetext</field>
      
                                      </block>
      
                                    </value>
      
                                    <value name="USERNAME">
      
                                      <block type="text" id="`Xw0#%}sS0_V(e!W@w..">
      
                                        <field name="TEXT">Benutzer1, Benutzer2</field>
      
                                      </block>
      
                                    </value>
      
                                  </block>
      
                                </next>
      
                              </block>
      
                            </next>
      
                          </block>
      
                        </next>
      
                      </block>
      
                    </next>
      
                  </block>
      
                </next>
      
              </block>
      
            </next>
      
          </block>
      
        </statement>
      
      </block>
      
      </xml>
      

      1 Reply Last reply Reply Quote 0
      • M
        mizin @Burg_Io last edited by

        Danke für eure Rückmeldungen.

        @burg_io Bei dem Script meldet er mir aber immer wieder, dass die Maschine fertig ist sobald die Wattzahl im Standby über 3 hüpft und wieder abfällt.

        @Baerny Der Adapter berücksichtigt ebenfalls nicht die Sprünge über die Schwelle so wie ich das gesehen habe.

        @OliverIO Das klingt gut. Da werde ich mal weiter forschen.

        @falke69 Genau das hatte ich auch getestet. Nur habe ich das Problem, dass die Maschine beim Waschgang (drehen, stop, drehen, stop, drehen, stop) beim stoppen genau so viel Strom verbraucht wie im Standby (2-5 Watt).
        Dadurch passiert es mir, wenn er jetzt prüft (Trommel steht) und in 40 Sekunden erneut prüft (Trommel steht genau dann erneut) sagt er mir auch schon, dass die Maschine fertig ist.

        B X 2 Replies Last reply Reply Quote 0
        • B
          Burg_Io @mizin last edited by

          @mizin
          du musst den wert für den ruhestrom deiner maschine ein wenig dem gerät anpassen oder einen timeout einbauen, so was eventuelle "pausen" im waschgang nicht gleich zur meldung führen.

          1 Reply Last reply Reply Quote 0
          • X
            xapollo @mizin last edited by

            @mizin

            Test mal das
            Werte anpassen und Datenpunkte erstellen
            Funz bei mir toll
            hab das mal wo geklaut 😉

            <xml xmlns="https://developers.google.com/blockly/xml">
              <variables>
                <variable id="=?OmOeJXP(6k$Q8a4v1*">WaMa_Dauerzaehler</variable>
                <variable id="Hhe!Hg(xh7gHuy(6hLlx">WaMa_EinAus</variable>
                <variable type="interval" id="Dauerzaehler">Dauerzaehler</variable>
                <variable type="timeout" id="timeout2">timeout2</variable>
                <variable type="timeout" id="timeout3">timeout3</variable>
              </variables>
              <block type="variables_set" id="VhvVE3UkVJB2fvjGzu*!" x="13" y="13">
                <field name="VAR" id="=?OmOeJXP(6k$Q8a4v1*">WaMa_Dauerzaehler</field>
                <value name="VALUE">
                  <block type="math_number" id="g,Bx,*s}7,][vN=Z-Mt4">
                    <field name="NUM">0</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="i@;~wXOo)(5+=$*9v:QF">
                    <field name="VAR" id="Hhe!Hg(xh7gHuy(6hLlx">WaMa_EinAus</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="stD7DD67D[4(YSQ3dCvR">
                        <field name="BOOL">FALSE</field>
                      </block>
                    </value>
                    <next>
                      <block type="on_ext" id="%l??Ns0%ZOhlZQJn)RIY">
                        <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="8p+iN2CjzC1M$2o|Xq=m">
                            <field name="oid">sonoff.0.SP1_WaMa_4966_109.ENERGY_Power</field>
                          </shadow>
                        </value>
                        <statement name="STATEMENT">
                          <block type="controls_if" id="-4y,4m5H6`8[U,UjJH(0">
                            <mutation elseif="1"></mutation>
                            <value name="IF0">
                              <block type="logic_operation" id="-^U__L=#GGG_LD~6o~hg" inline="false">
                                <field name="OP">AND</field>
                                <comment pinned="false" h="90" w="276">Falls Maschinengang erkannt (Wattzahl &gt;10) UND Modus ist auf falsch dann starte und schreibe den aktuellen verbrauch in DP</comment>
                                <value name="A">
                                  <block type="logic_compare" id="-%Kg)H+S;{}Yyd@cqe=l">
                                    <field name="OP">GTE</field>
                                    <value name="A">
                                      <block type="on_source" id="QS5)==Ahwtfe.nNTl`R@">
                                        <field name="ATTR">state.val</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="math_number" id="OT1x**T)z3hCtGxhqDDI">
                                        <field name="NUM">10</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_compare" id=",LW+*+gUB/lbO[yiNJdv">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="variables_get" id="[$/1md}o9xogfLp*!}WA">
                                        <field name="VAR" id="Hhe!Hg(xh7gHuy(6hLlx">WaMa_EinAus</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_boolean" id="V}KP*,b;J,.3q802Q0l^">
                                        <field name="BOOL">FALSE</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="variables_set" id="HHIFm}6:*U#VVrIRv7e|">
                                <field name="VAR" id="Hhe!Hg(xh7gHuy(6hLlx">WaMa_EinAus</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="%.`!o$LmcZOm0##5WWoJ">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="control" id="z]7Pj2YXS1-d)pnchN,!">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">javascript.0.EigeneDP.Sonstige.Energieüberwachung.Waschmaschine.Waschstart</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="get_value" id="b$lgvB*z^u:a@_hX4hL]">
                                        <field name="ATTR">val</field>
                                        <field name="OID">sonoff.0.SP1_WaMa_4966_109.ENERGY_Total</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="timeouts_setinterval" id="(?2yHN!soJ=}mLZ7l]lF">
                                        <field name="NAME">Dauerzaehler</field>
                                        <field name="INTERVAL">1</field>
                                        <field name="UNIT">min</field>
                                        <statement name="STATEMENT">
                                          <block type="math_change" id="w,FoLyTV8R1TP-!PMN(k">
                                            <field name="VAR" id="=?OmOeJXP(6k$Q8a4v1*">WaMa_Dauerzaehler</field>
                                            <value name="DELTA">
                                              <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="H!-!N4kZhgP#5;zrxCTY">
                                                <field name="NUM">1</field>
                                              </shadow>
                                              <block type="math_number" id="AF2;r}gdm2RpvV`mn)fr">
                                                <field name="NUM">1</field>
                                              </block>
                                            </value>
                                          </block>
                                        </statement>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </statement>
                            <value name="IF1">
                              <block type="logic_operation" id="[:7QWv4Op8S6o@lG45(y" inline="false">
                                <field name="OP">AND</field>
                                <comment pinned="false" h="80" w="160">Falls Verbrauch unter 3 Watt fällt und der Modus ist Wahr dann beende den Waschmodus.</comment>
                                <value name="A">
                                  <block type="logic_compare" id="igy_8vlVI|k$sL-O!_Ya">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="on_source" id="oKi^o%$Qa%i0^MVE?s)Y">
                                        <field name="ATTR">state.val</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="math_number" id="*bx}yjZ_C7J2#/$NzLoS">
                                        <field name="NUM">0</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_compare" id="}A,!m2TVXL.^LQWg%!e|">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="variables_get" id="r/rnzWL?1!/.2!+pr@5(">
                                        <field name="VAR" id="Hhe!Hg(xh7gHuy(6hLlx">WaMa_EinAus</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_boolean" id="S,c^%F*KOd(.(Q(BL!=g">
                                        <field name="BOOL">TRUE</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO1">
                              <block type="timeouts_clearinterval" id="4Usl2WULucSJQ,Ptrt9^">
                                <field name="NAME">Dauerzaehler</field>
                                <next>
                                  <block type="variables_set" id="vj!Vu=sDr5yt.:ZU#OfU">
                                    <field name="VAR" id="Hhe!Hg(xh7gHuy(6hLlx">WaMa_EinAus</field>
                                    <value name="VALUE">
                                      <block type="logic_boolean" id="5xCJ(QRB3mIo5.*f1Fsg">
                                        <field name="BOOL">FALSE</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="control" id="{MMg6Za}8I|gw.4cE6oG">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">javascript.0.EigeneDP.Sonstige.Energieüberwachung.Waschmaschine.Waschende</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="get_value" id="}_}=j6pEBm+0afN/394(">
                                            <field name="ATTR">val</field>
                                            <field name="OID">sonoff.0.SP1_WaMa_4966_109.ENERGY_Total</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="debug" id="~(eEE8/,iS{wG@j0X)TU">
                                            <field name="Severity">log</field>
                                            <value name="TEXT">
                                              <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="3K0c5WSS9VmMq/XFB(e9">
                                                <field name="TEXT">test</field>
                                              </shadow>
                                              <block type="text_join" id="2xby$^zDuX^$?-Yp2~k,">
                                                <mutation items="2"></mutation>
                                                <value name="ADD0">
                                                  <block type="text" id="L6trfC]%tV;Q1#[_3UQJ">
                                                    <field name="TEXT">Status Waschmaschine Ein/Aus ist: </field>
                                                  </block>
                                                </value>
                                                <value name="ADD1">
                                                  <block type="variables_get" id="mN7^USWq(%,us)OL?!1#">
                                                    <field name="VAR" id="Hhe!Hg(xh7gHuy(6hLlx">WaMa_EinAus</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="timeouts_settimeout" id=",NjGW@Wtt+n7RKNkcxK!">
                                                <field name="NAME">timeout2</field>
                                                <field name="DELAY">5</field>
                                                <field name="UNIT">sec</field>
                                                <statement name="STATEMENT">
                                                  <block type="telegram" id=":)Sqh|eio_J%+h7Q@6nJ">
                                                    <field name="INSTANCE"></field>
                                                    <field name="LOG"></field>
                                                    <field name="SILENT">FALSE</field>
                                                    <field name="PARSEMODE">default</field>
                                                    <value name="MESSAGE">
                                                      <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="zaE.r=+WylppU_4Nmdx~">
                                                        <field name="TEXT">Waschmaschine ist fertig</field>
                                                      </shadow>
                                                      <block type="text_join" id="3,~.TJZeugM.!B%S1^X}">
                                                        <mutation items="9"></mutation>
                                                        <value name="ADD0">
                                                          <block type="text" id="|9?4%ic*sy2}Q088ry:q">
                                                            <field name="TEXT">Die Waschmaschine ist Fertig.</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD1">
                                                          <block type="time_get" id="a?D^RPe+s+Si=*kkfgj[">
                                                            <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="grfj-@D75~7#;4n|*Zja">
                                                            <field name="TEXT">Dauer: </field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD3">
                                                          <block type="variables_get" id="n.X3BE*TU_{qnfXV+E~:">
                                                            <field name="VAR" id="=?OmOeJXP(6k$Q8a4v1*">WaMa_Dauerzaehler</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD4">
                                                          <block type="text" id="hB0LeD{cRvcWSjG+y.+=">
                                                            <field name="TEXT"> Minuten.</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD5">
                                                          <block type="time_get" id="cA93H,ih=ovnjMRR4?Q6">
                                                            <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="ADD6">
                                                          <block type="text" id="iq5Tj*K!:5+gf]#fZ42]">
                                                            <field name="TEXT">Verbrauch: </field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD7">
                                                          <block type="math_rndfixed" id=")6B|F41_epI9gP[THRW[">
                                                            <field name="n">2</field>
                                                            <value name="x">
                                                              <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="}[m8CJ[~.H(X2Ez)$MNC">
                                                                <field name="NUM">3.1234</field>
                                                              </shadow>
                                                              <block type="math_arithmetic" id="vkHPDt[yds%_+|}F~JlI" inline="false">
                                                                <field name="OP">MINUS</field>
                                                                <value name="A">
                                                                  <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id=";x*EJIT-UHcl7Q0j{G#U">
                                                                    <field name="NUM">1</field>
                                                                  </shadow>
                                                                  <block type="get_value" id="v-h3Ax9U5D^A[-sA.*VR">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">javascript.0.EigeneDP.Sonstige.Energieüberwachung.Waschmaschine.Waschende</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id=")KC,Lt~MMGdb=v/v*dsR">
                                                                    <field name="NUM">1</field>
                                                                  </shadow>
                                                                  <block type="get_value" id="Y8iAp,Pk9o!]nby,SpJ^">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">javascript.0.EigeneDP.Sonstige.Energieüberwachung.Waschmaschine.Waschstart</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <value name="ADD8">
                                                          <block type="text" id="Gq}sI5F*R]paEBl+;3+e">
                                                            <field name="TEXT"> kWh.</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </statement>
                                                <next>
                                                  <block type="timeouts_settimeout" id=":DTtJMZX*6T[m5$MS#FV">
                                                    <field name="NAME">timeout3</field>
                                                    <field name="DELAY">10</field>
                                                    <field name="UNIT">sec</field>
                                                    <statement name="STATEMENT">
                                                      <block type="variables_set" id=",${esm~ZSiljnImc}dcx">
                                                        <field name="VAR" id="=?OmOeJXP(6k$Q8a4v1*">WaMa_Dauerzaehler</field>
                                                        <value name="VALUE">
                                                          <block type="math_number" id=";!%m^7forEuu5xZJ{}fV">
                                                            <field name="NUM">0</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </statement>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </statement>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </xml>
            
            M 1 Reply Last reply Reply Quote 0
            • M
              mizin @xapollo last edited by

              @xapollo
              Beim Blockly import sagt er mir:

              Unknown Block Type: telegram

              Fehlt mir da ein Modul?
              Ich habe bei mir pushover drin.

              sigi234 1 Reply Last reply Reply Quote 0
              • sigi234
                sigi234 Forum Testing Most Active @mizin last edited by

                @mizin sagte in Waschmaschine fertig:

                @xapollo
                Beim Blockly import sagt er mir:

                Unknown Block Type: telegram

                Fehlt mir da ein Modul?
                Ich habe bei mir pushover drin.

                Telegram Adapter installieren und dann einfach deaktivieren

                1 Reply Last reply Reply Quote 0
                • Xenon
                  Xenon Forum Testing Developer last edited by

                  adapter device-reminder .....

                  1 Reply Last reply Reply Quote 0
                  • B
                    biker1602 @Burg_Io last edited by

                    Ich habe auch ein Blockly für die Waschmaschine was super funktioniert und Alexa Bescheid gibt, wenn sie fertig ist, wie hoch der Stromverbrauch und welche Kosten angefallen sind.
                    Das ganze nutze ich mit einem Adapter von AVM der gibt beim Stromverbrauch den Wert 6 Stellig ohne Punkt aus.
                    ec61427e-d8fc-4849-b53c-3370eb91f328-grafik.png

                    Jetzt habe ich das gleiche Blockly für einen Trockner angelegt aber mit einer Tasmota Steckdose.
                    Dort wird der Verbrauch aber z.B. 23.546 angezeigt. und deswegen stimmt das irgendwie nicht.
                    9ab5d7c5-1e06-4b60-b950-228e84c9e62c-grafik.png
                    Ich bekomme hier die Meldung das der Trocknervorgang 0.001 KWh verbraucht hat.
                    Ich glaube da stimmt etwas in der Formel nicht oder muss ich den Datenpunkt irgendwie ändern.
                    0834f001-c57a-4fde-9e6b-dcb81f6519bd-grafik.png
                    Mit dem funktioniert es bei der Waschmaschine perfekt.

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

                      @biker1602

                      1. Wenn die Werte für Start und Ende kWh enthalten, darf nicht durch 1000 dividiert werden.
                      2. Asynchron-Falle bei "Trocknerende": Verwende Variablen
                      B 1 Reply Last reply Reply Quote 0
                      • B
                        biker1602 @paul53 last edited by

                        @paul53 Ja stimmt bei Waschmaschine ist Wh und beim Trockner kWh

                        Trockner
                        680a4c75-3ad7-48f9-80a9-ec71e7294bda-grafik.png

                        Waschmaschine
                        278a386c-9f82-4806-992c-c5036500cfb4-grafik.png

                        Wie meinst du das mit Variablen?

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

                          @biker1602 sagte: Wie meinst du das mit Variablen?

                          Die Werte für Trocknerstart und Trocknerende in Variablen speichern und die Variablen auswerten.

                          Bild_2022-02-01_140036.png

                          Das Schreiben des Datenpunktes "Trocknerende" ist noch nicht fertig, wenn er wieder eingelesen wird. Dadurch wird der Vorgängerwert eingelesen und man erhält ein falsches Ergebnis.

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

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          807
                          Online

                          32.0k
                          Users

                          80.5k
                          Topics

                          1.3m
                          Posts

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