<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable id="l*j7Q.FxcE:lZ69x}G;^">actionValue</variable>
<variable id="Nb^92:ch0cC^j(j+t33F">valueDimmer</variable>
<variable type="interval" id="Interval_Dec">Interval_Dec</variable>
<variable type="interval" id="Interval_Inc">Interval_Inc</variable>
</variables>
<block type="comment" id="rWWRT_~08.nzIw/|fxM-" x="88" y="13">
<field name="COMMENT">Rule2 0</field>
<next>
<block type="comment" id="r%BQ/rK4R-Nl!Uj{f!1{">
<field name="COMMENT">setOption1 1&#10;setOption73 1&#10;setOption32 10</field>
<next>
<block type="comment" id="C)zd^dECENBhpK;SoTsx">
<field name="COMMENT">Achtung Objekt ID's anpassen!!!</field>
<next>
<block type="on_ext" id="Z*WW:Hq=V/0/+D.7sBGj">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
<field name="CONDITION">any</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="s?5LPlVoKvrW,Gf/,d6(">
<field name="oid">default</field>
</shadow>
<block type="field_oid" id=";VZs-nq`+#GL`5jVspo^">
<field name="oid">mqtt.3.SmartHome.NSPanel_4.stat.RESULT</field>
</block>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="1}vMU$?UKa4@0}B{fqKn">
<mutation elseif="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="mTm#*=hyYX*)CJYL5{NT">
<field name="OP">NEQ</field>
<value name="A">
<block type="get_attr" id="1Q!)MR6PliD8`wkY]7S/">
<value name="PATH">
<shadow type="text" id="K~f`:N`cq25E%3ryi2nU">
<field name="TEXT">Button1.Action</field>
</shadow>
</value>
<value name="OBJECT">
<shadow type="get_object" id="8r]C+[oZpG=:z);{T:[p">
<field name="OID">Object ID</field>
</shadow>
<block type="convert_json2object" id="fehyG;p`!1tx0T1W%pV~">
<value name="VALUE">
<block type="on_source" id=",3=zkk#_^9O$V_f5O:Nm">
<field name="ATTR">state.val</field>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_null" id="|tA/`.J:b`g@.BLam0$4"></block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="jcJo!w:@}mbbZBL$Stq,">
<field name="VAR" id="l*j7Q.FxcE:lZ69x}G;^">actionValue</field>
<value name="VALUE">
<block type="get_attr" id="P+@Cy[pN9B`cqe+4.oPg">
<value name="PATH">
<shadow type="text" id="9U){xFv714N6#}S1LA:f">
<field name="TEXT">Button1.Action</field>
</shadow>
</value>
<value name="OBJECT">
<shadow type="get_object" id="8r]C+[oZpG=:z);{T:[p">
<field name="OID">Object ID</field>
</shadow>
<block type="convert_json2object" id="Y4Q)D{,D=Q:jv^Y:M}l{">
<value name="VALUE">
<block type="on_source" id="MB[hr+aR(]]QaUTDND^X">
<field name="ATTR">state.val</field>
</block>
</value>
</block>
</value>
</block>
</value>
<next>
<block type="logic_switch_case" id="Ts$Zu%1v#ulw4BT}V@u6">
<mutation xmlns="http://www.w3.org/1999/xhtml" case="1" default="1"></mutation>
<value name="CONDITION">
<block type="variables_get" id="=EX$cP2O|R3AkvRY)F@=">
<field name="VAR" id="l*j7Q.FxcE:lZ69x}G;^">actionValue</field>
</block>
</value>
<value name="CASECONDITION0">
<block type="text" id="d7pS{i/+zm[D}lNnAzvO">
<field name="TEXT">HOLD</field>
</block>
</value>
<statement name="CASE0">
<block type="variables_set" id="=-Tt;EP|Hk!S[.qyb@$j">
<field name="VAR" id="Nb^92:ch0cC^j(j+t33F">valueDimmer</field>
<value name="VALUE">
<block type="get_value" id="8,cvJwAtPy3n_*{GG+~8">
<field name="ATTR">val</field>
<field name="OID">deconz.0.Lights.38.level</field>
</block>
</value>
<next>
<block type="timeouts_clearinterval" id="DYiz40:;%K-x]/9}p7Q~">
<field name="NAME">Interval_Dec</field>
<next>
<block type="timeouts_setinterval" id="KComhhdpWduW@}Fiq0D5">
<field name="NAME">Interval_Dec</field>
<field name="INTERVAL">20</field>
<field name="UNIT">ms</field>
<statement name="STATEMENT">
<block type="variables_set" id="@Z#kb=PS0u11Hw4IE`7l">
<field name="VAR" id="Nb^92:ch0cC^j(j+t33F">valueDimmer</field>
<value name="VALUE">
<block type="math_arithmetic" id="J84CCq2A7aJ1Z=n?@0.A">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number" id="h0{UJO#M$[KE.b6,eSgV">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="cgiD`BkqRK.Iwx=tYN$M">
<field name="VAR" id="Nb^92:ch0cC^j(j+t33F">valueDimmer</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="AF3wNi[)IvX!}3;U5%W2">
<field name="NUM">1</field>
</shadow>
</value>
</block>
</value>
<next>
<block type="controls_if" id="agzjdvFYg(%]ZGU8h$Fa">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="D}R|i!t0?r8$Qo^Ae{Pj">
<field name="OP">GTE</field>
<value name="A">
<block type="variables_get" id=")5gncF$Wj$4xoa2S.H[l">
<field name="VAR" id="Nb^92:ch0cC^j(j+t33F">valueDimmer</field>
</block>
</value>
<value name="B">
<block type="math_number" id="YSU(~@5K_Oi8%16EG3Ps">
<field name="NUM">5</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="rww|kMC@cjy2NSN-GbSx">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">deconz.0.Lights.38.level</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="variables_get" id="nZ@M@-MmCIL)dG]B92W%">
<field name="VAR" id="Nb^92:ch0cC^j(j+t33F">valueDimmer</field>
</block>
</value>
</block>
</statement>
<statement name="ELSE">
<block type="variables_set" id="AKN,tJI[[S{R3e3WWecd">
<field name="VAR" id="Nb^92:ch0cC^j(j+t33F">valueDimmer</field>
<value name="VALUE">
<block type="math_number" id=":9sQp13_tt{lDh^fD(oo">
<field name="NUM">5</field>
</block>
</value>
</block>
</statement>
<next>
<block type="debug" id="[?5*_^821;z,.5~{/1kV">
<field name="Severity">info</field>
<value name="TEXT">
<shadow type="text" id="ujO^`MJxA~f).3%lCLc%">
<field name="TEXT">test</field>
</shadow>
<block type="variables_get" id="k]h%z|g:JxbIF{CJx[M#">
<field name="VAR" id="Nb^92:ch0cC^j(j+t33F">valueDimmer</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</statement>
<value name="CASECONDITION1">
<block type="text" id="L,//,7QC{=diw/jam,O-">
<field name="TEXT">CLEAR</field>
</block>
</value>
<statement name="CASE1">
<block type="timeouts_clearinterval" id="Em#7bEE#wh,p!u1KOIu(">
<field name="NAME">Interval_Dec</field>
</block>
</statement>
<statement name="ONDEFAULT">
<block type="toggle" id="^xLW-e6*gen2(wEm+-rv">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">deconz.0.Lights.38.on</field>
<field name="WITH_DELAY">FALSE</field>
</block>
</statement>
<next>
<block type="debug" id="lQGMUPlZMUqXC]g[@dMs">
<field name="Severity">info</field>
<value name="TEXT">
<shadow type="text" id="pyJotej]:7d$r+/JHoKH">
<field name="TEXT"></field>
</shadow>
<block type="variables_get" id="Lg87dPo-/mhLDKG/7xKN">
<field name="VAR" id="l*j7Q.FxcE:lZ69x}G;^">actionValue</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
<value name="IF1">
<block type="logic_compare" id="[,~/Bj#ydFCn=cwVU,1%">
<field name="OP">NEQ</field>
<value name="A">
<block type="get_attr" id="^s8B*$@/ql1jOJ~t_!eY">
<value name="PATH">
<shadow type="text" id="ZC=L;@)dR+k`O9}`Gl1-">
<field name="TEXT">Button2.Action</field>
</shadow>
</value>
<value name="OBJECT">
<shadow type="get_object" id="8r]C+[oZpG=:z);{T:[p">
<field name="OID">Object ID</field>
</shadow>
<block type="convert_json2object" id="9yY(:$40q-ooJ-qg7B7q">
<value name="VALUE">
<block type="on_source" id="gRZ|`e7XWk!pj1:[+`#3">
<field name="ATTR">state.val</field>
</block>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_null" id="[,dS7}4(c9v}iwmmlSm}"></block>
</value>
</block>
</value>
<statement name="DO1">
<block type="variables_set" id="3_ONTZ^LR-+|CpbsafME">
<field name="VAR" id="l*j7Q.FxcE:lZ69x}G;^">actionValue</field>
<value name="VALUE">
<block type="get_attr" id="m9{a;/I-E(%9z==NLo+v">
<value name="PATH">
<shadow type="text" id="wpy3)J|o1ITOqf,)/PY^">
<field name="TEXT">Button2.Action</field>
</shadow>
</value>
<value name="OBJECT">
<shadow type="get_object" id="8r]C+[oZpG=:z);{T:[p">
<field name="OID">Object ID</field>
</shadow>
<block type="convert_json2object" id="Q.bKt5;Qp+c+Mx#FOm`V">
<value name="VALUE">
<block type="on_source" id="l~O(I:9W^H;e1yFQ9jRM">
<field name="ATTR">state.val</field>
</block>
</value>
</block>
</value>
</block>
</value>
<next>
<block type="logic_switch_case" id="uC.OLA+zsEibh:0P.g4~">
<mutation xmlns="http://www.w3.org/1999/xhtml" case="1" default="1"></mutation>
<value name="CONDITION">
<block type="variables_get" id="%95o%]Whf6VG)]3RVf_F">
<field name="VAR" id="l*j7Q.FxcE:lZ69x}G;^">actionValue</field>
</block>
</value>
<value name="CASECONDITION0">
<block type="text" id="wl.gaT75q@4,^E~_Rc3)">
<field name="TEXT">HOLD</field>
</block>
</value>
<statement name="CASE0">
<block type="variables_set" id="u-rt-85(L[r~2z(cNp~^">
<field name="VAR" id="Nb^92:ch0cC^j(j+t33F">valueDimmer</field>
<value name="VALUE">
<block type="get_value" id="Yh};XYzcem,EFZw07(b)">
<field name="ATTR">val</field>
<field name="OID">deconz.0.Lights.38.level</field>
</block>
</value>
<next>
<block type="timeouts_clearinterval" id="?@NH3@i!g,s.r:,N0_cO">
<field name="NAME">Interval_Inc</field>
<next>
<block type="timeouts_setinterval" id="acO^L3Z1^z|#OnILeYAC">
<field name="NAME">Interval_Inc</field>
<field name="INTERVAL">20</field>
<field name="UNIT">ms</field>
<statement name="STATEMENT">
<block type="variables_set" id="-{RUj-XS}Tg_tTag]av;">
<field name="VAR" id="Nb^92:ch0cC^j(j+t33F">valueDimmer</field>
<value name="VALUE">
<block type="math_arithmetic" id="{S]fnTBqe;:D^gMQP_jV">
<field name="OP">ADD</field>
<value name="A">
<shadow type="math_number" id="h0{UJO#M$[KE.b6,eSgV">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id=";W33JEQYL6ZG/B+F=nSq">
<field name="VAR" id="Nb^92:ch0cC^j(j+t33F">valueDimmer</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="%Dg4pyifW:Ddg/_WI{hQ">
<field name="NUM">1</field>
</shadow>
</value>
</block>
</value>
<next>
<block type="controls_if" id="A[awWI,/)@2_`mycDqN)">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="P[GHBPwIZj#No$O2$/jc">
<field name="OP">LTE</field>
<value name="A">
<block type="variables_get" id="=N#lxK,4X`:MKjcS,c]U">
<field name="VAR" id="Nb^92:ch0cC^j(j+t33F">valueDimmer</field>
</block>
</value>
<value name="B">
<block type="math_number" id="EzI`ZO]e^D^v{.Cc[DZH">
<field name="NUM">100</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="(.51~l5|92Rw|mf@fM;d">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">deconz.0.Lights.38.level</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="variables_get" id="zs)9,~y|nv/#gBJwp,r*">
<field name="VAR" id="Nb^92:ch0cC^j(j+t33F">valueDimmer</field>
</block>
</value>
</block>
</statement>
<statement name="ELSE">
<block type="variables_set" id="9b2dZ!#$m}0]re6~nf0/">
<field name="VAR" id="Nb^92:ch0cC^j(j+t33F">valueDimmer</field>
<value name="VALUE">
<block type="math_number" id="3NBC$iZ)CXf|BxFb+^h1">
<field name="NUM">100</field>
</block>
</value>
</block>
</statement>
<next>
<block type="debug" id="Z=}Fo*FJP9J#.Jmz]CTG">
<field name="Severity">info</field>
<value name="TEXT">
<shadow type="text" id="ujO^`MJxA~f).3%lCLc%">
<field name="TEXT">test</field>
</shadow>
<block type="variables_get" id="8[K2z1~=}p}^?j%wu[GQ">
<field name="VAR" id="Nb^92:ch0cC^j(j+t33F">valueDimmer</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</statement>
<value name="CASECONDITION1">
<block type="text" id="?6m~HShM~h./{Kgs6kdP">
<field name="TEXT">CLEAR</field>
</block>
</value>
<statement name="CASE1">
<block type="timeouts_clearinterval" id="d|@HJ%={DTpMf#-x^]%D">
<field name="NAME">Interval_Inc</field>
</block>
</statement>
<statement name="ONDEFAULT">
<block type="toggle" id="5d2!Bbz)FJ;Y$6yvcka2">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">deconz.0.Lights.38.on</field>
<field name="WITH_DELAY">FALSE</field>
</block>
</statement>
<next>
<block type="debug" id="9{k8FDr3$3p1KpkN;J$:">
<field name="Severity">info</field>
<value name="TEXT">
<shadow type="text" id="pyJotej]:7d$r+/JHoKH">
<field name="TEXT"></field>
</shadow>
<block type="variables_get" id="+aCgdAz{qlYKtN%ZeBmB">
<field name="VAR" id="l*j7Q.FxcE:lZ69x}G;^">actionValue</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</xml>