Hey Leute,
ich wollte erst mal "Leicht" mit diesem Script anfangen, aber irgendwie Rede Alexa nicht mit mir
Bei mir habe ich es so am laufen.
Und es funktioniert
So werde ich jedes mal wenn ich nach Hause komme von der Alexa begrüßt.
schimmer-media.de/index.php?attachment/4377/
Code
<xml xmlns="http://www.w3.org/1999/xhtml">
<block type="on" id="4Yj~O7Dr*DmCTxHXym;-" x="-212" y="-186">
<field name="OID">mihome.0.devices.magnet_158d0001f38b3a.state</field>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="comment" id="K1cy0[c9q/T/!`Ouq:D7">
<field name="COMMENT">Dann prüfe, ob wert vom Handy = wahr & Begrüssung = unwahr</field>
<next>
<block type="controls_if" id="=V.@~[5G)]uS1`2`Zkt4">
<value name="IF0">
<block type="logic_operation" id=":vlJ,{]H~:rnxT(r(I03">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="tJ^jjptF@Ju?{H3u}zHh">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="g^|/]ychwu(z5Kp8.N*t">
<field name="ATTR">val</field>
<field name="OID">cloud.0.services.ifttt</field>
</block>
</value>
<value name="B">
<block type="text" id="*z0zuI`^=uMgGGI7;qT?">
<field name="TEXT">entered</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="Z]j9z5mKmnItZ;2y.FWF">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="4kYHQJV:x*dO}D(p[yCX">
<field name="ATTR">val</field>
<field name="OID">Tages_Begrüssung.0.Begrüssung</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="xDan_PA-_7NN;AhZ}sP[">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="comment" id="VxnvM.h)(0p,NfT]U?2k">
<field name="COMMENT">Dann, Alex spricht Nachsicht</field>
<next>
<block type="control" id="d}y1S#j*nq87[{U52]Q2">
<mutation delay_input="false"></mutation>
<field name="OID">alexa2.0.Echo-Devices.G090LF0964840RAC.Commands.speak</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="Qg{p[j,x`52Mgzk9+S)E">
<field name="TEXT">Hallo Franz willkommen zuhause</field>
</block>
</value>
<next>
<block type="comment" id="xGPJOz3h-0:|0=;IWRw)">
<field name="COMMENT">und stelle Begüssung auf wahr</field>
<next>
<block type="control" id="y1k7X@mKYEnBWuE#{8w3">
<mutation delay_input="false"></mutation>
<field name="OID">Tages_Begrüssung.0.Begrüssung</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="5oV7S5D6OD*UXFx:cWd[">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</statement>
<next>
<block type="on" id="i({~p!3gGR-SD,7dLA7(">
<field name="OID">cloud.0.services.ifttt</field>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="comment" id="x#r[Zt!0g5c:n8@6*q5a">
<field name="COMMENT">Dann, Prüfe ob würdeZüruckgetzt = unwahr & IFTTT oder Ping = unwahr</field>
<next>
<block type="controls_if" id=")b%[`*#_qn3j1wk+myoq">
<value name="IF0">
<block type="logic_compare" id="E~KAod+(s~R%DsKx|1uQ">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="/ie^An)V3}`d#Z~ZDXJq">
<field name="ATTR">val</field>
<field name="OID">cloud.0.services.ifttt</field>
</block>
</value>
<value name="B">
<block type="text" id="nd77k#_;v5ZS34CKovLE">
<field name="TEXT">exited</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="comment" id="^v^fW[s+u{cspm|q5`NR">
<field name="COMMENT">Dann steuere Begüssung auf unwahr</field>
<next>
<block type="control" id="0`,vpff)fwd-^3:)(U!U">
<mutation delay_input="false"></mutation>
<field name="OID">Tages_Begrüssung.0.Begrüssung</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="rrK(](z}Xg+lG7.+{BM_">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</xml>
Alles anzeigen