<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable type="interval" id="DimUp">DimUp</variable>
<variable type="interval" id="DimDown">DimDown</variable>
</variables>
<block type="on" id="uS%~x0t%?rDRcHu%s$5*" x="-384" y="-2087">
<field name="OID">zigbee.0.bc33acfffe731408.on</field>
<field name="CONDITION">gt</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="control" id="p_?Fk?akInkgdP;=%|=k">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">zigbee.0.60a423fffe536881.state</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="j5fA050UDjHy/WeV4D+V">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="control" id="$)FaNhZ:;~SaB+Le1z?e">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">zigbee.0.60a423fffee3bbea.state</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="dy!|d7r,_sQ5nt(vr08z">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<next>
<block type="on" id="ao0/yyxZ$7~Jae$INdZ1">
<field name="OID">zigbee.0.bc33acfffe731408.off</field>
<field name="CONDITION">gt</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="control" id="uhU.qr0M_+IFs^?iiVt}">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">zigbee.0.60a423fffe536881.state</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="B.+]/*y:-_ZNYzj0;Q-d">
<field name="BOOL">FALSE</field>
</block>
</value>
<next>
<block type="control" id="zBNH#4,~cn[OG~W0o~e*">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">zigbee.0.60a423fffee3bbea.state</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="@PjppP3,!J+4{7wd[|xC">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<next>
<block type="on" id="bMZS^l0V?4n,-~KWl){.">
<field name="OID">zigbee.0.bc33acfffe731408.brightness_step_up</field>
<field name="CONDITION">gt</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="control" id="!Hjm{$c@||7P7E$_2LX#">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">zigbee.0.60a423fffe536881.brightness</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_constrain" id=":sPDuL_+/,dP+=}g939e">
<value name="VALUE">
<shadow type="math_number">
<field name="NUM">0</field>
</shadow>
<block type="math_arithmetic" id="tf=!5oF6_^~6f2j_hC5*">
<field name="OP">ADD</field>
<value name="A">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="PM5,BOb@s]E`A4AX;i_C">
<field name="ATTR">val</field>
<field name="OID">zigbee.0.60a423fffe536881.brightness</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="8e]FJ8O3y!3JwR=EZvm)">
<field name="NUM">5</field>
</shadow>
</value>
</block>
</value>
<value name="LOW">
<shadow type="math_number" id="yg%FEKf!0CJXCVXD7)eH">
<field name="NUM">5</field>
</shadow>
</value>
<value name="HIGH">
<shadow type="math_number" id="L-.uhM[,(y)ztS`6/yw:">
<field name="NUM">100</field>
</shadow>
</value>
</block>
</value>
<next>
<block type="control" id="cCLZVo_I*DQhZw^N9$CB">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">zigbee.0.60a423fffee3bbea.brightness</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_constrain" id="=;OlI@B{Jfu.pB[}Z}p:">
<value name="VALUE">
<shadow type="math_number">
<field name="NUM">0</field>
</shadow>
<block type="math_arithmetic" id="[?rv`)L}bF,hJU7DVk=O">
<field name="OP">ADD</field>
<value name="A">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="s@+d{?QWB^Y3H98xJH`)">
<field name="ATTR">val</field>
<field name="OID">zigbee.0.60a423fffee3bbea.brightness</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="$QowC~T:(,.PyQ8tPG1s">
<field name="NUM">5</field>
</shadow>
</value>
</block>
</value>
<value name="LOW">
<shadow type="math_number" id="%ofo-sDN-M6Tt-|bn$n4">
<field name="NUM">5</field>
</shadow>
</value>
<value name="HIGH">
<shadow type="math_number" id="itL]a.GlDxQTL0,58,~R">
<field name="NUM">100</field>
</shadow>
</value>
</block>
</value>
</block>
</next>
</block>
</statement>
<next>
<block type="on" id="4)`iL|uhZe+N|o5W|eFa">
<field name="OID">zigbee.0.bc33acfffe731408.brightness_step_down</field>
<field name="CONDITION">gt</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="control" id="km-ijYhUYV?7XTJ5[ajA">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">zigbee.0.60a423fffe536881.brightness</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_constrain" id="Np*{p%e12$aK@`zSJGM@">
<value name="VALUE">
<shadow type="math_number">
<field name="NUM">0</field>
</shadow>
<block type="math_arithmetic" id=".N2-xD=(Jn5;[sZ=Kp`,">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="Q})z[@vz6vyyxWk:Uqq?">
<field name="ATTR">val</field>
<field name="OID">zigbee.0.60a423fffe536881.brightness</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="xgU|O-Dub3)gzuhG#8Zb">
<field name="NUM">5</field>
</shadow>
</value>
</block>
</value>
<value name="LOW">
<shadow type="math_number" id="N!_FzXnoPFQ~zj#s7Md!">
<field name="NUM">5</field>
</shadow>
</value>
<value name="HIGH">
<shadow type="math_number" id="P;ltHEa2?{J;*=|{`6XS">
<field name="NUM">100</field>
</shadow>
</value>
</block>
</value>
<next>
<block type="control" id="ly54K-_c%7B@Nf*vVEjt">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">zigbee.0.60a423fffee3bbea.brightness</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_constrain" id="B.2|(oASmfr`16F8(PJe">
<value name="VALUE">
<shadow type="math_number">
<field name="NUM">0</field>
</shadow>
<block type="math_arithmetic" id="DLYS,/=X{wGY:Vi#6hOk">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="Y9qWX9trGEbtSi]K/~$S">
<field name="ATTR">val</field>
<field name="OID">zigbee.0.60a423fffee3bbea.brightness</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="Old+9W:KLuR0_Lphzm-8">
<field name="NUM">5</field>
</shadow>
</value>
</block>
</value>
<value name="LOW">
<shadow type="math_number" id="A71~q@VwmgfX*9]KA8fz">
<field name="NUM">5</field>
</shadow>
</value>
<value name="HIGH">
<shadow type="math_number" id=",o?}1~@jZ25g`S2c|bmk">
<field name="NUM">100</field>
</shadow>
</value>
</block>
</value>
</block>
</next>
</block>
</statement>
<next>
<block type="on_ext" id="Rf:-nd6S^?~uPLXz/g!g">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
<field name="CONDITION">gt</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="{%pU.`fz,XepowqeCcX|">
<field name="oid">zigbee.0.bc33acfffe731408.brightness_move_up</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="timeouts_setinterval" id="jDW$?(%oeN3|{NdazxuZ">
<field name="NAME">DimUp</field>
<field name="INTERVAL">500</field>
<field name="UNIT">ms</field>
<statement name="STATEMENT">
<block type="control" id="G,{i?+;w$El`$NQcFJ#Y">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">zigbee.0.60a423fffe536881.brightness</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_constrain" id="Sm=JdL#X^%W$R#WnA:fr">
<value name="VALUE">
<shadow type="math_number">
<field name="NUM">0</field>
</shadow>
<block type="math_arithmetic" id="O{e(J)j|c`7vd:#Kp3AJ">
<field name="OP">ADD</field>
<value name="A">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="bF/KN/-pzYiX@y|.I2l(">
<field name="ATTR">val</field>
<field name="OID">zigbee.0.60a423fffe536881.brightness</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="lB%L:SY7BbJx}VvS^mdi">
<field name="NUM">5</field>
</shadow>
</value>
</block>
</value>
<value name="LOW">
<shadow type="math_number" id="LGnQ}W+)t_Da]M,mP:i7">
<field name="NUM">5</field>
</shadow>
</value>
<value name="HIGH">
<shadow type="math_number" id="kkS+#$jA9QQ@{=1T[DdA">
<field name="NUM">100</field>
</shadow>
</value>
</block>
</value>
<next>
<block type="control" id="FUq8TT@Q.k)f5JG}o5Gi">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">zigbee.0.60a423fffee3bbea.brightness</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_constrain" id="83iq0J$=p2IHMr1]lF@p">
<value name="VALUE">
<shadow type="math_number">
<field name="NUM">0</field>
</shadow>
<block type="math_arithmetic" id="n{t~W=#djs7!$yi@r$#+">
<field name="OP">ADD</field>
<value name="A">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="z*gckGYP:}Pzp`w$UwbG">
<field name="ATTR">val</field>
<field name="OID">zigbee.0.60a423fffee3bbea.brightness</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="zs!5{NP?8y6m61YAv]yH">
<field name="NUM">5</field>
</shadow>
</value>
</block>
</value>
<value name="LOW">
<shadow type="math_number" id="y|[BkGcxuXM%n]SqjV@y">
<field name="NUM">5</field>
</shadow>
</value>
<value name="HIGH">
<shadow type="math_number" id="n2w@9V%PFYkCEF6$5Jbr">
<field name="NUM">100</field>
</shadow>
</value>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</statement>
<next>
<block type="on_ext" id="~f2u7931+*5lYfsOYPuE">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
<field name="CONDITION">gt</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="}.iNnEjEeA__^)+{RRaw">
<field name="oid">zigbee.0.bc33acfffe731408.brightness_move_down</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="timeouts_setinterval" id="f1D7c3b:ncbfB?oEVY?o">
<field name="NAME">DimDown</field>
<field name="INTERVAL">500</field>
<field name="UNIT">ms</field>
<statement name="STATEMENT">
<block type="control" id="G~aog:5TQ-@D$843vJ8e">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">zigbee.0.60a423fffe536881.brightness</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_constrain" id="l$0OVIX$E/{uIm*|*Kl-">
<value name="VALUE">
<shadow type="math_number" id="jvtU5709h{K[M4wVSUAq">
<field name="NUM">0</field>
</shadow>
<block type="math_arithmetic" id=",0JTv*]3gm/o3ux~XCdN">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number" id="Fe7;!X5`.mKe{^|Miuz@">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="m#_WhGb,~%xzH=BL~]/[">
<field name="ATTR">val</field>
<field name="OID">zigbee.0.60a423fffe536881.brightness</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="lx`,0fB8v.Q{(=|J~rIV">
<field name="NUM">5</field>
</shadow>
</value>
</block>
</value>
<value name="LOW">
<shadow type="math_number" id="UBwA|^Plh/j-H*Jc)5-x">
<field name="NUM">5</field>
</shadow>
</value>
<value name="HIGH">
<shadow type="math_number" id="(@5!I2U4-C7WB7mDIl~S">
<field name="NUM">100</field>
</shadow>
</value>
</block>
</value>
<next>
<block type="control" id="f@eT,/H1%FQkFGf3Q~n3">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">zigbee.0.60a423fffee3bbea.brightness</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_constrain" id="p|4,ks3LIPrdq}hd9,3`">
<value name="VALUE">
<shadow type="math_number">
<field name="NUM">0</field>
</shadow>
<block type="math_arithmetic" id="L?M8asOb~vm5PN,qCpJe">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="UgY[hE{~Wk`MSlU!5#fU">
<field name="ATTR">val</field>
<field name="OID">zigbee.0.60a423fffee3bbea.brightness</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="/gnEsE!~]tx?L;w!i)b8">
<field name="NUM">5</field>
</shadow>
</value>
</block>
</value>
<value name="LOW">
<shadow type="math_number" id="E53sJ=}vypv:M*t)O!3E">
<field name="NUM">5</field>
</shadow>
</value>
<value name="HIGH">
<shadow type="math_number" id="Y?}AdZh6~uT{XZ@J|r6J">
<field name="NUM">100</field>
</shadow>
</value>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</statement>
<next>
<block type="on_ext" id="CE^(EBx_T;.dFX)-sx+Q">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
<field name="CONDITION">gt</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id=".G{w6o,fu(08Hebp.5Kl">
<field name="oid">default</field>
</shadow>
<block type="text" id="H_/J44NqnG9?`LWbPWN`">
<field name="TEXT">zigbee.0.bc33acfffe731408.brightness_stop</field>
</block>
</value>
<statement name="STATEMENT">
<block type="timeouts_clearinterval" id="Q,f}jSlYP/pXtQ?)KnjY">
<field name="NAME">DimUp</field>
<next>
<block type="timeouts_clearinterval" id="$X{dq%[sn,bVnfVK*e|0">
<field name="NAME">DimDown</field>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</xml>