@paul53 sagte in Kleine Alarmanlagen Schaltung:
@Aphofis sagte:
Man kann den Datenpunkt Alarmanlage an/aus nicht einschalten.
Antwort:
@Aphofis sagte in Kleine Alarmanlagen Schaltung:
per Datenpunkt wird die Alarmanlage per alexa ein-aus/geschaltet
Der Datenpunkt wird im Script auch nur ausgewertet, nicht geschaltet.
Korrektur
<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable id="~42gns1qvls4T]2Gv/p/">Alarmanlage_an</variable>
<variable type="timeout" id="timeout">timeout</variable>
<variable id="3jwA!ZrM0=W-y3.@me`C">count</variable>
<variable type="interval" id="Intervall">Intervall</variable>
</variables>
<block type="on_ext" id="@(7^^2tnC$!0BEBP3UL)" x="-13" y="-138">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="6"></mutation>
<field name="CONDITION">gt</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="^fLGq+uP=!S4:QPS%;$,">
<field name="oid">Aqua_Control.0.Alarm_Sensoren.fenster_sensor_badezimmer_trigger</field>
</shadow>
</value>
<value name="OID1">
<shadow type="field_oid" id="baVj~1Kg@|*WU2u%#U6)">
<field name="oid">Aqua_Control.0.Alarm_Sensoren.fenster_sensor_buero_trigger</field>
</shadow>
</value>
<value name="OID2">
<shadow type="field_oid" id="ZzsDJ,7:]gw{$F6cVT-l">
<field name="oid">Aqua_Control.0.Alarm_Sensoren.fenster_sensor_kueche_trigger</field>
</shadow>
</value>
<value name="OID3">
<shadow type="field_oid" id="TWY~%/ha|s=b(n3`y[I/">
<field name="oid">Aqua_Control.0.Alarm_Sensoren.fenster_sensor_schlafzimmer_trigger</field>
</shadow>
</value>
<value name="OID4">
<shadow type="field_oid" id="tZ3sL*a$fY{e?Pu~6XaW">
<field name="oid">Aqua_Control.0.Alarm_Sensoren.fenster_sensor_wohnzimmer_trigger</field>
</shadow>
</value>
<value name="OID5">
<shadow type="field_oid" id="%!8oH@`8qQfEC91oI]^s">
<field name="oid">Aqua_Control.0.Alarm_Sensoren.tuer_sensor_wohnzimmer_trigger</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="{DF~LTM?T?V+8E~c(KTZ">
<value name="IF0">
<block type="logic_operation" id="$e^RM+N6?^KR@g|.J=+d" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="variables_get" id="T*#O,/w])n%t4rEP{ezz">
<field name="VAR" id="~42gns1qvls4T]2Gv/p/">Alarmanlage_an</field>
</block>
</value>
<value name="B">
<block type="logic_negate" id="d+maHLr2++G$_q~jV{@t">
<value name="BOOL">
<block type="variables_get" id="K%N^([Tl$@Cx?nVj,xP2">
<field name="VAR" id="timeout" variabletype="timeout">timeout</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="VJhhs/f%2O~Fs(ICzq_=">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">sonoff.0.Aqua_Control.POWER3</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="i{%u[8RwK_kdu=xC*X,8">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="timeouts_settimeout" id="sGM%_KwEeqMkBb^!9Dt[">
<field name="NAME">timeout</field>
<field name="DELAY">10</field>
<field name="UNIT">min</field>
<statement name="STATEMENT">
<block type="control" id="PHNReWGK^!.OE0tf!wMB">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">sonoff.0.Aqua_Control.POWER3</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="%h-p3npZodWronYw6OV(">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
<next>
<block type="variables_set" id="tL_!DX+EtJkijwrSYoCu">
<field name="VAR" id="3jwA!ZrM0=W-y3.@me`C">count</field>
<value name="VALUE">
<block type="math_number" id="#Mb;Cfs*ybJA)vOG)Otg">
<field name="NUM">3</field>
</block>
</value>
<next>
<block type="timeouts_setinterval" id=")?_nfX$XeWfejdtM?{@:">
<field name="NAME">Intervall</field>
<field name="INTERVAL">1</field>
<field name="UNIT">min</field>
<statement name="STATEMENT">
<block type="telegram" id="j?[eYA{1[-k9gF*G%sRm">
<field name="INSTANCE">.0</field>
<field name="LOG"></field>
<field name="SILENT">FALSE</field>
<field name="PARSEMODE">default</field>
<value name="MESSAGE">
<shadow type="text" id="a[#sXffT7Kk;2du0_6ge">
<field name="TEXT">Alarmanlage wurde ausgelöst</field>
</shadow>
</value>
<next>
<block type="control" id="o`TK2BDhCiRG}5p}@`Oc">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">alexa2.0.Echo-Devices.G0913L06031202PA.Commands.speak</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="S4g1HiY^qo3zT/)MHzgO">
<field name="TEXT">Alarmanlage wurde ausgelöst,, die polizei wird alamiert</field>
</block>
</value>
<next>
<block type="math_change" id="k0.8$[`[VJF4V[Qm_H#i">
<field name="VAR" id="3jwA!ZrM0=W-y3.@me`C">count</field>
<value name="DELTA">
<shadow type="math_number" id=";.XND*yB?At(jFB2WLzp">
<field name="NUM">-1</field>
</shadow>
</value>
<next>
<block type="controls_if" id=".bC2{))CNvc1zTSS_UKt">
<value name="IF0">
<block type="logic_compare" id="2rQ]9K`GDqW,+W3I*OmB">
<field name="OP">LTE</field>
<value name="A">
<block type="variables_get" id="Q(.hMoHYB(-.[%V)9Ax#">
<field name="VAR" id="3jwA!ZrM0=W-y3.@me`C">count</field>
</block>
</value>
<value name="B">
<block type="math_number" id="^7iVgvpke5T~|4R4/s6^">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="timeouts_clearinterval" id="{M]%8!f*iqHt(BArC^i@">
<field name="NAME">Intervall</field>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
<block type="on_ext" id="Jq/I$|oPFD[s4t4P1CV#" x="663" y="-137">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="T:hHw8fSF1[LA`Uhzkb8">
<field name="oid">Aqua_Control.0.Alarm_Sensoren.Alarmanlage_an/aus</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="variables_set" id="5l/Q2qMP]By~R+#/YVI(">
<field name="VAR" id="~42gns1qvls4T]2Gv/p/">Alarmanlage_an</field>
<value name="VALUE">
<block type="on_source" id="RZ=Ug=y:QJoR):jl:|/|">
<field name="ATTR">state.val</field>
</block>
</value>
<next>
<block type="controls_if" id="m2Wtk.fEc:o3Inw`^p#b">
<value name="IF0">
<block type="get_value_var" id="B{21%qyo_h}e2bo7LC}#">
<field name="ATTR">val</field>
<value name="OID">
<shadow type="text" id="SQ,`D:hBCAOF_iCa}F),">
<field name="TEXT">sonoff.0.Aqua_Control.POWER3</field>
</shadow>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="OZlRY(Q:9Fr*.~Xto]IG">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">sonoff.0.Aqua_Control.POWER3</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="@Uqg_*kL=f@hs1p!ech/">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
<next>
<block type="timeouts_clearinterval" id="wEMtls$8czoDBv.NRT^1">
<field name="NAME">Intervall</field>
<next>
<block type="timeouts_cleartimeout" id="v5Mf2Bu3uPA0+8NDGfyN">
<field name="NAME">timeout</field>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</xml>
Dank dir !!!