Navigation

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

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    Waschmaschine

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

      @Accu
      Also ich kann ehrlich gesagt keinen echten Fehler oder so erkennen, finde aber ein paar Punkte "seltsam".
      Mal angenommen die WaMa läuft und geht zweimal unter 3 Watt. Dann wird beide Male Dein timeout3 gestartet. ich weiß nicht genau welche Auswirkungen das hat, aber meines Erachtens ist es immer sinnvoll, wenn nicht notwendig, einen timeout auch wieder zu stoppen. Das müsstest Du dann vor dem Ausführen des timeou3 noch voranstellen. Wozu Du timeout2 und timeout brauchst, verstehe ich gar nicht. Ist meiner Meinung überflüssig.
      Dann aktualisierst Du WaMaWaschende mit einer Verzögerung von 1 Sekunde. In der Zeit läuft Dein Skript aber weiter, und er berechnet wahrscheinlich bereits den Verbrauch, bevor Du in WaMaWaschende überhaupt was reingeschrieben hast. Das würde natürlich auch einen negativen Wert erklären.
      Warum probierst Du nicht mal testweise mein Skript. Das ist wesentlich kürzer und abgesehen von Verbrauch und Dauer (das nutze ich nicht) funktioniert das super bei mir.

      @buggybeast sagte in Waschmaschine:

      @buggybeast sagte in Waschmaschine:

      Bildschirmfoto 2020-05-20 um 11.47.03.png

      1 Reply Last reply Reply Quote 0
      • A
        Accu last edited by

        Danke BuggyBeast. Ich werde mal deins Testen. Hatte mich nur bisher an das Skript von oben gehalten.
        Die Timeouts kann ich auch nicht wirklich verstehen.

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

          Hi Leute,

          Ich hab so gefühlt schon alles im Netz gelesen, um mein Waschmaschine blockly hinzubekommen. Mein Problem ist, meine Waschmaschine braucht wenn sie fertig ist, 2-3w. Allerdings macht sie während des waschens auch mal eine Pause und braucht genauso viel. Wenn sie fertig ist, hat sie einen Knitterschutz, da dreht die ca alle 28s nochmal die Trommel. Habt ihr eine Lösung für mein Problem? Hatte schon an nen timer von ca 1h gedacht, was allerdings nicht die beste Lösung wäre. Oder z. B. Einen counter von z. B. 10, der hochählt und bei 11 mal unter 3w erst meldet, dass die Waschmaschine fertig ist. Ist sowas möglich, bzw wie bekomme ich das hin?

          Gruß

          Phantomkommander

          Xenon 1 Reply Last reply Reply Quote 0
          • Kalle Blomquist
            Kalle Blomquist @buggybeast last edited by

            @buggybeast Hi, ich habe dein Script übernommen. Danke für deine Arbeit. 👍 Es funktioniert wunderbar.
            Gruß Kalle

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

              Ich habe da ein Standardblockly für, man braucht nur die drei kommentierten Werte in der PRG_INI anpassen und dann läuft alles automatisch. Grundblockly Verbrauch.png
              Optional kann man noch eine Telegramnachricht eintippen, bzw den timeout ändern, habe das Blockly bei zahlreichen Geräten so im Einsatz

              <xml xmlns="https://developers.google.com/blockly/xml">
                <variables>
                  <variable id="-!!!%oe4ppqH?|#z#XM~">Zustand_Aktor_1</variable>
                  <variable id="6vs1mxJz10C;Y`[KE${J">Trigger_1</variable>
                  <variable id="!KlSDB8b_%^Yexmq!3HA">Sperre</variable>
                  <variable id="auf20dFyBf.~[{:YRHRw">Aktor_1</variable>
                  <variable id="^bj1z4.DNX003R@%=U;O">Text_Telegram</variable>
                  <variable id="p/w(@wMvl;`u(^~Az~vs">Vorgabe_Wert</variable>
                  <variable type="timeout" id="timeout">timeout</variable>
                </variables>
                <block type="procedures_callnoreturn" id="gM%DIi4R9`s.;`(=yVM%" x="187" y="-112">
                  <mutation name="PRG_INI"></mutation>
                  <next>
                    <block type="on_ext" id="%o`;]|iQdfx!T6_$|n1Z">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                      <field name="CONDITION">ne</field>
                      <field name="ACK_CONDITION"></field>
                      <value name="OID0">
                        <shadow type="field_oid" id=";]X5XvT]/I^B#(~bW}=t">
                          <field name="oid">default</field>
                        </shadow>
                        <block type="variables_get" id="0Zl5xWv@y(?Yg`l;^a[d">
                          <field name="VAR" id="6vs1mxJz10C;Y`[KE${J">Trigger_1</field>
                        </block>
                      </value>
                      <statement name="STATEMENT">
                        <block type="procedures_callnoreturn" id="WEw:yD5fKj/b-ToFhM(A">
                          <mutation name="Werte_in_VAR"></mutation>
                          <next>
                            <block type="controls_if" id="DCeD46|YALHfir|.rI-i">
                              <mutation else="1"></mutation>
                              <value name="IF0">
                                <block type="logic_compare" id="n@wRq%S(Wk,ajT}Hh${{" inline="false">
                                  <field name="OP">LTE</field>
                                  <value name="A">
                                    <block type="on_source" id="^jaj$^xI4W@]6rgN(y=@">
                                      <field name="ATTR">state.val</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="variables_get" id="bPBsuxkAjcm4ae[M?QeM">
                                      <field name="VAR" id="p/w(@wMvl;`u(^~Az~vs">Vorgabe_Wert</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="controls_if" id="}4kN^q{7beH%=9Tc`:e?">
                                  <value name="IF0">
                                    <block type="logic_negate" id="2^dBLkE|-R%PAgjklhz6">
                                      <value name="BOOL">
                                        <block type="variables_get" id="sZql:5]-Z7p;rEX44zGL">
                                          <field name="VAR" id="!KlSDB8b_%^Yexmq!3HA">Sperre</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO0">
                                    <block type="variables_set" id="k,hIxCRF]VKALX0Tz7Av">
                                      <field name="VAR" id="!KlSDB8b_%^Yexmq!3HA">Sperre</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id=",{xj53f=byzz7jgu.=e5">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="timeouts_settimeout" id="sr2FPZ6N=@1y4l_2UDuz">
                                          <field name="NAME">timeout</field>
                                          <field name="DELAY">5</field>
                                          <field name="UNIT">min</field>
                                          <statement name="STATEMENT">
                                            <block type="procedures_callnoreturn" id="S).vSxl*q%og=75Kuq^|">
                                              <mutation name="Werte_in_VAR"></mutation>
                                              <next>
                                                <block type="controls_if" id="k|s{]:wTA~;7r}L|kzdf" collapsed="true">
                                                  <value name="IF0">
                                                    <block type="variables_get" id="v-ms+m,GsE.1t[v`za+~">
                                                      <field name="VAR" id="-!!!%oe4ppqH?|#z#XM~">Zustand_Aktor_1</field>
                                                    </block>
                                                  </value>
                                                  <statement name="DO0">
                                                    <block type="control_ex" id="}Z6%|a,IaQf`tH6$cqXa" inline="true">
                                                      <field name="TYPE">false</field>
                                                      <field name="CLEAR_RUNNING">FALSE</field>
                                                      <value name="OID">
                                                        <shadow type="field_oid" id="~d`_H-T9NfHPJ%tm2w_w">
                                                          <field name="oid">Object ID</field>
                                                        </shadow>
                                                        <block type="variables_get" id="_#r~7K?gJ2B}hhe[xse,">
                                                          <field name="VAR" id="auf20dFyBf.~[{:YRHRw">Aktor_1</field>
                                                        </block>
                                                      </value>
                                                      <value name="VALUE">
                                                        <shadow type="logic_boolean" id="#D=jQ4sa4lUej^aPz1_V">
                                                          <field name="BOOL">TRUE</field>
                                                        </shadow>
                                                        <block type="logic_boolean" id=",4/W%pFzT}Yv+uMspe+o">
                                                          <field name="BOOL">FALSE</field>
                                                        </block>
                                                      </value>
                                                      <value name="DELAY_MS">
                                                        <shadow type="math_number" id="2p#XmCm.G5vMJI;d;fTY">
                                                          <field name="NUM">0</field>
                                                        </shadow>
                                                        <block type="math_number" id="Ucd4~ROM(Cn,x?pkY9BG">
                                                          <field name="NUM">0</field>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="procedures_callnoreturn" id="|!-ni90:!o~?59-gCB4A">
                                                          <mutation name="Telegram"></mutation>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </statement>
                                                </block>
                                              </next>
                                            </block>
                                          </statement>
                                        </block>
                                      </next>
                                    </block>
                                  </statement>
                                </block>
                              </statement>
                              <statement name="ELSE">
                                <block type="timeouts_cleartimeout" id=";D,:7xNZ5hDl2r2H$n[E">
                                  <field name="NAME">timeout</field>
                                  <next>
                                    <block type="variables_set" id="_f%a(3WJx.d3-+2(*$5f">
                                      <field name="VAR" id="!KlSDB8b_%^Yexmq!3HA">Sperre</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="BP_Lr6y8b]X!8T!jS5q0">
                                          <field name="BOOL">FALSE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                  </next>
                </block>
                <block type="procedures_defnoreturn" id="^6O2[WD1D12,dz3]}/}c" x="662" y="-112">
                  <field name="NAME">Werte_Vorgeben</field>
                  <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                  <statement name="STACK">
                    <block type="comment" id="P!j~+j+I.XEDAzh)85fd">
                      <field name="COMMENT">Hier den ENERGY state auswaehlen</field>
                      <next>
                        <block type="variables_set" id="e@c,Ezp]}KPEaWt9ly4U">
                          <field name="VAR" id="6vs1mxJz10C;Y`[KE${J">Trigger_1</field>
                          <value name="VALUE">
                            <block type="field_oid" id="8a^/qbaA0`k/Ag2taO-[">
                              <field name="oid">sonoff.0.DVES_39AF78.ENERGY_Power</field>
                            </block>
                          </value>
                          <next>
                            <block type="comment" id="SZ_C4O9$;-`Lc:9T3fj?">
                              <field name="COMMENT">Hier den POWER state auswaehlen</field>
                              <next>
                                <block type="variables_set" id="Z(2xpkY*sW;cx,,?F?CA">
                                  <field name="VAR" id="auf20dFyBf.~[{:YRHRw">Aktor_1</field>
                                  <value name="VALUE">
                                    <block type="field_oid" id="1m~MH}OV!:SlDab]$(U.">
                                      <field name="oid">sonoff.0.DVES_39AF78.POWER</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="comment" id="A2r.k1;Wu3I(tjY(OJn$">
                                      <field name="COMMENT">Wert, der unterschritten werden soll</field>
                                      <next>
                                        <block type="variables_set" id="yjk|l~?u5525v*-|Ad-{">
                                          <field name="VAR" id="p/w(@wMvl;`u(^~Az~vs">Vorgabe_Wert</field>
                                          <value name="VALUE">
                                            <block type="math_number" id="p{dw?$tt-:5{$?vKiV*Z">
                                              <field name="NUM">1</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="comment" id="n?0N#~1ZMI[nnp7N!`aW">
                                              <field name="COMMENT">Hier den Telegram Text eingeben</field>
                                              <next>
                                                <block type="comment" id="$g}#?:%twPIvJ4P$?+LK">
                                                  <field name="COMMENT">Wird nichts eingetragen, ist Telegram deaktiviert</field>
                                                  <next>
                                                    <block type="variables_set" id="$fc.plY2s}b@X-RGR=s_">
                                                      <field name="VAR" id="^bj1z4.DNX003R@%=U;O">Text_Telegram</field>
                                                      <value name="VALUE">
                                                        <block type="text" id=")a#kZ^(rDrr$@*twL]4$">
                                                          <field name="TEXT"></field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
                <block type="procedures_defnoreturn" id="LsQzF_4}1pkmBjxPPcYo" collapsed="true" x="1187" y="-113">
                  <field name="NAME">PRG_INI</field>
                  <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                  <statement name="STACK">
                    <block type="procedures_callnoreturn" id="0S*xi[+C)tUfwe6-2vVL">
                      <mutation name="Werte_Vorgeben"></mutation>
                      <next>
                        <block type="variables_set" id="Qg*{Pd[8gC#EHQy-uudL">
                          <field name="VAR" id="!KlSDB8b_%^Yexmq!3HA">Sperre</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="laDOKTLe./ynmo-~h4!I">
                              <field name="BOOL">FALSE</field>
                            </block>
                          </value>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
                <block type="procedures_defnoreturn" id="m|svt~0-wSzL}D?gIELX" collapsed="true" x="1188" y="-88">
                  <field name="NAME">Werte_in_VAR</field>
                  <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                  <statement name="STACK">
                    <block type="variables_set" id="~lLswh]^~P/U.R_0Ji26">
                      <field name="VAR" id="-!!!%oe4ppqH?|#z#XM~">Zustand_Aktor_1</field>
                      <value name="VALUE">
                        <block type="get_value_var" id="Y#;OdIHSmIWFuO].Tu{O">
                          <field name="ATTR">val</field>
                          <value name="OID">
                            <shadow type="text" id="skAIPOSCNT*tn2W`02-e">
                              <field name="TEXT"></field>
                            </shadow>
                            <block type="variables_get" id="AjpE_xj/`4Xd~;tPpHVH">
                              <field name="VAR" id="auf20dFyBf.~[{:YRHRw">Aktor_1</field>
                            </block>
                          </value>
                        </block>
                      </value>
                    </block>
                  </statement>
                </block>
                <block type="procedures_defnoreturn" id=")^w}T@56fhQI57EzBs3:" x="1188" y="-63">
                  <field name="NAME">Telegram</field>
                  <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                  <statement name="STACK">
                    <block type="controls_if" id="$WHVdHwE`XCMUB5iwN@@">
                      <value name="IF0">
                        <block type="logic_compare" id="Wb*Ir5darRMhl0mx4aQd" inline="false" collapsed="true">
                          <field name="OP">NEQ</field>
                          <value name="A">
                            <block type="variables_get" id="/b^u[!z]`D$9:,BV,ZVe">
                              <field name="VAR" id="^bj1z4.DNX003R@%=U;O">Text_Telegram</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="text" id="6@CMu2!4?o,AR}|Y=9W@">
                              <field name="TEXT"></field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="telegram" id="q_wiGI7SXqN77ZhFG.3z">
                          <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="!T4mV!0Z_jp;`?$%`s{]">
                              <field name="TEXT">text</field>
                            </shadow>
                            <block type="variables_get" id="i+%V#_5V;csfhzAKY9D@">
                              <field name="VAR" id="^bj1z4.DNX003R@%=U;O">Text_Telegram</field>
                            </block>
                          </value>
                        </block>
                      </statement>
                    </block>
                  </statement>
                </block>
              </xml>
              
              1 Reply Last reply Reply Quote 0
              • Xenon
                Xenon Forum Testing Developer @Phantomkommander last edited by

                @Phantomkommander

                Ich habe da ein Standardblockly für, man braucht nur die drei kommentierten Werte in der PRG_INI anpassen und dann läuft alles automatisch. Grundblockly Verbrauch.png
                Optional kann man noch eine Telegramnachricht eintippen, bzw den timeout ändern, habe das Blockly bei zahlreichen Geräten so im Einsatz

                <xml xmlns="https://developers.google.com/blockly/xml">
                  <variables>
                    <variable id="-!!!%oe4ppqH?|#z#XM~">Zustand_Aktor_1</variable>
                    <variable id="6vs1mxJz10C;Y`[KE${J">Trigger_1</variable>
                    <variable id="!KlSDB8b_%^Yexmq!3HA">Sperre</variable>
                    <variable id="auf20dFyBf.~[{:YRHRw">Aktor_1</variable>
                    <variable id="^bj1z4.DNX003R@%=U;O">Text_Telegram</variable>
                    <variable id="p/w(@wMvl;`u(^~Az~vs">Vorgabe_Wert</variable>
                    <variable type="timeout" id="timeout">timeout</variable>
                  </variables>
                  <block type="procedures_callnoreturn" id="gM%DIi4R9`s.;`(=yVM%" x="187" y="-112">
                    <mutation name="PRG_INI"></mutation>
                    <next>
                      <block type="on_ext" id="%o`;]|iQdfx!T6_$|n1Z">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                        <field name="CONDITION">ne</field>
                        <field name="ACK_CONDITION"></field>
                        <value name="OID0">
                          <shadow type="field_oid" id=";]X5XvT]/I^B#(~bW}=t">
                            <field name="oid">default</field>
                          </shadow>
                          <block type="variables_get" id="0Zl5xWv@y(?Yg`l;^a[d">
                            <field name="VAR" id="6vs1mxJz10C;Y`[KE${J">Trigger_1</field>
                          </block>
                        </value>
                        <statement name="STATEMENT">
                          <block type="procedures_callnoreturn" id="WEw:yD5fKj/b-ToFhM(A">
                            <mutation name="Werte_in_VAR"></mutation>
                            <next>
                              <block type="controls_if" id="DCeD46|YALHfir|.rI-i">
                                <mutation else="1"></mutation>
                                <value name="IF0">
                                  <block type="logic_compare" id="n@wRq%S(Wk,ajT}Hh${{" inline="false">
                                    <field name="OP">LTE</field>
                                    <value name="A">
                                      <block type="on_source" id="^jaj$^xI4W@]6rgN(y=@">
                                        <field name="ATTR">state.val</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="variables_get" id="bPBsuxkAjcm4ae[M?QeM">
                                        <field name="VAR" id="p/w(@wMvl;`u(^~Az~vs">Vorgabe_Wert</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="controls_if" id="}4kN^q{7beH%=9Tc`:e?">
                                    <value name="IF0">
                                      <block type="logic_negate" id="2^dBLkE|-R%PAgjklhz6">
                                        <value name="BOOL">
                                          <block type="variables_get" id="sZql:5]-Z7p;rEX44zGL">
                                            <field name="VAR" id="!KlSDB8b_%^Yexmq!3HA">Sperre</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="variables_set" id="k,hIxCRF]VKALX0Tz7Av">
                                        <field name="VAR" id="!KlSDB8b_%^Yexmq!3HA">Sperre</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id=",{xj53f=byzz7jgu.=e5">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="timeouts_settimeout" id="sr2FPZ6N=@1y4l_2UDuz">
                                            <field name="NAME">timeout</field>
                                            <field name="DELAY">5</field>
                                            <field name="UNIT">min</field>
                                            <statement name="STATEMENT">
                                              <block type="procedures_callnoreturn" id="S).vSxl*q%og=75Kuq^|">
                                                <mutation name="Werte_in_VAR"></mutation>
                                                <next>
                                                  <block type="controls_if" id="k|s{]:wTA~;7r}L|kzdf" collapsed="true">
                                                    <value name="IF0">
                                                      <block type="variables_get" id="v-ms+m,GsE.1t[v`za+~">
                                                        <field name="VAR" id="-!!!%oe4ppqH?|#z#XM~">Zustand_Aktor_1</field>
                                                      </block>
                                                    </value>
                                                    <statement name="DO0">
                                                      <block type="control_ex" id="}Z6%|a,IaQf`tH6$cqXa" inline="true">
                                                        <field name="TYPE">false</field>
                                                        <field name="CLEAR_RUNNING">FALSE</field>
                                                        <value name="OID">
                                                          <shadow type="field_oid" id="~d`_H-T9NfHPJ%tm2w_w">
                                                            <field name="oid">Object ID</field>
                                                          </shadow>
                                                          <block type="variables_get" id="_#r~7K?gJ2B}hhe[xse,">
                                                            <field name="VAR" id="auf20dFyBf.~[{:YRHRw">Aktor_1</field>
                                                          </block>
                                                        </value>
                                                        <value name="VALUE">
                                                          <shadow type="logic_boolean" id="#D=jQ4sa4lUej^aPz1_V">
                                                            <field name="BOOL">TRUE</field>
                                                          </shadow>
                                                          <block type="logic_boolean" id=",4/W%pFzT}Yv+uMspe+o">
                                                            <field name="BOOL">FALSE</field>
                                                          </block>
                                                        </value>
                                                        <value name="DELAY_MS">
                                                          <shadow type="math_number" id="2p#XmCm.G5vMJI;d;fTY">
                                                            <field name="NUM">0</field>
                                                          </shadow>
                                                          <block type="math_number" id="Ucd4~ROM(Cn,x?pkY9BG">
                                                            <field name="NUM">0</field>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="procedures_callnoreturn" id="|!-ni90:!o~?59-gCB4A">
                                                            <mutation name="Telegram"></mutation>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </statement>
                                                  </block>
                                                </next>
                                              </block>
                                            </statement>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                                <statement name="ELSE">
                                  <block type="timeouts_cleartimeout" id=";D,:7xNZ5hDl2r2H$n[E">
                                    <field name="NAME">timeout</field>
                                    <next>
                                      <block type="variables_set" id="_f%a(3WJx.d3-+2(*$5f">
                                        <field name="VAR" id="!KlSDB8b_%^Yexmq!3HA">Sperre</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="BP_Lr6y8b]X!8T!jS5q0">
                                            <field name="BOOL">FALSE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </next>
                                  </block>
                                </statement>
                              </block>
                            </next>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                  <block type="procedures_defnoreturn" id="^6O2[WD1D12,dz3]}/}c" x="662" y="-112">
                    <field name="NAME">Werte_Vorgeben</field>
                    <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                    <statement name="STACK">
                      <block type="comment" id="P!j~+j+I.XEDAzh)85fd">
                        <field name="COMMENT">Hier den ENERGY state auswaehlen</field>
                        <next>
                          <block type="variables_set" id="e@c,Ezp]}KPEaWt9ly4U">
                            <field name="VAR" id="6vs1mxJz10C;Y`[KE${J">Trigger_1</field>
                            <value name="VALUE">
                              <block type="field_oid" id="8a^/qbaA0`k/Ag2taO-[">
                                <field name="oid">sonoff.0.DVES_39AF78.ENERGY_Power</field>
                              </block>
                            </value>
                            <next>
                              <block type="comment" id="SZ_C4O9$;-`Lc:9T3fj?">
                                <field name="COMMENT">Hier den POWER state auswaehlen</field>
                                <next>
                                  <block type="variables_set" id="Z(2xpkY*sW;cx,,?F?CA">
                                    <field name="VAR" id="auf20dFyBf.~[{:YRHRw">Aktor_1</field>
                                    <value name="VALUE">
                                      <block type="field_oid" id="1m~MH}OV!:SlDab]$(U.">
                                        <field name="oid">sonoff.0.DVES_39AF78.POWER</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="comment" id="A2r.k1;Wu3I(tjY(OJn$">
                                        <field name="COMMENT">Wert, der unterschritten werden soll</field>
                                        <next>
                                          <block type="variables_set" id="yjk|l~?u5525v*-|Ad-{">
                                            <field name="VAR" id="p/w(@wMvl;`u(^~Az~vs">Vorgabe_Wert</field>
                                            <value name="VALUE">
                                              <block type="math_number" id="p{dw?$tt-:5{$?vKiV*Z">
                                                <field name="NUM">1</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="comment" id="n?0N#~1ZMI[nnp7N!`aW">
                                                <field name="COMMENT">Hier den Telegram Text eingeben</field>
                                                <next>
                                                  <block type="comment" id="$g}#?:%twPIvJ4P$?+LK">
                                                    <field name="COMMENT">Wird nichts eingetragen, ist Telegram deaktiviert</field>
                                                    <next>
                                                      <block type="variables_set" id="$fc.plY2s}b@X-RGR=s_">
                                                        <field name="VAR" id="^bj1z4.DNX003R@%=U;O">Text_Telegram</field>
                                                        <value name="VALUE">
                                                          <block type="text" id=")a#kZ^(rDrr$@*twL]4$">
                                                            <field name="TEXT"></field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </statement>
                  </block>
                  <block type="procedures_defnoreturn" id="LsQzF_4}1pkmBjxPPcYo" collapsed="true" x="1187" y="-113">
                    <field name="NAME">PRG_INI</field>
                    <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                    <statement name="STACK">
                      <block type="procedures_callnoreturn" id="0S*xi[+C)tUfwe6-2vVL">
                        <mutation name="Werte_Vorgeben"></mutation>
                        <next>
                          <block type="variables_set" id="Qg*{Pd[8gC#EHQy-uudL">
                            <field name="VAR" id="!KlSDB8b_%^Yexmq!3HA">Sperre</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="laDOKTLe./ynmo-~h4!I">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                          </block>
                        </next>
                      </block>
                    </statement>
                  </block>
                  <block type="procedures_defnoreturn" id="m|svt~0-wSzL}D?gIELX" collapsed="true" x="1188" y="-88">
                    <field name="NAME">Werte_in_VAR</field>
                    <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                    <statement name="STACK">
                      <block type="variables_set" id="~lLswh]^~P/U.R_0Ji26">
                        <field name="VAR" id="-!!!%oe4ppqH?|#z#XM~">Zustand_Aktor_1</field>
                        <value name="VALUE">
                          <block type="get_value_var" id="Y#;OdIHSmIWFuO].Tu{O">
                            <field name="ATTR">val</field>
                            <value name="OID">
                              <shadow type="text" id="skAIPOSCNT*tn2W`02-e">
                                <field name="TEXT"></field>
                              </shadow>
                              <block type="variables_get" id="AjpE_xj/`4Xd~;tPpHVH">
                                <field name="VAR" id="auf20dFyBf.~[{:YRHRw">Aktor_1</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                  <block type="procedures_defnoreturn" id=")^w}T@56fhQI57EzBs3:" x="1188" y="-63">
                    <field name="NAME">Telegram</field>
                    <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                    <statement name="STACK">
                      <block type="controls_if" id="$WHVdHwE`XCMUB5iwN@@">
                        <value name="IF0">
                          <block type="logic_compare" id="Wb*Ir5darRMhl0mx4aQd" inline="false" collapsed="true">
                            <field name="OP">NEQ</field>
                            <value name="A">
                              <block type="variables_get" id="/b^u[!z]`D$9:,BV,ZVe">
                                <field name="VAR" id="^bj1z4.DNX003R@%=U;O">Text_Telegram</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="text" id="6@CMu2!4?o,AR}|Y=9W@">
                                <field name="TEXT"></field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="telegram" id="q_wiGI7SXqN77ZhFG.3z">
                            <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="!T4mV!0Z_jp;`?$%`s{]">
                                <field name="TEXT">text</field>
                              </shadow>
                              <block type="variables_get" id="i+%V#_5V;csfhzAKY9D@">
                                <field name="VAR" id="^bj1z4.DNX003R@%=U;O">Text_Telegram</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </statement>
                  </block>
                </xml>
                
                Phantomkommander 2 Replies Last reply Reply Quote 0
                • Phantomkommander
                  Phantomkommander @Xenon last edited by

                  @Xenon

                  Oh vielen Dank. Werde ich später mal ausprobieren. War echt schon am verzweifeln.

                  1 Reply Last reply Reply Quote 0
                  • Phantomkommander
                    Phantomkommander @Xenon last edited by

                    @Xenon
                    Glaube ich habe irgendwie eine falsche Verknüpfung gemacht. Es wird doch einmal Power abgefragt, also Steckdose an/aus und einmal Watt. Ist doch richtig? Die Werte werden über die Variablen abgefragt.
                    Jetzt würde ich gerne über alexa eine Sprachausgabe bekommen, da ich Telegramm nicht nutze. Wenn ich den Steuerbefehl einsetzt quatscht die mit mir 😂 was habe ich übersehen?

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

                      @Phantomkommander

                      zeig mal einen Screenshot von dem, was du gemacht hast

                      Phantomkommander 1 Reply Last reply Reply Quote 0
                      • Phantomkommander
                        Phantomkommander @Xenon last edited by

                        @Xenon

                        Die drei Werte habe ich eingetragen.

                        20200601_212638.jpg

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

                          @Phantomkommander ok und was funktioniert nicht? Wenn du Alexa haben willst, nimm einfach den Telegram Block raus und ersetze ihn durch den Befehl, den Alexa benötigt. Ich habe Alexa nicht im Einsatz, kann dir da leider nicht sagen, was du da für einen Befehl benötigst.

                          Phantomkommander 1 Reply Last reply Reply Quote 0
                          • Phantomkommander
                            Phantomkommander @Xenon last edited by Phantomkommander

                            @Xenon
                            Der Befehl passt, wahrscheinlich löst meine Waschmaschine den triggern zu oft aus. Probiere die Tage nochmal etwas rum.

                            1 Reply Last reply Reply Quote 0
                            • D
                              DennisMenger last edited by DennisMenger

                              Hallo zusammen.

                              Ich habe mir auch ein Waschmaschinen-Script gebastelt. Das funktioniert auch soweit.

                              Für die Visualisierung brauche ich einen Datenpunkt (haushalt.waschmaschine), der den Wert 0 (Aus), 1 (Läuft) oder 2 (Fertig) benötige. Leider scheine ich den Datenpunkt nicht richtig zu steuern. Was mache ich falsch?

                              waschmaschine.png

                              
                              <xml xmlns="https://developers.google.com/blockly/xml">
                                <variables>
                                  <variable id="l7lPY$qtTN17=..A7@0b">Waschmaschine_aktiv?</variable>
                                  <variable type="timeout" id="timeout2">timeout2</variable>
                                </variables>
                                <block type="variables_set" id="0i}nu9$kYbT#g9@IxCX}" x="187" y="63">
                                  <field name="VAR" id="l7lPY$qtTN17=..A7@0b">Waschmaschine_aktiv?</field>
                                  <value name="VALUE">
                                    <block type="logic_boolean" id="7;8sDuF)zAJMnn1OaCgc">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="on_ext" id="L6FXx_izm[`aX6!9HvU6">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                      <field name="CONDITION">ne</field>
                                      <field name="ACK_CONDITION"></field>
                                      <value name="OID0">
                                        <shadow type="field_oid" id="EG=)w~];sOxN)8%+VIHe">
                                          <field name="oid">fritzdect.0.DECT200_116570140553.power</field>
                                        </shadow>
                                      </value>
                                      <statement name="STATEMENT">
                                        <block type="controls_if" id="_;!:5X%Z(|pRpoJK#8q]">
                                          <mutation elseif="1"></mutation>
                                          <value name="IF0">
                                            <block type="logic_operation" id="mUt)NFsuMViHU}!,B5hr" inline="false">
                                              <field name="OP">AND</field>
                                              <value name="A">
                                                <block type="logic_compare" id="kK9U?3%V(CGq)aj^BCnS">
                                                  <field name="OP">GTE</field>
                                                  <value name="A">
                                                    <block type="on_source" id="}y8R3m5vX3GlKq6n$wCj">
                                                      <field name="ATTR">state.val</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="math_number" id=".+H4_IO4Qg/.n,AL$~mX">
                                                      <field name="NUM">25</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="logic_compare" id="z%!%RezD`4+JA:+u*GJE">
                                                  <field name="OP">EQ</field>
                                                  <value name="A">
                                                    <block type="variables_get" id="tB(*8@f/i3v+@57cU4sS">
                                                      <field name="VAR" id="l7lPY$qtTN17=..A7@0b">Waschmaschine_aktiv?</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="logic_boolean" id="_*1Kyz2HBnyE}-qzGKk%">
                                                      <field name="BOOL">FALSE</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO0">
                                            <block type="variables_set" id=".].Udv:3%G]]C_TIxH][">
                                              <field name="VAR" id="l7lPY$qtTN17=..A7@0b">Waschmaschine_aktiv?</field>
                                              <value name="VALUE">
                                                <block type="logic_boolean" id="6(iV3KwXTdD%?$1Kjuv/">
                                                  <field name="BOOL">TRUE</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="control" id="4YJ@;3C]ZEj=LwBc)~n!">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">javascript.0.haushalt.waschmaschine</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="logic_compare" id="EimHF!;yqZ^}Y9lO7sT.">
                                                      <field name="OP">EQ</field>
                                                      <value name="A">
                                                        <block type="on_source" id="uc2$gQo!-4}~fWZhzO1/">
                                                          <field name="ATTR">state.val</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="math_number" id="tdi3(/~A?N#HY#9=Psby">
                                                          <field name="NUM">1</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="telegram" id="8s/_;=)3|*66LL#C7yAr">
                                                      <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="S[$a$q+WT`-HogHgQiP[">
                                                          <field name="TEXT">Die Waschmaschine läuft jetzt!</field>
                                                        </shadow>
                                                      </value>
                                                      <value name="USERNAME">
                                                        <block type="text" id="EN6S#Hh$Dg0E%xYkD?*w">
                                                          <field name="TEXT">Dennis</field>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="timeouts_cleartimeout" id="W^8:e9LF~io0DHZBOat!">
                                                          <field name="NAME">timeout2</field>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </statement>
                                          <value name="IF1">
                                            <block type="logic_operation" id="0+OY=,f`C!klGFutM5DP" inline="false">
                                              <field name="OP">AND</field>
                                              <value name="A">
                                                <block type="logic_compare" id="l_M,oDf(?NM)Ub4[c.uj">
                                                  <field name="OP">LT</field>
                                                  <value name="A">
                                                    <block type="on_source" id="~GoZ_U{,F!Mrej%Y$h(p">
                                                      <field name="ATTR">state.val</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="math_number" id="]v?+y,X_H9DcUs[Z|1BM">
                                                      <field name="NUM">3</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="logic_compare" id="*44JR2ABWOHX$82b*h4c">
                                                  <field name="OP">EQ</field>
                                                  <value name="A">
                                                    <block type="variables_get" id=";A|idBy`:La^:Q?{O1Y~">
                                                      <field name="VAR" id="l7lPY$qtTN17=..A7@0b">Waschmaschine_aktiv?</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="logic_boolean" id="a^I.%Ui6wwu=aZD!hyrF">
                                                      <field name="BOOL">TRUE</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO1">
                                            <block type="variables_set" id="|~aUx(^d290g^-)yQXG:">
                                              <field name="VAR" id="l7lPY$qtTN17=..A7@0b">Waschmaschine_aktiv?</field>
                                              <value name="VALUE">
                                                <block type="logic_boolean" id="s}(^hK?r.[cC/MOfmzr3">
                                                  <field name="BOOL">FALSE</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="control" id="M^,_|X9pyXdAuu]oVL3D">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">javascript.0.haushalt.waschmaschine</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="logic_compare" id="+oRjo=W4Vma?0917qpMj">
                                                      <field name="OP">EQ</field>
                                                      <value name="A">
                                                        <block type="on_source" id="eJ~J7G=.=2A*J1+b,MXC">
                                                          <field name="ATTR">state.val</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="math_number" id="LLB7Ckx/7z$Y-I/WC[BI">
                                                          <field name="NUM">2</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="timeouts_settimeout" id="i$!`-HPAGY8OWMtvp0q1">
                                                      <field name="NAME">timeout2</field>
                                                      <field name="DELAY">5</field>
                                                      <field name="UNIT">min</field>
                                                      <statement name="STATEMENT">
                                                        <block type="telegram" id="V~cv`b*.EtSN1dNlPtW;">
                                                          <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=")3!0c(eEyRov{d5e2M`m">
                                                              <field name="TEXT">Die Waschmaschine ist fertig. Bitte die Wäsche entnehmen.</field>
                                                            </shadow>
                                                          </value>
                                                        </block>
                                                      </statement>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </statement>
                                        </block>
                                      </statement>
                                    </block>
                                  </next>
                                </block>
                              </xml>
                              <xml xmlns="https://developers.google.com/blockly/xml">
                                <variables>
                                  <variable id="l7lPY$qtTN17=..A7@0b">Waschmaschine_aktiv?</variable>
                                  <variable type="timeout" id="timeout2">timeout2</variable>
                                </variables>
                                <block type="variables_set" id="0i}nu9$kYbT#g9@IxCX}" x="187" y="63">
                                  <field name="VAR" id="l7lPY$qtTN17=..A7@0b">Waschmaschine_aktiv?</field>
                                  <value name="VALUE">
                                    <block type="logic_boolean" id="7;8sDuF)zAJMnn1OaCgc">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="on_ext" id="L6FXx_izm[`aX6!9HvU6">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                      <field name="CONDITION">ne</field>
                                      <field name="ACK_CONDITION"></field>
                                      <value name="OID0">
                                        <shadow type="field_oid" id="EG=)w~];sOxN)8%+VIHe">
                                          <field name="oid">fritzdect.0.DECT200_116570140553.power</field>
                                        </shadow>
                                      </value>
                                      <statement name="STATEMENT">
                                        <block type="controls_if" id="_;!:5X%Z(|pRpoJK#8q]">
                                          <mutation elseif="1"></mutation>
                                          <value name="IF0">
                                            <block type="logic_operation" id="mUt)NFsuMViHU}!,B5hr" inline="false">
                                              <field name="OP">AND</field>
                                              <value name="A">
                                                <block type="logic_compare" id="kK9U?3%V(CGq)aj^BCnS">
                                                  <field name="OP">GTE</field>
                                                  <value name="A">
                                                    <block type="on_source" id="}y8R3m5vX3GlKq6n$wCj">
                                                      <field name="ATTR">state.val</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="math_number" id=".+H4_IO4Qg/.n,AL$~mX">
                                                      <field name="NUM">25</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="logic_compare" id="z%!%RezD`4+JA:+u*GJE">
                                                  <field name="OP">EQ</field>
                                                  <value name="A">
                                                    <block type="variables_get" id="tB(*8@f/i3v+@57cU4sS">
                                                      <field name="VAR" id="l7lPY$qtTN17=..A7@0b">Waschmaschine_aktiv?</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="logic_boolean" id="_*1Kyz2HBnyE}-qzGKk%">
                                                      <field name="BOOL">FALSE</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO0">
                                            <block type="variables_set" id=".].Udv:3%G]]C_TIxH][">
                                              <field name="VAR" id="l7lPY$qtTN17=..A7@0b">Waschmaschine_aktiv?</field>
                                              <value name="VALUE">
                                                <block type="logic_boolean" id="6(iV3KwXTdD%?$1Kjuv/">
                                                  <field name="BOOL">TRUE</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="control" id="4YJ@;3C]ZEj=LwBc)~n!">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">javascript.0.haushalt.waschmaschine</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="logic_compare" id="EimHF!;yqZ^}Y9lO7sT.">
                                                      <field name="OP">EQ</field>
                                                      <value name="A">
                                                        <block type="on_source" id="uc2$gQo!-4}~fWZhzO1/">
                                                          <field name="ATTR">state.val</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="math_number" id="tdi3(/~A?N#HY#9=Psby">
                                                          <field name="NUM">1</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="telegram" id="8s/_;=)3|*66LL#C7yAr">
                                                      <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="S[$a$q+WT`-HogHgQiP[">
                                                          <field name="TEXT">Die Waschmaschine läuft jetzt!</field>
                                                        </shadow>
                                                      </value>
                                                      <value name="USERNAME">
                                                        <block type="text" id="EN6S#Hh$Dg0E%xYkD?*w">
                                                          <field name="TEXT">Dennis</field>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="timeouts_cleartimeout" id="W^8:e9LF~io0DHZBOat!">
                                                          <field name="NAME">timeout2</field>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </statement>
                                          <value name="IF1">
                                            <block type="logic_operation" id="0+OY=,f`C!klGFutM5DP" inline="false">
                                              <field name="OP">AND</field>
                                              <value name="A">
                                                <block type="logic_compare" id="l_M,oDf(?NM)Ub4[c.uj">
                                                  <field name="OP">LT</field>
                                                  <value name="A">
                                                    <block type="on_source" id="~GoZ_U{,F!Mrej%Y$h(p">
                                                      <field name="ATTR">state.val</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="math_number" id="]v?+y,X_H9DcUs[Z|1BM">
                                                      <field name="NUM">3</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="logic_compare" id="*44JR2ABWOHX$82b*h4c">
                                                  <field name="OP">EQ</field>
                                                  <value name="A">
                                                    <block type="variables_get" id=";A|idBy`:La^:Q?{O1Y~">
                                                      <field name="VAR" id="l7lPY$qtTN17=..A7@0b">Waschmaschine_aktiv?</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="logic_boolean" id="a^I.%Ui6wwu=aZD!hyrF">
                                                      <field name="BOOL">TRUE</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO1">
                                            <block type="variables_set" id="|~aUx(^d290g^-)yQXG:">
                                              <field name="VAR" id="l7lPY$qtTN17=..A7@0b">Waschmaschine_aktiv?</field>
                                              <value name="VALUE">
                                                <block type="logic_boolean" id="s}(^hK?r.[cC/MOfmzr3">
                                                  <field name="BOOL">FALSE</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="control" id="M^,_|X9pyXdAuu]oVL3D">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">javascript.0.haushalt.waschmaschine</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="logic_compare" id="+oRjo=W4Vma?0917qpMj">
                                                      <field name="OP">EQ</field>
                                                      <value name="A">
                                                        <block type="on_source" id="eJ~J7G=.=2A*J1+b,MXC">
                                                          <field name="ATTR">state.val</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="math_number" id="LLB7Ckx/7z$Y-I/WC[BI">
                                                          <field name="NUM">2</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="timeouts_settimeout" id="i$!`-HPAGY8OWMtvp0q1">
                                                      <field name="NAME">timeout2</field>
                                                      <field name="DELAY">5</field>
                                                      <field name="UNIT">min</field>
                                                      <statement name="STATEMENT">
                                                        <block type="telegram" id="V~cv`b*.EtSN1dNlPtW;">
                                                          <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=")3!0c(eEyRov{d5e2M`m">
                                                              <field name="TEXT">Die Waschmaschine ist fertig. Bitte die Wäsche entnehmen.</field>
                                                            </shadow>
                                                          </value>
                                                        </block>
                                                      </statement>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </statement>
                                        </block>
                                      </statement>
                                    </block>
                                  </next>
                                </block>
                              </xml>
                              
                              

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

                                @DennisMenger
                                Wenn Haushalt.waschmaschine ein manuell angelegter datenpunkt ist, dann nimm aktualisiere statt steuere. Außerdem nicht mit wert=0 aktualisieren, sondern einfach nur mit der Zahl.

                                D 2 Replies Last reply Reply Quote 1
                                • D
                                  DennisMenger @buggybeast last edited by

                                  @buggybeast super, danke dir. Ja, der Datenpunkt ist selbst angelegt.

                                  Werde ich mal testen und berichten.

                                  1 Reply Last reply Reply Quote 0
                                  • D
                                    DennisMenger @buggybeast last edited by

                                    @buggybeast funktioniert. Danke

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

                                      @Xenon

                                      Frage zu deinen Script, ich muss doch bloß die 3 Werte an meine Konfiguration anpassen, also
                                      Trigger 1 = Power ein/aus
                                      Aktor_1 = momentane Wattanzeige
                                      Vorgabe-Wert = Was meine WM beim Ende an Watt verbraucht, richtig?

                                      Alexa & Co dürfte ja kein Fehler enthalten.

                                      Screenshot_2020-06-14 javascript - ioBroker(1).png

                                      Xenon 1 Reply Last reply Reply Quote 0
                                      • D
                                        DennisMenger last edited by

                                        Mein Blockly für die Waschmaschine funktioniert soweit. Wie kann ich die Speak-Ausgabe nur in der Zeit von 9.00 bis 22.00 Uhr täglich ausgeben lassen?

                                        waschmaschine2.png

                                        1 Reply Last reply Reply Quote 0
                                        • D
                                          DennisMenger last edited by

                                          Jemand einen Lösungsansatz wie ich die Speak-Ausgabe zeitlich einschränken kann? Die Kinder "töten" mich momentan, wenn wir morgens die Waschmaschine anstellen und sie durch Alexa geweckt werden, wenn die Waschmaschine fertig ist.

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

                                            @DennisMenger naja ich würde unter dein telegram, dass Waschmaschine fertig ist einfach ein
                                            Falls aktuelle Zeit zwischen 9 und 22 Uhr
                                            Speak Befehl

                                            Sollte reichen 😊

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            899
                                            Online

                                            31.9k
                                            Users

                                            80.2k
                                            Topics

                                            1.3m
                                            Posts

                                            blockly
                                            16
                                            109
                                            9700
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo