@him96 sagte in TTS: Homematic => Alexa Echo :
Ich habe das Polling der hm-rega auf 1s gestellt damit die Ausgabe sofort kommt. Ist der kurze Intervall problematisch?
das weiß ich nicht, könnte aber sein das es nicht so gut ist... Ich meine auch das die CCU das pusht. Das Polling ist nur dafür, wenn Du auf Deiner CCU ein Programm oder Variable änderst/erstellst, dann werden die abgeholt, ich denke dafür ist das Polling. Die Werte werden aber gepusht.
Dein Blockly ist so auch nicht optimal, da Du zwei Mal den gleichen Trigger verwendest, kann das auch zusammengefast werden.
Vorschlag:
Blockly Export
<xml xmlns="http://www.w3.org/1999/xhtml">
<block type="on" id="`}o`BlQri_l6v6s_Z,Z[" x="13" y="13">
<field name="OID">hm-rpc.0.xxx.3.STATE</field>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="controls_if" id="KBY_C*}/6U677We9}47c">
<mutation elseif="1"></mutation>
<value name="IF0">
<block type="logic_operation" id="yqGV6Q:c1Y=3BLLhvHj]" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id=")_:DK=s%?]IO4SBvX7Yq">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="I!385/B5[BJln!*r(}LN">
<field name="ATTR">val</field>
<field name="OID">hm-rpc.0.xxx.STATE</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="JVNr;-n@2Q4C`:DiaT1)">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="time_compare_ex" id="r3!.Fh@%;HQ5lnbIj1h`">
<mutation 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="JO9vbwC5wY~JBRjVyK.g">
<field name="TEXT">09:00</field>
</shadow>
</value>
<value name="END_TIME">
<shadow type="text" id="8Az4Htwr+p^]_9lfx`*X">
<field name="TEXT">21:00</field>
</shadow>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control_ex" id="tuXrNaHcuC8)R/@#/y8H">
<field name="TYPE">false</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="OID">
<shadow type="field_oid" id="mREKuhM)ON/je!9v%dk6">
<field name="oid">alexa2.0.Echo-Devices.Gxxx.Commands.speak</field>
</shadow>
</value>
<value name="VALUE">
<shadow type="logic_boolean" id="|_:5k2p=!*#2%0q3#1}*">
<field name="BOOL">TRUE</field>
</shadow>
<block type="text" id="2iEms$]nM6wWvxF:q3qV">
<field name="TEXT">100; Das ist ein Test.</field>
</block>
</value>
<value name="DELAY_MS">
<shadow type="math_number" id="Sl5k8O]7zd3U7?6TAO:P">
<field name="NUM">0</field>
</shadow>
</value>
</block>
</statement>
<value name="IF1">
<block type="logic_operation" id="_9~=2M5{8]fn9n$yJczo" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="n*[1;|eL$^Psjz$A8ngW">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="t:@]gB*](b{A*y%,x;RA">
<field name="ATTR">val</field>
<field name="OID">hm-rpc.0.xxx.3.STATE</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="Tq8BD9#K1D+?!D,KiIas">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="time_compare_ex" id="KEn;|G=5l!2{({bwlbe1">
<mutation end_time="true" actual_time="true"></mutation>
<field name="USE_ACTUAL_TIME">TRUE</field>
<field name="OPTION">not between</field>
<value name="START_TIME">
<shadow type="text" id="0;C{?O$O8hTKx($M_Hx:">
<field name="TEXT">09:00</field>
</shadow>
</value>
<value name="END_TIME">
<shadow type="text" id="wBNhTGlN),MP6I=DHp|K">
<field name="TEXT">21:00</field>
</shadow>
</value>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="control_ex" id="#.e3Ao``xm8cNqh(4f;j">
<field name="TYPE">false</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="OID">
<shadow type="field_oid" id="CANV3SV7$E1z9TdIop8t">
<field name="oid">alexa2.0.Echo-Devices.Gxxx.Commands.speak</field>
</shadow>
</value>
<value name="VALUE">
<shadow type="logic_boolean" id="|_:5k2p=!*#2%0q3#1}*">
<field name="BOOL">TRUE</field>
</shadow>
<block type="text" id="Earor$yJ3nh.XV~`uNyC">
<field name="TEXT">50; Das ist ein Test.</field>
</block>
</value>
<value name="DELAY_MS">
<shadow type="math_number" id="ph5cFt~j3TM7~)g]hPo*">
<field name="NUM">0</field>
</shadow>
</value>
</block>
</statement>
</block>
</statement>
</block>
</xml>