Hi,
mit Yahka hat das nichts zu tun, ist nur Alexa…..
[image: 654_unbenannt2.jpg]
Ich habe mir aber auch alle Aktionen der Harmony in Homekit anzeigen lassen um auch hier den aktuellen Status sehen zu können und eventuell zu aktivieren. Mir war es wichtig, das ich den aktuellen Status auch sehe, wenn ich z.B. den TV über Alexa starte…..
[image: 654_unbenannt.jpg]
<xml xmlns="http://www.w3.org/1999/xhtml"><block type="on" id=".X;9_;7B}A%D?[[GQ6D7" x="62" y="-213"><field name="OID">harmony.0.Stube.activities.currentActivity</field>
<field name="CONDITION">ne</field>
<statement name="STATEMENT"><block type="control" id="Z@r`!s]~+/pWX52/m35F"><mutation delay_input="false"></mutation>
<field name="OID">javascript.0.Harmony.Befehl_blocken</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id="`9iV[OgS)7tHX+Z-`dGR"><field name="BOOL">TRUE</field></block></value>
<next><block type="controls_if" id="Ov7:VAuRjZXs./ArK6GI"><value name="IF0"><block type="logic_compare" id="a9h(xq/p4Rb~V#s~LM`,"><field name="OP">EQ</field>
<value name="A"><block type="get_value" id="8wFuOCXI~I2uc8NB7q{}"><field name="ATTR">val</field>
<field name="OID">harmony.0.Stube.activities.currentActivity</field></block></value>
<value name="B"><block type="text" id="~-/76uq]FG]%bNhm8Iyy"><field name="TEXT">AppleTV</field></block></value></block></value>
<statement name="DO0"><block type="update" id="S}Q4j.LOx1QfHCl3^1.n"><mutation delay_input="false"></mutation>
<field name="OID">javascript.0.Harmony.AppleTV</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id="ZvFhzZ/jiPsE{[Z!{O!X"><field name="BOOL">TRUE</field></block></value>
<next><block type="update" id="`3M^).226nwy{uE)WiX5"><mutation delay_input="false"></mutation>
<field name="OID">javascript.0.Harmony.Fernseher</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id="d/J@HpBrN|94fM.ARj|y"><field name="BOOL">FALSE</field></block></value>
<next><block type="update" id="g!I.O4mU@F`p.DILL4YM"><mutation delay_input="false"></mutation>
<field name="OID">javascript.0.Harmony.xBox</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id="|(xK];/,fT?NMc*6)%iD"><field name="BOOL">FALSE</field></block></value></block></next></block></next></block></statement>
<next><block type="controls_if" id="zRUKWS7P5*J11yLOY,.R"><value name="IF0"><block type="logic_compare" id="SmmvoYAJdGsN*0sPiU@A"><field name="OP">EQ</field>
<value name="A"><block type="get_value" id="-A,D}p_YFqc7z.(_jtwx"><field name="ATTR">val</field>
<field name="OID">harmony.0.Stube.activities.currentActivity</field></block></value>
<value name="B"><block type="text" id="]B1_pKtjK%Nw%7W0CUOP"><field name="TEXT">Fernseher</field></block></value></block></value>
<statement name="DO0"><block type="update" id="jci2fK9Q`+~sc6;US2Bc"><mutation delay_input="false"></mutation>
<field name="OID">javascript.0.Harmony.Fernseher</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id="]h:seAb_8}VgA9HQFW*+"><field name="BOOL">TRUE</field></block></value>
<next><block type="update" id="47eSY3+7zGP(z=8gR21B"><mutation delay_input="false"></mutation>
<field name="OID">javascript.0.Harmony.xBox</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id="@NOm?w[niiKS`E%vozK3"><field name="BOOL">FALSE</field></block></value>
<next><block type="update" id="F4FDbC!yHdU]Pow-Qszt"><mutation delay_input="false"></mutation>
<field name="OID">javascript.0.Harmony.AppleTV</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id=".lf~w.*+/R((enY:q.LU"><field name="BOOL">FALSE</field></block></value></block></next></block></next></block></statement>
<next><block type="controls_if" id="DKu{fb8~FC5V#.R]%RIe"><value name="IF0"><block type="logic_compare" id="?F[=~lLDz4iee6Lzps(m"><field name="OP">EQ</field>
<value name="A"><block type="get_value" id="9%-P8zLFhvxaXB6Hi]~1"><field name="ATTR">val</field>
<field name="OID">harmony.0.Stube.activities.currentActivity</field></block></value>
<value name="B"><block type="text" id="mxh2FrB[539#R;W~H^}a"><field name="TEXT">Xbox</field></block></value></block></value>
<statement name="DO0"><block type="update" id=",K;F]PVYAOw~efGLP`/W"><mutation delay_input="false"></mutation>
<field name="OID">javascript.0.Harmony.xBox</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id="~bFInl[`=9_ikqFuc^PP"><field name="BOOL">TRUE</field></block></value>
<next><block type="update" id="WDz.Ktd4ss9/n{ALbXxR"><mutation delay_input="false"></mutation>
<field name="OID">javascript.0.Harmony.AppleTV</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id="7^[5nlCpGrs-`qOdCjR6"><field name="BOOL">FALSE</field></block></value>
<next><block type="update" id="/Tq/I=9UGOKTgU`z8|qV"><mutation delay_input="false"></mutation>
<field name="OID">javascript.0.Harmony.Fernseher</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id="4TVrt4Lw1_*_{)Y*[Z@O"><field name="BOOL">FALSE</field></block></value></block></next></block></next></block></statement>
<next><block type="controls_if" id="yHD7C5WcsD_h2@.MrH;U"><value name="IF0"><block type="logic_compare" id="(.ayTZ7ubF@AW2BLNi_I"><field name="OP">EQ</field>
<value name="A"><block type="get_value" id="C#[Z+!}(qrvk-ATOx_?I"><field name="ATTR">val</field>
<field name="OID">harmony.0.Stube.activities.currentActivity</field></block></value>
<value name="B"><block type="text" id="Vj02iX.}Ix%L|m|PDgfE"><field name="TEXT">PowerOff</field></block></value></block></value>
<statement name="DO0"><block type="update" id="6:F]q8Z6^rp-R+o88%Y-"><mutation delay_input="false"></mutation>
<field name="OID">javascript.0.Harmony.xBox</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id=".Rve_NP8g!OP:+|I;417"><field name="BOOL">FALSE</field></block></value>
<next><block type="update" id="[QEw[{ncp-jwka);]uup"><mutation delay_input="false"></mutation>
<field name="OID">javascript.0.Harmony.AppleTV</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id="I6jT|/!(XpDy77,q3Vyh"><field name="BOOL">FALSE</field></block></value>
<next><block type="update" id="GFZQp,LfLe#1jZ]--e%X"><mutation delay_input="false"></mutation>
<field name="OID">javascript.0.Harmony.Fernseher</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id="M^vbV[6^#utI;Kiu5?!C"><field name="BOOL">FALSE</field></block></value></block></next></block></next></block></statement>
<next><block type="control" id="3KIq+@c3z3aDEezf.C~/"><mutation delay_input="false"></mutation>
<field name="OID">javascript.0.Harmony.Befehl_blocken</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id="[JE2?YE?wd?}Ht;=iw{H"><field name="BOOL">FALSE</field></block></value></block></next></block></next></block></next></block></next></block></next></block></statement></block></xml>
@kannebecker:
Ja das wäre schonmal sehr gut, vielleicht kann ich es ja in yahka einbinden. `
Gruß