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. Blockly
  5. Waschmaschine

NEWS

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

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    24
    1
    1.7k

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

Waschmaschine

Geplant Angeheftet Gesperrt Verschoben Blockly
blockly
109 Beiträge 16 Kommentatoren 13.2k Aufrufe 17 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.
  • XenonX Offline
    XenonX Offline
    Xenon
    Forum Testing Developer
    schrieb am zuletzt editiert von
    #59

    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>
    

    wenn euch mein Beitrag geholfen hat, bewertet ihn bitte unten rechts :)

    1 Antwort Letzte Antwort
    0
    • PhantomkommanderP Phantomkommander

      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

      XenonX Offline
      XenonX Offline
      Xenon
      Forum Testing Developer
      schrieb am zuletzt editiert von
      #60

      @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>
      

      wenn euch mein Beitrag geholfen hat, bewertet ihn bitte unten rechts :)

      PhantomkommanderP 2 Antworten Letzte Antwort
      0
      • XenonX Xenon

        @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>
        
        PhantomkommanderP Offline
        PhantomkommanderP Offline
        Phantomkommander
        schrieb am zuletzt editiert von
        #61

        @Xenon

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

        1 Antwort Letzte Antwort
        0
        • XenonX Xenon

          @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>
          
          PhantomkommanderP Offline
          PhantomkommanderP Offline
          Phantomkommander
          schrieb am zuletzt editiert von
          #62

          @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?

          XenonX 1 Antwort Letzte Antwort
          0
          • PhantomkommanderP Phantomkommander

            @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?

            XenonX Offline
            XenonX Offline
            Xenon
            Forum Testing Developer
            schrieb am zuletzt editiert von
            #63

            @Phantomkommander

            zeig mal einen Screenshot von dem, was du gemacht hast

            wenn euch mein Beitrag geholfen hat, bewertet ihn bitte unten rechts :)

            PhantomkommanderP 1 Antwort Letzte Antwort
            0
            • XenonX Xenon

              @Phantomkommander

              zeig mal einen Screenshot von dem, was du gemacht hast

              PhantomkommanderP Offline
              PhantomkommanderP Offline
              Phantomkommander
              schrieb am zuletzt editiert von
              #64

              @Xenon

              Die drei Werte habe ich eingetragen.

              20200601_212638.jpg

              XenonX 1 Antwort Letzte Antwort
              0
              • PhantomkommanderP Phantomkommander

                @Xenon

                Die drei Werte habe ich eingetragen.

                20200601_212638.jpg

                XenonX Offline
                XenonX Offline
                Xenon
                Forum Testing Developer
                schrieb am zuletzt editiert von
                #65

                @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.

                wenn euch mein Beitrag geholfen hat, bewertet ihn bitte unten rechts :)

                PhantomkommanderP 1 Antwort Letzte Antwort
                0
                • XenonX Xenon

                  @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.

                  PhantomkommanderP Offline
                  PhantomkommanderP Offline
                  Phantomkommander
                  schrieb am zuletzt editiert von Phantomkommander
                  #66

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

                  1 Antwort Letzte Antwort
                  0
                  • D Online
                    D Online
                    DennisMenger
                    schrieb am zuletzt editiert von DennisMenger
                    #67

                    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 Antwort Letzte Antwort
                    0
                    • buggybeastB Offline
                      buggybeastB Offline
                      buggybeast
                      schrieb am zuletzt editiert von
                      #68

                      @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 Antworten Letzte Antwort
                      1
                      • buggybeastB buggybeast

                        @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 Online
                        D Online
                        DennisMenger
                        schrieb am zuletzt editiert von
                        #69

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

                        Werde ich mal testen und berichten.

                        1 Antwort Letzte Antwort
                        0
                        • buggybeastB buggybeast

                          @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 Online
                          D Online
                          DennisMenger
                          schrieb am zuletzt editiert von
                          #70

                          @buggybeast funktioniert. Danke

                          1 Antwort Letzte Antwort
                          0
                          • SlowmanS Offline
                            SlowmanS Offline
                            Slowman
                            schrieb am zuletzt editiert von
                            #71

                            @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

                            XenonX 1 Antwort Letzte Antwort
                            0
                            • D Online
                              D Online
                              DennisMenger
                              schrieb am zuletzt editiert von
                              #72

                              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 Antwort Letzte Antwort
                              0
                              • D Online
                                D Online
                                DennisMenger
                                schrieb am zuletzt editiert von
                                #73

                                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 Antwort Letzte Antwort
                                0
                                • buggybeastB Offline
                                  buggybeastB Offline
                                  buggybeast
                                  schrieb am zuletzt editiert von
                                  #74

                                  @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 Antwort Letzte Antwort
                                  0
                                  • buggybeastB buggybeast

                                    @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 Online
                                    D Online
                                    DennisMenger
                                    schrieb am zuletzt editiert von
                                    #75

                                    @buggybeast Danke dir. Ich werde das morgen mal testen bzw. schauen ob die Kinder meckern :grin:

                                    1 Antwort Letzte Antwort
                                    0
                                    • SlowmanS Offline
                                      SlowmanS Offline
                                      Slowman
                                      schrieb am zuletzt editiert von
                                      #76

                                      @Dirni

                                      Wo bzw. wie erstelle ich denn den Datenpunkt mit den Preis der Kilowattstunde?:face_with_rolling_eyes:

                                      D 1 Antwort Letzte Antwort
                                      0
                                      • SlowmanS Slowman

                                        @Dirni

                                        Wo bzw. wie erstelle ich denn den Datenpunkt mit den Preis der Kilowattstunde?:face_with_rolling_eyes:

                                        D Offline
                                        D Offline
                                        Dirni
                                        schrieb am zuletzt editiert von
                                        #77

                                        @Slowman sagte in Waschmaschine:

                                        @Dirni

                                        Wo bzw. wie erstelle ich denn den Datenpunkt mit den Preis der Kilowattstunde?:face_with_rolling_eyes:

                                        https://youtu.be/GgOGAYAbAFg

                                        1 Antwort Letzte Antwort
                                        1
                                        • SlowmanS Offline
                                          SlowmanS Offline
                                          Slowman
                                          schrieb am zuletzt editiert von
                                          #78

                                          @Dirni

                                          Thema: ioBroker Objekte Sichern / Wiederherstellen ? Bekomme da abe rnicht die Frage beantwortet, wie ich einen datenpunkt mit den Preis einer Kilowattstunde hinterlegt wird. :confused:

                                          D 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

                                          684

                                          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