User Tools

Site Tools


homeautomatisation:blockyscripts:fridge
<xml xmlns="https://developers.google.com/blockly/xml">
  <block type="on" id="4V+4{kj5jt(u(Nway8K]" x="63" y="13">
    <field name="OID">zigbee.0.00158d0007e763f3.opened</field>
    <field name="CONDITION">ne</field>
    <field name="ACK_CONDITION"></field>
    <statement name="STATEMENT">
      <block type="timeouts_wait" id="s^b;hFEVS[BBSoou{M(f">
        <field name="DELAY">5</field>
        <field name="UNIT">sec</field>
        <next>
          <block type="controls_if" id="Y]9em0lU[S`=2]QBT7Wu">
            <value name="IF0">
              <block type="logic_compare" id="(17XR=P$6K(+.?356jV/">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="get_value" id="}{4dY0EcEY2KCq9OgX-e">
                    <field name="ATTR">val</field>
                    <field name="OID">zigbee.0.00158d0007e763f3.opened</field>
                  </block>
                </value>
                <value name="B">
                  <block type="logic_boolean" id="L=T)?CS@{Ucg.w|1j{-=">
                    <field name="BOOL">TRUE</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="control" id="jY,;H(fYq*vFaNYjtM:V">
                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                <field name="OID">alexa2.0.Echo-Devices.G091EV122022044T.Commands.speak</field>
                <field name="WITH_DELAY">TRUE</field>
                <field name="DELAY_MS">1000</field>
                <field name="UNIT">ms</field>
                <field name="CLEAR_RUNNING">FALSE</field>
                <value name="VALUE">
                  <block type="text" id="?*^QTu-LC;@j=^_8vaqp">
                    <field name="TEXT">Die Kuehlschranktuer ist offen</field>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block type="timeouts_wait" id="@)(9@2qyYA.NOCF}94gZ">
                <field name="DELAY">10</field>
                <field name="UNIT">sec</field>
                <next>
                  <block type="controls_if" id="](*0qw]Gq/5tM_v^[!TT">
                    <value name="IF0">
                      <block type="logic_compare" id="rC?iE@~l_LUC+8W1^5CZ">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id="RFq:XsX?:JfN6PqlP?tJ">
                            <field name="ATTR">val</field>
                            <field name="OID">zigbee.0.00158d0007e763f3.opened</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_boolean" id="jk.pn`e%)8|Yf+qV5I_P">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="control" id="4ka|?UIf10ncx6(O3^m2">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                        <field name="OID">alexa2.0.Echo-Devices.G091EV122022044T.Commands.speak</field>
                        <field name="WITH_DELAY">TRUE</field>
                        <field name="DELAY_MS">1000</field>
                        <field name="UNIT">ms</field>
                        <field name="CLEAR_RUNNING">FALSE</field>
                        <value name="VALUE">
                          <block type="text" id="GQs:syOtt^NV3XDv$$Ph">
                            <field name="TEXT">Die Tuer ist immer noch offen</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <next>
                      <block type="timeouts_wait" id="Lgvuul)=i_H|KsLEb+Mb">
                        <field name="DELAY">10</field>
                        <field name="UNIT">sec</field>
                        <next>
                          <block type="controls_if" id="9gt|]lC:pPMZMsTFT@^h">
                            <value name="IF0">
                              <block type="logic_compare" id="r@/m[KlPH2Bx)QbbR;GK">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id=")/^iZhCRVDH9L5]v~bIz">
                                    <field name="ATTR">val</field>
                                    <field name="OID">zigbee.0.00158d0007e763f3.opened</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_boolean" id="Z,09r+lgPGEj_I_h3=lh">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="control" id="V%GVO5o$S%QBS?AF)M|/">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                <field name="OID">alexa2.0.Echo-Devices.G091EV122022044T.Commands.speak</field>
                                <field name="WITH_DELAY">TRUE</field>
                                <field name="DELAY_MS">1000</field>
                                <field name="UNIT">ms</field>
                                <field name="CLEAR_RUNNING">FALSE</field>
                                <value name="VALUE">
                                  <block type="text" id="Q?$$n*f@4,S@,)Qd$t)H">
                                    <field name="TEXT">Willst Du Pinguine ansiedeln? Mach die Tuer zu</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                            <next>
                              <block type="timeouts_wait" id="G)O[c8rA_4S;Lp_vl-XC">
                                <field name="DELAY">10</field>
                                <field name="UNIT">sec</field>
                                <next>
                                  <block type="controls_if" id="bxnO83|=E}lr6J2nXfHY">
                                    <value name="IF0">
                                      <block type="logic_compare" id="4HW:Y`+X5VQtX?8s9iCq">
                                        <field name="OP">EQ</field>
                                        <value name="A">
                                          <block type="get_value" id="BpLlimY*o!cVcy!C7F~p">
                                            <field name="ATTR">val</field>
                                            <field name="OID">zigbee.0.00158d0007e763f3.opened</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="logic_boolean" id="%n#ay]dM5QjHx]nlUs1(">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="control" id="mO++#3u.BoR(+l-=:e%^">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                        <field name="OID">alexa2.0.Echo-Devices.G091EV122022044T.Commands.speak</field>
                                        <field name="WITH_DELAY">TRUE</field>
                                        <field name="DELAY_MS">1000</field>
                                        <field name="UNIT">ms</field>
                                        <field name="CLEAR_RUNNING">FALSE</field>
                                        <value name="VALUE">
                                          <block type="text" id="]/ex~B{pOXYCLCjo8#-I">
                                            <field name="TEXT">Gleich kommen Klimakleber, mach die Kuehlschranktuer zu!</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
</xml>
homeautomatisation/blockyscripts/fridge.txt · Last modified: 2023/12/17 20:48 by illu