NEWS
Alexa Device Radio Sender
-
Guten Tag zusammen:) Mein Vorhaben ist mittels HM Bewegungsmelder das Licht und Radio (Echo Device) im Badezimmer an und aus zuschalten. Dank den Alexa Adapter kann ich den Echo auswählen aber wie wähle ich den Radio-Sender aus??? BITTE Hilft mir Blutigen Anfänger auf die sprünge
-
@razor88w setze einfach den textCommand datenpunkt
-
@razor88w
anbei ein Blockly:<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable type="timeout" id="timeout">timeout</variable> </variables> <block type="comment" id="N3OGf^,|*UPnjx.jqL1G" x="13" y="38"> <field name="COMMENT">Sender: Antenne Bayern: s42824, RPR1. Aprés Ski: s267508</field> <next> <block type="on_ext" id="r-nlIeYfQsB!7hW8z)n/"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="ZH5Fq?HHGR2tM0D(3@+w"> <field name="oid">zigbee.0.000d6ffffe463925.occupancy</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="8x[QmC/L=v)5,3EL]k(("> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_operation" id="%YWl/m6hY]Vfxff_/ng?" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="on_source" id="jCA,k#ie!DDYa}CnEF)m"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="time_compare_ex" id="SxaKx-sfWwm)oNM%6^R{"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation> <field name="USE_ACTUAL_TIME">TRUE</field> <field name="OPTION">between</field> <value name="START_TIME"> <shadow type="text" id="id/^ZerlywV_wIRA]#`m"> <field name="TEXT">07:00</field> </shadow> </value> <value name="END_TIME"> <shadow type="text" id="|MH-Z)!3tFj$V8E9s,DT"> <field name="TEXT">22:00</field> </shadow> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="controls_if" id="L;@=Ez;mZ^}XSYEExb?v"> <value name="IF0"> <block type="logic_compare" id="=PeRV]/r@(dZ3KpGje?C"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="@?Gijn,PeSpCUVZ#lFbe"> <field name="ATTR">val</field> <field name="OID">alexa2.0.Echo-Devices.G091AA0805261KP7.Player.currentState</field> </block> </value> <value name="B"> <block type="logic_boolean" id=";_7+c$*k,%QISpT7fcTd"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id=":p7PIMWML.C,BD|8]Q}."> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alexa2.0.Echo-Devices.G091AA0805261KP7.Player.volume</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="gw2v75oTJ,U[9.7]O6VV"> <field name="NUM">30</field> </block> </value> <next> <block type="control" id=".7Tp[*pw%Qj=OW(I9wg="> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alexa2.0.Echo-Devices.G091AA0805261KP7.Player.TuneIn-Station</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="}y;pL{Gd2~ccmb{(`O|3"> <field name="TEXT">s78909</field> </block> </value> <next> <block type="control" id="J8RA#_wQlv+N@b=~/!z!"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alexa2.0.Echo-Devices.G091AA0805261KP7.Player.controlPlay</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="$3aey$27;saj82+E7G@;"> <field name="BOOL">TRUE</field> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </statement> <statement name="ELSE"> <block type="timeouts_cleartimeout" id="q|-p2?k`?,pDxba#s-;e"> <field name="NAME">timeout</field> <next> <block type="timeouts_settimeout" id="M?fSimc$R_kHs7PWfJOd"> <field name="NAME">timeout</field> <field name="DELAY">10</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="control" id="sUs/n(4vP|~T16G0._$a"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alexa2.0.Echo-Devices.G091AA0805261KP7.Player.controlPause</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="v-hsBwQx=u62s?(Qa19#"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="e#req-Va$-RRC]G4EF5%"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">alexa2.0.Echo-Devices.G091AA0805261KP7.Player.volume</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">1</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="get_value" id="F0tV)OA^/%r:sD9f#f3T"> <field name="ATTR">val</field> <field name="OID">javascript.0.Datenpunkte.Alexa-Ansagelautstaerke</field> </block> </value> </block> </next> </block> </statement> </block> </next> </block> </statement> </block> </statement> <next> <block type="comment" id="4ZgiF`(t;!7x+-_{~X~x"> <field name="COMMENT">Bei Licht aus Alexa Pause</field> <next> <block type="on_ext" id="bS.RTS}#aherAC9VKf0,"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="^NAcbo4~IqH@HyCn941@"> <field name="oid">shelly.0.SHSW-1#E0E6AC#1.Relay0.Switch</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="_X5d5ivFma..7LKz|[.*"> <value name="IF0"> <block type="logic_compare" id=",PB]@y@8]*-JzZh1yLQ,"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="NZ)8p{{ifm{mPllMQ5q)"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHSW-1#E0E6AC#1.Relay0.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="]f-~o^E/rFK7?khfQW;u"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="/_d])~A7bjgy(K?:HNt*"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">alexa2.0.Echo-Devices.G091AA0805261KP7.Player.controlPause</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">1</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">TRUE</field> <value name="VALUE"> <block type="logic_boolean" id="4pnA(X^vlE]9B[`%m:t1"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="Z?6NfP4||+DP`G$wKpy^"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">alexa2.0.Echo-Devices.G091AA0805261KP7.Player.volume</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">2</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">TRUE</field> <value name="VALUE"> <block type="get_value" id="yfLNvDGub_^!w/T(eNJo"> <field name="ATTR">val</field> <field name="OID">javascript.0.Datenpunkte.Alexa-Ansagelautstaerke</field> </block> </value> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </xml>