Bisher war es immer nur Möglich mit ALEXA etwas zu steuern, seihe es das Licht, die Heizung oder sonst etwas, dank eines neuen Adapters in ioBroker, gibt es nun auch die Möglichkeit ALEXA zu steuern, zum Beispiel Musik zu starten, das Lied weiter zu schalten, lauter, leiser etc. so kann man zum Beispiel über ioBroker ein Blockly Script erstellen mit Wecker etc. das zu einer bestimmten Uhrzeit bestimmte Lichter an gehen und ein bestimmter Radiosender von Tunein gespielt wird. Ich zeige euch das heute an Hand eines Beispiels mit dem Xiaomi Magic Cube, mit dem ich von nun an die Musik auch ohne meine Stimme unter Kontrolle habe
***************************************************************
Benötigte Geräte...
Amazon Alexa =http://amzn.to/2o4GFQd
Xiaomi Gateway
https://www.gearbest.com/living-applian…1&lkid=13085921
Xiaomit SmartHome Kit (Gateway + Sensoren)
https://www.gearbest.com/alarm-systems/…l?lkid=13085925
Xiamit Magic Cube
https://www.gearbest.com/living-applian…l?lkid=13085927
***************************************************************
Benötigter ioBroker Adapter von GitHub...
https://github.com/soef/ioBroker.alexa
Original Beitrag von "Frickelmaster" im Forum...
Neuer Adapter für Alexa-Steuerung!
Hier findet Ihr meinen Blockly Code...
<xml xmlns="http://www.w3.org/1999/xhtml">
<block type="on_ext" id="#dU%bHFVm/~[XFv;e5M5" x="-513" y="13">
<mutation items="4"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="luObs(yNi=oW98s~lUkF">
<field name="oid">mihome.0.devices.cube_158d000110819c.rotate_position</field>
</shadow>
</value>
<value name="OID1">
<shadow type="field_oid" id="|X5zwhq%~Zkbz~1R0r1^">
<field name="oid">mihome.0.devices.cube_158d000110819c.flip90</field>
</shadow>
</value>
<value name="OID2">
<shadow type="field_oid" id="Ig5d`gN3)^t%EXeY.S-Z">
<field name="oid">mihome.0.devices.cube_158d000110819c.shake_air</field>
</shadow>
</value>
<value name="OID3">
<shadow type="field_oid" id="lkE{jhvkV[j=uBCI~?Qz">
<field name="oid">mihome.0.devices.cube_158d000110819c.tap_twice</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id=",9_Nr-P-{%Fd+Tc0-=Nu">
<value name="IF0">
<block type="logic_operation" id="_wo7IX/c7h@L#+*[P`g3">
<field name="OP">OR</field>
<value name="A">
<block type="logic_compare" id=";_i]cfZdrmL/qXWB6PuO">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="05hB:}da}@CQX_^vBlC@">
<field name="ATTR">val</field>
<field name="OID">mihome.0.devices.cube_158d000110819c.rotate_left</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="ZT5]2tgD5CM]Of-|;}#F">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="2X61PN7Qqq{K9V{y=Und">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="}K5Goq8w{r|GUkKy-Gr(">
<field name="ATTR">val</field>
<field name="OID">mihome.0.devices.cube_158d000110819c.rotate_right</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="!KwSuG0OM2?au:pz*tZ5">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="}6;6~]L4/!BY.JwxYt#d">
<mutation delay_input="false"></mutation>
<field name="OID">alexa.0.echo-devices.22eddaf064794a708488e70b818409be.Commands.volume</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="get_value" id="YwLlb+nx4qTOJFvljerY">
<field name="ATTR">val</field>
<field name="OID">mihome.0.devices.cube_158d000110819c.rotate_position</field>
</block>
</value>
</block>
</statement>
<next>
<block type="controls_if" id="T%b0W^#l-ZWU%w^7]WQ/">
<value name="IF0">
<block type="logic_compare" id="=(DbOS78=0MBQe=F%*.D">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="DpgzqNoWjD?gGY|.nPM_">
<field name="ATTR">val</field>
<field name="OID">mihome.0.devices.cube_158d000110819c.flip90</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="DkzF1(|Ey=3{V,DFkJfD">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="XSX3p0d(aQb.=Q`_;!Pl">
<mutation delay_input="false"></mutation>
<field name="OID">alexa.0.echo-devices.22eddaf064794a708488e70b818409be.Commands.next</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="U5N:?D#nTlX[-J~EM{7(">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
<next>
<block type="controls_if" id="W|nOmNk7Ri}Fs|:3bNvo">
<value name="IF0">
<block type="logic_compare" id=".`5XJGz4u6:p[#j+uoBh">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="Tc#Gzin|@s,p7.86ILp/">
<field name="ATTR">val</field>
<field name="OID">mihome.0.devices.cube_158d000110819c.shake_air</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="sH3Sm+bH^3l}+?.kIlZ*">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="E]3~1B]ZQQdBY9/459z[">
<mutation delay_input="false"></mutation>
<field name="OID">alexa.0.echo-devices.22eddaf064794a708488e70b818409be.Commands.pause</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="5t-IeJ[V[GI[`{3GfPg|">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
<next>
<block type="controls_if" id="?jy5dedv*E!QXGSi|NNj">
<value name="IF0">
<block type="logic_compare" id="Nq,pYQn=QZIL]h`|k!{R">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="VfAn.8Ks0/7;o3resSQV">
<field name="ATTR">val</field>
<field name="OID">mihome.0.devices.cube_158d000110819c.tap_twice</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="|36:z7/2Lb=#qES!gYLY">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="oJNg%*z]?4?HpsN(**@L">
<mutation delay_input="false"></mutation>
<field name="OID">alexa.0.echo-devices.22eddaf064794a708488e70b818409be.Commands.play</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="A0VDy)#(!%M5HZrI;0kN">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</xml>
Display More
Wie man die Xiaomi Gateway in ioBroker bekommt...
***************************************************************
Schimmer-Media auf Facebook
https://www.facebook.com/schimmermedia
SchimmerMediaHD Facebook Gruppe
https://www.facebook.com/groups/1566513…roup_browse_new
Ich hoffe euch hat das Video gefallen