User Tools

Site Tools


homeautomatisation:blockyscripts:watersensor
<xml xmlns="https://developers.google.com/blockly/xml">
  <block type="on" id="4V+4{kj5jt(u(Nway8K]" x="38" y="-12">
    <field name="OID">zigbee.0.00158d000400f521.detected</field>
    <field name="CONDITION">ne</field>
    <field name="ACK_CONDITION"></field>
    <statement name="STATEMENT">
      <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.00158d000400f521.detected</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">WASSER IN DER KUECHE ENTDECKT! ACHTUNG WASSER IN DER KUECHE ENTDECKT! ACHTUNG!</field>
              </block>
            </value>
            <next>
              <block type="control" id="=!^Fnfwe3@1a~(/c/Jam">
                <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="Y7x[e|1gmvRe`X4CMw|k">
                    <field name="TEXT">WASSER IN DER KUECHE ENTDECKT! ACHTUNG WASSER IN DER KUECHE ENTDECKT! ACHTUNG!</field>
                  </block>
                </value>
                <next>
                  <block type="telegram" id="-]e:m+^Z6)1_t7mG-(6|">
                    <field name="INSTANCE">.0</field>
                    <field name="LOG"></field>
                    <field name="SILENT">FALSE</field>
                    <field name="PARSEMODE">default</field>
                    <field name="ESCAPING">FALSE</field>
                    <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field>
                    <value name="MESSAGE">
                      <shadow type="text" id="3S,OrLm49`c+t@zZ7?CQ">
                        <field name="TEXT">Hier kommt der aktuelle Status der Wohnung:</field>
                      </shadow>
                      <block type="text_join" id="_~.pA8+Qr9yzxNPQvgA=">
                        <mutation items="4"></mutation>
                        <value name="ADD0">
                          <block type="text" id="~XpV^92)wL9U)Er5-Fh#">
                            <field name="TEXT">WASSER IN DER KUECHE ENTDECKT !!!!!</field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="text_newline" id="cv_kwJSkqol`?XC+R1@0">
                            <field name="Type">\n</field>
                          </block>
                        </value>
                        <value name="ADD2">
                          <block type="text" id="@(uDx^=7J74xfdF6MM~P">
                            <field name="TEXT">KUECHENSENSOR: </field>
                          </block>
                        </value>
                        <value name="ADD3">
                          <block type="get_value_var" id="wIkTZgOTzMizu@hNNwmJ">
                            <field name="ATTR">val</field>
                            <value name="OID">
                              <shadow type="field_oid" id="q$;P[m0]$2+q)nse}3(a">
                                <field name="oid">zigbee.0.00158d000400f521.detected</field>
                              </shadow>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="CHATID">
                      <block type="text" id="fE2G]0S2_Ft2#p$.$j,N">
                        <field name="TEXT">5954705577</field>
                      </block>
                    </value>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </statement>
      </block>
    </statement>
  </block>
</xml>
homeautomatisation/blockyscripts/watersensor.txt · Last modified: 2023/12/17 20:29 by illu