<p>Hallo,</p>
<p><br></p>
<p>kann ich ein Blockly Script dass alle 5s einen speak Befehl an <woltlab-metacode data-name="definition" data-attributes="WyIyMCIsIjAiXQ=="><woltlab-metacode data-name="definition" data-attributes="WyIyMCIsIjAiXQ=="><woltlab-metacode data-name="definition" data-attributes="WyIyMCIsIjAiXQ=="><woltlab-metacode data-name="definition" data-attributes="WyIyMCIsIjAiXQ==" data-value="Alexa">Alexa</woltlab-metacode></woltlab-metacode></woltlab-metacode></woltlab-metacode> schickt per Sprachbefehl unterbrechen?
<img src="https://uploads.tapatalk-cdn.com/20190211/7dc0d…68a799374c7.jpg"></p>
Kann man per Alexa Kommando eine Schleife im Blockly Script beenden?
-
-
Hallo,
kann ich ein Blockly Script dass alle 5s einen speak Befehl an [definition='20','0'][definition='20','0'][definition='20','0'][definition='20','0'][definition='20','0']Alexa[/definition][/definition][/definition][/definition][/definition] schickt per Sprachbefehl unterbrechen?
Leg dir nach dem Trigger noch ein „Falls....mache„ mit ein Datenpunkt den du mit [definition='20','0']Alexa[/definition] steuerst.
-
.....alle 5 Sekunden mit Lautstärke 100, echt genialer Einfall
.....ein Intervall stopp, wäre noch angebracht.
-
<p>was soll daran so witzig sein?</p>
<p>es soll mich ja warnen falls im keller wasser auftritt.</p>
<p>was soll ein intervall stop bringen wenn ich nach der warnung erst nach hause komme?</p>
<p><br></p>
<p>ich will einfach dass der alarm solange durchgesagt wird bis ich ihn beende oder der sensor auf false steht.
<img src="https://uploads.tapatalk-cdn.com/20190211/d817f…ffafe212ea1.jpg" alt="d817f17fc83ebae6165e0ffafe212ea1.jpg"></p> -
-
Moin moin..
Ich würde das ganze so lösen, habe allerdings auch kein [definition='20','0'][definition='20','0']Alexa[/definition][/definition] und weiß nicht 100% wie die Befehle da eingehen.
Code
Alles anzeigen<xml xmlns="http://www.w3.org/1999/xhtml"> <block type="on" id="{={+YVJ@7w9tMO{`bX*U" x="62" y="113"> <field name="OID">Object ID</field> <field name="CONDITION">true</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="timeouts_setinterval" id="_5@_c)9Cgu}GSb~8fa]}"> <field name="NAME">Intervall</field> <field name="INTERVAL">5000</field> <field name="UNIT">ms</field> <statement name="STATEMENT"> <block type="control" id="W*o%%{TB5J{pC`n1~v60"> <mutation delay_input="false"></mutation> <field name="OID">Object ID</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="so!eJdSQseo!^eN`7ec8"> <field name="NUM">100</field> </block> </value> <next> <block type="control" id="G2Ug%o.WE/oU}gs2;oo8"> <mutation delay_input="false"></mutation> <field name="OID">Object ID</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="9P.j-9Kj7/VeGNVB()=t"> <field name="NUM">100</field> </block> </value> <next> <block type="control" id="aE08IB|Q!5:=VBY,RqKf"> <mutation delay_input="false"></mutation> <field name="OID">Object ID</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="]X@KqP~GH2m+{`@0lRvH"> <field name="TEXT">Achtung Wassereinbruch im Keller</field> </block> </value> <next> <block type="control" id="uH/fHxOSC~B_^x2,Qf|i"> <mutation delay_input="false"></mutation> <field name="OID">Object ID</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="dQiZ4.kg5pXp?4Nzq~VG"> <field name="TEXT">Achtung Wassereinbruch im Keller</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> <block type="comment" id="-_H,[1M6KFjI^e`KUD)b" x="62" y="437"> <field name="COMMENT">Komando per Alaxa</field> <next> <block type="on" id="vC4=jm[D-6FBh5He).k."> <field name="OID">Object ID</field> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="controls_if" id="%ReOMu)EZb,hx}z4Fobg"> <value name="IF0"> <block type="logic_compare" id="y08|sG[,[#)yr@(OX1=p"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="E5%C+6a@oB_VJTVsebpo"> <field name="ATTR">val</field> <field name="OID">ID auswählen</field> </block> </value> <value name="B"> <block type="text" id="{p!qR:|7}j8S?Df:{({9"> <field name="TEXT">TEXT VON ALEXA</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_clearinterval" id="j6c!%jfe#,@Gv;A~-[_Y"> <field name="NAME">Intervall</field> </block> </statement> </block> </statement> </block> </next> </block> </xml>
-
Weshalb Datenpunkt?
Code
Alles anzeigen<xml xmlns="http://www.w3.org/1999/xhtml"> <block type="on_ext" id="]{q25,%fS]!PQ:z%kun+" x="-143" y="-382"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="=CbfxpbS{WwVD68-0-2."> <field name="oid">zigbee.0.00158d0002701fd6.detected</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="NjJJ?KD6Bu@mFjc{=vOB"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="3nL%[IYv3Tbe,O_u0Eq#"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="){ad!94dK36-*ex0m0?R"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0002701fd6.detected</field> </block> </value> <value name="B"> <block type="logic_boolean" id="LWv{?^lv6kV7c`YjL6tB"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_setinterval" id="hYw@KWOS6o|/a7RJwoQN"> <field name="NAME">Intervall</field> <field name="INTERVAL">5</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="control" id="I@dNGw~%ACkLBZ.|b#v}"> <mutation delay_input="false"></mutation> <field name="OID">alexa2.0.Echo-Devices.G090LA098187005C.Commands.speak-volume</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="|Z6R=KD_l@D1kuC{B=kp"> <field name="NUM">50</field> </block> </value> <next> <block type="control" id="np9xmv5k-+dbqDxV.Wec"> <mutation delay_input="false"></mutation> <field name="OID">alexa2.0.Echo-Devices.G090LA098187005C.Commands.speak</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="^X#Ktv;jQ=(`rwE{h%T9"> <field name="TEXT">Achtung Wassereinbruch im Keller</field> </block> </value> </block> </next> </block> </statement> </block> </statement> <value name="IF1"> <block type="logic_compare" id=";qWDX9,ad9pCMELa)Tk{"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="cc+8*k6Rz5}*nMqw.~%."> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0002701fd6.detected</field> </block> </value> <value name="B"> <block type="logic_boolean" id="]c,+56Oz+,W92TcH1n%/"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO1"> <block type="timeouts_clearinterval" id="R9.Mlf5afCFO1/v8/PM@"> <field name="NAME">Intervall</field> </block> </statement> </block> </statement> </block> </xml>
-
Achso verstehe jetzt. Der Datenpunkt ist zum abstellen per Sprachbefehl. Finde dies ist aber nicht sinnvoll per Sprachbefehl da wenn eh Wasser im Keller ist muss ich eh den Sensor aus dem Wasser nehmen und somit ist auch die Sprachnachricht von [definition='20','0']Alexa[/definition] deaktiviert.
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!