So ich habe das Versucht aber leider andert sich Wert nicht bei den grupe von Alexa nicht.
setzte ich das Script auf eine normale lampe geht es ?
Das script was ich nutze :
<xml 1999/xmlns="<URL url=" http:/www.w3.org/xhtml"="">http://www.w3.org/1999/xhtml">
<block type="comment" id="Dp(3PV*Q;}9zI1G[bM,{" x="13" y="-763"><field name="COMMENT">Echte Geräte</field>
<next><block type="on_ext" id="tHgjsmc[+a^q,4=3b~,a"><mutation items="2"></mutation>
<field name="CONDITION">ne</field>
<value name="OID0"><shadow type="field_oid" id="LQ=k,+pFMnSYK1x]EP5!"><field name="oid">mihome.0.devices.magnet_158d0002c6f999.state</field></shadow></value>
<value name="OID1"><shadow type="field_oid" id="cvqe3~<EMAIL email=" n@1v.qmik"="">n@1v.qMik(/5d0">
<field name="oid">mihome.0.devices.magnet_158d0002c6f999.state</field></shadow></value>
<statement name="STATEMENT"><block type="variables_set" id="rlpXvI!d?ZX}gQP4Brf4"><field name="VAR">An</field>
<value name="VALUE"></value>
<next><block type="variables_set" id=",9Y|-:AD|AOe.At=v+V|"><field name="VAR">Aus</field>
<value name="VALUE"></value>
<next><block type="comment" id="hAWn8dh(V8egm7nl*2Ci"><field name="COMMENT">Lampe Wohnzimmer</field>
<next><block type="controls_if" id="~{Usm9.bUnw:eFa`+~}Q"><mutation elseif="1"></mutation>
<value name="IF0"><block type="logic_compare" id="Oe]%.UKw,?g?gB9@,{9`"><field name="OP">EQ</field>
<value name="A"><block type="get_value" id="L*|C5ub^wU2{KUt/K(%C"><field name="ATTR">val</field>
<field name="OID">mihome.0.devices.magnet_158d0002c6f999.state</field></block></value>
<value name="B"><block type="logic_boolean" id=".CdS~|b!*YvFrgD|=,e%"><field name="BOOL">TRUE</field></block></value></block></value>
<statement name="DO0"><block type="comment" id="_toZ:7whxFNR*c}w/`Ur"><field name="COMMENT">iotZustandAn</field>
<next><block type="update" id="6:s2:HbMVPYlUr8+*fiq"><mutation delay_input="false"></mutation>
<field name="OID">Status_IOT.0.Geräte.Garten_Licht</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="text" id="s|yf%9W:#=/LBuD.tc)_"><field name="TEXT">an</field></block></value>
<next><block type="variables_set" id="KZ5fWw-KxL.tgbmM^9^i"><field name="VAR">An</field>
<value name="VALUE"><block type="text_join" id="u8qd7Jh1DZ!%}u}lkW3f"><mutation items="2"></mutation>
<value name="ADD0"><block type="variables_get" id="/b5uV+f:x3z@dqg646/Q"><field name="VAR">An</field></block></value>
<value name="ADD1"><block type="text" id="I^tO-]AEH,Qhh2+]H6kk"><field name="TEXT">Garten Licht.</field></block></value></block></value></block></next></block></next></block></statement>
<value name="IF1"><block type="logic_compare" id="5/oxWuHdc=q2A%3OIjsF"><field name="OP">EQ</field>
<value name="A"><block type="get_value" id="SaXk0fgT*g?swBfHY(8W"><field name="ATTR">val</field>
<field name="OID">mihome.0.devices.magnet_158d0002c6f999.state</field></block></value>
<value name="B"><block type="logic_boolean" id="c^*}zb9mXmV3:;hv%;1T"><field name="BOOL">FALSE</field></block></value></block></value>
<statement name="DO1"><block type="comment" id="/:d@Jn;TL1v/ZmScVS1}"><field name="COMMENT">iotZustandAus</field>
<next><block type="update" id="I;`fJI!?Z+)or6/eB!MC"><mutation delay_input="false"></mutation>
<field name="OID">Status_IOT.0.Geräte.Garten_Licht</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="text" id="=N`u7gtxVYREFb:)Qn(Y"><field name="TEXT">aus</field></block></value>
<next><block type="variables_set" id="D;b,z#IPNiN]([QN~!~J"><field name="VAR">Aus</field>
<value name="VALUE"><block type="text_join" id=")wE@SYs0w!sME){ezMM|"><mutation items="2"></mutation>
<value name="ADD0"><block type="variables_get" id="O-Nj3A4MH4Uj5so=(E46"><field name="VAR">Aus</field></block></value>
<value name="ADD1"><block type="text" id=",i0bQ)vz4pW:f6NB~#%Y"><field name="TEXT">Garten Licht.</field></block></value></block></value></block></next></block></next></block></statement>
<next><block type="comment" id="f`prC=ZSN7NEo,TN!I6x"><field name="COMMENT">Zustand Wohnzimmer</field>
<next><block type="controls_if" id="iNpwZeJpu^~skNw4#+cq"><value name="IF0"><block type="logic_compare" id="@~6Mw}1ylV`4JqQjxsu;"><field name="OP">EQ</field>
<value name="A"><block type="variables_get" id="hQ1?Mn9(Ah6J{O^CX)~)"><field name="VAR">An</field></block></value>
<value name="B"></value></block></value>
<statement name="DO0"><block type="variables_set" id="Ws]8[BHoR;=B#S-3Enzr"><field name="VAR">An</field>
<value name="VALUE"><block type="text" id="IuUfyOk:Un|)Lpx?us%9"><field name="TEXT">nichts.</field></block></value></block></statement>
<next><block type="controls_if" id="OVQ]BxYE~8jy,wQzbD/"><value name="IF0"><block type="logic_compare" id="Oe%1ocE^4JwAk?ltI63"><field name="OP">EQ</field>
<value name="A"><block type="variables_get" id="YHpM-HSy=*I#d]5Xn;y3"><field name="VAR">Aus</field></block></value>
<value name="B"></value></block></value>
<statement name="DO0"><block type="variables_set" id="vHMuuw[I^%2Fn~2#25-M"><field name="VAR">Aus</field>
<value name="VALUE"><block type="text" id=":u@r%il8fz8shHA^E?S{"><field name="TEXT">nichts.</field></block></value></block></statement>
<next><block type="update" id="{#5hj,OE^Pk|weM_.C%M"><mutation delay_input="true"></mutation>
<field name="OID">Status_IOT.0.Garten.Garten_licht_AN</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">2500</field>
<field name="UNIT">ms</field>
<field name="CLEAR_RUNNING">TRUE</field>
<value name="VALUE"><block type="variables_get" id="s,4|QMp=R{M@JfW`#5nA"><field name="VAR">An</field></block></value>
<next><block type="update" id="{;PGX/tK##:yZCqAScde"><mutation delay_input="true"></mutation>
<field name="OID">Status_IOT.0.Garten.Garten_licht_AUS</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">2500</field>
<field name="UNIT">ms</field>
<field name="CLEAR_RUNNING">TRUE</field>
<value name="VALUE"><block type="variables_get" id="j~dq/@uDcL`yFS)YVSHM"><field name="VAR">Aus</field></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></xml>