Das genau das Problem habe ich auch, habe die Scenen aus dem Broadlink rausgeworfen und mir mit einem Blockly auf die schnelle geholfen, macht genau das gleiche, fährt den Rolladen runter und ich kann Alexa noch ein paar Worte dazu sagen lassen.. 🙂
Habe mir ein Objekt mit den Namen Netflix, Amazon, etc angelegt, darauf verweist jeweils eine Routine, hier mein Blockly:
<xml xmlns="http://www.w3.org/1999/xhtml"><block type="comment" id="4os2mYJl#M:z!l[gZV@-" x="163" y="-13"><field name="COMMENT">Objekt Netflix wird von der Alexa Routine auf true gesetzt</field>
<next><block type="on_ext" id=";cxmDve1iO/Z.JHj{@O,"><mutation items="1"></mutation>
<field name="CONDITION">ne</field>
<value name="OID0"><shadow type="field_oid" id=")+KP29,EG,T+GzdP1HJM"><field name="oid">javascript.0.system.Netflix</field></shadow></value>
<statement name="STATEMENT"><block type="controls_if" id="[RBWLi`b2LKSn5L}HLAt"><value name="IF0"><block type="logic_compare" id="_[5U~eDMT?EL=Te1b82}"><field name="OP">EQ</field>
<value name="A"><block type="get_value" id="N:aayGPyEcS2rf5p^N]{"><field name="ATTR">val</field>
<field name="OID">javascript.0.system.Netflix</field></block></value>
<value name="B"><block type="logic_boolean" id="b?xUn++]:]|:mxs!DyOl"><field name="BOOL">TRUE</field></block></value></block></value>
<statement name="DO0"><block type="comment" id="_jUbR]Bt8i/;}#B]G{al"><field name="COMMENT">steuert broadlink code</field>
<next><block type="control" id="y9A|rv%(g!H?inz}5nmk"><mutation delay_input="false"></mutation>
<field name="OID">broadlink2.0.RM:Broadlink-RMPLUS.L.TV_on</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id="C|()v%n[nX-]#Pfy2oe,"><field name="BOOL">TRUE</field></block></value>
<next><block type="comment" id="8xJy;5Z||9QY:wf79pmp"><field name="COMMENT">fährt Rolladen runter 100%</field>
<next><block type="update" id="AsEK?4~q_AkhzC0P2[g`"><mutation delay_input="false"></mutation>
<field name="OID">javascript.0.Rolladen.Wohnprozent</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="math_number" id="a8|6Muk|W6/KUFvuJp10"><field name="NUM">100</field></block></value>
<next><block type="comment" id="k,c^a+a@KA+~k!K4K!#2"><field name="COMMENT">Alexa gibt feedback</field>
<next><block type="control" id="WA~bz:pAdE=ZsE*5yL/P"><mutation delay_input="false"></mutation>
<field name="OID">alexa2.0.echo-devices.G000JN0573370K82.Commands.speak</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="text" id="]^(a6x1JKB~~3vU=X8@t"><field name="TEXT">TV wird eingeschaltet</field></block></value>
<next><block type="timeouts_settimeout" id="shUILq/!CEYUX;|54[|d"><field name="NAME">timeout</field>
<field name="DELAY">30</field>
<field name="UNIT">sec</field>
<statement name="STATEMENT"><block type="control" id="ZFY:cU=xuKPgdnNm:r@l"><mutation delay_input="false"></mutation>
<field name="OID">broadlink2.0.RM:Broadlink-RMPLUS.L.TV_Smartapp</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id=",D*dyEH4fpYbcN.nSRev"><field name="BOOL">TRUE</field></block></value>
<next><block type="timeouts_settimeout" id="SwFbD=#x/8%0;)25@|q{"><field name="NAME">timeout2</field>
<field name="DELAY">5</field>
<field name="UNIT">sec</field>
<statement name="STATEMENT"><block type="control" id="Lc0#IdiHTi;_(e~{vV6h"><mutation delay_input="false"></mutation>
<field name="OID">broadlink2.0.RM:Broadlink-RMPLUS.L.TV_rechts</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id="hq^u~5pvQkv98zaiz5|v"><field name="BOOL">TRUE</field></block></value>
<next><block type="timeouts_settimeout" id="(#%|3oT0/+Yj@FEO2|^i"><field name="NAME">timeout3</field>
<field name="DELAY">2</field>
<field name="UNIT">sec</field>
<statement name="STATEMENT"><block type="control" id="An-v2J@Jg:1QOV#FGmIh"><mutation delay_input="false"></mutation>
<field name="OID">broadlink2.0.RM:Broadlink-RMPLUS.L.TV_rechts</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id="=/1={.WSgaTc1EQRdVUL"><field name="BOOL">TRUE</field></block></value>
<next><block type="timeouts_settimeout" id="K5Fn.tqez_!eD3:l]l~B"><field name="NAME">timeout4</field>
<field name="DELAY">2</field>
<field name="UNIT">sec</field>
<statement name="STATEMENT"><block type="control" id="*0)Hu4}Ll3jSxEN+q0yt"><mutation delay_input="false"></mutation>
<field name="OID">broadlink2.0.RM:Broadlink-RMPLUS.L.TV_unten</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id="RkRFs#MTK!Uk(ly^oZD#"><field name="BOOL">TRUE</field></block></value>
<next><block type="timeouts_settimeout" id="vMtqkmZ,a,Kf52(Ug@9F"><field name="NAME">timeout5</field>
<field name="DELAY">2</field>
<field name="UNIT">sec</field>
<statement name="STATEMENT"><block type="control" id="hzK?vA|TgOksmyrAU5Zr"><mutation delay_input="false"></mutation>
<field name="OID">broadlink2.0.RM:Broadlink-RMPLUS.L.TV_rechts</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id="y(H[QfnXmf{;q9O3eg!}"><field name="BOOL">TRUE</field></block></value>
<next><block type="timeouts_settimeout" id="k*Q/N?=)ZNxB/uqULj5."><field name="NAME">timeout6</field>
<field name="DELAY">2</field>
<field name="UNIT">sec</field>
<statement name="STATEMENT"><block type="control" id="@7,huHaMOMhWrkolB=XQ"><mutation delay_input="false"></mutation>
<field name="OID">broadlink2.0.RM:Broadlink-RMPLUS.L.TV_ok</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id="N-cAE!J=6:D|D3|D}c=%"><field name="BOOL">TRUE</field></block></value>
<next><block type="timeouts_settimeout" id="w!2c)`c~FQx.`R,*ddSC"><field name="NAME">timeout7</field>
<field name="DELAY">15</field>
<field name="UNIT">sec</field>
<statement name="STATEMENT"><block type="control" id="{IF`{#tEnGv:L,^=axPg"><mutation delay_input="false"></mutation>
<field name="OID">broadlink2.0.RM:Broadlink-RMPLUS.L.TV_ok</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id="5]]AB~B`f]G{^=dTRH7e"><field name="BOOL">TRUE</field></block></value>
<next><block type="control" id="EhNdO~6FX.PA3cFna+zB"><mutation delay_input="false"></mutation>
<field name="OID">javascript.0.system.Netflix</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id="R{o:x.oULQPeLRD8;X^b"><field name="BOOL">FALSE</field></block></value>
<next><block type="control" id="i1dO8ZOS.,z;h=GME7q4"><mutation delay_input="false"></mutation>
<field name="OID">alexa2.0.echo-devices.G000JN0573370K82.Commands.speak</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="text" id="#;PyI?WW|xNG|`:AG{2Q"><field name="TEXT">Netflix gestartet!</field></block></value></block></next></block></next></block></statement></block></next></block></statement></block></next></block></statement></block></next></block></statement></block></next></block></statement></block></next></block></statement></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></statement>
<next><block type="timeouts_cleartimeout" id="AwPkPV4@iQQ!xq`M7r2T"><field name="NAME">timeout</field>
<next><block type="timeouts_cleartimeout" id="SSyZxN*fr]..1WD/e*TQ"><field name="NAME">timeout2</field>
<next><block type="timeouts_cleartimeout" id="?Z=axxzKZP~RgJ]Sh=Hk"><field name="NAME">timeout3</field>
<next><block type="timeouts_cleartimeout" id="KXzEES`:Zfx5XiB^QH%s"><field name="NAME">timeout4</field>
<next><block type="timeouts_cleartimeout" id="z2]_|U6y)!Z(Gda1_^dC"><field name="NAME">timeout5</field>
<next><block type="timeouts_cleartimeout" id="O3`(deot_d,n|Lk?;8al"><field name="NAME">timeout6</field>
<next><block type="timeouts_cleartimeout" id="e[!U^Cn6z_]/b(Vy`3Z@"><field name="NAME">timeout7</field></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></xml>