Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

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

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Nochmal Waschmaschine (Blockly)

NEWS

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    11
    1
    360

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    24
    1
    1.6k

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    9.5k

Nochmal Waschmaschine (Blockly)

Geplant Angeheftet Gesperrt Verschoben Skripten / Logik
153 Beiträge 18 Kommentatoren 32.7k Aufrufe 4 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • B Offline
    B Offline
    brain
    schrieb am zuletzt editiert von
    #142

    Hallo zusammen,

    ich habe die Skripte von Homer.J. (https://forum.iobroker.net/user/homer-j) etwas angepasst. Bei mir waren die Werte des Stromverbrauchs und der Stromkosten vertauscht. Zudem habe ich das Skript so angepasst, dass das zweite Skript zur Rundung der Werte überflüssig ist. Die Ausgabe erfolgt über Telegram - Versatzstücke für Alexa sind aber vorhanden und nur deaktiviert.

    <xml xmlns="http://www.w3.org/1999/xhtml">
      <variables>
        <variable type="" id="iudvL[/g8HU53/JA:jNL">Strompreis_proKWh</variable>
        <variable type="" id="?3%%L.;KPa-d6Zkoj*6T">AUS Zaehler</variable>
        <variable type="" id="/mlJ|]H$WBhj/HlKp={M">Waschdauer</variable>
        <variable type="" id="id5*A#_}QH!*|tRHHXMu">EnergieVerbrauch</variable>
        <variable type="" id=")aU%h@rMlr2se[EG@%r{">EnergieVerbrauchEuro</variable>
        <variable type="undefined" id="timeout">timeout</variable>
      </variables>
      <block type="create" id="!tN4!:gtM^}ek;|m=nHo" x="13" y="13">
        <field name="NAME">Vis.Waschmaschine.Aktiv</field>
        <next>
          <block type="comment" id="Drb49w]ON!TnRz~^vn9]">
            <field name="COMMENT">Definition des aktuellen Strompreises (€ pro KWh)</field>
            <next>
              <block type="variables_set" id="2}Lr[4V,e]r2)`DVAl}T">
                <field name="VAR" id="iudvL[/g8HU53/JA:jNL" variabletype="">Strompreis_proKWh</field>
                <value name="VALUE">
                  <block type="math_number" id="F4?M5]+8(Nvs`o4ccwyj">
                    <field name="NUM">0.2494</field>
                  </block>
                </value>
                <next>
                  <block type="comment" id="hB%p_so=4`EGzX;10:wr">
                    <field name="COMMENT">Waschmaschine_Script</field>
                    <next>
                      <block type="control" id="Kb.uPdr~gS|=7Ng+:H?a">
                        <mutation delay_input="false"></mutation>
                        <field name="OID">javascript.0.Vis.Waschmaschine.Aktiv</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="vqBy?8.1fiDNDoLrT;G~">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                        <next>
                          <block type="on_ext" id="+A7wlutQO8gBfqosc.y3">
                            <mutation items="1"></mutation>
                            <field name="CONDITION">any</field>
                            <field name="ACK_CONDITION"></field>
                            <value name="OID0">
                              <shadow type="field_oid" id="L[i=p{|ii-ai*/YAZ@8s">
                                <field name="oid">sonoff.0.DVES_54D939.ENERGY_Power</field>
                              </shadow>
                            </value>
                            <statement name="STATEMENT">
                              <block type="controls_if" id="bP`*)0;M+g9O:g?]Pd*f">
                                <mutation elseif="2"></mutation>
                                <value name="IF0">
                                  <block type="logic_operation" id="F:)qYHsI}dugF;;Tjm,A" inline="false">
                                    <field name="OP">AND</field>
                                    <value name="A">
                                      <block type="logic_compare" id="H5%_/a!o;(cd2f~t!+^Q">
                                        <field name="OP">GT</field>
                                        <value name="A">
                                          <block type="get_value" id="a:y916W!S%H|pb5qQl:J">
                                            <field name="ATTR">val</field>
                                            <field name="OID">sonoff.0.DVES_54D939.ENERGY_Power</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number" id="qFPWw{;UZY{D^a6HN4F4">
                                            <field name="NUM">60</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_compare" id="+]^D[{zcOd~)d%8C%:S9">
                                        <field name="OP">EQ</field>
                                        <value name="A">
                                          <block type="get_value" id="E4;q.WI):RF8,)P;4GaM">
                                            <field name="ATTR">val</field>
                                            <field name="OID">javascript.0.Vis.Waschmaschine.Aktiv</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="logic_boolean" id="BlP[`XK*dfV6{q],uSuN">
                                            <field name="BOOL">FALSE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="control" id="XxjRG-wx{Gis|P}j%wi{">
                                    <mutation delay_input="false"></mutation>
                                    <field name="OID">javascript.0.Vis.Waschmaschine.Aktiv</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="logic_boolean" id="8]j]NPy0pzg_@fy7#pu9">
                                        <field name="BOOL">TRUE</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="variables_set" id="SCb#?8FQqUBm.b91G*9j">
                                        <field name="VAR" id="/mlJ|]H$WBhj/HlKp={M" variabletype="">Waschdauer</field>
                                        <value name="VALUE">
                                          <block type="time_get" id="l]Y-K3-Yq9IeTq;6eJ;D">
                                            <mutation format="false" language="false"></mutation>
                                            <field name="OPTION">sid</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="variables_set" id="l:AtbY[?EmL3Z~j6^GHE">
                                            <field name="VAR" id="id5*A#_}QH!*|tRHHXMu" variabletype="">EnergieVerbrauch</field>
                                            <value name="VALUE">
                                              <block type="convert_tonumber" id="A*-+B{tOq6@wR.pmOm08">
                                                <value name="VALUE">
                                                  <block type="get_value" id="!4xv1q7L@d1n!nnMwm#!">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">sonoff.0.DVES_54D939.ENERGY_Today</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="telegram" id="i||{vH9*ebG3rYojyq#~">
                                                <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="U][E8N^7Bu/+`G(NxN}#">
                                                    <field name="TEXT">Die Waschmaschine wurde angeschalten.</field>
                                                  </shadow>
                                                </value>
                                                <next>
                                                  <block type="control" id="U8/o#8jLaToTi?Cg+j}V" disabled="true">
                                                    <mutation delay_input="false"></mutation>
                                                    <field name="OID">alexa2.0.Echo-Devices.G000RA07841712N1.Commands.speak</field>
                                                    <field name="WITH_DELAY">FALSE</field>
                                                    <value name="VALUE">
                                                      <block type="text" id="og|;Q~X%ymxt^}TjT=E(">
                                                        <field name="TEXT">`Die Waschmaschine wurde angeschalten.`</field>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="control" id="[S4^|5D^MW=j2pnJlPTc" disabled="true">
                                                        <mutation delay_input="false"></mutation>
                                                        <field name="OID">alexa2.0.Echo-Devices.G090L9107253058K.Commands.speak</field>
                                                        <field name="WITH_DELAY">FALSE</field>
                                                        <value name="VALUE">
                                                          <block type="text" id="IU]4|X5-oay[nM.|90Jd">
                                                            <field name="TEXT">`Die Waschmaschine wurde angeschalten.`</field>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="control" id="+^e?bk]q=gQO0,PSx!{D" disabled="true">
                                                            <mutation delay_input="false"></mutation>
                                                            <field name="OID">alexa2.0.Echo-Devices.G090L9107253058K.Commands.speak-volume</field>
                                                            <field name="WITH_DELAY">FALSE</field>
                                                            <value name="VALUE">
                                                              <block type="math_number" id="?3^7k+p-dhk3wF-h%vj[">
                                                                <field name="NUM">30</field>
                                                              </block>
                                                            </value>
                                                            <next>
                                                              <block type="control" id="V2F]m|:YHmMc!#00`L/:" disabled="true">
                                                                <mutation delay_input="true"></mutation>
                                                                <field name="OID">alexa2.0.Echo-Devices.G090L9107253058K.Commands.speak-volume</field>
                                                                <field name="WITH_DELAY">TRUE</field>
                                                                <field name="DELAY_MS">10</field>
                                                                <field name="UNIT">sec</field>
                                                                <field name="CLEAR_RUNNING">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="math_number" id="![Z0UZ@}0!(kC7#?o[kZ">
                                                                    <field name="NUM">40</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </statement>
                                <value name="IF1">
                                  <block type="logic_operation" id="xQ~Axjp^x}xIc}?,~bd3" inline="false">
                                    <field name="OP">AND</field>
                                    <value name="A">
                                      <block type="logic_compare" id="m:F[A,C]23{tVG.[9ogx">
                                        <field name="OP">GT</field>
                                        <value name="A">
                                          <block type="get_value" id="~9hm.bn7JuR`9T^57r|!">
                                            <field name="ATTR">val</field>
                                            <field name="OID">sonoff.0.DVES_54D939.ENERGY_Power</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number" id="KK#)EKMNqV.YXg?PWltR">
                                            <field name="NUM">25</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_operation" id="WZqeqrqbx=zB-@D)~l_!" inline="false">
                                        <field name="OP">AND</field>
                                        <value name="A">
                                          <block type="logic_compare" id="2#,2{UzKUXKc-b;aXI]d">
                                            <field name="OP">EQ</field>
                                            <value name="A">
                                              <block type="get_value" id="X|7IEq+#eQ6U]K@QZDL_">
                                                <field name="ATTR">val</field>
                                                <field name="OID">javascript.0.Vis.Waschmaschine.Aktiv</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="logic_boolean" id="88[x9TQtT`hkagX?ux;6">
                                                <field name="BOOL">TRUE</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="logic_compare" id=";5T2wjhgRkI4a=fP=txA">
                                            <field name="OP">GT</field>
                                            <value name="A">
                                              <block type="variables_get" id="X|5;WK_6+b*X7dWThdYF">
                                                <field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T" variabletype="">AUS Zaehler</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="math_number" id="JhvY#m2e){iZg*}U)U7=">
                                                <field name="NUM">0</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO1">
                                  <block type="variables_set" id="qd2jcZSX.j`maks-0XGG">
                                    <field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T" variabletype="">AUS Zaehler</field>
                                    <value name="VALUE">
                                      <block type="math_arithmetic" id="-Y}Zmf^#hm,WyL6)Kcd-">
                                        <field name="OP">MINUS</field>
                                        <value name="A">
                                          <shadow type="math_number" id="^~p~#U!R+eaJjaW~6U)d">
                                            <field name="NUM">1</field>
                                          </shadow>
                                          <block type="variables_get" id="c/b;teh7B.tfavW#3Kx2">
                                            <field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T" variabletype="">AUS Zaehler</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <shadow type="math_number" id="/@dSwZ{HpbKk6y3_q?jz">
                                            <field name="NUM">1</field>
                                          </shadow>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </statement>
                                <value name="IF2">
                                  <block type="logic_operation" id="iHpE~=uUiC0HYZE0ixfv" inline="false">
                                    <field name="OP">AND</field>
                                    <value name="A">
                                      <block type="logic_compare" id="~=`AKkV)p.LRK|-)ym#0">
                                        <field name="OP">LT</field>
                                        <value name="A">
                                          <block type="get_value" id="{bMP3Rct]s~^OxB^KYJB">
                                            <field name="ATTR">val</field>
                                            <field name="OID">sonoff.0.DVES_54D939.ENERGY_Power</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number" id="}n$r~.-0H0;Y`%V?r;zH">
                                            <field name="NUM">4</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_compare" id="!cAR@kagkdn/du!lg5?r">
                                        <field name="OP">EQ</field>
                                        <value name="A">
                                          <block type="get_value" id="9TggDfqlTj?4OO=@`~eO">
                                            <field name="ATTR">val</field>
                                            <field name="OID">javascript.0.Vis.Waschmaschine.Aktiv</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="logic_boolean" id="S1R!kS9-?kQk+KS_5Qs#">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO2">
                                  <block type="math_change" id="T.un5=.rdLl@woGn*4oJ">
                                    <field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T" variabletype="">AUS Zaehler</field>
                                    <value name="DELTA">
                                      <shadow type="math_number" id="?c=pXLOc61v3AJP.(d:k">
                                        <field name="NUM">1</field>
                                      </shadow>
                                    </value>
                                  </block>
                                </statement>
                                <next>
                                  <block type="controls_if" id="J!0cvTG#hm+.vpOmP+Dh">
                                    <value name="IF0">
                                      <block type="logic_compare" id="%AbMO?J2D[f-rCEWyq=O">
                                        <field name="OP">EQ</field>
                                        <value name="A">
                                          <block type="variables_get" id="u5FZNsypgs:pPUYsV1=g">
                                            <field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T" variabletype="">AUS Zaehler</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number" id="uaHP[P3wt-!h@M!UE]eX">
                                            <field name="NUM">7</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="telegram" id="kL*lu.zQO-Y,D,k.!fo*">
                                        <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="T_6rqN}8fY{mt}ON=7uM">
                                            <field name="TEXT">Die Waschmaschine ist fertig.</field>
                                          </shadow>
                                        </value>
                                        <next>
                                          <block type="variables_set" id="C7#M!)MBNlXWFdRyu(1/">
                                            <field name="VAR" id="/mlJ|]H$WBhj/HlKp={M" variabletype="">Waschdauer</field>
                                            <value name="VALUE">
                                              <block type="math_arithmetic" id="fwa0dvln1m_t%y4d]=*v">
                                                <field name="OP">MINUS</field>
                                                <value name="A">
                                                  <shadow type="math_number" id="W8g;#tFz%V8Kx@!mjuqj">
                                                    <field name="NUM">1</field>
                                                  </shadow>
                                                  <block type="time_get" id="%;@b8KNTHRen[LP0FvK,">
                                                    <mutation format="false" language="false"></mutation>
                                                    <field name="OPTION">sid</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <shadow type="math_number" id="@l!h1lOMpXlo8N}y:{]+">
                                                    <field name="NUM">1</field>
                                                  </shadow>
                                                  <block type="variables_get" id="XOpm)A@O%TF:(SAy7(I}">
                                                    <field name="VAR" id="/mlJ|]H$WBhj/HlKp={M" variabletype="">Waschdauer</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="variables_set" id="*EN^aV(u5xu43kU!:HRo">
                                                <field name="VAR" id="id5*A#_}QH!*|tRHHXMu" variabletype="">EnergieVerbrauch</field>
                                                <value name="VALUE">
                                                  <block type="math_arithmetic" id="C#b,V#H{+Tb1Vow^^?-m">
                                                    <field name="OP">MINUS</field>
                                                    <value name="A">
                                                      <shadow type="math_number" id="W8g;#tFz%V8Kx@!mjuqj">
                                                        <field name="NUM">1</field>
                                                      </shadow>
                                                      <block type="convert_tonumber" id="!GznomR}Q3[I`?RIED67">
                                                        <value name="VALUE">
                                                          <block type="get_value" id="e:t1-@XipZp9*++em~F|">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">sonoff.0.DVES_54D939.ENERGY_Today</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <shadow type="math_number" id="@l!h1lOMpXlo8N}y:{]+">
                                                        <field name="NUM">1</field>
                                                      </shadow>
                                                      <block type="variables_get" id="K1Op|B02aC^S,m0#m])z">
                                                        <field name="VAR" id="id5*A#_}QH!*|tRHHXMu" variabletype="">EnergieVerbrauch</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="variables_set" id="Y2yS83fmq*G;2U|Ro;gW">
                                                    <field name="VAR" id=")aU%h@rMlr2se[EG@%r{" variabletype="">EnergieVerbrauchEuro</field>
                                                    <value name="VALUE">
                                                      <block type="math_arithmetic" id="7uL[t`(}Ib-:?i/4!vhX">
                                                        <field name="OP">MULTIPLY</field>
                                                        <value name="A">
                                                          <shadow type="math_number" id="bcqkyu#ZlBXRizD{uOQ=">
                                                            <field name="NUM">1</field>
                                                          </shadow>
                                                          <block type="variables_get" id="v;1DA!_L?_j.YN!xXgh)">
                                                            <field name="VAR" id="id5*A#_}QH!*|tRHHXMu" variabletype="">EnergieVerbrauch</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <shadow type="math_number" id="iMjl!udE1s2tQ.u]cgDa">
                                                            <field name="NUM">0.277</field>
                                                          </shadow>
                                                          <block type="variables_get" id="]!,gm)!^ZwQBWMFQNf1z">
                                                            <field name="VAR" id="iudvL[/g8HU53/JA:jNL" variabletype="">Strompreis_proKWh</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="timeouts_settimeout" id=";RetM]1NMnq(gM2?*6vO">
                                                        <field name="NAME">timeout</field>
                                                        <field name="DELAY">1500</field>
                                                        <field name="UNIT">ms</field>
                                                        <statement name="STATEMENT">
                                                          <block type="telegram" id="ed05d|bQf^sw*MK?SR-6">
                                                            <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="sKyyX,f?IkAZP`RFQReF"></shadow>
                                                              <block type="text_join" id="SU~Smg]|PJWN^YhT`/UH" inline="false">
                                                                <mutation items="7"></mutation>
                                                                <value name="ADD0">
                                                                  <block type="text" id="Y(*XJm_!!kp.WBue49Ov">
                                                                    <field name="TEXT">Der Waschvorgang dauerte </field>
                                                                  </block>
                                                                </value>
                                                                <value name="ADD1">
                                                                  <block type="math_round" id="g6P{I:1G?o4sMbO@!Vpp">
                                                                    <field name="OP">ROUND</field>
                                                                    <value name="NUM">
                                                                      <shadow type="math_number" id="?Nf,7E04Ici%)__NN|G3">
                                                                        <field name="NUM">3.1</field>
                                                                      </shadow>
                                                                      <block type="math_arithmetic" id="{#58F+el+na7V8Yr{dp;">
                                                                        <field name="OP">DIVIDE</field>
                                                                        <value name="A">
                                                                          <shadow type="math_number" id="iL99}E8eI[-fCs=fI13E">
                                                                            <field name="NUM">1</field>
                                                                          </shadow>
                                                                          <block type="variables_get" id="fIFlQH_TLF~2[FpzWyS;">
                                                                            <field name="VAR" id="/mlJ|]H$WBhj/HlKp={M" variabletype="">Waschdauer</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <shadow type="math_number" id="t@(FJI)ZvKDy;s;]=oD+">
                                                                            <field name="NUM">60</field>
                                                                          </shadow>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                                <value name="ADD2">
                                                                  <block type="text" id="D!GjLrm@wJSLHTR1D]Mf">
                                                                    <field name="TEXT"> Minuten und hat </field>
                                                                  </block>
                                                                </value>
                                                                <value name="ADD3">
                                                                  <block type="math_rndfixed" id="w9Dywr+VAm2[!S8H|a#A">
                                                                    <field name="n">2</field>
                                                                    <value name="x">
                                                                      <shadow type="math_number" id="$E{uI~w,:T_bJcAFzCSm">
                                                                        <field name="NUM">3.1234</field>
                                                                      </shadow>
                                                                      <block type="variables_get" id="GGMwh2+=g9gdbBa;ss[R">
                                                                        <field name="VAR" id="id5*A#_}QH!*|tRHHXMu" variabletype="">EnergieVerbrauch</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                                <value name="ADD4">
                                                                  <block type="text" id="~aj#Zp7Q5[tkPu2Z+E9^">
                                                                    <field name="TEXT"> kWh Energie (</field>
                                                                  </block>
                                                                </value>
                                                                <value name="ADD5">
                                                                  <block type="math_rndfixed" id="[(V4R~mAlt~Dt:t2rxwo">
                                                                    <field name="n">2</field>
                                                                    <value name="x">
                                                                      <shadow type="math_number" id="%2L6^L,B2%o}]S|h%kIf">
                                                                        <field name="NUM">3.1234</field>
                                                                      </shadow>
                                                                      <block type="variables_get" id="#7GrA6XBS]9ia)Y]ErSa">
                                                                        <field name="VAR" id=")aU%h@rMlr2se[EG@%r{" variabletype="">EnergieVerbrauchEuro</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                                <value name="ADD6">
                                                                  <block type="text" id="4k%.y+PB+G=M~uRvy|C`">
                                                                    <field name="TEXT"> €) beim Waschen verbraucht.</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <next>
                                                              <block type="variables_set" id="Hvd2vL)ptc4/sfjoP3Kx">
                                                                <field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T" variabletype="">AUS Zaehler</field>
                                                                <value name="VALUE">
                                                                  <block type="math_number" id="Yz`)rz,.esx8@lC+dmm^">
                                                                    <field name="NUM">0</field>
                                                                  </block>
                                                                </value>
                                                                <next>
                                                                  <block type="control" id="sj0ZAG=ELQ-|XeWmtEg3">
                                                                    <mutation delay_input="false"></mutation>
                                                                    <field name="OID">javascript.0.Vis.Waschmaschine.Aktiv</field>
                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                    <value name="VALUE">
                                                                      <block type="logic_boolean" id="eX|Bf{oW+%BAW.Y:)kbK">
                                                                        <field name="BOOL">FALSE</field>
                                                                      </block>
                                                                    </value>
                                                                    <next>
                                                                      <block type="control" id="Wm~B(EUID|N4x3CcpJ;4" disabled="true">
                                                                        <mutation delay_input="false"></mutation>
                                                                        <field name="OID">alexa2.0.Echo-Devices.G000RA07841712N1.Commands.speak</field>
                                                                        <field name="WITH_DELAY">FALSE</field>
                                                                        <value name="VALUE">
                                                                          <block type="text" id=",[`~DnuY}F3k`IQL.%IN">
                                                                            <field name="TEXT">Die Waschmaschine ist fertig.</field>
                                                                          </block>
                                                                        </value>
                                                                        <next>
                                                                          <block type="control" id="m=!)M*Rmx8Y]:X?bYCYw" disabled="true">
                                                                            <mutation delay_input="false"></mutation>
                                                                            <field name="OID">alexa2.0.Echo-Devices.G090L9107253058K.Commands.speak</field>
                                                                            <field name="WITH_DELAY">FALSE</field>
                                                                            <value name="VALUE">
                                                                              <block type="text" id="%fIG)}0NC(b.%R~/:HvR">
                                                                                <field name="TEXT">Die Waschmaschine ist fertig.</field>
                                                                              </block>
                                                                            </value>
                                                                            <next>
                                                                              <block type="control" id="oCwZbY5b42XC4~Tr?7]+" disabled="true">
                                                                                <mutation delay_input="false"></mutation>
                                                                                <field name="OID">alexa2.0.Echo-Devices.G090L9107253058K.Commands.speak-volume</field>
                                                                                <field name="WITH_DELAY">FALSE</field>
                                                                                <value name="VALUE">
                                                                                  <block type="math_number" id="wMx|-{U0w/9E^6[_tq9-">
                                                                                    <field name="NUM">30</field>
                                                                                  </block>
                                                                                </value>
                                                                                <next>
                                                                                  <block type="control" id="Nq{j;%skk{oeGR_J)9Ue" disabled="true">
                                                                                    <mutation delay_input="true"></mutation>
                                                                                    <field name="OID">alexa2.0.Echo-Devices.G090L9107253058K.Commands.speak-volume</field>
                                                                                    <field name="WITH_DELAY">TRUE</field>
                                                                                    <field name="DELAY_MS">10</field>
                                                                                    <field name="UNIT">sec</field>
                                                                                    <field name="CLEAR_RUNNING">FALSE</field>
                                                                                    <value name="VALUE">
                                                                                      <block type="math_number" id="5)Zg=mAlU+o,gk:@IOh%">
                                                                                        <field name="NUM">40</field>
                                                                                      </block>
                                                                                    </value>
                                                                                  </block>
                                                                                </next>
                                                                              </block>
                                                                            </next>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </statement>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                  </block>
                                </next>
                              </block>
                            </statement>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </xml>
    
    1 Antwort Letzte Antwort
    0
    • F Offline
      F Offline
      freaktech
      schrieb am zuletzt editiert von
      #143

      Hallo Leute!

      ich würde das Thema auch angehen.

      hab einen shelly 1 PM
      die waschmaschine hat wenn fertig ca 2.8 Watt lt Shelly

      ich hätte gerne eine Push wenn die waschmaschine fertig ist

      gibt es wo ein fertiges Blocky dass man dann nur noch anpassen muss?
      für recht vielmehr reichts bei mir leider nicht

      danke Tom

      B 1 Antwort Letzte Antwort
      0
      • F freaktech

        Hallo Leute!

        ich würde das Thema auch angehen.

        hab einen shelly 1 PM
        die waschmaschine hat wenn fertig ca 2.8 Watt lt Shelly

        ich hätte gerne eine Push wenn die waschmaschine fertig ist

        gibt es wo ein fertiges Blocky dass man dann nur noch anpassen muss?
        für recht vielmehr reichts bei mir leider nicht

        danke Tom

        B Offline
        B Offline
        brain
        schrieb am zuletzt editiert von
        #144

        @freaktech
        Das Skript aus meinem vorigen Post ist ein Blockly-Skript. Das musst du nur importieren und die Datenpunkte ("DVES...Energy_Today", "DVES...ENERGY_Power") entsprechend auf deinen Shelly 1 PM anpassen. Danach gibt dir das Skript per Telegram jeweils eine Meldung aus, wenn die Waschmaschine angeschalten wird und wenn die Waschmaschine fertig ist.

        1 Antwort Letzte Antwort
        0
        • F Offline
          F Offline
          freaktech
          schrieb am zuletzt editiert von freaktech
          #145

          hi
          etwas kompliziert der Script

          vorab:

          wie gehst du damit um wenn die Maschine für eine gewisse Zeit im Waschvorgang unter die 4 Watt fällt ??

          da hat mein script grad dass Problem dass ich mehrmals die Info bekommen

          und auf was müsste ich DVES...Energy_Today" verlinken?

          danke
          tom

          B 1 Antwort Letzte Antwort
          0
          • F freaktech

            hi
            etwas kompliziert der Script

            vorab:

            wie gehst du damit um wenn die Maschine für eine gewisse Zeit im Waschvorgang unter die 4 Watt fällt ??

            da hat mein script grad dass Problem dass ich mehrmals die Info bekommen

            und auf was müsste ich DVES...Energy_Today" verlinken?

            danke
            tom

            B Offline
            B Offline
            brain
            schrieb am zuletzt editiert von
            #146

            @freaktech
            Das Skript habe ich auch nur oben aus dem Thread genommen und auf meine Umgebung angepasst. Das geht schon, auch wenn es lang und kompliziert aussieht!
            Das Skript prüft mit dem "AUS_Zaehler", ob der Schwellenwert für eine gewisse Zeit (hängt, wenn ich das richtig sehe vom Aktualisierungsintervall des Objekts ab) unterschritten wurde. Erst danach wird die Meldung abgeschickt.
            "DVES...Energy_Today" ist der Gesamtstromverbrauch am Tag. Ich weiß leider nicht, welche Datenpunkte der Shelly zur Verfügung stellt, von daher kann ich auch nicht sagen, worauf das anzupassen ist. Grundsätzlich würde das Skript aber auch ohen diese Angabe funktionierten. Dann fehlen dir in der Meldung aber der Stromverbrauch und die Kosten für den Waschgang.

            1 Antwort Letzte Antwort
            0
            • F Offline
              F Offline
              freaktech
              schrieb am zuletzt editiert von
              #147

              @brain said in Nochmal Waschmaschine (Blockly):

              as Skript prüft mit dem "AUS_Zaehler", ob der Schwellenwert für eine gewisse Zeit (hängt, wenn ich das richtig sehe vom Aktualisierungsintervall des Objekts ab) unterschritten wurde. Erst danach wird die Meldung abgeschickt.

              sorry ich kapier es nicht, muss es aber wissen um es verstehen und testen zu können.

              ich hab mal alles mit Stromzähler rausgeschmissen und es an den Trockner angepasst

              <xml xmlns="http://www.w3.org/1999/xhtml">
                <variables>
                  <variable type="" id="?3%%L.;KPa-d6Zkoj*6T">AUS Zaehler</variable>
                  <variable type="undefined" id="timeout">timeout</variable>
                </variables>
                <block type="create" id="!tN4!:gtM^}ek;|m=nHo" x="13" y="13">
                  <field name="NAME">Vis.Trockner.Aktiv</field>
                  <next>
                    <block type="comment" id="hB%p_so=4`EGzX;10:wr">
                      <field name="COMMENT">Waschmaschine_Script</field>
                      <next>
                        <block type="control" id="Kb.uPdr~gS|=7Ng+:H?a">
                          <mutation delay_input="false"></mutation>
                          <field name="OID">javascript.0.Vis.Trockner.Aktiv</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="vqBy?8.1fiDNDoLrT;G~">
                              <field name="BOOL">FALSE</field>
                            </block>
                          </value>
                          <next>
                            <block type="on_ext" id="+A7wlutQO8gBfqosc.y3">
                              <mutation items="1"></mutation>
                              <field name="CONDITION">any</field>
                              <field name="ACK_CONDITION"></field>
                              <value name="OID0">
                                <shadow type="field_oid" id="L[i=p{|ii-ai*/YAZ@8s">
                                  <field name="oid">shelly.0.SHSW-PM#00C9A5#1.Relay0.Power</field>
                                </shadow>
                              </value>
                              <statement name="STATEMENT">
                                <block type="controls_if" id="bP`*)0;M+g9O:g?]Pd*f">
                                  <mutation elseif="2"></mutation>
                                  <value name="IF0">
                                    <block type="logic_operation" id="F:)qYHsI}dugF;;Tjm,A" inline="false">
                                      <field name="OP">AND</field>
                                      <value name="A">
                                        <block type="logic_compare" id="H5%_/a!o;(cd2f~t!+^Q">
                                          <field name="OP">GT</field>
                                          <value name="A">
                                            <block type="get_value" id="a:y916W!S%H|pb5qQl:J">
                                              <field name="ATTR">val</field>
                                              <field name="OID">shelly.0.SHSW-PM#00C9A5#1.Relay0.Power</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="math_number" id="qFPWw{;UZY{D^a6HN4F4">
                                              <field name="NUM">10</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="logic_compare" id="+]^D[{zcOd~)d%8C%:S9">
                                          <field name="OP">EQ</field>
                                          <value name="A">
                                            <block type="get_value" id="E4;q.WI):RF8,)P;4GaM">
                                              <field name="ATTR">val</field>
                                              <field name="OID">javascript.0.Vis.Trockner.Aktiv</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="logic_boolean" id="BlP[`XK*dfV6{q],uSuN">
                                              <field name="BOOL">FALSE</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO0">
                                    <block type="control" id="XxjRG-wx{Gis|P}j%wi{">
                                      <mutation delay_input="false"></mutation>
                                      <field name="OID">javascript.0.Vis.Trockner.Aktiv</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="8]j]NPy0pzg_@fy7#pu9">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="control" id=";?CxpA%Z|M{@;xMUy3`2">
                                          <mutation delay_input="false"></mutation>
                                          <field name="OID">alexa2.1.Echo-Devices.G0911B0592860HKN.Commands.speak</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="text" id="Se91{q?jl#mfL2mr$h|@">
                                              <field name="TEXT">Der Trockner wurde angeschalten.`</field>
                                            </block>
                                          </value>
                                        </block>
                                      </next>
                                    </block>
                                  </statement>
                                  <value name="IF1">
                                    <block type="logic_operation" id="xQ~Axjp^x}xIc}?,~bd3" inline="false">
                                      <field name="OP">AND</field>
                                      <value name="A">
                                        <block type="logic_compare" id="m:F[A,C]23{tVG.[9ogx">
                                          <field name="OP">GT</field>
                                          <value name="A">
                                            <block type="get_value" id="~9hm.bn7JuR`9T^57r|!">
                                              <field name="ATTR">val</field>
                                              <field name="OID">shelly.0.SHSW-PM#00C9A5#1.Relay0.Power</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="math_number" id="KK#)EKMNqV.YXg?PWltR">
                                              <field name="NUM">10</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="logic_operation" id="WZqeqrqbx=zB-@D)~l_!" inline="false">
                                          <field name="OP">AND</field>
                                          <value name="A">
                                            <block type="logic_compare" id="2#,2{UzKUXKc-b;aXI]d">
                                              <field name="OP">EQ</field>
                                              <value name="A">
                                                <block type="get_value" id="X|7IEq+#eQ6U]K@QZDL_">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">javascript.0.Vis.Trockner.Aktiv</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="logic_boolean" id="88[x9TQtT`hkagX?ux;6">
                                                  <field name="BOOL">TRUE</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="logic_compare" id=";5T2wjhgRkI4a=fP=txA">
                                              <field name="OP">GT</field>
                                              <value name="A">
                                                <block type="variables_get" id="X|5;WK_6+b*X7dWThdYF">
                                                  <field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T" variabletype="">AUS Zaehler</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="math_number" id="JhvY#m2e){iZg*}U)U7=">
                                                  <field name="NUM">0</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO1">
                                    <block type="variables_set" id="qd2jcZSX.j`maks-0XGG">
                                      <field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T" variabletype="">AUS Zaehler</field>
                                      <value name="VALUE">
                                        <block type="math_arithmetic" id="-Y}Zmf^#hm,WyL6)Kcd-">
                                          <field name="OP">MINUS</field>
                                          <value name="A">
                                            <shadow type="math_number" id="^~p~#U!R+eaJjaW~6U)d">
                                              <field name="NUM">1</field>
                                            </shadow>
                                            <block type="variables_get" id="c/b;teh7B.tfavW#3Kx2">
                                              <field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T" variabletype="">AUS Zaehler</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <shadow type="math_number" id="/@dSwZ{HpbKk6y3_q?jz">
                                              <field name="NUM">1</field>
                                            </shadow>
                                          </value>
                                        </block>
                                      </value>
                                    </block>
                                  </statement>
                                  <value name="IF2">
                                    <block type="logic_operation" id="iHpE~=uUiC0HYZE0ixfv" inline="false">
                                      <field name="OP">AND</field>
                                      <value name="A">
                                        <block type="logic_compare" id="~=`AKkV)p.LRK|-)ym#0">
                                          <field name="OP">LT</field>
                                          <value name="A">
                                            <block type="get_value" id="{bMP3Rct]s~^OxB^KYJB">
                                              <field name="ATTR">val</field>
                                              <field name="OID">shelly.0.SHSW-PM#00C9A5#1.Relay0.Power</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="math_number" id="}n$r~.-0H0;Y`%V?r;zH">
                                              <field name="NUM">4</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="logic_compare" id="!cAR@kagkdn/du!lg5?r">
                                          <field name="OP">EQ</field>
                                          <value name="A">
                                            <block type="get_value" id="9TggDfqlTj?4OO=@`~eO">
                                              <field name="ATTR">val</field>
                                              <field name="OID">javascript.0.Vis.Trockner.Aktiv</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="logic_boolean" id="S1R!kS9-?kQk+KS_5Qs#">
                                              <field name="BOOL">TRUE</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO2">
                                    <block type="math_change" id="T.un5=.rdLl@woGn*4oJ">
                                      <field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T" variabletype="">AUS Zaehler</field>
                                      <value name="DELTA">
                                        <shadow type="math_number" id="?c=pXLOc61v3AJP.(d:k">
                                          <field name="NUM">1</field>
                                        </shadow>
                                      </value>
                                    </block>
                                  </statement>
                                  <next>
                                    <block type="controls_if" id="J!0cvTG#hm+.vpOmP+Dh">
                                      <value name="IF0">
                                        <block type="logic_compare" id="%AbMO?J2D[f-rCEWyq=O">
                                          <field name="OP">EQ</field>
                                          <value name="A">
                                            <block type="variables_get" id="u5FZNsypgs:pPUYsV1=g">
                                              <field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T" variabletype="">AUS Zaehler</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="math_number" id="uaHP[P3wt-!h@M!UE]eX">
                                              <field name="NUM">7</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <statement name="DO0">
                                        <block type="timeouts_settimeout" id=";RetM]1NMnq(gM2?*6vO">
                                          <field name="NAME">timeout</field>
                                          <field name="DELAY">1500</field>
                                          <field name="UNIT">ms</field>
                                          <statement name="STATEMENT">
                                            <block type="variables_set" id="Hvd2vL)ptc4/sfjoP3Kx">
                                              <field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T" variabletype="">AUS Zaehler</field>
                                              <value name="VALUE">
                                                <block type="math_number" id="Yz`)rz,.esx8@lC+dmm^">
                                                  <field name="NUM">0</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="control" id="sj0ZAG=ELQ-|XeWmtEg3">
                                                  <mutation delay_input="false"></mutation>
                                                  <field name="OID">javascript.0.Vis.Trockner.Aktiv</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="logic_boolean" id="eX|Bf{oW+%BAW.Y:)kbK">
                                                      <field name="BOOL">FALSE</field>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="control" id="f21,IEK#T+lXwYW}*V%8">
                                                      <mutation delay_input="false"></mutation>
                                                      <field name="OID">alexa2.1.Echo-Devices.G0911B0592860HKN.Commands.speak</field>
                                                      <field name="WITH_DELAY">FALSE</field>
                                                      <value name="VALUE">
                                                        <block type="text" id="{Co{11;fA^v[`/bDMd9f">
                                                          <field name="TEXT">Der Trockner ist fertig</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </statement>
                                        </block>
                                      </statement>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </xml>
              
              1 Antwort Letzte Antwort
              0
              • F Offline
                F Offline
                freaktech
                schrieb am zuletzt editiert von
                #148

                danke

                jetzt hab ich es kapiert

                Der Zähler 7 ist die Wartezeit, bei Shelly hat man 45 sec ich habs auf 90 erhöht

                klappt nun super

                freu mich auf die nächste Wäsche

                lg
                tom

                1 Antwort Letzte Antwort
                0
                • I ingod

                  @wendy2702:

                  Hi,

                  reicht dafür der Alexa Adapter oder muss man die Cloud Anbindung nutzen?

                  Danke und Gruß `

                  Das erste Skript zur Fertig-Meldung funktioniert mit dem Alexa-Adapter.

                  Beim 2ten Skript muss eine Alexa-Routine angelegt werden die die Schaltervariable "FrageWaschmaschine" schaltet.

                  Ich hab das mit habridge und nodered erfolgreich getestet, mit dem Cloud-Adapter sollte es aber auch funktionieren.

                  Grüsse

                  Ingo

                  F Offline
                  F Offline
                  freaktech
                  schrieb am zuletzt editiert von
                  #149

                  @ingod

                  hallo Ingod

                  FrageWaschmaschine

                  ich versteh nicht wie die Alexa APP zugriff auf die variable bekommt um den Wert zu ändern?

                  wo legst du diese an damit die Amazon APP bei den Routinen das findet?

                  danke
                  tom

                  F 1 Antwort Letzte Antwort
                  0
                  • F freaktech

                    @ingod

                    hallo Ingod

                    FrageWaschmaschine

                    ich versteh nicht wie die Alexa APP zugriff auf die variable bekommt um den Wert zu ändern?

                    wo legst du diese an damit die Amazon APP bei den Routinen das findet?

                    danke
                    tom

                    F Offline
                    F Offline
                    freaktech
                    schrieb am zuletzt editiert von
                    #150

                    @freaktech

                    so eigentlich klappt es sehr gut nur kommt wenn die WM Fertig nun alle paar Minuten die Info, diese sollte nur einmalig kommen

                    hat wer ne Idee wie ich das noch hinbekommen

                    <xml xmlns="http://www.w3.org/1999/xhtml">
                      <variables>
                        <variable type="" id="?3%%L.;KPa-d6Zkoj*6T">AUS Zaehler</variable>
                        <variable type="undefined" id="timeout">timeout</variable>
                      </variables>
                      <block type="create" id="!tN4!:gtM^}ek;|m=nHo" x="32" y="55">
                        <field name="NAME">Vis.Waschmaschine.Aktiv</field>
                        <next>
                          <block type="comment" id="hB%p_so=4`EGzX;10:wr">
                            <field name="COMMENT">Waschmaschine_Script</field>
                            <next>
                              <block type="control" id="Kb.uPdr~gS|=7Ng+:H?a">
                                <mutation delay_input="false"></mutation>
                                <field name="OID">javascript.0.Vis.Waschmaschine.Aktiv</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="vqBy?8.1fiDNDoLrT;G~">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="on_ext" id="+A7wlutQO8gBfqosc.y3">
                                    <mutation items="1"></mutation>
                                    <field name="CONDITION">any</field>
                                    <field name="ACK_CONDITION"></field>
                                    <value name="OID0">
                                      <shadow type="field_oid" id="L[i=p{|ii-ai*/YAZ@8s">
                                        <field name="oid">shelly.0.SHSW-PM#00C5E2#1.Relay0.Power</field>
                                      </shadow>
                                    </value>
                                    <statement name="STATEMENT">
                                      <block type="controls_if" id="bP`*)0;M+g9O:g?]Pd*f">
                                        <mutation elseif="2"></mutation>
                                        <value name="IF0">
                                          <block type="logic_operation" id="F:)qYHsI}dugF;;Tjm,A" inline="false">
                                            <field name="OP">AND</field>
                                            <value name="A">
                                              <block type="logic_compare" id="H5%_/a!o;(cd2f~t!+^Q">
                                                <field name="OP">GT</field>
                                                <value name="A">
                                                  <block type="get_value" id="a:y916W!S%H|pb5qQl:J">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">shelly.0.SHSW-PM#00C5E2#1.Relay0.Power</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="math_number" id="qFPWw{;UZY{D^a6HN4F4">
                                                    <field name="NUM">10</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="logic_compare" id="+]^D[{zcOd~)d%8C%:S9">
                                                <field name="OP">EQ</field>
                                                <value name="A">
                                                  <block type="get_value" id="E4;q.WI):RF8,)P;4GaM">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">javascript.0.Vis.Waschmaschine.Aktiv</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="logic_boolean" id="BlP[`XK*dfV6{q],uSuN">
                                                    <field name="BOOL">FALSE</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="DO0">
                                          <block type="control" id="XxjRG-wx{Gis|P}j%wi{">
                                            <mutation delay_input="false"></mutation>
                                            <field name="OID">javascript.0.Vis.Waschmaschine.Aktiv</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="logic_boolean" id="8]j]NPy0pzg_@fy7#pu9">
                                                <field name="BOOL">TRUE</field>
                                              </block>
                                            </value>
                                          </block>
                                        </statement>
                                        <value name="IF1">
                                          <block type="logic_operation" id="xQ~Axjp^x}xIc}?,~bd3" inline="false">
                                            <field name="OP">AND</field>
                                            <value name="A">
                                              <block type="logic_compare" id="m:F[A,C]23{tVG.[9ogx">
                                                <field name="OP">GT</field>
                                                <value name="A">
                                                  <block type="get_value" id="~9hm.bn7JuR`9T^57r|!">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">shelly.0.SHSW-PM#00C5E2#1.Relay0.Power</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="math_number" id="KK#)EKMNqV.YXg?PWltR">
                                                    <field name="NUM">10</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="logic_operation" id="WZqeqrqbx=zB-@D)~l_!" inline="false">
                                                <field name="OP">AND</field>
                                                <value name="A">
                                                  <block type="logic_compare" id="2#,2{UzKUXKc-b;aXI]d">
                                                    <field name="OP">EQ</field>
                                                    <value name="A">
                                                      <block type="get_value" id="X|7IEq+#eQ6U]K@QZDL_">
                                                        <field name="ATTR">val</field>
                                                        <field name="OID">javascript.0.Vis.Waschmaschine.Aktiv</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="logic_boolean" id="88[x9TQtT`hkagX?ux;6">
                                                        <field name="BOOL">TRUE</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="logic_compare" id=";5T2wjhgRkI4a=fP=txA">
                                                    <field name="OP">GT</field>
                                                    <value name="A">
                                                      <block type="variables_get" id="X|5;WK_6+b*X7dWThdYF">
                                                        <field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T" variabletype="">AUS Zaehler</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="math_number" id="JhvY#m2e){iZg*}U)U7=">
                                                        <field name="NUM">0</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="DO1">
                                          <block type="variables_set" id="qd2jcZSX.j`maks-0XGG">
                                            <field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T" variabletype="">AUS Zaehler</field>
                                            <value name="VALUE">
                                              <block type="math_arithmetic" id="-Y}Zmf^#hm,WyL6)Kcd-">
                                                <field name="OP">MINUS</field>
                                                <value name="A">
                                                  <shadow type="math_number" id="^~p~#U!R+eaJjaW~6U)d">
                                                    <field name="NUM">1</field>
                                                  </shadow>
                                                  <block type="variables_get" id="c/b;teh7B.tfavW#3Kx2">
                                                    <field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T" variabletype="">AUS Zaehler</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <shadow type="math_number" id="/@dSwZ{HpbKk6y3_q?jz">
                                                    <field name="NUM">1</field>
                                                  </shadow>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </statement>
                                        <value name="IF2">
                                          <block type="logic_operation" id="iHpE~=uUiC0HYZE0ixfv" inline="false">
                                            <field name="OP">AND</field>
                                            <value name="A">
                                              <block type="logic_compare" id="~=`AKkV)p.LRK|-)ym#0">
                                                <field name="OP">LT</field>
                                                <value name="A">
                                                  <block type="get_value" id="{bMP3Rct]s~^OxB^KYJB">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">shelly.0.SHSW-PM#00C5E2#1.Relay0.Power</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="math_number" id="}n$r~.-0H0;Y`%V?r;zH">
                                                    <field name="NUM">4</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="logic_compare" id="!cAR@kagkdn/du!lg5?r">
                                                <field name="OP">EQ</field>
                                                <value name="A">
                                                  <block type="get_value" id="9TggDfqlTj?4OO=@`~eO">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">javascript.0.Vis.Waschmaschine.Aktiv</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="logic_boolean" id="S1R!kS9-?kQk+KS_5Qs#">
                                                    <field name="BOOL">TRUE</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="DO2">
                                          <block type="math_change" id="T.un5=.rdLl@woGn*4oJ">
                                            <field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T" variabletype="">AUS Zaehler</field>
                                            <value name="DELTA">
                                              <shadow type="math_number" id="?c=pXLOc61v3AJP.(d:k">
                                                <field name="NUM">1</field>
                                              </shadow>
                                            </value>
                                          </block>
                                        </statement>
                                        <next>
                                          <block type="controls_if" id="J!0cvTG#hm+.vpOmP+Dh">
                                            <value name="IF0">
                                              <block type="logic_compare" id="%AbMO?J2D[f-rCEWyq=O">
                                                <field name="OP">EQ</field>
                                                <value name="A">
                                                  <block type="variables_get" id="u5FZNsypgs:pPUYsV1=g">
                                                    <field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T" variabletype="">AUS Zaehler</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="math_number" id="uaHP[P3wt-!h@M!UE]eX">
                                                    <field name="NUM">30</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <statement name="DO0">
                                              <block type="timeouts_settimeout" id=";RetM]1NMnq(gM2?*6vO">
                                                <field name="NAME">timeout</field>
                                                <field name="DELAY">1500</field>
                                                <field name="UNIT">ms</field>
                                                <statement name="STATEMENT">
                                                  <block type="variables_set" id="Hvd2vL)ptc4/sfjoP3Kx">
                                                    <field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T" variabletype="">AUS Zaehler</field>
                                                    <value name="VALUE">
                                                      <block type="math_number" id="Yz`)rz,.esx8@lC+dmm^">
                                                        <field name="NUM">0</field>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="control" id="sj0ZAG=ELQ-|XeWmtEg3">
                                                        <mutation delay_input="false"></mutation>
                                                        <field name="OID">javascript.0.Vis.Waschmaschine.Aktiv</field>
                                                        <field name="WITH_DELAY">FALSE</field>
                                                        <value name="VALUE">
                                                          <block type="logic_boolean" id="eX|Bf{oW+%BAW.Y:)kbK">
                                                            <field name="BOOL">FALSE</field>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="pushover" id="O;i_Of;3W;~`ut*XLErs">
                                                            <field name="INSTANCE">.0</field>
                                                            <field name="SOUND"></field>
                                                            <field name="PRIORITY">0</field>
                                                            <field name="LOG"></field>
                                                            <value name="MESSAGE">
                                                              <shadow type="text" id="bb?GK(0u[jN(qPPjnox1">
                                                                <field name="TEXT">Die Waschmaschine ist fertig</field>
                                                              </shadow>
                                                            </value>
                                                            <next>
                                                              <block type="controls_if" id="{YgN%Y7A7_EEDWVfrH-~">
                                                                <value name="IF0">
                                                                  <block type="time_compare_ex" id=";Z9|mLh|XOy}l6q!/|)H">
                                                                    <mutation end_time="true" actual_time="true"></mutation>
                                                                    <field name="USE_ACTUAL_TIME">TRUE</field>
                                                                    <field name="OPTION">between</field>
                                                                    <value name="START_TIME">
                                                                      <shadow type="text" id="1Mb7k9=om19kl(|^ls{B">
                                                                        <field name="TEXT">07:00</field>
                                                                      </shadow>
                                                                    </value>
                                                                    <value name="END_TIME">
                                                                      <shadow type="text" id="u|0,W8,^1sLZcDkByT9E">
                                                                        <field name="TEXT">22:00</field>
                                                                      </shadow>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                                <statement name="DO0">
                                                                  <block type="control" id="Q#Co*Fw?F|S1$qjg#/Pr">
                                                                    <mutation delay_input="true"></mutation>
                                                                    <field name="OID">alexa2.1.Echo-Devices.G000WV0484541A9F.Commands.speak</field>
                                                                    <field name="WITH_DELAY">TRUE</field>
                                                                    <field name="DELAY_MS">500</field>
                                                                    <field name="UNIT">ms</field>
                                                                    <field name="CLEAR_RUNNING">FALSE</field>
                                                                    <value name="VALUE">
                                                                      <block type="text" id="%o[+[,2P)W1gpBy8pY,H">
                                                                        <field name="TEXT">Die Waschmaschine ist fertig</field>
                                                                      </block>
                                                                    </value>
                                                                    <next>
                                                                      <block type="control" id="dEf[f=1wnG@+}UB=)iZ0">
                                                                        <mutation delay_input="true"></mutation>
                                                                        <field name="OID">alexa2.1.Echo-Devices.G070RR0975070D18.Commands.speak</field>
                                                                        <field name="WITH_DELAY">TRUE</field>
                                                                        <field name="DELAY_MS">500</field>
                                                                        <field name="UNIT">ms</field>
                                                                        <field name="CLEAR_RUNNING">FALSE</field>
                                                                        <value name="VALUE">
                                                                          <block type="text" id="-lTxI!_9p]4YRp8o1qG/">
                                                                            <field name="TEXT">Die Waschmaschine ist fertig</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </statement>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </statement>
                                              </block>
                                            </statement>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                      <block type="comment" id="k_2r^B84`,O0y4.u,WwG" x="338" y="613">
                        <field name="COMMENT">Zähler definiert Leerlaufzeit bis fertig gemeldet wird 15 ist ca. 90 sec bei shelly</field>
                      </block>
                    </xml>
                    

                    das stört meine Frau natürlich total

                    Bildschirmfoto 2019-09-08 um 10.20.13.png

                    B 1 Antwort Letzte Antwort
                    0
                    • F freaktech

                      @freaktech

                      so eigentlich klappt es sehr gut nur kommt wenn die WM Fertig nun alle paar Minuten die Info, diese sollte nur einmalig kommen

                      hat wer ne Idee wie ich das noch hinbekommen

                      <xml xmlns="http://www.w3.org/1999/xhtml">
                        <variables>
                          <variable type="" id="?3%%L.;KPa-d6Zkoj*6T">AUS Zaehler</variable>
                          <variable type="undefined" id="timeout">timeout</variable>
                        </variables>
                        <block type="create" id="!tN4!:gtM^}ek;|m=nHo" x="32" y="55">
                          <field name="NAME">Vis.Waschmaschine.Aktiv</field>
                          <next>
                            <block type="comment" id="hB%p_so=4`EGzX;10:wr">
                              <field name="COMMENT">Waschmaschine_Script</field>
                              <next>
                                <block type="control" id="Kb.uPdr~gS|=7Ng+:H?a">
                                  <mutation delay_input="false"></mutation>
                                  <field name="OID">javascript.0.Vis.Waschmaschine.Aktiv</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="logic_boolean" id="vqBy?8.1fiDNDoLrT;G~">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="on_ext" id="+A7wlutQO8gBfqosc.y3">
                                      <mutation items="1"></mutation>
                                      <field name="CONDITION">any</field>
                                      <field name="ACK_CONDITION"></field>
                                      <value name="OID0">
                                        <shadow type="field_oid" id="L[i=p{|ii-ai*/YAZ@8s">
                                          <field name="oid">shelly.0.SHSW-PM#00C5E2#1.Relay0.Power</field>
                                        </shadow>
                                      </value>
                                      <statement name="STATEMENT">
                                        <block type="controls_if" id="bP`*)0;M+g9O:g?]Pd*f">
                                          <mutation elseif="2"></mutation>
                                          <value name="IF0">
                                            <block type="logic_operation" id="F:)qYHsI}dugF;;Tjm,A" inline="false">
                                              <field name="OP">AND</field>
                                              <value name="A">
                                                <block type="logic_compare" id="H5%_/a!o;(cd2f~t!+^Q">
                                                  <field name="OP">GT</field>
                                                  <value name="A">
                                                    <block type="get_value" id="a:y916W!S%H|pb5qQl:J">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">shelly.0.SHSW-PM#00C5E2#1.Relay0.Power</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="math_number" id="qFPWw{;UZY{D^a6HN4F4">
                                                      <field name="NUM">10</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="logic_compare" id="+]^D[{zcOd~)d%8C%:S9">
                                                  <field name="OP">EQ</field>
                                                  <value name="A">
                                                    <block type="get_value" id="E4;q.WI):RF8,)P;4GaM">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">javascript.0.Vis.Waschmaschine.Aktiv</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="logic_boolean" id="BlP[`XK*dfV6{q],uSuN">
                                                      <field name="BOOL">FALSE</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO0">
                                            <block type="control" id="XxjRG-wx{Gis|P}j%wi{">
                                              <mutation delay_input="false"></mutation>
                                              <field name="OID">javascript.0.Vis.Waschmaschine.Aktiv</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="logic_boolean" id="8]j]NPy0pzg_@fy7#pu9">
                                                  <field name="BOOL">TRUE</field>
                                                </block>
                                              </value>
                                            </block>
                                          </statement>
                                          <value name="IF1">
                                            <block type="logic_operation" id="xQ~Axjp^x}xIc}?,~bd3" inline="false">
                                              <field name="OP">AND</field>
                                              <value name="A">
                                                <block type="logic_compare" id="m:F[A,C]23{tVG.[9ogx">
                                                  <field name="OP">GT</field>
                                                  <value name="A">
                                                    <block type="get_value" id="~9hm.bn7JuR`9T^57r|!">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">shelly.0.SHSW-PM#00C5E2#1.Relay0.Power</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="math_number" id="KK#)EKMNqV.YXg?PWltR">
                                                      <field name="NUM">10</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="logic_operation" id="WZqeqrqbx=zB-@D)~l_!" inline="false">
                                                  <field name="OP">AND</field>
                                                  <value name="A">
                                                    <block type="logic_compare" id="2#,2{UzKUXKc-b;aXI]d">
                                                      <field name="OP">EQ</field>
                                                      <value name="A">
                                                        <block type="get_value" id="X|7IEq+#eQ6U]K@QZDL_">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">javascript.0.Vis.Waschmaschine.Aktiv</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="logic_boolean" id="88[x9TQtT`hkagX?ux;6">
                                                          <field name="BOOL">TRUE</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="logic_compare" id=";5T2wjhgRkI4a=fP=txA">
                                                      <field name="OP">GT</field>
                                                      <value name="A">
                                                        <block type="variables_get" id="X|5;WK_6+b*X7dWThdYF">
                                                          <field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T" variabletype="">AUS Zaehler</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="math_number" id="JhvY#m2e){iZg*}U)U7=">
                                                          <field name="NUM">0</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO1">
                                            <block type="variables_set" id="qd2jcZSX.j`maks-0XGG">
                                              <field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T" variabletype="">AUS Zaehler</field>
                                              <value name="VALUE">
                                                <block type="math_arithmetic" id="-Y}Zmf^#hm,WyL6)Kcd-">
                                                  <field name="OP">MINUS</field>
                                                  <value name="A">
                                                    <shadow type="math_number" id="^~p~#U!R+eaJjaW~6U)d">
                                                      <field name="NUM">1</field>
                                                    </shadow>
                                                    <block type="variables_get" id="c/b;teh7B.tfavW#3Kx2">
                                                      <field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T" variabletype="">AUS Zaehler</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <shadow type="math_number" id="/@dSwZ{HpbKk6y3_q?jz">
                                                      <field name="NUM">1</field>
                                                    </shadow>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </statement>
                                          <value name="IF2">
                                            <block type="logic_operation" id="iHpE~=uUiC0HYZE0ixfv" inline="false">
                                              <field name="OP">AND</field>
                                              <value name="A">
                                                <block type="logic_compare" id="~=`AKkV)p.LRK|-)ym#0">
                                                  <field name="OP">LT</field>
                                                  <value name="A">
                                                    <block type="get_value" id="{bMP3Rct]s~^OxB^KYJB">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">shelly.0.SHSW-PM#00C5E2#1.Relay0.Power</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="math_number" id="}n$r~.-0H0;Y`%V?r;zH">
                                                      <field name="NUM">4</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="logic_compare" id="!cAR@kagkdn/du!lg5?r">
                                                  <field name="OP">EQ</field>
                                                  <value name="A">
                                                    <block type="get_value" id="9TggDfqlTj?4OO=@`~eO">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">javascript.0.Vis.Waschmaschine.Aktiv</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="logic_boolean" id="S1R!kS9-?kQk+KS_5Qs#">
                                                      <field name="BOOL">TRUE</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO2">
                                            <block type="math_change" id="T.un5=.rdLl@woGn*4oJ">
                                              <field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T" variabletype="">AUS Zaehler</field>
                                              <value name="DELTA">
                                                <shadow type="math_number" id="?c=pXLOc61v3AJP.(d:k">
                                                  <field name="NUM">1</field>
                                                </shadow>
                                              </value>
                                            </block>
                                          </statement>
                                          <next>
                                            <block type="controls_if" id="J!0cvTG#hm+.vpOmP+Dh">
                                              <value name="IF0">
                                                <block type="logic_compare" id="%AbMO?J2D[f-rCEWyq=O">
                                                  <field name="OP">EQ</field>
                                                  <value name="A">
                                                    <block type="variables_get" id="u5FZNsypgs:pPUYsV1=g">
                                                      <field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T" variabletype="">AUS Zaehler</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="math_number" id="uaHP[P3wt-!h@M!UE]eX">
                                                      <field name="NUM">30</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <statement name="DO0">
                                                <block type="timeouts_settimeout" id=";RetM]1NMnq(gM2?*6vO">
                                                  <field name="NAME">timeout</field>
                                                  <field name="DELAY">1500</field>
                                                  <field name="UNIT">ms</field>
                                                  <statement name="STATEMENT">
                                                    <block type="variables_set" id="Hvd2vL)ptc4/sfjoP3Kx">
                                                      <field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T" variabletype="">AUS Zaehler</field>
                                                      <value name="VALUE">
                                                        <block type="math_number" id="Yz`)rz,.esx8@lC+dmm^">
                                                          <field name="NUM">0</field>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="control" id="sj0ZAG=ELQ-|XeWmtEg3">
                                                          <mutation delay_input="false"></mutation>
                                                          <field name="OID">javascript.0.Vis.Waschmaschine.Aktiv</field>
                                                          <field name="WITH_DELAY">FALSE</field>
                                                          <value name="VALUE">
                                                            <block type="logic_boolean" id="eX|Bf{oW+%BAW.Y:)kbK">
                                                              <field name="BOOL">FALSE</field>
                                                            </block>
                                                          </value>
                                                          <next>
                                                            <block type="pushover" id="O;i_Of;3W;~`ut*XLErs">
                                                              <field name="INSTANCE">.0</field>
                                                              <field name="SOUND"></field>
                                                              <field name="PRIORITY">0</field>
                                                              <field name="LOG"></field>
                                                              <value name="MESSAGE">
                                                                <shadow type="text" id="bb?GK(0u[jN(qPPjnox1">
                                                                  <field name="TEXT">Die Waschmaschine ist fertig</field>
                                                                </shadow>
                                                              </value>
                                                              <next>
                                                                <block type="controls_if" id="{YgN%Y7A7_EEDWVfrH-~">
                                                                  <value name="IF0">
                                                                    <block type="time_compare_ex" id=";Z9|mLh|XOy}l6q!/|)H">
                                                                      <mutation end_time="true" actual_time="true"></mutation>
                                                                      <field name="USE_ACTUAL_TIME">TRUE</field>
                                                                      <field name="OPTION">between</field>
                                                                      <value name="START_TIME">
                                                                        <shadow type="text" id="1Mb7k9=om19kl(|^ls{B">
                                                                          <field name="TEXT">07:00</field>
                                                                        </shadow>
                                                                      </value>
                                                                      <value name="END_TIME">
                                                                        <shadow type="text" id="u|0,W8,^1sLZcDkByT9E">
                                                                          <field name="TEXT">22:00</field>
                                                                        </shadow>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                  <statement name="DO0">
                                                                    <block type="control" id="Q#Co*Fw?F|S1$qjg#/Pr">
                                                                      <mutation delay_input="true"></mutation>
                                                                      <field name="OID">alexa2.1.Echo-Devices.G000WV0484541A9F.Commands.speak</field>
                                                                      <field name="WITH_DELAY">TRUE</field>
                                                                      <field name="DELAY_MS">500</field>
                                                                      <field name="UNIT">ms</field>
                                                                      <field name="CLEAR_RUNNING">FALSE</field>
                                                                      <value name="VALUE">
                                                                        <block type="text" id="%o[+[,2P)W1gpBy8pY,H">
                                                                          <field name="TEXT">Die Waschmaschine ist fertig</field>
                                                                        </block>
                                                                      </value>
                                                                      <next>
                                                                        <block type="control" id="dEf[f=1wnG@+}UB=)iZ0">
                                                                          <mutation delay_input="true"></mutation>
                                                                          <field name="OID">alexa2.1.Echo-Devices.G070RR0975070D18.Commands.speak</field>
                                                                          <field name="WITH_DELAY">TRUE</field>
                                                                          <field name="DELAY_MS">500</field>
                                                                          <field name="UNIT">ms</field>
                                                                          <field name="CLEAR_RUNNING">FALSE</field>
                                                                          <value name="VALUE">
                                                                            <block type="text" id="-lTxI!_9p]4YRp8o1qG/">
                                                                              <field name="TEXT">Die Waschmaschine ist fertig</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </statement>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </statement>
                                                </block>
                                              </statement>
                                            </block>
                                          </next>
                                        </block>
                                      </statement>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                        <block type="comment" id="k_2r^B84`,O0y4.u,WwG" x="338" y="613">
                          <field name="COMMENT">Zähler definiert Leerlaufzeit bis fertig gemeldet wird 15 ist ca. 90 sec bei shelly</field>
                        </block>
                      </xml>
                      

                      das stört meine Frau natürlich total

                      Bildschirmfoto 2019-09-08 um 10.20.13.png

                      B Offline
                      B Offline
                      brain
                      schrieb am zuletzt editiert von
                      #151

                      @freaktech
                      Versuche mal deine Meldungen nach oben zu ziehen, sodass zuerst die Nachrichten geschickt werden und danach der AUS_Zaehler auf 0 und die Aktivität der Waschmaschine auf falsch gesetzt werden.

                      1 Antwort Letzte Antwort
                      0
                      • F Offline
                        F Offline
                        freaktech
                        schrieb am zuletzt editiert von freaktech
                        #152

                        das hat leider nichts gebracht wenn ich es so machen

                        <xml xmlns="http://www.w3.org/1999/xhtml">
                          <variables>
                            <variable type="" id="?3%%L.;KPa-d6Zkoj*6T">AUS Zaehler</variable>
                            <variable type="undefined" id="timeout">timeout</variable>
                          </variables>
                          <block type="create" id="!tN4!:gtM^}ek;|m=nHo" x="32" y="55">
                            <field name="NAME">Vis.Trockner.Aktiv</field>
                            <next>
                              <block type="comment" id="hB%p_so=4`EGzX;10:wr">
                                <field name="COMMENT">Trockner_Script</field>
                                <next>
                                  <block type="control" id="Kb.uPdr~gS|=7Ng+:H?a">
                                    <mutation delay_input="false"></mutation>
                                    <field name="OID">javascript.0.Vis.Trockner.Aktiv</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="logic_boolean" id="vqBy?8.1fiDNDoLrT;G~">
                                        <field name="BOOL">FALSE</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="on_ext" id="+A7wlutQO8gBfqosc.y3">
                                        <mutation items="1"></mutation>
                                        <field name="CONDITION">any</field>
                                        <field name="ACK_CONDITION"></field>
                                        <value name="OID0">
                                          <shadow type="field_oid" id="L[i=p{|ii-ai*/YAZ@8s">
                                            <field name="oid">shelly.0.SHSW-PM#00C9A5#1.Relay0.Power</field>
                                          </shadow>
                                        </value>
                                        <statement name="STATEMENT">
                                          <block type="controls_if" id="bP`*)0;M+g9O:g?]Pd*f">
                                            <mutation elseif="2"></mutation>
                                            <value name="IF0">
                                              <block type="logic_operation" id="F:)qYHsI}dugF;;Tjm,A" inline="false">
                                                <field name="OP">AND</field>
                                                <value name="A">
                                                  <block type="logic_compare" id="H5%_/a!o;(cd2f~t!+^Q">
                                                    <field name="OP">GT</field>
                                                    <value name="A">
                                                      <block type="get_value" id="a:y916W!S%H|pb5qQl:J">
                                                        <field name="ATTR">val</field>
                                                        <field name="OID">shelly.0.SHSW-PM#00C9A5#1.Relay0.Power</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="math_number" id="qFPWw{;UZY{D^a6HN4F4">
                                                        <field name="NUM">10</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="logic_compare" id="+]^D[{zcOd~)d%8C%:S9">
                                                    <field name="OP">EQ</field>
                                                    <value name="A">
                                                      <block type="get_value" id="E4;q.WI):RF8,)P;4GaM">
                                                        <field name="ATTR">val</field>
                                                        <field name="OID">javascript.0.Vis.Trockner.Aktiv</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="logic_boolean" id="BlP[`XK*dfV6{q],uSuN">
                                                        <field name="BOOL">FALSE</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <statement name="DO0">
                                              <block type="control" id="XxjRG-wx{Gis|P}j%wi{">
                                                <mutation delay_input="false"></mutation>
                                                <field name="OID">javascript.0.Vis.Trockner.Aktiv</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="logic_boolean" id="8]j]NPy0pzg_@fy7#pu9">
                                                    <field name="BOOL">TRUE</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </statement>
                                            <value name="IF1">
                                              <block type="logic_operation" id="xQ~Axjp^x}xIc}?,~bd3" inline="false">
                                                <field name="OP">AND</field>
                                                <value name="A">
                                                  <block type="logic_compare" id="m:F[A,C]23{tVG.[9ogx">
                                                    <field name="OP">GT</field>
                                                    <value name="A">
                                                      <block type="get_value" id="~9hm.bn7JuR`9T^57r|!">
                                                        <field name="ATTR">val</field>
                                                        <field name="OID">shelly.0.SHSW-PM#00C9A5#1.Relay0.Power</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="math_number" id="KK#)EKMNqV.YXg?PWltR">
                                                        <field name="NUM">10</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="logic_operation" id="WZqeqrqbx=zB-@D)~l_!" inline="false">
                                                    <field name="OP">AND</field>
                                                    <value name="A">
                                                      <block type="logic_compare" id="2#,2{UzKUXKc-b;aXI]d">
                                                        <field name="OP">EQ</field>
                                                        <value name="A">
                                                          <block type="get_value" id="X|7IEq+#eQ6U]K@QZDL_">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">javascript.0.Vis.Trockner.Aktiv</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="logic_boolean" id="88[x9TQtT`hkagX?ux;6">
                                                            <field name="BOOL">TRUE</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="logic_compare" id=";5T2wjhgRkI4a=fP=txA">
                                                        <field name="OP">GT</field>
                                                        <value name="A">
                                                          <block type="variables_get" id="X|5;WK_6+b*X7dWThdYF">
                                                            <field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T" variabletype="">AUS Zaehler</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="math_number" id="JhvY#m2e){iZg*}U)U7=">
                                                            <field name="NUM">0</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <statement name="DO1">
                                              <block type="variables_set" id="qd2jcZSX.j`maks-0XGG">
                                                <field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T" variabletype="">AUS Zaehler</field>
                                                <value name="VALUE">
                                                  <block type="math_arithmetic" id="-Y}Zmf^#hm,WyL6)Kcd-">
                                                    <field name="OP">MINUS</field>
                                                    <value name="A">
                                                      <shadow type="math_number" id="^~p~#U!R+eaJjaW~6U)d">
                                                        <field name="NUM">1</field>
                                                      </shadow>
                                                      <block type="variables_get" id="c/b;teh7B.tfavW#3Kx2">
                                                        <field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T" variabletype="">AUS Zaehler</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <shadow type="math_number" id="/@dSwZ{HpbKk6y3_q?jz">
                                                        <field name="NUM">1</field>
                                                      </shadow>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </statement>
                                            <value name="IF2">
                                              <block type="logic_operation" id="iHpE~=uUiC0HYZE0ixfv" inline="false">
                                                <field name="OP">AND</field>
                                                <value name="A">
                                                  <block type="logic_compare" id="~=`AKkV)p.LRK|-)ym#0">
                                                    <field name="OP">LT</field>
                                                    <value name="A">
                                                      <block type="get_value" id="{bMP3Rct]s~^OxB^KYJB">
                                                        <field name="ATTR">val</field>
                                                        <field name="OID">shelly.0.SHSW-PM#00C9A5#1.Relay0.Power</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="math_number" id="}n$r~.-0H0;Y`%V?r;zH">
                                                        <field name="NUM">4</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="logic_compare" id="!cAR@kagkdn/du!lg5?r">
                                                    <field name="OP">EQ</field>
                                                    <value name="A">
                                                      <block type="get_value" id="9TggDfqlTj?4OO=@`~eO">
                                                        <field name="ATTR">val</field>
                                                        <field name="OID">javascript.0.Vis.Trockner.Aktiv</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="logic_boolean" id="S1R!kS9-?kQk+KS_5Qs#">
                                                        <field name="BOOL">TRUE</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <statement name="DO2">
                                              <block type="math_change" id="T.un5=.rdLl@woGn*4oJ">
                                                <field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T" variabletype="">AUS Zaehler</field>
                                                <value name="DELTA">
                                                  <shadow type="math_number" id="?c=pXLOc61v3AJP.(d:k">
                                                    <field name="NUM">1</field>
                                                  </shadow>
                                                </value>
                                              </block>
                                            </statement>
                                            <next>
                                              <block type="controls_if" id="J!0cvTG#hm+.vpOmP+Dh">
                                                <value name="IF0">
                                                  <block type="logic_compare" id="%AbMO?J2D[f-rCEWyq=O">
                                                    <field name="OP">EQ</field>
                                                    <value name="A">
                                                      <block type="variables_get" id="u5FZNsypgs:pPUYsV1=g">
                                                        <field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T" variabletype="">AUS Zaehler</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="math_number" id="uaHP[P3wt-!h@M!UE]eX">
                                                        <field name="NUM">45</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <statement name="DO0">
                                                  <block type="timeouts_settimeout" id=";RetM]1NMnq(gM2?*6vO">
                                                    <field name="NAME">timeout</field>
                                                    <field name="DELAY">1500</field>
                                                    <field name="UNIT">ms</field>
                                                    <statement name="STATEMENT">
                                                      <block type="pushover" id="O;i_Of;3W;~`ut*XLErs">
                                                        <field name="INSTANCE">.0</field>
                                                        <field name="SOUND"></field>
                                                        <field name="PRIORITY">0</field>
                                                        <field name="LOG"></field>
                                                        <value name="MESSAGE">
                                                          <shadow type="text" id="bb?GK(0u[jN(qPPjnox1">
                                                            <field name="TEXT">Der Trockner ist fertig</field>
                                                          </shadow>
                                                        </value>
                                                        <next>
                                                          <block type="controls_if" id="{YgN%Y7A7_EEDWVfrH-~">
                                                            <value name="IF0">
                                                              <block type="time_compare_ex" id=";Z9|mLh|XOy}l6q!/|)H">
                                                                <mutation end_time="true" actual_time="true"></mutation>
                                                                <field name="USE_ACTUAL_TIME">TRUE</field>
                                                                <field name="OPTION">between</field>
                                                                <value name="START_TIME">
                                                                  <shadow type="text" id="1Mb7k9=om19kl(|^ls{B">
                                                                    <field name="TEXT">07:00</field>
                                                                  </shadow>
                                                                </value>
                                                                <value name="END_TIME">
                                                                  <shadow type="text" id="u|0,W8,^1sLZcDkByT9E">
                                                                    <field name="TEXT">22:00</field>
                                                                  </shadow>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <statement name="DO0">
                                                              <block type="control" id="Q#Co*Fw?F|S1$qjg#/Pr">
                                                                <mutation delay_input="true"></mutation>
                                                                <field name="OID">alexa2.1.Echo-Devices.G000WV0484541A9F.Commands.speak</field>
                                                                <field name="WITH_DELAY">TRUE</field>
                                                                <field name="DELAY_MS">500</field>
                                                                <field name="UNIT">ms</field>
                                                                <field name="CLEAR_RUNNING">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="text" id="%o[+[,2P)W1gpBy8pY,H">
                                                                    <field name="TEXT">Der Trockner ist fertig!</field>
                                                                  </block>
                                                                </value>
                                                                <next>
                                                                  <block type="control" id="dEf[f=1wnG@+}UB=)iZ0">
                                                                    <mutation delay_input="true"></mutation>
                                                                    <field name="OID">alexa2.1.Echo-Devices.G070RR0975070D18.Commands.speak</field>
                                                                    <field name="WITH_DELAY">TRUE</field>
                                                                    <field name="DELAY_MS">500</field>
                                                                    <field name="UNIT">ms</field>
                                                                    <field name="CLEAR_RUNNING">FALSE</field>
                                                                    <value name="VALUE">
                                                                      <block type="text" id="-lTxI!_9p]4YRp8o1qG/">
                                                                        <field name="TEXT">Der Trockner ist fertig!</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </statement>
                                                            <next>
                                                              <block type="variables_set" id="Hvd2vL)ptc4/sfjoP3Kx">
                                                                <field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T" variabletype="">AUS Zaehler</field>
                                                                <value name="VALUE">
                                                                  <block type="math_number" id="Yz`)rz,.esx8@lC+dmm^">
                                                                    <field name="NUM">0</field>
                                                                  </block>
                                                                </value>
                                                                <next>
                                                                  <block type="control" id="sj0ZAG=ELQ-|XeWmtEg3">
                                                                    <mutation delay_input="false"></mutation>
                                                                    <field name="OID">javascript.0.Vis.Trockner.Aktiv</field>
                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                    <value name="VALUE">
                                                                      <block type="logic_boolean" id="eX|Bf{oW+%BAW.Y:)kbK">
                                                                        <field name="BOOL">FALSE</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </statement>
                                                  </block>
                                                </statement>
                                              </block>
                                            </next>
                                          </block>
                                        </statement>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                          <block type="comment" id="k_2r^B84`,O0y4.u,WwG" x="338" y="613">
                            <field name="COMMENT">Zähler definiert Leerlaufzeit bis fertig gemeldet wird 15 ist ca. 90 sec bei shelly</field>
                          </block>
                        </xml>
                        

                        Bildschirmfoto 2019-09-17 um 17.27.50.png

                        1 Antwort Letzte Antwort
                        0
                        • I ingod

                          Ja, natürlich.

                          Skript 1 (Fertig-Meldung)

                           <xml xmlns="http://www.w3.org/1999/xhtml"><block type="on" id="Ma,cer@O39_MHUXE9b6{" x="-462" y="-237"><field name="OID">sonoff.0.KL_Waschmaschine.ENERGY_Power</field>
                              <field name="CONDITION">any</field>
                          
                              <statement name="STATEMENT"><block type="controls_if" id="U1uqg)1c{UYg%K;c5A6v"><mutation elseif="1"></mutation>
                                  <value name="IF0"><block type="logic_compare" id="BtuJ~#;p@UrsD?0!l]dt"><field name="OP">GT</field>
                                      <value name="A"><block type="get_value" id="J?#uK.,OJwtW.8D!g3`j"><field name="ATTR">val</field>
                                          <field name="OID">sonoff.0.KL_Waschmaschine.ENERGY_Power</field></block></value> 
                                      <value name="B"><block type="math_number" id="kgwve^?mv]rMKg.0jXZv"><field name="NUM">0</field></block></value></block></value> 
                                  <statement name="DO0"><block type="update" id="*0?=A65jlQdW|w,*[];@"><mutation delay_input="false"></mutation>
                                      <field name="OID">javascript.0.Variablen.WaschmaschineLäuft</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE"><block type="logic_boolean" id="/a!HgmdF.^EB2xq7y;S1"><field name="BOOL">TRUE</field></block></value> 
                                      <next><block type="timeouts_cleartimeout" id="ij+%P=d`hw7^?O3GstDt"><field name="NAME">timeout</field></block></next></block></statement> 
                                  <value name="IF1"><block type="logic_compare" id="-bdM(WJB/tXH*6Wd2[Ed"><field name="OP">LT</field>
                                      <value name="A"><block type="get_value" id="nKfZA-s6-yTtU=xOXvuZ"><field name="ATTR">val</field>
                                          <field name="OID">sonoff.0.KL_Waschmaschine.ENERGY_Power</field></block></value> 
                                      <value name="B"><block type="math_number" id="*yfTw|}zm;+Jr,awPzs_"><field name="NUM">1</field></block></value></block></value> 
                                  <statement name="DO1"><block type="timeouts_settimeout" id="29cd`L/aEg;#2]a(R,%+"><field name="NAME">timeout</field>
                                      <field name="DELAY">5</field>
                                      <field name="UNIT">min</field>
                                      <statement name="STATEMENT"><block type="controls_if" id="m+[)#C=r1VeK_8}]=%,]"><value name="IF0"><block type="logic_operation" id="hr-gsMEPM%q-NFnrii^a"><field name="OP">AND</field>
                                              <value name="A"><block type="logic_compare" id="yjfRIE_PDs%FEPtMWf#l"><field name="OP">LT</field>
                                                  <value name="A"><block type="get_value" id="kN%Iy1mht+ua8v#+IKy*"><field name="ATTR">val</field>
                                                      <field name="OID">sonoff.0.KL_Waschmaschine.ENERGY_Power</field></block></value> 
                                                  <value name="B"><block type="math_number" id="jMA/e%Pyb9J8Y{wRFl*N"><field name="NUM">1</field></block></value></block></value> 
                                              <value name="B"><block type="logic_compare" id="{j@yrT3dQzuUj|7N(1.O"><field name="OP">EQ</field>
                                                  <value name="A"><block type="get_value" id="UCSz[z*556|oVd-!eh%V"><field name="ATTR">val</field>
                                                      <field name="OID">javascript.0.Variablen.WaschmaschineLäuft</field></block></value> 
                                                  <value name="B"><block type="logic_boolean" id="?m,?02hXT0%B%PIy~?h:"><field name="BOOL">TRUE</field></block></value></block></value></block></value> 
                                          <statement name="DO0"><block type="update" id="d@I:Qh,1V#fRsSbcl6gg"><mutation delay_input="false"></mutation>
                                              <field name="OID">javascript.0.Variablen.WaschmaschineLäuft</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE"><block type="logic_boolean" id="=VFU/ydj[Fm~(%88LVMX"><field name="BOOL">FALSE</field></block></value> 
                                              <next><block type="control" id=",8U1xB5JXi7!nbI]?F/~"><mutation delay_input="false"></mutation>
                                                  <field name="OID">alexa2.0.Echo-Devices.G090LF1180460A83.Commands.speak</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE"><block type="text" id="ypwmhPceWWtAQ2?cip*N"><field name="TEXT">Waschmaschine ist fertig</field></block></value></block></next></block></statement></block></statement></block></statement></block></statement></block></xml> 
                          

                          Skript 2 (Abfrage)

                           <xml xmlns="http://www.w3.org/1999/xhtml"><block type="on" id=",Xs6rgXXrZE%lqakexV~" x="-337" y="-112"><field name="OID">javascript.0.Variablen.FrageWaschmaschine</field>
                              <field name="CONDITION">any</field>
                          
                              <statement name="STATEMENT"><block type="controls_if" id=".xQ#k[`.dK[s:x}CKJq,"><mutation elseif="1"></mutation>
                                  <value name="IF0"><block type="logic_compare" id="xG]`-FP=}|ITpc*kUG4V"><field name="OP">EQ</field>
                                      <value name="A"><block type="get_value" id="L(QYQJ,??ZON6_X9V-st"><field name="ATTR">val</field>
                                          <field name="OID">javascript.0.Variablen.WaschmaschineLäuft</field></block></value> 
                                      <value name="B"><block type="logic_boolean" id="yBjX@tdnr5DIDybs3jZv"><field name="BOOL">TRUE</field></block></value></block></value> 
                                  <statement name="DO0"><block type="control" id="ItYQsZ^9b.=S/l0bWzU?"><mutation delay_input="true"></mutation>
                                      <field name="OID">alexa2.0.Echo-Devices.G090LF1180460A83.Commands.speak</field>
                                      <field name="WITH_DELAY">TRUE</field>
                                      <field name="DELAY_MS">1000</field>
                                      <field name="UNIT">ms</field>
                                      <field name="CLEAR_RUNNING">FALSE</field>
                                      <value name="VALUE"><block type="text" id=",K`3%4I8x5:BN~@iTynJ"><field name="TEXT">Nein, die Waschmaschine läuft noch.</field></block></value></block></statement> 
                                  <value name="IF1"><block type="logic_compare" id="/E}|(0WPbcK?:h83#A5("><field name="OP">EQ</field>
                                      <value name="A"><block type="get_value" id="hNXU!-!)PkNaC2+~WF[*"><field name="ATTR">val</field>
                                          <field name="OID">javascript.0.Variablen.WaschmaschineLäuft</field></block></value> 
                                      <value name="B"><block type="logic_boolean" id="9*j#){HO?uZNDd7JUC}H"><field name="BOOL">FALSE</field></block></value></block></value> 
                                  <statement name="DO1"><block type="control" id=".zQ;]QPSO0^h2B8l.ExU"><mutation delay_input="true"></mutation>
                                      <field name="OID">alexa2.0.Echo-Devices.G090LF1180460A83.Commands.speak</field>
                                      <field name="WITH_DELAY">TRUE</field>
                                      <field name="DELAY_MS">1000</field>
                                      <field name="UNIT">ms</field>
                                      <field name="CLEAR_RUNNING">FALSE</field>
                                      <value name="VALUE"><block type="text" id="0r_{;K7futg}Cx1RS;PW"><field name="TEXT">Ja, Waschmaschine ist fertig.</field></block></value></block></statement></block></statement></block></xml> 
                          
                          Marko1974M Offline
                          Marko1974M Offline
                          Marko1974
                          schrieb am zuletzt editiert von Marko1974
                          #153

                          @ingod said in Nochmal Waschmaschine (Blockly):

                          Ja, natürlich.

                          Skript 1 (Fertig-Meldung)

                           <xml xmlns="http://www.w3.org/1999/xhtml"><block type="on" id="Ma,cer@O39_MHUXE9b6{" x="-462" y="-237"><field name="OID">sonoff.0.KL_Waschmaschine.ENERGY_Power</field>
                              <field name="CONDITION">any</field>
                          
                              <statement name="STATEMENT"><block type="controls_if" id="U1uqg)1c{UYg%K;c5A6v"><mutation elseif="1"></mutation>
                                  <value name="IF0"><block type="logic_compare" id="BtuJ~#;p@UrsD?0!l]dt"><field name="OP">GT</field>
                                      <value name="A"><block type="get_value" id="J?#uK.,OJwtW.8D!g3`j"><field name="ATTR">val</field>
                                          <field name="OID">sonoff.0.KL_Waschmaschine.ENERGY_Power</field></block></value> 
                                      <value name="B"><block type="math_number" id="kgwve^?mv]rMKg.0jXZv"><field name="NUM">0</field></block></value></block></value> 
                                  <statement name="DO0"><block type="update" id="*0?=A65jlQdW|w,*[];@"><mutation delay_input="false"></mutation>
                                      <field name="OID">javascript.0.Variablen.WaschmaschineLäuft</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE"><block type="logic_boolean" id="/a!HgmdF.^EB2xq7y;S1"><field name="BOOL">TRUE</field></block></value> 
                                      <next><block type="timeouts_cleartimeout" id="ij+%P=d`hw7^?O3GstDt"><field name="NAME">timeout</field></block></next></block></statement> 
                                  <value name="IF1"><block type="logic_compare" id="-bdM(WJB/tXH*6Wd2[Ed"><field name="OP">LT</field>
                                      <value name="A"><block type="get_value" id="nKfZA-s6-yTtU=xOXvuZ"><field name="ATTR">val</field>
                                          <field name="OID">sonoff.0.KL_Waschmaschine.ENERGY_Power</field></block></value> 
                                      <value name="B"><block type="math_number" id="*yfTw|}zm;+Jr,awPzs_"><field name="NUM">1</field></block></value></block></value> 
                                  <statement name="DO1"><block type="timeouts_settimeout" id="29cd`L/aEg;#2]a(R,%+"><field name="NAME">timeout</field>
                                      <field name="DELAY">5</field>
                                      <field name="UNIT">min</field>
                                      <statement name="STATEMENT"><block type="controls_if" id="m+[)#C=r1VeK_8}]=%,]"><value name="IF0"><block type="logic_operation" id="hr-gsMEPM%q-NFnrii^a"><field name="OP">AND</field>
                                              <value name="A"><block type="logic_compare" id="yjfRIE_PDs%FEPtMWf#l"><field name="OP">LT</field>
                                                  <value name="A"><block type="get_value" id="kN%Iy1mht+ua8v#+IKy*"><field name="ATTR">val</field>
                                                      <field name="OID">sonoff.0.KL_Waschmaschine.ENERGY_Power</field></block></value> 
                                                  <value name="B"><block type="math_number" id="jMA/e%Pyb9J8Y{wRFl*N"><field name="NUM">1</field></block></value></block></value> 
                                              <value name="B"><block type="logic_compare" id="{j@yrT3dQzuUj|7N(1.O"><field name="OP">EQ</field>
                                                  <value name="A"><block type="get_value" id="UCSz[z*556|oVd-!eh%V"><field name="ATTR">val</field>
                                                      <field name="OID">javascript.0.Variablen.WaschmaschineLäuft</field></block></value> 
                                                  <value name="B"><block type="logic_boolean" id="?m,?02hXT0%B%PIy~?h:"><field name="BOOL">TRUE</field></block></value></block></value></block></value> 
                                          <statement name="DO0"><block type="update" id="d@I:Qh,1V#fRsSbcl6gg"><mutation delay_input="false"></mutation>
                                              <field name="OID">javascript.0.Variablen.WaschmaschineLäuft</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE"><block type="logic_boolean" id="=VFU/ydj[Fm~(%88LVMX"><field name="BOOL">FALSE</field></block></value> 
                                              <next><block type="control" id=",8U1xB5JXi7!nbI]?F/~"><mutation delay_input="false"></mutation>
                                                  <field name="OID">alexa2.0.Echo-Devices.G090LF1180460A83.Commands.speak</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE"><block type="text" id="ypwmhPceWWtAQ2?cip*N"><field name="TEXT">Waschmaschine ist fertig</field></block></value></block></next></block></statement></block></statement></block></statement></block></statement></block></xml> 
                          

                          Skript 2 (Abfrage)

                           <xml xmlns="http://www.w3.org/1999/xhtml"><block type="on" id=",Xs6rgXXrZE%lqakexV~" x="-337" y="-112"><field name="OID">javascript.0.Variablen.FrageWaschmaschine</field>
                              <field name="CONDITION">any</field>
                          
                              <statement name="STATEMENT"><block type="controls_if" id=".xQ#k[`.dK[s:x}CKJq,"><mutation elseif="1"></mutation>
                                  <value name="IF0"><block type="logic_compare" id="xG]`-FP=}|ITpc*kUG4V"><field name="OP">EQ</field>
                                      <value name="A"><block type="get_value" id="L(QYQJ,??ZON6_X9V-st"><field name="ATTR">val</field>
                                          <field name="OID">javascript.0.Variablen.WaschmaschineLäuft</field></block></value> 
                                      <value name="B"><block type="logic_boolean" id="yBjX@tdnr5DIDybs3jZv"><field name="BOOL">TRUE</field></block></value></block></value> 
                                  <statement name="DO0"><block type="control" id="ItYQsZ^9b.=S/l0bWzU?"><mutation delay_input="true"></mutation>
                                      <field name="OID">alexa2.0.Echo-Devices.G090LF1180460A83.Commands.speak</field>
                                      <field name="WITH_DELAY">TRUE</field>
                                      <field name="DELAY_MS">1000</field>
                                      <field name="UNIT">ms</field>
                                      <field name="CLEAR_RUNNING">FALSE</field>
                                      <value name="VALUE"><block type="text" id=",K`3%4I8x5:BN~@iTynJ"><field name="TEXT">Nein, die Waschmaschine läuft noch.</field></block></value></block></statement> 
                                  <value name="IF1"><block type="logic_compare" id="/E}|(0WPbcK?:h83#A5("><field name="OP">EQ</field>
                                      <value name="A"><block type="get_value" id="hNXU!-!)PkNaC2+~WF[*"><field name="ATTR">val</field>
                                          <field name="OID">javascript.0.Variablen.WaschmaschineLäuft</field></block></value> 
                                      <value name="B"><block type="logic_boolean" id="9*j#){HO?uZNDd7JUC}H"><field name="BOOL">FALSE</field></block></value></block></value> 
                                  <statement name="DO1"><block type="control" id=".zQ;]QPSO0^h2B8l.ExU"><mutation delay_input="true"></mutation>
                                      <field name="OID">alexa2.0.Echo-Devices.G090LF1180460A83.Commands.speak</field>
                                      <field name="WITH_DELAY">TRUE</field>
                                      <field name="DELAY_MS">1000</field>
                                      <field name="UNIT">ms</field>
                                      <field name="CLEAR_RUNNING">FALSE</field>
                                      <value name="VALUE"><block type="text" id="0r_{;K7futg}Cx1RS;PW"><field name="TEXT">Ja, Waschmaschine ist fertig.</field></block></value></block></statement></block></statement></block></xml> 
                          

                          @ingod
                          Kannst Du mir helfen, bitte? Ich hab dein Script mal bei mir eingebunden.....

                          javascript.0	2021-06-02 20:34:52.915	warn	(2137) at processTimers (internal/timers.js:497:7)
                          javascript.0	2021-06-02 20:34:52.914	warn	(2137) at listOnTimeout (internal/timers.js:554:17)
                          javascript.0	2021-06-02 20:34:52.914	warn	(2137) at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:2105:34)
                          javascript.0	2021-06-02 20:34:52.913	warn	(2137) at Object.<anonymous> (script.js.Skript_1:12:70)
                          javascript.0	2021-06-02 20:34:52.898	warn	(2137) getState "javascript.0.Variablen.WaschmaschineLäuft" not found (3)
                          

                          mir scheint da dieses javascript.0 zu fehlen...wie mache ich das?

                          UPDATE....Ahso...ich musste nen Datenpunkt erzeugen.

                          1 Antwort Letzte Antwort
                          0
                          Antworten
                          • In einem neuen Thema antworten
                          Anmelden zum Antworten
                          • Älteste zuerst
                          • Neuste zuerst
                          • Meiste Stimmen


                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          779

                          Online

                          32.5k

                          Benutzer

                          81.8k

                          Themen

                          1.3m

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

                          • Du hast noch kein Konto? Registrieren

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