<xml xmlns="http://www.w3.org/1999/xhtml">
  <variables>
    <variable type="undefined" id="DimUp">DimUp</variable>
    <variable type="undefined" id="ColUp">ColUp</variable>
    <variable type="undefined" id="DimDown">DimDown</variable>
    <variable type="undefined" id="ColDown">ColDown</variable>
  </variables>
  <block type="on" id="1VK+u#OXpt}ndUNw_a?+" x="-1338" y="12">
    <field name="OID">zigbee.0.90fd9ffffed895cf.toggle</field>
    <field name="CONDITION">ne</field>
    <field name="ACK_CONDITION"></field>
    <statement name="STATEMENT">
      <block type="toggle" id="h%T4RRvz;#}o2?z=52#F">
        <mutation delay_input="true"></mutation>
        <field name="OID">zigbee.0.d0cf5efffe1dc9fc.state</field>
        <field name="WITH_DELAY">TRUE</field>
        <field name="DELAY_MS">250</field>
        <field name="UNIT">ms</field>
        <field name="CLEAR_RUNNING">FALSE</field>
      </block>
    </statement>
  </block>
  <block type="on" id="W4f6z!`#xFF9aqNG*I)k" x="-1338" y="188">
    <field name="OID">zigbee.0.90fd9ffffed895cf.up_button</field>
    <field name="CONDITION">gt</field>
    <field name="ACK_CONDITION"></field>
    <statement name="STATEMENT">
      <block type="timeouts_setinterval" id="q*dbYquAoI$8Z-j/w[b|">
        <field name="NAME">DimUp</field>
        <field name="INTERVAL">250</field>
        <field name="UNIT">ms</field>
        <statement name="STATEMENT">
          <block type="control" id="ktd$3wG`S*fIm@U)1934">
            <mutation delay_input="false"></mutation>
            <field name="OID">zigbee.0.d0cf5efffe1dc9fc.brightness</field>
            <field name="WITH_DELAY">FALSE</field>
            <value name="VALUE">
              <block type="math_constrain" id="Gg)iGWCrL`_D@,:(P//}">
                <value name="VALUE">
                  <shadow type="math_number" id="(o*TBaslFWrnb`*hQ|L+">
                    <field name="NUM">50</field>
                  </shadow>
                  <block type="math_arithmetic" id="H#q]gF2!dndz}mF1T$E@">
                    <field name="OP">ADD</field>
                    <value name="A">
                      <shadow type="math_number" id="@~}Lp[M*cfkZZ0iIhvCY">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="get_value" id="A]By(w7Z5%a,b9XxdY_J">
                        <field name="ATTR">val</field>
                        <field name="OID">zigbee.0.d0cf5efffe1dc9fc.brightness</field>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="YLBl)Xq80n^.hQ?++GSa">
                        <field name="NUM">5</field>
                      </shadow>
                    </value>
                  </block>
                </value>
                <value name="LOW">
                  <shadow type="math_number" id="f.Cat7qjR}NmE$QO2@m=">
                    <field name="NUM">1</field>
                  </shadow>
                </value>
                <value name="HIGH">
                  <shadow type="math_number" id="/s}E7M/s[)~r,krDiT|/">
                    <field name="NUM">100</field>
                  </shadow>
                </value>
              </block>
            </value>
          </block>
        </statement>
      </block>
    </statement>
    <next>
      <block type="on" id=";tf~CCjsHP;j:K9JhSr)">
        <field name="OID">zigbee.0.90fd9ffffed895cf.up_button</field>
        <field name="CONDITION">lt</field>
        <field name="ACK_CONDITION"></field>
        <statement name="STATEMENT">
          <block type="timeouts_clearinterval" id="WsILbY|?cokMcRaE.Gxd">
            <field name="NAME">DimUp</field>
          </block>
        </statement>
        <next>
          <block type="on" id="RA]-jeXVRW?iuFN0[@,~">
            <field name="OID">zigbee.0.90fd9ffffed895cf.down_button</field>
            <field name="CONDITION">gt</field>
            <field name="ACK_CONDITION"></field>
            <statement name="STATEMENT">
              <block type="timeouts_setinterval" id="#X#+L,/GD![2bbTG#~W#">
                <field name="NAME">DimDown</field>
                <field name="INTERVAL">250</field>
                <field name="UNIT">ms</field>
                <statement name="STATEMENT">
                  <block type="control" id="V2Q[5NWrC5]-C-]yd9g}">
                    <mutation delay_input="false"></mutation>
                    <field name="OID">zigbee.0.d0cf5efffe1dc9fc.brightness</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="math_constrain" id="^)}/f]CeHoKxv,HlJN7{">
                        <value name="VALUE">
                          <shadow type="math_number" id="(o*TBaslFWrnb`*hQ|L+">
                            <field name="NUM">50</field>
                          </shadow>
                          <block type="math_arithmetic" id="3el2J+gx;PJpvIKfbg|+">
                            <field name="OP">MINUS</field>
                            <value name="A">
                              <shadow type="math_number" id="@~}Lp[M*cfkZZ0iIhvCY">
                                <field name="NUM">1</field>
                              </shadow>
                              <block type="get_value" id="N~{oGmEx`/0RQhX:n2rJ">
                                <field name="ATTR">val</field>
                                <field name="OID">zigbee.0.d0cf5efffe1dc9fc.brightness</field>
                              </block>
                            </value>
                            <value name="B">
                              <shadow type="math_number" id="2R#+CX]FF$H]k^jiFl_]">
                                <field name="NUM">5</field>
                              </shadow>
                            </value>
                          </block>
                        </value>
                        <value name="LOW">
                          <shadow type="math_number" id="LPAfivZdm_KM=.eBI3g_">
                            <field name="NUM">1</field>
                          </shadow>
                        </value>
                        <value name="HIGH">
                          <shadow type="math_number" id="Q|[3n)TcVPJ=;YerMiI)">
                            <field name="NUM">100</field>
                          </shadow>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
              </block>
            </statement>
            <next>
              <block type="on" id="/d3;*XX2BJt5FpWLGHo9">
                <field name="OID">zigbee.0.90fd9ffffed895cf.down_button</field>
                <field name="CONDITION">lt</field>
                <field name="ACK_CONDITION"></field>
                <statement name="STATEMENT">
                  <block type="timeouts_clearinterval" id=";W0]^XqmW/|W1iomzO8Y">
                    <field name="NAME">DimDown</field>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </next>
      </block>
    </next>
  </block>
  <block type="on" id="qEMIdqP-{{MNJx;$#+*b" x="-237" y="188">
    <field name="OID">zigbee.0.90fd9ffffed895cf.right_button</field>
    <field name="CONDITION">gt</field>
    <field name="ACK_CONDITION"></field>
    <statement name="STATEMENT">
      <block type="timeouts_setinterval" id="$8DANv9g2+=Aox,vdEr5">
        <field name="NAME">ColUp</field>
        <field name="INTERVAL">250</field>
        <field name="UNIT">ms</field>
        <statement name="STATEMENT">
          <block type="control" id="I|aKwcA+}h=9VNUpeCBy">
            <mutation delay_input="false"></mutation>
            <field name="OID">zigbee.0.d0cf5efffe1dc9fc.colortemp</field>
            <field name="WITH_DELAY">FALSE</field>
            <value name="VALUE">
              <block type="math_constrain" id="?j/50IWg13UM`Il+{S%r">
                <value name="VALUE">
                  <shadow type="math_number" id="(o*TBaslFWrnb`*hQ|L+">
                    <field name="NUM">50</field>
                  </shadow>
                  <block type="math_arithmetic" id="GfV0V,~1w4i:D25_x0#%">
                    <field name="OP">ADD</field>
                    <value name="A">
                      <shadow type="math_number" id="@~}Lp[M*cfkZZ0iIhvCY">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="get_value" id="=_m9}uJ,QBq*6)CwqOAs">
                        <field name="ATTR">val</field>
                        <field name="OID">zigbee.0.d0cf5efffe1dc9fc.colortemp</field>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="03cR`}xu7*$2)yFF*gQh">
                        <field name="NUM">20</field>
                      </shadow>
                    </value>
                  </block>
                </value>
                <value name="LOW">
                  <shadow type="math_number" id="_JnCXV~OQ:A?57!BXC~B">
                    <field name="NUM">250</field>
                  </shadow>
                </value>
                <value name="HIGH">
                  <shadow type="math_number" id="1N-,uDT,yOev/VmPAGIn">
                    <field name="NUM">450</field>
                  </shadow>
                </value>
              </block>
            </value>
          </block>
        </statement>
      </block>
    </statement>
    <next>
      <block type="on" id="`jL|{%NIkTgSY)8?o+8f">
        <field name="OID">zigbee.0.90fd9ffffed895cf.right_button</field>
        <field name="CONDITION">lt</field>
        <field name="ACK_CONDITION"></field>
        <statement name="STATEMENT">
          <block type="timeouts_clearinterval" id="Ks`=kYV+8$jNq2nxcMNs">
            <field name="NAME">ColUp</field>
          </block>
        </statement>
        <next>
          <block type="on" id="2^Yq`?]JL`H-PtqgJR:Y">
            <field name="OID">zigbee.0.90fd9ffffed895cf.left_button</field>
            <field name="CONDITION">gt</field>
            <field name="ACK_CONDITION"></field>
            <statement name="STATEMENT">
              <block type="timeouts_setinterval" id="{QW~}c~s}z~-dGz|ie^:">
                <field name="NAME">ColDown</field>
                <field name="INTERVAL">250</field>
                <field name="UNIT">ms</field>
                <statement name="STATEMENT">
                  <block type="control" id=":e$BB7C-?y|%g;2LEUWt">
                    <mutation delay_input="false"></mutation>
                    <field name="OID">zigbee.0.d0cf5efffe1dc9fc.colortemp</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="math_constrain" id="4`~[6{cS0CwyY93Y)ALo">
                        <value name="VALUE">
                          <shadow type="math_number" id="(o*TBaslFWrnb`*hQ|L+">
                            <field name="NUM">50</field>
                          </shadow>
                          <block type="math_arithmetic" id="{M]3~[6CG.P7D4IT#K-:">
                            <field name="OP">MINUS</field>
                            <value name="A">
                              <shadow type="math_number" id="@~}Lp[M*cfkZZ0iIhvCY">
                                <field name="NUM">1</field>
                              </shadow>
                              <block type="get_value" id="xTl:vFB~Z}exk-R:KfEn">
                                <field name="ATTR">val</field>
                                <field name="OID">zigbee.0.d0cf5efffe1dc9fc.colortemp</field>
                              </block>
                            </value>
                            <value name="B">
                              <shadow type="math_number" id="a,OL4dTFm0s$H+aa(9F3">
                                <field name="NUM">20</field>
                              </shadow>
                            </value>
                          </block>
                        </value>
                        <value name="LOW">
                          <shadow type="math_number" id="bdCI2?#dik!|^=t6ogI`">
                            <field name="NUM">250</field>
                          </shadow>
                        </value>
                        <value name="HIGH">
                          <shadow type="math_number" id="Q#f*%7=SNMPleD)]KXE/">
                            <field name="NUM">450</field>
                          </shadow>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
              </block>
            </statement>
            <next>
              <block type="on" id="wc*%qP)aF({vKuYWH).0">
                <field name="OID">zigbee.0.90fd9ffffed895cf.left_button</field>
                <field name="CONDITION">lt</field>
                <field name="ACK_CONDITION"></field>
                <statement name="STATEMENT">
                  <block type="timeouts_clearinterval" id="AZm/V-E.EeYZOz`yZyeY">
                    <field name="NAME">ColDown</field>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </next>
      </block>
    </next>
  </block>
  <block type="on" id="u1n)ZL9{xe7y$DkH=C~+" x="-1337" y="937">
    <field name="OID">zigbee.0.90fd9ffffed895cf.up_click</field>
    <field name="CONDITION">gt</field>
    <field name="ACK_CONDITION"></field>
    <statement name="STATEMENT">
      <block type="control" id="[Q1O1RV+xR:5ebIad%d}">
        <mutation delay_input="false"></mutation>
        <field name="OID">zigbee.0.d0cf5efffe1dc9fc.brightness</field>
        <field name="WITH_DELAY">FALSE</field>
        <value name="VALUE">
          <block type="math_constrain" id="yQJci7agawON846^BBB%">
            <value name="VALUE">
              <shadow type="math_number" id="(o*TBaslFWrnb`*hQ|L+">
                <field name="NUM">50</field>
              </shadow>
              <block type="math_arithmetic" id="4K+~_*EW_8X}A(n0*BA#">
                <field name="OP">ADD</field>
                <value name="A">
                  <shadow type="math_number" id="@~}Lp[M*cfkZZ0iIhvCY">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="get_value" id="wes2p;bVtg]vap.CVF{_">
                    <field name="ATTR">val</field>
                    <field name="OID">zigbee.0.d0cf5efffe1dc9fc.brightness</field>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id="?w?hIZ/eH.l+6aOb@jXg">
                    <field name="NUM">20</field>
                  </shadow>
                </value>
              </block>
            </value>
            <value name="LOW">
              <shadow type="math_number" id=",7_B3zt{$]q%6#E!Al5I">
                <field name="NUM">1</field>
              </shadow>
            </value>
            <value name="HIGH">
              <shadow type="math_number" id="Kn4He$O-Qr6Yu/xNrn*B">
                <field name="NUM">100</field>
              </shadow>
            </value>
          </block>
        </value>
      </block>
    </statement>
    <next>
      <block type="on" id="k_=xIhh0iop^7UiJP2t#">
        <field name="OID">zigbee.0.90fd9ffffed895cf.down_click</field>
        <field name="CONDITION">gt</field>
        <field name="ACK_CONDITION"></field>
        <statement name="STATEMENT">
          <block type="control" id="=wETB0[h`yoDuIB^t7uE">
            <mutation delay_input="false"></mutation>
            <field name="OID">zigbee.0.d0cf5efffe1dc9fc.brightness</field>
            <field name="WITH_DELAY">FALSE</field>
            <value name="VALUE">
              <block type="math_constrain" id="]fdlcFq^SVcBsiRHiCf_">
                <value name="VALUE">
                  <shadow type="math_number" id="(o*TBaslFWrnb`*hQ|L+">
                    <field name="NUM">50</field>
                  </shadow>
                  <block type="math_arithmetic" id="LkZ.j2{eU}:5gK[9*Cb-">
                    <field name="OP">MINUS</field>
                    <value name="A">
                      <shadow type="math_number" id="@~}Lp[M*cfkZZ0iIhvCY">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="get_value" id="+^sIvpdL.Wn~[?}i,aM}">
                        <field name="ATTR">val</field>
                        <field name="OID">zigbee.0.d0cf5efffe1dc9fc.brightness</field>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="zHGJ0BY`ihzSO$HLJdv`">
                        <field name="NUM">20</field>
                      </shadow>
                    </value>
                  </block>
                </value>
                <value name="LOW">
                  <shadow type="math_number" id="Ksog-[[H,}N4{:)c_dxt">
                    <field name="NUM">1</field>
                  </shadow>
                </value>
                <value name="HIGH">
                  <shadow type="math_number" id="JX+]nSVHg1na6n8l$0re">
                    <field name="NUM">100</field>
                  </shadow>
                </value>
              </block>
            </value>
          </block>
        </statement>
      </block>
    </next>
  </block>
  <block type="on" id="Zm}J2x!00[9#9w7k)v8@" x="-237" y="937">
    <field name="OID">zigbee.0.90fd9ffffed895cf.right_click</field>
    <field name="CONDITION">gt</field>
    <field name="ACK_CONDITION"></field>
    <statement name="STATEMENT">
      <block type="control" id="21T:1X~6=}/y!}`r/RiQ">
        <mutation delay_input="false"></mutation>
        <field name="OID">zigbee.0.d0cf5efffe1dc9fc.colortemp</field>
        <field name="WITH_DELAY">FALSE</field>
        <value name="VALUE">
          <block type="math_constrain" id="__#/(}LfT)E.[D/f99D|">
            <value name="VALUE">
              <shadow type="math_number" id="(o*TBaslFWrnb`*hQ|L+">
                <field name="NUM">50</field>
              </shadow>
              <block type="math_arithmetic" id="?mV@(XVE8+4`iMK+]_FN">
                <field name="OP">ADD</field>
                <value name="A">
                  <shadow type="math_number" id="@~}Lp[M*cfkZZ0iIhvCY">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="get_value" id="M@[o5rH`P+De4uc1I2^O">
                    <field name="ATTR">val</field>
                    <field name="OID">zigbee.0.d0cf5efffe1dc9fc.colortemp</field>
                  </block>
                </value>
                <value name="B">
                  <shadow type="math_number" id="qMDocltG:*GtaT1H9OO)">
                    <field name="NUM">50</field>
                  </shadow>
                </value>
              </block>
            </value>
            <value name="LOW">
              <shadow type="math_number" id="S0;y`,q/E(y*{ucpv!;.">
                <field name="NUM">250</field>
              </shadow>
            </value>
            <value name="HIGH">
              <shadow type="math_number" id="o9`!7K*A``tnnn=A;sYV">
                <field name="NUM">450</field>
              </shadow>
            </value>
          </block>
        </value>
      </block>
    </statement>
    <next>
      <block type="on" id="=uj.x.ca!o15qfDZ1N9W">
        <field name="OID">zigbee.0.90fd9ffffed895cf.left_click</field>
        <field name="CONDITION">gt</field>
        <field name="ACK_CONDITION"></field>
        <statement name="STATEMENT">
          <block type="control" id="lU]zY7hUH*.tZ_EkR!p*">
            <mutation delay_input="false"></mutation>
            <field name="OID">zigbee.0.d0cf5efffe1dc9fc.colortemp</field>
            <field name="WITH_DELAY">FALSE</field>
            <value name="VALUE">
              <block type="math_constrain" id="PLXMC8ePIx2|8pX8a?#I">
                <value name="VALUE">
                  <shadow type="math_number" id="(o*TBaslFWrnb`*hQ|L+">
                    <field name="NUM">50</field>
                  </shadow>
                  <block type="math_arithmetic" id="@1|[GA`M?Bc$WM;1_FFx">
                    <field name="OP">MINUS</field>
                    <value name="A">
                      <shadow type="math_number" id="@~}Lp[M*cfkZZ0iIhvCY">
                        <field name="NUM">1</field>
                      </shadow>
                      <block type="get_value" id="ohEB)TI.Sozh*i8pXC.v">
                        <field name="ATTR">val</field>
                        <field name="OID">zigbee.0.d0cf5efffe1dc9fc.colortemp</field>
                      </block>
                    </value>
                    <value name="B">
                      <shadow type="math_number" id="-V)7c[7pFYoex|!KQ+dm">
                        <field name="NUM">50</field>
                      </shadow>
                    </value>
                  </block>
                </value>
                <value name="LOW">
                  <shadow type="math_number" id="Ib0%#(16H@%CVwF%MBnU">
                    <field name="NUM">250</field>
                  </shadow>
                </value>
                <value name="HIGH">
                  <shadow type="math_number" id="1ve+iF2cxBW-UE:Jd:q:">
                    <field name="NUM">450</field>
                  </shadow>
                </value>
              </block>
            </value>
          </block>
        </statement>
      </block>
    </next>
  </block>
</xml>