<xml xmlns="http://www.w3.org/1999/xhtml">
<variables>
<variable type="undefined" id="timeout2">timeout2</variable>
<variable type="undefined" id="timeout">timeout</variable>
</variables>
<block type="on_ext" id="55@yN/Bd.4.Zl:.QX]zj" x="13" y="13">
<mutation items="1"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="W^r22S90au(LBao+qr~s">
<field name="oid">harmony.0.Wohnzimmer.activities.currentStatus</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="BHRn[yZNyldRzla7iWi7">
<mutation elseif="2"></mutation>
<value name="IF0">
<block type="logic_operation" id="Cy=2[.wY.o=-3o{Oo+MP" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="hSKY3oe-1s!pfEfae3vD">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="HV{kF[O[D7L0Uw_^opDj">
<field name="ATTR">val</field>
<field name="OID">harmony.0.Wohnzimmer.activities.currentStatus</field>
</block>
</value>
<value name="B">
<block type="math_number" id="Wx[1a#`-x24d#?+-W][b">
<field name="NUM">2</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_operation" id="_u9l`L=T9k7a0;bs!X8T" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="a.!@QQ{sxBt+f{s?0Ynw">
<field name="OP">LTE</field>
<value name="A">
<block type="get_value" id="4N*=@XZ|+)J/p)S*8T`1">
<field name="ATTR">val</field>
<field name="OID">hm-rpc.0.xxx.1.ILLUMINATION</field>
</block>
</value>
<value name="B">
<block type="math_number" id="Knld,wT8[?c4ib4aorSg">
<field name="NUM">200</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_operation" id="fi;P,[*~L,jFl.zw.2+4" inline="false">
<field name="OP">OR</field>
<value name="A">
<block type="logic_compare" id="w]v_(A7VwH*T+{GhgV6i">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="?-w!S,w;n]ioU*:s=Fn;">
<field name="ATTR">val</field>
<field name="OID">hue.0.HueBridge.Fernsehlampe_links.level</field>
</block>
</value>
<value name="B">
<block type="math_number" id="Rc%w:|(Y2[.JMxzq(r6?">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_operation" id="`3b*:m%B;)Z|%[yS.!X-" inline="false">
<field name="OP">OR</field>
<value name="A">
<block type="logic_compare" id="q{+4/}zzLva741ZuTf7J">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="n.pAX/R5y7^/=7:|;?~6">
<field name="ATTR">val</field>
<field name="OID">hue.0.HueBridge.Fernsehlampe_rechts.level</field>
</block>
</value>
<value name="B">
<block type="math_number" id="DjAv!]}cE2zulm:[*D5E">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_operation" id="[_E6)bSe#YCc=c[3S!Fm" inline="false">
<field name="OP">OR</field>
<value name="A">
<block type="logic_compare" id=";EgmvIi:2p5pf5Y5]viU">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="z/o5mW6qUdmql(d{sGle">
<field name="ATTR">val</field>
<field name="OID">hue.0.HueBridge.Sofalampe_links.level</field>
</block>
</value>
<value name="B">
<block type="math_number" id="fzLQ!Z)[u]B6SQaFvqES">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="+m=dB;p*^A6gTu(VL1)T">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="gAINsa8p,s=h)hwe436q">
<field name="ATTR">val</field>
<field name="OID">hue.0.HueBridge.Sofalampe_rechts.level</field>
</block>
</value>
<value name="B">
<block type="math_number" id="Gri`mHRUp(p0|YYO[Cs#">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="comment" id="L(G|BUY`q4*m[;Kop#r5">
<field name="COMMENT">Fernsehlicht an wenn TV System Wohnzimmer an </field>
<next>
<block type="comment" id="vcK)W#DNxv?l2@OHVHRD">
<field name="COMMENT">und noch kein Licht an war und es dunkel genug ist</field>
<next>
<block type="control" id="*M]#SFj-0gE[Q}k9M(l~">
<mutation delay_input="false"></mutation>
<field name="OID">hue.0.HueBridge.Fernsehlampe_links.command</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="w8Q^kn0`oY}}^i,=!cIy">
<field name="TEXT">{"on":true,"level":100,"r":254,"g":143,"b":33,"transitiontime":30}</field>
</block>
</value>
<next>
<block type="control" id="-6jM*M75?XM{5+2/5h|F">
<mutation delay_input="false"></mutation>
<field name="OID">hue.0.HueBridge.Fernsehlampe_rechts.command</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="/0QMpv*(8@RA2ga43kNj">
<field name="TEXT">{"on":true,"level":100,"r":254,"g":143,"b":33,"transitiontime":30}</field>
</block>
</value>
<next>
<block type="control" id="QI.sI|sL5+1]S=g~G:-n">
<mutation delay_input="false"></mutation>
<field name="OID">hue.0.HueBridge.Sofalampe_links.command</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="Uh+t..^C2@N_cLtZjx8m">
<field name="TEXT">{"on":true,"level":100,"r":254,"g":143,"b":33,"transitiontime":30}</field>
</block>
</value>
<next>
<block type="control" id="wPHLZaP[(AXjY+p/ks.,">
<mutation delay_input="false"></mutation>
<field name="OID">hue.0.HueBridge.Sofalampe_rechts.command</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="hz@4Qy1hsL:dc@7fz-^D">
<field name="TEXT">{"on":true,"level":100,"r":254,"g":143,"b":33,"transitiontime":30}</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
<value name="IF1">
<block type="logic_operation" id="*QS[OYOlYL|UL!r,pN-_" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="{sJ`xn(cC{Rxy!Y(#gOQ">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="#4)6(3gf+Z8hT+LB#/Z0">
<field name="ATTR">val</field>
<field name="OID">harmony.0.Wohnzimmer.activities.currentStatus</field>
</block>
</value>
<value name="B">
<block type="math_number" id="S{f1^l[~F4.UhNg#!U##">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_operation" id="!Kh?Z3bKZ~kx/[Q|w);S" inline="false">
<field name="OP">OR</field>
<value name="A">
<block type="logic_compare" id="a*XG?2ZL4:7n8ku[46qA">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="_[iPE^c0}3~|LyJ_Rzg3">
<field name="ATTR">val</field>
<field name="OID">hue.0.HueBridge.Fernsehlampe_links.level</field>
</block>
</value>
<value name="B">
<block type="math_number" id="{Tm:rZ*]z%IUodz(v:rX">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_operation" id="vAh9~lbOSL~0CPK6o1=Q" inline="false">
<field name="OP">OR</field>
<value name="A">
<block type="logic_compare" id="uIs5R:S%a8tb=io:R}s^">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="=ChE)civmMN?S%p%aJa]">
<field name="ATTR">val</field>
<field name="OID">hue.0.HueBridge.Fernsehlampe_rechts.level</field>
</block>
</value>
<value name="B">
<block type="math_number" id="gr8f6loc8K;uS]9*XyhX">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_operation" id="_jUMA^^Usj[CH7Nw:Fk=" inline="false">
<field name="OP">OR</field>
<value name="A">
<block type="logic_compare" id="*RZKVr}|KhBlGX/GCct:">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="Lrk=MRvW8A9mXz1f%7uk">
<field name="ATTR">val</field>
<field name="OID">hue.0.HueBridge.Sofalampe_links.level</field>
</block>
</value>
<value name="B">
<block type="math_number" id="5E%D,}J|hwt#bXOSdb3#">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="vyQ#n+cmy=bSoe3S/7uo">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="_E`NLb`RZ7+%FX48[q:[">
<field name="ATTR">val</field>
<field name="OID">hue.0.HueBridge.Sofalampe_rechts.level</field>
</block>
</value>
<value name="B">
<block type="math_number" id=".DFD%qzxdR2@ecSUkjz7">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="comment" id="6f(faEcLMPYAs`+ux6@N">
<field name="COMMENT">Licht an wenn TV System aus und Licht aus war</field>
<next>
<block type="control" id="yc@W.m7PD?a7g94?t*Jy">
<mutation delay_input="false"></mutation>
<field name="OID">hue.0.HueBridge.Fernsehlampe_links.command</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="BuiTI|]?j28p1Gg`s-xv">
<field name="TEXT">{"on":true,"level":100,"r":254,"g":143,"b":33,"transitiontime":30}</field>
</block>
</value>
<next>
<block type="control" id="-=Vbp0p|nMG#]):+)n:k">
<mutation delay_input="false"></mutation>
<field name="OID">hue.0.HueBridge.Fernsehlampe_rechts.command</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="n//h:(n%^U4)+BaC*@4h">
<field name="TEXT">{"on":true,"level":100,"r":254,"g":143,"b":33,"transitiontime":30}</field>
</block>
</value>
<next>
<block type="control" id="#9^Rv2WSOvd2dhQjPu-C">
<mutation delay_input="false"></mutation>
<field name="OID">hue.0.HueBridge.Sofalampe_links.command</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="luskD-gTYQ[!Z3qDcP.Y">
<field name="TEXT">{"on":true,"level":100,"r":254,"g":143,"b":33,"transitiontime":30}</field>
</block>
</value>
<next>
<block type="control" id="be/%:s_?8art%:/q~k/~">
<mutation delay_input="false"></mutation>
<field name="OID">hue.0.HueBridge.Sofalampe_rechts.command</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="re@U5k.^HAqTq/VRo%v*">
<field name="TEXT">{"on":true,"level":100,"r":254,"g":143,"b":33,"transitiontime":30}</field>
</block>
</value>
<next>
<block type="comment" id="F#J=Zu+m?KM;E4h.E:Pc">
<field name="COMMENT">danach Licht wieder aus</field>
<next>
<block type="timeouts_settimeout" id="C:l32sru.kR{[}n1/enQ">
<field name="NAME">timeout</field>
<field name="DELAY">5000</field>
<field name="UNIT">ms</field>
<statement name="STATEMENT">
<block type="control" id="`iYsh+k5FEf#Ms@d99Y(">
<mutation delay_input="false"></mutation>
<field name="OID">hue.0.HueBridge.Fernsehlampe_links.command</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="70gqv-YoRf_F0cH@)?}I">
<field name="TEXT">{"on":false,"transitiontime":100}</field>
</block>
</value>
<next>
<block type="control" id="!/?03pV_t`2d;CoL=g*2">
<mutation delay_input="false"></mutation>
<field name="OID">hue.0.HueBridge.Fernsehlampe_rechts.command</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id=".9UTMP2[1TXIogR!7OAI">
<field name="TEXT">{"on":false,"transitiontime":100}</field>
</block>
</value>
<next>
<block type="control" id="uSf,-cjj0RWH^tAT}@lo">
<mutation delay_input="false"></mutation>
<field name="OID">hue.0.HueBridge.Sofalampe_links.command</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="`DhCgiq~nB:?iqgVo?%l">
<field name="TEXT">{"on":false,"transitiontime":100}</field>
</block>
</value>
<next>
<block type="control" id="iqTSvh]]_KBO+;=ku%;w">
<mutation delay_input="false"></mutation>
<field name="OID">hue.0.HueBridge.Sofalampe_rechts.command</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="nPC^_l^9Ih4nuhfAWGAX">
<field name="TEXT">{"on":false,"transitiontime":100}</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
<value name="IF2">
<block type="logic_operation" id="tAg_phQYRYip^cG#?(OR" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="/aruWSn8RIcG9J0?`yWV">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="v0,W6cUK1#Bk;1N~QpSQ">
<field name="ATTR">val</field>
<field name="OID">harmony.0.Wohnzimmer.activities.currentStatus</field>
</block>
</value>
<value name="B">
<block type="math_number" id="}ULVAt.:zvRHd5dv[`aD">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_operation" id="@m*QiAvDN+U=}?B:+*Nw" inline="false">
<field name="OP">OR</field>
<value name="A">
<block type="logic_compare" id="|mYVll}Lo+UC.*%^{HuU">
<field name="OP">NEQ</field>
<value name="A">
<block type="get_value" id="56)bv-y-!+aEy22:/KGq">
<field name="ATTR">val</field>
<field name="OID">hue.0.HueBridge.Fernsehlampe_links.level</field>
</block>
</value>
<value name="B">
<block type="math_number" id="XDv5|uRF%vnnmv10o+O)">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_operation" id="9EX`n+UF=QW)W!*NyFX@" inline="false">
<field name="OP">OR</field>
<value name="A">
<block type="logic_compare" id="Mlr[1j_jf1IzJ-Xb!G[m">
<field name="OP">NEQ</field>
<value name="A">
<block type="get_value" id="2!{A?SxrbM_q3m_HLnay">
<field name="ATTR">val</field>
<field name="OID">hue.0.HueBridge.Fernsehlampe_rechts.level</field>
</block>
</value>
<value name="B">
<block type="math_number" id="z{[2b@6~5RBi8!rl_Y)p">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_operation" id="b_{g4Dn[ukOao*W=-FrQ" inline="false">
<field name="OP">OR</field>
<value name="A">
<block type="logic_compare" id="WX6D,P-gd`+n6Zhv:7eH">
<field name="OP">NEQ</field>
<value name="A">
<block type="get_value" id="O/qmi#Hc0#QV.TfG^y-Z">
<field name="ATTR">val</field>
<field name="OID">hue.0.HueBridge.Sofalampe_links.level</field>
</block>
</value>
<value name="B">
<block type="math_number" id="/SR,1rS-(pLD=h,2@B!f">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="--]7;yCkj#|ZBLK@bAyg">
<field name="OP">NEQ</field>
<value name="A">
<block type="get_value" id="KAqj]1m|{T19)aiYgPxN">
<field name="ATTR">val</field>
<field name="OID">hue.0.HueBridge.Sofalampe_rechts.level</field>
</block>
</value>
<value name="B">
<block type="math_number" id="yQ*y|NWXC=WZPJrV3jm+">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO2">
<block type="comment" id="h3v|PIu;kO|@gN~cL]9Q">
<field name="COMMENT">Licht aus wenn TV System aus und Licht an war</field>
<next>
<block type="timeouts_settimeout" id="ha/tXwF5yEr`LtQX;FCh">
<field name="NAME">timeout2</field>
<field name="DELAY">5000</field>
<field name="UNIT">ms</field>
<statement name="STATEMENT">
<block type="control" id="`Rwfd|9aS2kKzeuNiPq(">
<mutation delay_input="false"></mutation>
<field name="OID">hue.0.HueBridge.Fernsehlampe_links.command</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="81ZY5Sx;[-r0guGKSeFo">
<field name="TEXT">{"on":false,"transitiontime":100}</field>
</block>
</value>
<next>
<block type="control" id="CE}i#ML*~vI1,@q:UN},">
<mutation delay_input="false"></mutation>
<field name="OID">hue.0.HueBridge.Fernsehlampe_rechts.command</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="f?MyC;AeP;jKIpsWM~}=">
<field name="TEXT">{"on":false,"transitiontime":100}</field>
</block>
</value>
<next>
<block type="control" id="NVF3jY5meN!@+zV:SNzY">
<mutation delay_input="false"></mutation>
<field name="OID">hue.0.HueBridge.Sofalampe_links.command</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="h-/g7g}aV9*o_O{[|wLe">
<field name="TEXT">{"on":false,"transitiontime":100}</field>
</block>
</value>
<next>
<block type="control" id="MnzB*KJTwbKc5*zx!fh@">
<mutation delay_input="false"></mutation>
<field name="OID">hue.0.HueBridge.Sofalampe_rechts.command</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="GN8Z}A,!!=aA/|me[9}2">
<field name="TEXT">{"on":false,"transitiontime":100}</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
</statement>
<next>
<block type="on_ext" id="g@SDiyxr,4+?}Gr*3/#M">
<mutation items="1"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="zW1m0qyRn?{.@5%@pVak">
<field name="oid">harmony.0.Schlafzimmer.activities.currentStatus</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="S%,5qiJYrE#DJSLMIKwM">
<mutation elseif="1"></mutation>
<value name="IF0">
<block type="logic_operation" id="n2?Mj`L%BYdiR2P^=]FW" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="DYXyr|^pwo@?@Mp8i`T_">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="2?=*]=up9y,8%4lUPn]k">
<field name="ATTR">val</field>
<field name="OID">harmony.0.Schlafzimmer.activities.currentStatus</field>
</block>
</value>
<value name="B">
<block type="math_number" id="y*s-]YzReywhg*}97s5Q">
<field name="NUM">2</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="P/_eH0.sjGumz^3Il8V+">
<field name="OP">LTE</field>
<value name="A">
<block type="get_value" id="hH+I6U.[W8/,qUaa={{v">
<field name="ATTR">val</field>
<field name="OID">hm-rpc.0.xxx.1.ILLUMINATION</field>
</block>
</value>
<value name="B">
<block type="math_number" id="Or~@[onoTLaR4~/:GHS^">
<field name="NUM">200</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="comment" id="V1/St/{Wn6%gX}Y%ZK|d">
<field name="COMMENT">TV System Schlafzimmer an</field>
<next>
<block type="control" id="qhG-#3MZHeD|C6QD.2F)">
<mutation delay_input="false"></mutation>
<field name="OID">hue.0.HueBridge.Schlafzimmer.command</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="@U*rl~}x9=oZMypEZMDC">
<field name="TEXT">{"on":true,"level":100,"r":254,"g":143,"b":33,"transitiontime":30}</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<value name="IF1">
<block type="logic_compare" id="AQDENL.L~quzxlLwV0=1">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="s#v4Z9`o;5m5?3p:6QCh">
<field name="ATTR">val</field>
<field name="OID">harmony.0.Schlafzimmer.activities.currentStatus</field>
</block>
</value>
<value name="B">
<block type="math_number" id="V`a)a7TxIWO5Gn:Sm8zk">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="comment" id="Mp]5tgqQPS%@9~~v9K);">
<field name="COMMENT">TV System Schlafzimmer aus</field>
<next>
<block type="control" id="a^U}1m82x}`{gDPNIeC#">
<mutation delay_input="false"></mutation>
<field name="OID">hue.0.HueBridge.Schlafzimmer.command</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="LNg9F|{*%O!S^EbvOM|A">
<field name="TEXT">{"on":false,"transitiontime":100}</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
</next>
</block>
</xml>