Navigation

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

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    [VORLAGE] Blockly Meldung wenn Waschmaschine fertig

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

      Hallo,
      erst einmal vielen Dank für das Skript. Eine super Sache!
      Leider funktioniert bei mir das Skript nicht. Ich bekomme nichts per Telegram geschickt.
      Ich habe mir die Werte angeschaut. Es kann sein, dass auch der Wert mal auf 3.99 absinkt. Deswegen habe ich den Schwellenwert auf 3 verändert. Die Steckdose wird immer aus und wieder eingeschaltet.
      Was muss ich verändern, damit es geht?
      Vielen Dank schon mal für die Hilfe!

      <xml xmlns="https://developers.google.com/blockly/xml">
       <variables>
         <variable id="?tDUg:7`_O(*sCa3%?}E">Meldetext</variable>
         <variable id="_p/OES*!F4M-zV)UzC_f">parameter</variable>
         <variable id=";kvik/O*A+8f;_EzI7$.">VerzoegerungAktiv</variable>
         <variable id="gfKrG=#Z6a{snybK/_$t">GrenzWertInWatt</variable>
         <variable type="timeout" id="timeout">timeout</variable>
         <variable type="timeout" id="Einschaltverzoegerung">Einschaltverzoegerung</variable>
       </variables>
       <block type="create" id=":XvakORUFJ^_I1/^;0qD" x="13" y="13">
         <field name="NAME">WaschmaschineAN</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=";kvik/O*A+8f;_EzI7$.">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="gfKrG=#Z6a{snybK/_$t">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">hm-rpc.0.LEQ0661170.2.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=";kvik/O*A+8f;_EzI7$.">VerzoegerungAktiv</field>
                                                     <value name="VALUE">
                                                       <block type="logic_boolean" id=")}Jh9zUdflaLNnL+;^h=">
                                                         <field name="BOOL">TRUE</field>
                                                       </block>
                                                     </value>
                                                     <next>
                                                       <block type="debug" id="Wv*jiP9Bn3#//0KE[4e[">
                                                         <field name="Severity">log</field>
                                                         <value name="TEXT">
                                                           <shadow type="text" id="!hyL_SIc#q!nV1G.NU,/">
                                                             <field name="TEXT">***Starte Verzögerung</field>
                                                           </shadow>
                                                         </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=";kvik/O*A+8f;_EzI7$.">VerzoegerungAktiv</field>
                                                                         <value name="VALUE">
                                                                           <block type="logic_boolean" id="S5R1RMtIKx(=N;}|dM%Z">
                                                                             <field name="BOOL">FALSE</field>
                                                                           </block>
                                                                         </value>
                                                                         <next>
                                                                           <block type="debug" id="1^,/eLLAT{#66hqVIel8">
                                                                             <field name="Severity">log</field>
                                                                             <value name="TEXT">
                                                                               <shadow type="text" id="[koH26;mOP0UeXV~CJRb">
                                                                                 <field name="TEXT">***Beende Verzögerung</field>
                                                                               </shadow>
                                                                             </value>
                                                                           </block>
                                                                         </next>
                                                                       </block>
                                                                     </next>
                                                                   </block>
                                                                 </next>
                                                               </block>
                                                             </statement>
                                                           </block>
                                                         </next>
                                                       </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="gfKrG=#Z6a{snybK/_$t">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">javascript.0.WaschmaschineAN</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=";kvik/O*A+8f;_EzI7$.">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">javascript.0.WaschmaschineAN</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="{QcAY3oi:,FGG.929?TS">
                                                             <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="gfKrG=#Z6a{snybK/_$t">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="gfKrG=#Z6a{snybK/_$t">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">javascript.0.WaschmaschineAN</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>
       <block type="procedures_defnoreturn" id="l1.gm`YNTt2#Ww;_Stf+" x="838" y="88">
         <mutation>
           <arg name="Meldetext" varid="?tDUg:7`_O(*sCa3%?}E"></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="?tDUg:7`_O(*sCa3%?}E">Meldetext</field>
                   </block>
                 </value>
                 <next>
                   <block type="telegram" id="-wt^J?x#Wh;oZek3Z;oN">
                     <field name="INSTANCE">.0</field>
                     <field name="LOG"></field>
                     <field name="SILENT">FALSE</field>
                     <field name="PARSEMODE">HTML</field>
                     <value name="MESSAGE">
                       <shadow type="text" id="!r8Hiy}PPLn,%`4ZmCj$">
                         <field name="TEXT">text</field>
                       </shadow>
                       <block type="variables_get" id="S_|GoOuGqbzjoN`}a8#?">
                         <field name="VAR" id="?tDUg:7`_O(*sCa3%?}E">Meldetext</field>
                       </block>
                     </value>
                   </block>
                 </next>
               </block>
             </next>
           </block>
         </statement>
       </block>
       <block type="procedures_defnoreturn" id="sDP?w~)oJD}Z95[_?EY0" x="13" y="1338">
         <mutation>
           <arg name="parameter" varid="_p/OES*!F4M-zV)UzC_f"></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="_p/OES*!F4M-zV)UzC_f">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">javascript.0.WaschmaschineAN</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>
      </xml>
      

      Edit:
      Es geht nun. Lag am Datenpunkt. Habe manuell einen erstellt mit dem Wert Logik. Vielen Dank!

      T 1 Reply Last reply Reply Quote 0
      • T
        TorstenR1962 last edited by

        Hi,

        ich glaube, es wäre eine große Hilfe, wenn im Eingangsbeitrag stehen würde, für welches Aktualisierungs-Intervall das Skript geschrieben ist. Ich stehe gerade vor dem Problem, dass meine Tasmota ursprünglich 300 Sekunden als Intervall drin hatte, es dann auf 10 Sekunden geändert wurde (nach nem Youtube Video zum Thema Waschmaschine). Aktuell steht es jetzt bei 30.

        Ich möchte gerne das Skript mit den 40 Sekunden verwenden. Sehe ich das nun richtig, dass der Timer dann kleiner als das Aktualisierungsintervall sein muss? Wenn ich es auf 60 Sekunden stelle, ist alles tutti? 30 Sekunden wären zu wenig, weil das Skript ja dann wieder komplett neu anlaufen würde, korrekt?

        Ich teste das natürlich direkt mit ner Zahl größer als 40 Sekunden, logo, aber ich glaube das Einstellen/Feintuning der Intervalle/Timeouts könnte ich noch gut als keine "Lehrstunde" vertragen. Und sei es nur ein kleiner Absatz von jmd der Ahnung davon hat.

        Gruß und Danke im Voraus.

        rantanplan 1 Reply Last reply Reply Quote 0
        • rantanplan
          rantanplan @TorstenR1962 last edited by

          @TorstenR1962
          Hi,

          Ich benutze einen Funkstecker von HomeMatic.
          Dort habe ich die Standardeinstellungen belassen.
          Ehrlich gesagt, bin ich gar nicht auf die Idee gekommen dort etwas zu ändern.
          Bei den vielen unterschiedlichen Aktoren, ist dies aber wirklich eine mögliche Fehlerquelle. Danke für den Tip!
          Wird dem Einen oder Anderen vielleicht helfen.
          Hier mal die Werkseinstellungen meines Funksteckers-Waschmaschine, mit denen mein Script einwandfrei läuft.
          Parameter.png

          Grüße

          T 1 Reply Last reply Reply Quote 1
          • T
            TorstenR1962 @rantanplan last edited by

            @rantanplan

            Hi und danke für die schnelle Antwort. Das ist ja interessant, was du alles einstellen kannst. Ich kann beim tasmota nur die "Telemetry period (300)" als Intervall einstellen. Die stand bei 300 und nun bei 60.
            Bei deiner homematic wird der Wert zb erst dann geschickt, wenn er sich geändert hat, das kann meiner nicht. Er schickt einfach alles.
            Und bei dir sieht es so aus, als wäre das Sendeintervall variabel. Hmmm.

            Ich teste dann mal mit verschiedenen Zeiten und Timern. Und, ich guck mir mal Preise für Homematics an, habe bislang nur gosunds und davon eine zum tasmota geflashed.
            Grüße

            rantanplan 1 Reply Last reply Reply Quote 0
            • rantanplan
              rantanplan @TorstenR1962 last edited by

              @TorstenR1962
              Versuch doch mal den Start vom Trigger von "geändert" auf "aktualisiert" zu ändern.
              Dann rennt das Script auch los wenn dein Aktor mit dem gleichen Wert aktualisiert.

              T 1 Reply Last reply Reply Quote 1
              • T
                TorstenR1962 @rantanplan last edited by

                @rantanplan

                Danke dir, kommt auch auf die Liste zum testen. Ich denke, morgen ist wieder Waschtag. Könnte auch nen Ventilator dran hängen, aber dann müsste ich wieder einiges umstöpseln und laufen..... 🙂

                Auf alle Fälle sehr spannend, das Thema iobroker. Wurde anfangs nicht so warm damit, aber mittlerweile sehr begeistert.

                Gruß

                1 Reply Last reply Reply Quote 0
                • T
                  TorstenR1962 @jwerlsdf last edited by

                  @jwerlsdf said in [VORLAGE] Blockly Meldung wenn Waschmaschine fertig:

                  Es geht nun. Lag am Datenpunkt. Habe manuell einen erstellt mit dem Wert Logik. Vielen Dank!

                  Hi,

                  das war auch mein Problem. Der Datenpunkt wurde nicht korrekt erzeugt. Nach manueller Erstellung klappt nun die "Hürde 1" 🙂

                  Gruß

                  1 Reply Last reply Reply Quote 0
                  • T
                    TorstenR1962 last edited by TorstenR1962

                    Hallo Zusammen,
                    das Skript funktioniert jetzt bei mir, also gebe ich Rückmeldung für die Variablen und das Setting.

                    Als Hardware wird eine Gosund SP1 genutzt, die per OTA die Firmware Tasmota 8.3.1 by Theo Arends bekam. MQTT wurde dort eingerichtet, bekam aber einen anderen Port als das iobroker mqtt, da nur durch einen anderen Port, der Sonoff Adapter korrekt läuft. Per MQTT kommen die Werte nicht einzeln, sondern in einem langen String. Die Auswertung via Sonoff ist einfacher.

                    Im Menüpunkt Logging ist bei Telemetry period (300) der Wert 30 eingetragen. Ein zu geringer Wert würde einen Broker evtl überlasten. Mit 10 Sekunden ging es eigentlich auch, aber meine letzten Tests für die WaMa waren mit 30 Sekunden "stabiler".

                    Um das Skript von @rantanplan korrekt zu nutzen, mussten 3 Dinge geändert werden, bzw man muss beim Import und Starten drauf achten, dass die korrekt sind:

                    1. Der Datenpunkt wird durch das Skript nicht richtig erzeugt. Wenn man den manuell erstellt, funktioniert er. Das ist aber auch bei einigen anderen Problemen mit dem iobroker die meist einfachste Variante. Datenpunkt selber erstellen.

                    2. Beim Import wird bei der Funktion "check wenn fertig", der falsche timeout gestoppt. Es muss timeout ausgewählt werden.

                    3. Der Timeout in der Funktion wurde bei mir auf 3 Minuten erhöht, statt 40 Sekunden.

                    Die Punkte 1+2 wurden hier schon mal genannt, aber, ich dachte mir, wenn ich hier schon "sammel", dann pack ich das in den Beitrag direkt mit rein.

                    Grüße
                    auch von der Waschfee 🙂

                    Edit:
                    Nächstes Projekt. Türklingel, von anno dazumal, smart machen.

                    1 Reply Last reply Reply Quote 0
                    • X
                      xADDRx last edited by

                      Guten Tag zusammen,

                      ich habe ein Problem seit einigen Tagen:

                      folgende Blockly funktionerte schon immer ohne Probleme:
                      90a8d0d4-5f6a-4c1a-a2f4-49f22993c93f-grafik.png

                      Jetzt bekomme ich alle paar Sekunden die Meldung Waschmaschine fertig, Waschmaschine gestartet....

                      Ich habe nichts verändert...

                      Jemand eine Idee?

                      Danke

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

                        @xADDRx ok einfach mal lesen...

                        Danke:

                        @Master-Rudi
                        In der untersten Funktion checkFertig muss es m.E. 'stop timeout' heissen statt 'stop Einschaltverzögerung'.

                        T 1 Reply Last reply Reply Quote 0
                        • T
                          TorstenR1962 @xADDRx last edited by

                          @xADDRx
                          Wie kommt es denn, dass sich der Begriff timeout bei dir verändert hat?

                          dslraser 1 Reply Last reply Reply Quote 0
                          • dslraser
                            dslraser Forum Testing Most Active @TorstenR1962 last edited by dslraser

                            @TorstenR1962 sagte in [VORLAGE] Blockly Meldung wenn Waschmaschine fertig:

                            @xADDRx
                            Wie kommt es denn, dass sich der Begriff timeout bei dir verändert hat?

                            Das (kann) passieren beim Update des JS Adapters in der aktuellen Version.
                            Steht hier im Forum mehrfach.
                            Auch Intervalle können z.B. betroffen sein.

                            PS: das liegt nicht an ioBroker (Blockly ist eigentlich eine google Geschichte)

                            T 1 Reply Last reply Reply Quote 1
                            • T
                              TorstenR1962 @dslraser last edited by TorstenR1962

                              @dslraser danke für den Hinweis. Dann mach ich am besten Screenshots von den blocklies und kopiere die Skripte in txt Dateien. Vor Updates.

                              dslraser 1 Reply Last reply Reply Quote 0
                              • dslraser
                                dslraser Forum Testing Most Active @TorstenR1962 last edited by

                                @TorstenR1962 sagte in [VORLAGE] Blockly Meldung wenn Waschmaschine fertig:

                                @dslraser danke für den Hinweis. Dann mach ich am besten Screenshots von den blocklies und kopiere die Skripte in txt Dateien. Vor Updates.

                                Schaden kann es nicht. Aber soweit ich weiß ist davon nur das Update von einer "älteren Version" auf die z.Z. aktuelle Version betroffen.

                                1 Reply Last reply Reply Quote 0
                                • H
                                  huhie last edited by

                                  Moin Zusammen,

                                  ich habe das Skript bei mir via Blockly bearbeitet und meine Datenpunkte gesetzt. Meine WaMa
                                  hat als untersten "Wattpunkt" 2 Watt. Danach geht Sie aus.

                                  Davor sind es immer um die 3 Watt. (siehe Flottdiagramm)

                                  1.jpg

                                  Zum Einsatz kommt eine Tasmota geflashte Gosund SP111, die ich mit einer 60Watt Birne kalibriert habe.

                                  Irgendwie funktioniert das Skript aber nicht richtig, da ich die Meldung "Die Waschmaschine läuft jetzt und die Waschmaschine
                                  drei Mal hintereinander bekomme.

                                  2.jpg

                                  (Die Berechnung mal völlig aussen vor gelassen, die muss ich nochmal korrekt einstellen)

                                  Welchen Grenzwert würdet ihr denn einsetzen?

                                  Mein Skript hier im Spoiler. Ich hoffe nicht das ich da noch was privates veröffentliche. 🙂

                                  Kann mir da jemand helfen?


                                  <xml xmlns="https://developers.google.com/blockly/xml">
                                  <variables>
                                  <variable id="lU[sz*.5g@Abws3M,.M">parameter</variable> <variable id="(VhIrpJ%nCr0cY{b[Ov_">VerzoegerungAktiv</variable> <variable id="L,$dtJN0]tDR~*+dgv6g">GrenzWertInWatt</variable> <variable type="timeout" id="timeout">timeout</variable> <variable type="timeout" id="Einschaltverzoegerung">Einschaltverzoegerung</variable> </variables> <block type="comment" id="@s,ARMz+DZns;z2m_" x="13" y="155">
                                  <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="(VhIrpJ%nCr0cY{b[Ov_">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/qeh;RCmGKL">
                                  <field name="COMMENT">Entscheidungswert festlegen</field>
                                  <next>
                                  <block type="variables_set" id="pE;t15K()B2=@=,RY5D_">
                                  <field name="VAR" id="L,$dtJN0]tDR~
                                  +dgv6g">GrenzWertInWatt</field>
                                  <value name="VALUE">
                                  <block type="math_number" id="OB=)nO2pXH:1HNwm(JpG">
                                  <field name="NUM">1.5</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.Gosund-SP111-Waschmaschine.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="QjKQBxPdHENcy)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="(VhIrpJ%nCr0cY{b[Ov_">VerzoegerungAktiv</field> <value name="VALUE"> <block type="logic_boolean" id=")}Jh9zUdflaLNnL+;^h="> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="debug" id="Wv*jiP9Bn3#//0KE[4e["> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="!hyL_SIc#q!nV1G.NU,/"> <field name="TEXT">***Starte Verzögerung</field> </shadow> </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="(VhIrpJ%nCr0cY{b[Ov_">VerzoegerungAktiv</field> <value name="VALUE"> <block type="logic_boolean" id="S5R1RMtIKx(=N;}|dM%Z"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="debug" id="1^,/eLLAT{#66hqVIel8"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="[koH26;mOP0UeXV~CJRb"> <field name="TEXT">***Beende Verzögerung</field> </shadow> </value> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </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=ekdUdF=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="L,$dtJN0]tDR~*+dgv6g">GrenzWertInWatt</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="*YH0qa!fsBeI/2Cv+c" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="zC,(}TPXAvX2yd^kW.
                                  ">
                                  <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.Waschmaschine.WaschmaschineAN</field>
                                  </block>
                                  </value>
                                  <value name="B">
                                  <block type="logic_boolean" id=";a5=vVD86hstjR{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="(VhIrpJ%nCr0cY{b[Ov
                                  ">VerzoegerungAktiv</field>
                                  </block>
                                  </value>
                                  <value name="B">
                                  <block type="logic_boolean" id="9_[X?aI?X1w]lj.RYK^"> <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.Waschmaschine.WaschmaschineAN</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="telegram" id="X!v@C3+*U]CsjorzPH$R"> <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="{2ku?kiwkoxFjH^Def?-"> <field name="TEXT">Die</field> </shadow> <block type="text" id="JdR(UNk2T(23?MOy^Y$q"> <field name="TEXT">Die Waschmaschine läuft jetzt! </field> </block> </value> <value name="USERNAME"> <block type="text" id="8fT_w;lXHR4u*fP3E|87"> <field name="TEXT">Tore</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="L,$dtJN0]tDR~+dgv6g">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="L,$dtJN0]tDR~
                                  +dgv6g">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.Waschmaschine.WaschmaschineAN</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> <block type="procedures_defnoreturn" id="sDP?w~)oJD}Z95[_?EY0" x="13" y="1438"> <mutation> <arg name="parameter" varid="lU[sz*.5g@Abws3M,.M"></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">Einschaltverzoegerung</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="uT6f!Y:?Sivq1F-y;7_">
                                  <field name="VAR" id="lU[sz
                                  .5g@Abws3M,.M">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="fUTRz:hy1K[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">60</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.Waschmaschine.WaschmaschineAN</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="debug" id="SYQu;@N0JgE!W~[JZcZ_">
                                  <field name="Severity">log</field>
                                  <value name="TEXT">
                                  <shadow type="text" id="4+J8c.^+FrkDV^]dAda-">
                                  <field name="TEXT">Waschmaschine fertig</field>
                                  </shadow>
                                  </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="telegram" id="POjv;@Fz}hJ{DG9~vK:a">
                                  <field name="INSTANCE"></field>
                                  <field name="LOG">log</field>
                                  <field name="SILENT">FALSE</field>
                                  <field name="PARSEMODE">default</field>
                                  <value name="MESSAGE">
                                  <shadow type="text" id="tx1h=g0SEZyW7it_kcza">
                                  <field name="TEXT">Gisela, die Waschmaschine ist fertig</field>
                                  </shadow>
                                  <block type="text_join" id="$3|UPsj#*tk3b!DH8wn9">
                                  <mutation items="7"></mutation>
                                  <value name="ADD0">
                                  <block type="text" id="[YCpiqt%ThyR3.99y/x/">
                                  <field name="TEXT">Die Waschmaschine ist fertig </field>
                                  </block>
                                  </value>
                                  <value name="ADD1">
                                  <block type="text" id="@-=KxVc#5!/fb(eyEh/"> <field name="TEXT">und hat heute </field> </block> </value> <value name="ADD2"> <block type="get_value" id="!l[@@+dxJ4-{k},yr0%_"> <field name="ATTR">val</field> <field name="OID">sonoff.0.Gosund-SP111-Waschmaschine.ENERGY_Today</field> </block> </value> <value name="ADD3"> <block type="text" id="6$Kfhj=[4|TiPjt+@Q_T"> <field name="TEXT">kWh beim Waschen verbraucht. </field> </block> </value> <value name="ADD4"> <block type="text" id="P6m@UQ1mJO0!Z^M_a{5">
                                  <field name="TEXT">Das sind: </field>
                                  </block>
                                  </value>
                                  <value name="ADD5">
                                  <block type="math_rndfixed" id="Ocwyj+5@VX$wn,ydS#5"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id=".L}atsN#]lcesjL1a$$-"> <field name="NUM">3.1234</field> </shadow> <block type="math_arithmetic" id=".T{wH*pEYQoS:Y(w,QCQ"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="NNrWlUo0#cZKQ95rHo#E"> <field name="NUM">1</field> </shadow> <block type="get_value" id="n5j{)8OC4r8aIS_[3j1J"> <field name="ATTR">val</field> <field name="OID">sonoff.0.Gosund-SP111-Waschmaschine.ENERGY_Today</field> </block> </value> <value name="B"> <shadow type="math_number" id="}XUPChu-;3,fi6/Q:U5M"> <field name="NUM">31</field> </shadow> </value> </block> </value> </block> </value> <value name="ADD6"> <block type="text" id="G8eag).8ghT$5aw+g?Ih"> <field name="TEXT">Euro</field> </block> </value> </block> </value> <value name="USERNAME"> <block type="text" id="MweD:m^Ny$fGYKjf(`C">
                                  <field name="TEXT"></field>
                                  </block>
                                  </value>
                                  </block>
                                  </next>
                                  </block>
                                  </next>
                                  </block>
                                  </next>
                                  </block>
                                  </next>
                                  </block>
                                  </next>
                                  </block>
                                  </statement>
                                  </block>
                                  </next>
                                  </block>
                                  </statement>
                                  </block>
                                  </next>
                                  </block>
                                  </next>
                                  </block>
                                  </statement>
                                  </block>
                                  </xml>

                                  1 Reply Last reply Reply Quote 0
                                  • Rababersaft
                                    Rababersaft last edited by

                                    Hallo liebe Leute,
                                    erstmal vielen lieben Dank für die Vorlage.

                                    Ich habe es ein wenig modifiziert, mit einer Kostenberechnung und über meine Homematic IP Steckdose (Standarteinstellung) am Laufen und möchte es euch nicht vorenthalten.

                                    <xml xmlns="https://developers.google.com/blockly/xml">
                                      <variables>
                                        <variable id="hFunOGBZcTXA#u6pg1/N">Meldetext</variable>
                                        <variable id="-I?6bgsaOwC_Ot_=lubM">parameter</variable>
                                        <variable id="/X7^!,3ed[@~:K1W1m~y">wartezeit</variable>
                                        <variable id="iudvL[/g8HU53/JA:jNL">Strompreis_proKWh</variable>
                                        <variable id="D{t#lK_dwK_y*kR}o]?V">VerzoegerungAktiv</variable>
                                        <variable id="v^vY=sz-rXYRR-=3NZYi">GrenzWertInWatt</variable>
                                        <variable id="/mlJ|]H$WBhj/HlKp={M">Waschdauer</variable>
                                        <variable type="timeout" id="timeout">timeout</variable>
                                        <variable id="id5*A#_}QH!*|tRHHXMu">EnergieVerbrauch</variable>
                                        <variable id=")aU%h@rMlr2se[EG@%r{">EnergieVerbrauchEuro</variable>
                                        <variable type="timeout" id="Einschaltverzoegerung">Einschaltverzoegerung</variable>
                                      </variables>
                                      <block type="create" id=":XvakORUFJ^_I1/^;0qD" x="13" y="13">
                                        <field name="NAME">Eigene_Datenpunkte.HWR.Waschmaschine.WaschmaschineAN</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="D{t#lK_dwK_y*kR}o]?V">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="v^vY=sz-rXYRR-=3NZYi">GrenzWertInWatt</field>
                                                            <value name="VALUE">
                                                              <block type="get_value" id="7G;4PDP)!E{^5{z}{PV0">
                                                                <field name="ATTR">val</field>
                                                                <field name="OID">javascript.0.Eigene_Datenpunkte.HWR.Waschmaschine.Schwellwert</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">hm-rpc.1.0001D8A9933EFD.6.CURRENT</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="D{t#lK_dwK_y*kR}o]?V">VerzoegerungAktiv</field>
                                                                                    <value name="VALUE">
                                                                                      <block type="logic_boolean" id=")}Jh9zUdflaLNnL+;^h=">
                                                                                        <field name="BOOL">TRUE</field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <next>
                                                                                      <block type="debug" id="Wv*jiP9Bn3#//0KE[4e[">
                                                                                        <field name="Severity">log</field>
                                                                                        <value name="TEXT">
                                                                                          <shadow type="text" id="!hyL_SIc#q!nV1G.NU,/">
                                                                                            <field name="TEXT">***Starte Verzögerung</field>
                                                                                          </shadow>
                                                                                        </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="D{t#lK_dwK_y*kR}o]?V">VerzoegerungAktiv</field>
                                                                                                        <value name="VALUE">
                                                                                                          <block type="logic_boolean" id="S5R1RMtIKx(=N;}|dM%Z">
                                                                                                            <field name="BOOL">FALSE</field>
                                                                                                          </block>
                                                                                                        </value>
                                                                                                        <next>
                                                                                                          <block type="debug" id="1^,/eLLAT{#66hqVIel8">
                                                                                                            <field name="Severity">log</field>
                                                                                                            <value name="TEXT">
                                                                                                              <shadow type="text" id="[koH26;mOP0UeXV~CJRb">
                                                                                                                <field name="TEXT">***Beende Verzögerung</field>
                                                                                                              </shadow>
                                                                                                            </value>
                                                                                                          </block>
                                                                                                        </next>
                                                                                                      </block>
                                                                                                    </next>
                                                                                                  </block>
                                                                                                </next>
                                                                                              </block>
                                                                                            </statement>
                                                                                          </block>
                                                                                        </next>
                                                                                      </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="v^vY=sz-rXYRR-=3NZYi">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">javascript.0.Eigene_Datenpunkte.HWR.Waschmaschine.WaschmaschineAN</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="D{t#lK_dwK_y*kR}o]?V">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">javascript.0.Eigene_Datenpunkte.HWR.Waschmaschine.WaschmaschineAN</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="get_value" id="V-y6EsZw%6T}y0dD2L=b">
                                                                                            <field name="ATTR">val</field>
                                                                                            <field name="OID">javascript.0.Eigene_Datenpunkte.HWR.Waschmaschine.Ansage</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="v^vY=sz-rXYRR-=3NZYi">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="v^vY=sz-rXYRR-=3NZYi">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">javascript.0.Eigene_Datenpunkte.HWR.Waschmaschine.WaschmaschineAN</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>
                                      <block type="procedures_defnoreturn" id="l1.gm`YNTt2#Ww;_Stf+" x="13" y="1288">
                                        <mutation>
                                          <arg name="Meldetext" varid="hFunOGBZcTXA#u6pg1/N"></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="hFunOGBZcTXA#u6pg1/N">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="N%hus5Fj::jrrPBhGG$r">
                                                                    <field name="INSTANCE">.0</field>
                                                                    <field name="LOG"></field>
                                                                    <field name="SILENT">FALSE</field>
                                                                    <field name="PARSEMODE">default</field>
                                                                    <value name="MESSAGE">
                                                                      <shadow type="text" id="5;Z=IiN?hQ!Bx%Wm1oeu">
                                                                        <field name="TEXT">Die Waschmaschine wurde angeschalten.</field>
                                                                      </shadow>
                                                                      <block type="variables_get" id="50w[]},}tV:Vl/A:@GQq">
                                                                        <field name="VAR" id="hFunOGBZcTXA#u6pg1/N">Meldetext</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="USERNAME">
                                                                      <block type="text" id=":pMV8/SRmkiL0{dTY=h7">
                                                                        <field name="TEXT">Rababersaft</field>
                                                                      </block>
                                                                    </value>
                                                                    <next>
                                                                      <block type="control" id="3D$/CNc~D7-5_d;SPJ.h">
                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                        <field name="OID">alexa2.0.Echo-Devices.G090LV03704104V7.Commands.speak</field>
                                                                        <field name="WITH_DELAY">FALSE</field>
                                                                        <value name="VALUE">
                                                                          <block type="variables_get" id="x^dL2IsNfccHmEc_5mMG">
                                                                            <field name="VAR" id="hFunOGBZcTXA#u6pg1/N">Meldetext</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </statement>
                                      </block>
                                      <block type="procedures_defnoreturn" id="sDP?w~)oJD}Z95[_?EY0" x="13" y="1738">
                                        <mutation>
                                          <arg name="parameter" varid="-I?6bgsaOwC_Ot_=lubM"></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="variables_set" id=".=1]f;4,Ld}|j(JT8H0H">
                                                <field name="VAR" id="/X7^!,3ed[@~:K1W1m~y">wartezeit</field>
                                                <value name="VALUE">
                                                  <block type="math_arithmetic" id="NSbiq}Sazn|YVyF=Ht+B">
                                                    <field name="OP">MULTIPLY</field>
                                                    <value name="A">
                                                      <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number">
                                                        <field name="NUM">1</field>
                                                      </shadow>
                                                      <block type="get_value" id="PWs_2Er@1)??^rlTiCyR">
                                                        <field name="ATTR">val</field>
                                                        <field name="OID">javascript.0.Eigene_Datenpunkte.HWR.Waschmaschine.Wartezeit</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <shadow type="math_number" id=":JXx/;=Y[JpE1wK]fN#=">
                                                        <field name="NUM">60000</field>
                                                      </shadow>
                                                    </value>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="timeouts_cleartimeout" id="y7iPL;/^^,*);q|%Pk6;">
                                                    <field name="NAME">Einschaltverzoegerung</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="-I?6bgsaOwC_Ot_=lubM">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">wartezeit</field>
                                                                <field name="UNIT">ms</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">javascript.0.Eigene_Datenpunkte.HWR.Waschmaschine.WaschmaschineAN</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="get_value" id="@E,iu;CK`xds=QaR=f?d">
                                                                            <field name="ATTR">val</field>
                                                                            <field name="OID">javascript.0.Eigene_Datenpunkte.HWR.Waschmaschine.Ansage_Aus</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </statement>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </statement>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </statement>
                                      </block>
                                      <block type="comment" id="Ndk2|M:b%{xY#gAT;#GB" x="13" y="2113">
                                        <field name="COMMENT">Strompreisberechnung</field>
                                        <next>
                                          <block type="comment" id=",oUiU+);[kwQjaK$Jh|=">
                                            <field name="COMMENT">und Meldung an TG</field>
                                            <next>
                                              <block type="variables_set" id="0hM-ii.o^!}n{7IE2@)-">
                                                <field name="VAR" id="iudvL[/g8HU53/JA:jNL">Strompreis_proKWh</field>
                                                <value name="VALUE">
                                                  <block type="math_number" id="5gOZS$(3{]gruLzkthKw">
                                                    <field name="NUM">0.2494</field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="on_ext" id="k:@3t/x/}S@JI_~Uh5wT">
                                                    <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="XmMa@,ld{@#|KwBmpZ)v">
                                                        <field name="oid">javascript.0.Eigene_Datenpunkte.HWR.Waschmaschine.WaschmaschineAN</field>
                                                      </shadow>
                                                    </value>
                                                    <statement name="STATEMENT">
                                                      <block type="controls_if" id="5|+:^$[-:4(J^fPG,NZ,">
                                                        <mutation else="1"></mutation>
                                                        <value name="IF0">
                                                          <block type="on_source" id="]KFop3Fiy|)q?#%IO`!^">
                                                            <field name="ATTR">state.val</field>
                                                          </block>
                                                        </value>
                                                        <statement name="DO0">
                                                          <block type="variables_set" id="tfpv1HGN^BVN/DXL*$jR">
                                                            <field name="VAR" id="/mlJ|]H$WBhj/HlKp={M">Waschdauer</field>
                                                            <value name="VALUE">
                                                              <block type="time_get" id="Po%YjhRka(b0OVbVw%~T">
                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                <field name="OPTION">sid</field>
                                                              </block>
                                                            </value>
                                                            <next>
                                                              <block type="variables_set" id="jpff2s7PVg;HulDGklVe">
                                                                <field name="VAR" id="id5*A#_}QH!*|tRHHXMu">EnergieVerbrauch</field>
                                                                <value name="VALUE">
                                                                  <block type="convert_tonumber" id="I8?TM5A`sy!f4lJ7-dZa">
                                                                    <value name="VALUE">
                                                                      <block type="get_value" id="b//hv.0irfww(?)P|)~Q">
                                                                        <field name="ATTR">val</field>
                                                                        <field name="OID">hm-rpc.1.0001D8A9933EFD.6.ENERGY_COUNTER</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </statement>
                                                        <statement name="ELSE">
                                                          <block type="variables_set" id="04(n4PXf;W_00Kfhk`q/">
                                                            <field name="VAR" id="/mlJ|]H$WBhj/HlKp={M">Waschdauer</field>
                                                            <value name="VALUE">
                                                              <block type="math_arithmetic" id="Pg%=K2BUsuE?Vk+jkVMq">
                                                                <field name="OP">MINUS</field>
                                                                <value name="A">
                                                                  <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number">
                                                                    <field name="NUM">1</field>
                                                                  </shadow>
                                                                  <block type="time_get" id="X22ej-_2JTOba_}1(jWZ">
                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                    <field name="OPTION">sid</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number">
                                                                    <field name="NUM">1</field>
                                                                  </shadow>
                                                                  <block type="variables_get" id="uR~d_zgedFdL3)aEA%5*">
                                                                    <field name="VAR" id="/mlJ|]H$WBhj/HlKp={M">Waschdauer</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <next>
                                                              <block type="variables_set" id="ZANy7N^0)#.+-dp97$rg">
                                                                <field name="VAR" id="id5*A#_}QH!*|tRHHXMu">EnergieVerbrauch</field>
                                                                <value name="VALUE">
                                                                  <block type="math_arithmetic" id="g9eF,;1r*w_PT]lABWT*">
                                                                    <field name="OP">MINUS</field>
                                                                    <value name="A">
                                                                      <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number">
                                                                        <field name="NUM">1</field>
                                                                      </shadow>
                                                                      <block type="convert_tonumber" id="5OQMP_KUWm*)UI=XJ_|V">
                                                                        <value name="VALUE">
                                                                          <block type="get_value" id="`fk^)dW`:WbGP3{Z`eMv">
                                                                            <field name="ATTR">val</field>
                                                                            <field name="OID">hm-rpc.1.0001D8A9933EFD.6.ENERGY_COUNTER</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number">
                                                                        <field name="NUM">1</field>
                                                                      </shadow>
                                                                      <block type="variables_get" id=":`[5v]Q;dgh-^nv]Oa_I">
                                                                        <field name="VAR" id="id5*A#_}QH!*|tRHHXMu">EnergieVerbrauch</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                                <next>
                                                                  <block type="variables_set" id="]SEB[(q32t-.x.3^bGr;">
                                                                    <field name="VAR" id=")aU%h@rMlr2se[EG@%r{">EnergieVerbrauchEuro</field>
                                                                    <value name="VALUE">
                                                                      <block type="math_arithmetic" id="R,NJL#n-eV6wsTYON?1L">
                                                                        <field name="OP">MULTIPLY</field>
                                                                        <value name="A">
                                                                          <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number">
                                                                            <field name="NUM">1</field>
                                                                          </shadow>
                                                                          <block type="math_arithmetic" id="12F{3ttb*u`[yKe[.rV0">
                                                                            <field name="OP">DIVIDE</field>
                                                                            <value name="A">
                                                                              <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number">
                                                                                <field name="NUM">1</field>
                                                                              </shadow>
                                                                              <block type="variables_get" id="z:bk]x1u#poog-D9M?vA">
                                                                                <field name="VAR" id="id5*A#_}QH!*|tRHHXMu">EnergieVerbrauch</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="B">
                                                                              <shadow type="math_number" id="M]1V$Vy=H(s0A1WM{:zx">
                                                                                <field name="NUM">1000</field>
                                                                              </shadow>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number">
                                                                            <field name="NUM">0.277</field>
                                                                          </shadow>
                                                                          <block type="variables_get" id="4iY39:AuWZWmD`e!wFp{">
                                                                            <field name="VAR" id="iudvL[/g8HU53/JA:jNL">Strompreis_proKWh</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                    <next>
                                                                      <block type="telegram" id="$c**uPY9!D3]=4U,yy3q">
                                                                        <field name="INSTANCE">.0</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"></shadow>
                                                                          <block type="text_join" id="E!znRV;PPJsEi(1!)[=x" inline="false">
                                                                            <mutation items="7"></mutation>
                                                                            <value name="ADD0">
                                                                              <block type="text" id="$kc;o(Zx2Jxxn?,@T[:]">
                                                                                <field name="TEXT">Der Waschvorgang dauerte </field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="ADD1">
                                                                              <block type="math_round" id="{Hl,j~GV1!K]{7|DovlY">
                                                                                <field name="OP">ROUND</field>
                                                                                <value name="NUM">
                                                                                  <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number">
                                                                                    <field name="NUM">3.1</field>
                                                                                  </shadow>
                                                                                  <block type="math_arithmetic" id="OS2gkL3Ip[Kc`K{P|$?_">
                                                                                    <field name="OP">DIVIDE</field>
                                                                                    <value name="A">
                                                                                      <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number">
                                                                                        <field name="NUM">1</field>
                                                                                      </shadow>
                                                                                      <block type="variables_get" id="/+cgM,)r!WQjI%(Korpu">
                                                                                        <field name="VAR" id="/mlJ|]H$WBhj/HlKp={M">Waschdauer</field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <value name="B">
                                                                                      <shadow type="math_number" id="!J_R~_G]gqb[L4?]i;c_">
                                                                                        <field name="NUM">60</field>
                                                                                      </shadow>
                                                                                    </value>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </value>
                                                                            <value name="ADD2">
                                                                              <block type="text" id="KZNFv;w]$bD2eGGEjTDz">
                                                                                <field name="TEXT"> Minuten und hat </field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="ADD3">
                                                                              <block type="math_rndfixed" id="s!Kcg|!3wt[pfwY%`D*^">
                                                                                <field name="n">2</field>
                                                                                <value name="x">
                                                                                  <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number">
                                                                                    <field name="NUM">3.1234</field>
                                                                                  </shadow>
                                                                                  <block type="math_arithmetic" id="$,AkcAdd$YTh=by|`Ie1">
                                                                                    <field name="OP">DIVIDE</field>
                                                                                    <value name="A">
                                                                                      <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number">
                                                                                        <field name="NUM">1</field>
                                                                                      </shadow>
                                                                                      <block type="variables_get" id="zcy$`fGs/,Ub@I6cbW:c">
                                                                                        <field name="VAR" id="id5*A#_}QH!*|tRHHXMu">EnergieVerbrauch</field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <value name="B">
                                                                                      <shadow type="math_number" id="pv08rEn.4W(|=IA2r-Mi">
                                                                                        <field name="NUM">1000</field>
                                                                                      </shadow>
                                                                                    </value>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </value>
                                                                            <value name="ADD4">
                                                                              <block type="text" id="Jc958~5y+B;$4hhl*%k0">
                                                                                <field name="TEXT"> kWh Energie (</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="ADD5">
                                                                              <block type="math_rndfixed" id="U)wXlbQ].B%4$[6n0pdL">
                                                                                <field name="n">2</field>
                                                                                <value name="x">
                                                                                  <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number">
                                                                                    <field name="NUM">3.1234</field>
                                                                                  </shadow>
                                                                                  <block type="variables_get" id="J[Y2)z)bB_X2/ivdv9AO">
                                                                                    <field name="VAR" id=")aU%h@rMlr2se[EG@%r{">EnergieVerbrauchEuro</field>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </value>
                                                                            <value name="ADD6">
                                                                              <block type="text" id="zUJTZDW}g3}DpA8-}[q;">
                                                                                <field name="TEXT"> €) beim Waschen verbraucht.</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                        <value name="USERNAME">
                                                                          <block type="text" id="A;jfVZF{(X_vE]=YMMW}">
                                                                            <field name="TEXT">Rababersaft</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </statement>
                                                      </block>
                                                    </statement>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </xml>
                                    

                                    Viel Spass.... Falls jemanden eine Verbesserung oder ein Fehler auffällt, immer her damit 😉

                                    1 Reply Last reply Reply Quote 1
                                    • B
                                      Baki074 last edited by

                                      Hallo zusammen,

                                      habe leider auch das Problem dass mein Script nicht mehr funktioniert.
                                      Habe bereits beim letzten "checkFertig" den timeout gestoppt (war vorher Einschaltverzögerung) - wie oben schon erwähnt.
                                      Zudem habe ich den Datenpunkt "WaschmaschineAn" als Logikwerk eingestellt. Trotzdem funktionierte es nicht.
                                      Dann habe ich einen manuellen Datenpunkt angelegt und im Skript die entsprechenden Felder ausgetauscht. Leider auch ohne Erfolg.

                                      Ich bekomme weder beim Start noch am Ende die Pushover Meldung bzw. Alexa Sprachausgabe. Soweit ich beobachten konnte ändert sich der Status vom Datenpunkt WaschmaschineAn auch nicht.

                                      Früher hat es genau mit diesem Script funktioniert. Es liegt also auch nicht am "GrenzwertinWatt".
                                      Nun weiß ich leider nicht mehr weiter was ich noch ändern könnte bzw. anpassen muss?

                                      WM.JPG
                                      WM1.JPG
                                      WM3.JPG

                                      V 1 Reply Last reply Reply Quote 0
                                      • V
                                        vikk88 @Baki074 last edited by

                                        @Baki074 ich habe das gleiche Problem. Das einzige was ich geändert habe ist den Javascript Adapter auf 4.8.4 geupdated

                                        rantanplan 1 Reply Last reply Reply Quote 0
                                        • rantanplan
                                          rantanplan @vikk88 last edited by

                                          @vikk88 Bei einem Update wurde drauf hingewiesen, dass man die Timer nach dem Update überprüfen sollte.
                                          Ich glaube da war etwas mit den Namen der Timer die eventuell nicht richtig übernommen werden.

                                          V 1 Reply Last reply Reply Quote 0
                                          • V
                                            vikk88 @rantanplan last edited by

                                            @rantanplan okay gucke ich mir nachher mal an. Danke

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            459
                                            Online

                                            31.7k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

                                            blockly template
                                            59
                                            242
                                            58960
                                            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