Da ich immer weiter an der Alarmanlage gebastelt habe, konnten einige Änderungen und Verbesserungen vorgenommen werden, welche das im einzelnen sind, verrate ich kurz:
Automatisches ein/aus schalten durch Anwesenheitserkennung
Mitteilung des Status via Alexa
Anwesenheitserkennung für die Visualisierung
Ich empfehle zuvor die Rev. 1 anzuschauen, da ich dort einiges ausführlich behandelt habe
Hier die Blockly´s
Grundscript für die Anwesenheitserkennung
<xml xmlns="http://www.w3.org/1999/xhtml">
<block type="on_ext" id="[Kf+~E]`WU^B|jj/b_-+" x="-612" y="-162">
<mutation items="3"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="Z9?_mgxHczl;`*w?,cOE">
<field name="oid">ping.0.debianIOBroker.Michael-Mobile.alive</field>
</shadow>
</value>
<value name="OID1">
<shadow type="field_oid" id="[my{vYf)A(Lw8e{;~CVi">
<field name="oid">radar.0.Micha´s_Mobile.here</field>
</shadow>
</value>
<value name="OID2">
<shadow type="field_oid" id="djv-u4ek6WzmH/ofd~J|">
<field name="oid">tr-064.0.devices.Mackedanz-Michael-Mobile-S9.active</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="0.)bcIfB?@i~a`;FHOE1">
<mutation elseif="1"></mutation>
<value name="IF0">
<block type="logic_operation" id="1)dG5LjDN9hu(B/=w.PS">
<field name="OP">OR</field>
<value name="A">
<block type="logic_compare" id="vP!8vyDx2Xj,!-!V~~D4">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="Wgaf_q(=/aH!g,](VcfP">
<field name="ATTR">val</field>
<field name="OID">ping.0.debianIOBroker.Michael-Mobile.alive</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="M@J]ZnS+^;8)9!waO{km">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_operation" id="MEoucfOXVyz*6;nZRncI">
<field name="OP">OR</field>
<value name="A">
<block type="logic_compare" id="N7~f{x995i3K*8U.7l`X">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="W..WygT=Q5_2pW0;lgiL">
<field name="ATTR">val</field>
<field name="OID">radar.0.Micha´s_Mobile.here</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="f7u[w!z9Oo_#aV]fCI,f">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="B.@vx_n%|RTcX9@174Go">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="Lh]rYTAF{|:h!jb*+PJ=">
<field name="ATTR">val</field>
<field name="OID">tr-064.0.devices.Mackedanz-Michael-Mobile-S9.active</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="H.crh1WgxEc9`VbvX_pB">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id=",%L+mbbI0-6pgQ(s,^~4">
<mutation delay_input="false"></mutation>
<field name="OID">MyVariable.0.Anwesenheit.Micha-Mobile</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="-d-(C@l-5@g`Kw,y^u?x">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
<value name="IF1">
<block type="logic_operation" id="[;4t%xCQt0Ju}*X6Kwyn">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="9Hj6][NueI|*in^^2~Fu">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="P]}(_O3xcvo.Ga|b/uNZ">
<field name="ATTR">val</field>
<field name="OID">ping.0.debianIOBroker.Michael-Mobile.alive</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="i0~cu;`?q?y#p?iKlKUd">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_operation" id="87?QF.#H%+G2Pz!23PjM">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="m9ITZIOPE3tmkYHtSc!a">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="e-%Q:p[_=R0su5MpE`7a">
<field name="ATTR">val</field>
<field name="OID">radar.0.Micha´s_Mobile.here</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="k;3uvL2:[bHz[!~HMV|4">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="c;fFypX;~`BjY6VoUH[D">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="JcSDz/1[yh?u5P@P_yy*">
<field name="ATTR">val</field>
<field name="OID">tr-064.0.devices.Mackedanz-Michael-Mobile-S9.active</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="FGFwyBC+U_s|kk,cs3v=">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="control" id="dDv4]Di,7}E`Ey8,sgB[">
<mutation delay_input="false"></mutation>
<field name="OID">MyVariable.0.Anwesenheit.Micha-Mobile</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="p!/3;-v4mj]U?NMLj6GU">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
</block>
</xml>
Alarmanlage nach Anwesenheit ein/aus Schalten
<xml xmlns="http://www.w3.org/1999/xhtml">
<block type="on_ext" id="%Sh)qd[;lkk^OVg?hH}6" x="-188" y="-263">
<mutation items="4"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="6@t.-#2rNVOb4U,uq9M]">
<field name="oid">MyVariable.0.Anwesenheit.Micha-Mobile</field>
</shadow>
</value>
<value name="OID1">
<shadow type="field_oid" id="YCV%?~^hoaBLzwscdL^,">
<field name="oid">MyVariable.0.Anwesenheit.Gabi-Mobile</field>
</shadow>
</value>
<value name="OID2">
<shadow type="field_oid" id="lae579.*Kz/feE`R+sdv">
<field name="oid">MyVariable.0.Anwesenheit.Stefan-Mobile</field>
</shadow>
</value>
<value name="OID3">
<shadow type="field_oid" id="o|I9lHkfqmI{lW_@vy`1">
<field name="oid">MyVariable.0.Anwesenheit.Vanessa-Mobile</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="_T`ivmv6m6Ml=|-t-:q!">
<mutation elseif="1"></mutation>
<value name="IF0">
<block type="logic_operation" id="7RrD2(1gsHUo,EE3u.7^">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="_B-|OfTC:)TgiQ@Z3wqY">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="_eB}8tqc*zU*^sg|nt;]">
<field name="ATTR">val</field>
<field name="OID">MyVariable.0.Anwesenheit.Micha-Mobile</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="dyGRd`:%U72Ajc7N*n{4">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_operation" id="Qs!9TRbl^;2eg6!K9?.8">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="d[Yi_HH*TO(y-[/E]R^q">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="d,VcK`1bmVpCwO32@LvL">
<field name="ATTR">val</field>
<field name="OID">MyVariable.0.Anwesenheit.Gabi-Mobile</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="{dFkL#CC`]51s_V;qW_2">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_operation" id="p=vR2oaOwht5Dqu~GP82">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="rpsS]#0t/;-VRX)A]J*%">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id=".{{9|{y0!jY/6c|Umwo+">
<field name="ATTR">val</field>
<field name="OID">MyVariable.0.Anwesenheit.Stefan-Mobile</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="._LuHhy##7:BoPESfywm">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="=_EiQjz+Eg%Ml4bwTS/F">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="t9C8r{zUZQn2u:ET(MQn">
<field name="ATTR">val</field>
<field name="OID">MyVariable.0.Anwesenheit.Vanessa-Mobile</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="P.%bY^*jV_4;AEaLkGjz">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="5,v}OZ5Jw!~Dw~M:Xjx3">
<mutation delay_input="false"></mutation>
<field name="OID">MyVariable.0.Alarmanlage.Alarmanlage</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="3x}*]:Y(@5-6i[/Rbv/.">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
<value name="IF1">
<block type="logic_operation" id="Jg],/,{y#OP:g.(aUPX;">
<field name="OP">OR</field>
<value name="A">
<block type="logic_compare" id="y%%EiWO0-IIe9f5V1en%">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="v::F#WocVKM4Urs|Z^AD">
<field name="ATTR">val</field>
<field name="OID">MyVariable.0.Anwesenheit.Micha-Mobile</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="2kTp%UY:@R3wL[?)@@9c">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_operation" id=":lm!rL9eDwNOuv3p4:-t">
<field name="OP">OR</field>
<value name="A">
<block type="logic_compare" id="9](45Kc8W0w2ik.Co1qc">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="5~UMT!)v3n^mcYvNDq_(">
<field name="ATTR">val</field>
<field name="OID">MyVariable.0.Anwesenheit.Gabi-Mobile</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="(NwVgB-I*?%i=wTn#`rn">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_operation" id="M3HR+:}0HMBHcje6kpqI">
<field name="OP">OR</field>
<value name="A">
<block type="logic_compare" id="SB2AqRH[s[sJo)[[#Sf.">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="kcyUhs+TigXs(?Bd5N|;">
<field name="ATTR">val</field>
<field name="OID">MyVariable.0.Anwesenheit.Stefan-Mobile</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="Wtaf/Cu@CysgYeV@z{~l">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="P5BNDWp:K3;i8.W-A!9)">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="ot4CG%Ficg]IA8_S3)!!">
<field name="ATTR">val</field>
<field name="OID">MyVariable.0.Anwesenheit.Vanessa-Mobile</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="C8{/BVna|3DzkjOV.8Fc">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="control" id="P.im|=?)tz1`9qidu(fc">
<mutation delay_input="false"></mutation>
<field name="OID">MyVariable.0.Alarmanlage.Alarmanlage</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="L%v)9J?C~Iy;iUl5}cbt">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
</block>
</xml>
Alarmanlage ist aktiv/inaktiv
<xml xmlns="http://www.w3.org/1999/xhtml">
<block type="on" id=";Uj{NGp{W:d?|laUgjOZ" x="-237" y="-262">
<field name="OID">MyVariable.0.Alarmanlage.Alarmanlage</field>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="controls_if" id="3wcQXa(KZx3Oe7#;?g2z">
<mutation elseif="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="ZL_DPU+tyE`xSGWbW}Q1">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id=".vAJZZ}-?9[e3mA2zm+H">
<field name="ATTR">val</field>
<field name="OID">MyVariable.0.Alarmanlage.Alarmanlage</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id=":gy6+B;GqniDO/h)8)P{">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="~Vpo4tJjz]sky/Vjl[uF">
<mutation delay_input="false"></mutation>
<field name="OID">alexa2.0.Echo-Devices.G090LF1182231JS1.Commands.speak</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="q!VbV#70eFFAdN@!v#^7">
<field name="TEXT">Alarmanlage wurde eingeschaltet</field>
</block>
</value>
<next>
<block type="timeouts_settimeout" id="N{sCeLZT*QycH1hhX2_S">
<field name="NAME">timeout</field>
<field name="DELAY">1000</field>
<field name="UNIT">ms</field>
<statement name="STATEMENT">
<block type="control" id="P`AarH.2ntzd=~][tAq1">
<mutation delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7811dcfd7da9.dimmer</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="iC447alE|)}}#4PHB_z,">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="control" id="Y(plh@KG#w[usfPDic0~">
<mutation delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7811dcfd7da9.rgb</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="LS+q|D6OQ_GKV1,~1MG:">
<field name="TEXT">#ff0000</field>
</block>
</value>
<next>
<block type="control" id="nNvQ))=6)8if9CGzuHPb">
<mutation delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7811dcfd7da9.illumination</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="Dmk}8_yBibLMbHd#+{n2">
<field name="TEXT">90</field>
</block>
</value>
<next>
<block type="control" id="T%dCC3g(uzaLg~|-bEKr">
<mutation delay_input="true"></mutation>
<field name="OID">mihome.0.devices.gateway_7811dcfd7da9.dimmer</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">5</field>
<field name="UNIT">sec</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="Ji]TKsQgI_rbcMh5`1;K">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
<next>
<block type="control" id="@:1sW^6`FI;=2~7^/(Ic">
<mutation delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7811dcfd7da9.mid</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="convert_tonumber" id="UM5s92-vR(Z},9v/A*s~">
<value name="VALUE">
<block type="text" id="a4v)@27YvH;`:3*3/.F4">
<field name="TEXT">11</field>
</block>
</value>
</block>
</value>
<next>
<block type="control" id="-%~IpTjr)=:(^4HBsvW+">
<mutation delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7811dcfd7da9.volume</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="convert_tonumber" id="mNalWVTOS8)w,zk.gL@3">
<value name="VALUE">
<block type="text" id="jI+u^P{FWnw)hiKiqcT2">
<field name="TEXT">1</field>
</block>
</value>
</block>
</value>
<next>
<block type="control" id="dA5a=2AN.-NVW58UpDh^">
<mutation delay_input="true"></mutation>
<field name="OID">MyVariable.0.Alarmanlage.Alarmanlage_an</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">2</field>
<field name="UNIT">min</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id=",%c!+b^W*ebfy1^NX.TS">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
<value name="IF1">
<block type="logic_compare" id="-?~NHL[L_kCX!^V*VG;c">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="S5c=%RuCHR5fS:NGdN#%">
<field name="ATTR">val</field>
<field name="OID">MyVariable.0.Alarmanlage.Alarmanlage</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="ejH7.08`6:gq]rhrhHE%">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="control" id="RlR!Arem}tY`C|pC`MmL">
<mutation delay_input="false"></mutation>
<field name="OID">alexa2.0.Echo-Devices.G090LF1182231JS1.Commands.speak</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="_7[/2QEdP;%D)jV,a^9E">
<field name="TEXT">Alarmanlage wurde ausgeschaltet</field>
</block>
</value>
<next>
<block type="timeouts_settimeout" id="NNvo#iL~_S~Y]K(~1SPI">
<field name="NAME">timeout2</field>
<field name="DELAY">1000</field>
<field name="UNIT">ms</field>
<statement name="STATEMENT">
<block type="control" id="/wosgpsrWEvX^2HoN|uR">
<mutation delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7811dcfd7da9.dimmer</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="rY2j**Jx)k~M1o^?%k7K">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="control" id="4iYwS}k0bvIUT:j?)GLB">
<mutation delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7811dcfd7da9.rgb</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="hhl-X[cr9a[^nn.#/oh0">
<field name="TEXT">#00ff00</field>
</block>
</value>
<next>
<block type="control" id="*2:-~`9qI16,ietUqOpG">
<mutation delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7811dcfd7da9.illumination</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="zc.MQRw`^??nl4SBv1ae">
<field name="TEXT">90</field>
</block>
</value>
<next>
<block type="control" id="6SKngy-{BUJ8nx?(~jKm">
<mutation delay_input="true"></mutation>
<field name="OID">mihome.0.devices.gateway_7811dcfd7da9.dimmer</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">5</field>
<field name="UNIT">sec</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="w9T2YCTrc6S;%Q,BFDjV">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
<next>
<block type="control" id="OT)mkhR?lQtQ/8F%))9X">
<mutation delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7811dcfd7da9.mid</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="convert_tonumber" id="Gm6|8(%V*RQd-:-%RcS{">
<value name="VALUE">
<block type="text" id="KL.|-q9W|qLA8N2xAhRK">
<field name="TEXT">11</field>
</block>
</value>
</block>
</value>
<next>
<block type="control" id="+xd2MhE8lOKPAiIl9:i@">
<mutation delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7811dcfd7da9.volume</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="convert_tonumber" id="@~3C`SB}zyd(wfl{KVtn">
<value name="VALUE">
<block type="text" id="Ss7}QR@l1v~p,;Uabv[.">
<field name="TEXT">1</field>
</block>
</value>
</block>
</value>
<next>
<block type="control" id="T2)nc?a!v{XUx9]gk/ig">
<mutation delay_input="false"></mutation>
<field name="OID">MyVariable.0.Alarmanlage.Alarmanlage_an</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id=";,G,-i|e}~p(ENoyvfeG">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
</xml>
Einbinden der Sensoren
<xml xmlns="http://www.w3.org/1999/xhtml">
<block type="on_ext" id="k{lmFnBOufnYh7F;FPzu" x="-162" y="-162">
<mutation items="4"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id=";9YQvS~5!N}:XdP8:59d">
<field name="oid">mihome.0.devices.magnet_158d000237c704.state</field>
</shadow>
</value>
<value name="OID1">
<shadow type="field_oid" id="xU{!@uh`t3@]eu(6Uh]|">
<field name="oid">mihome.0.devices.magnet_158d00024b2c15.state</field>
</shadow>
</value>
<value name="OID2">
<shadow type="field_oid" id="p@b(}fV+#k3zvMFG4Ioy">
<field name="oid">mihome.0.devices.magnet_158d0002329edb.state</field>
</shadow>
</value>
<value name="OID3">
<shadow type="field_oid" id="5QDmwibVa(BqW%ZoANDc">
<field name="oid">mihome.0.devices.switch_158d00024668d1.double</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="go)i#|+|2iCMKk.kkRg=">
<value name="IF0">
<block type="logic_compare" id="x:m9@WqcD(9;uGB86+?l">
<field name="OP">EQ</field>
<value name="A">
<block type="logic_boolean" id="gOVke5|N2|_e~x^8=|Qp">
<field name="BOOL">TRUE</field>
</block>
</value>
<value name="B">
<block type="get_value" id="OI?)8@fxU=/ml~OzTi:!">
<field name="ATTR">val</field>
<field name="OID">MyVariable.0.Alarmanlage.Alarmanlage_an</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="controls_if" id=".kO|v2fO:1A_EH](-*9.">
<value name="IF0">
<block type="logic_compare" id="Vnp0`+DuMfRrfXwu4DdV">
<field name="OP">EQ</field>
<value name="A">
<block type="logic_boolean" id="d.oD2/kra]11U/h!w=I6">
<field name="BOOL">TRUE</field>
</block>
</value>
<value name="B">
<block type="logic_operation" id=".vDy?d#M?!a}K]Nb3@;H">
<field name="OP">OR</field>
<value name="A">
<block type="get_value" id="~XL0|WCq@VC)h:*DMYjs">
<field name="ATTR">val</field>
<field name="OID">mihome.0.devices.magnet_158d000237c704.state</field>
</block>
</value>
<value name="B">
<block type="logic_operation" id="CTOO%~|]n.M7q#@4DZq[">
<field name="OP">OR</field>
<value name="A">
<block type="get_value" id="nbt;fV:s%kdh}^elOBq~">
<field name="ATTR">val</field>
<field name="OID">mihome.0.devices.magnet_158d00024b2c15.state</field>
</block>
</value>
<value name="B">
<block type="logic_operation" id="d(QaQEW7GOlZTTEM{Y3f">
<field name="OP">OR</field>
<value name="A">
<block type="get_value" id="BR2.}HG_%op=rZ`SU!}3">
<field name="ATTR">val</field>
<field name="OID">mihome.0.devices.magnet_158d0002329edb.state</field>
</block>
</value>
<value name="B">
<block type="get_value" id="D;e]FRm(yktX5iFLa;@c">
<field name="ATTR">val</field>
<field name="OID">mihome.0.devices.switch_158d00024668d1.double</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="XqB=#sH_3Ny`l}wpu4n9">
<mutation delay_input="false"></mutation>
<field name="OID">MyVariable.0.Alarmanlage.alarm_ausgelöst</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="lBYQ=~nC9m%{}fHAono3">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
</block>
</statement>
</block>
</xml>
Die Alarmanlage löst aus
<xml xmlns="http://www.w3.org/1999/xhtml">
<block type="on" id="ff_;m?5I`z9,re[wg*t." x="-87" y="-137">
<field name="OID">MyVariable.0.Alarmanlage.alarm_ausgelöst</field>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="controls_if" id="kEn,k+1k~GKI+`I8+V`z">
<value name="IF0">
<block type="logic_compare" id="93l._`l*w2T?j[9HD:|+">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id=",-d(/@bIYtK]x}iVzm;q">
<field name="ATTR">val</field>
<field name="OID">MyVariable.0.Alarmanlage.alarm_ausgelöst</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id=",GcK4c|;aUuZXY)kbRvs">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="nxxteISq7Yd1!0lOdX)h">
<mutation delay_input="false"></mutation>
<field name="OID">alexa2.0.Echo-Devices.G090LF1182231JS1.Commands.speak</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="nQDMgFnW!DEaqceZ6{Ak">
<field name="TEXT">Achtung! Alarmanlage wurde ausgelöst. Achtung!!!</field>
</block>
</value>
</block>
</statement>
<next>
<block type="control" id="UI7#[UnA,jV;jhZXAef;">
<mutation delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7811dcfd7da9.on</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="n8ojd9B-UT@+=7j]0Vv?">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="control" id="Sa5O=:NLSZvGt)QPf(KB">
<mutation delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7811dcfd7da9.rgb</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="EQXxc:.|9x.8@,kLImmH">
<field name="TEXT">#ff8400</field>
</block>
</value>
<next>
<block type="control" id="+wBuf7:p3Rk-slh0]k%y">
<mutation delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7811dcfd7da9.dimmer</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="+G,p`set1L@3L}XYW3!,">
<field name="TEXT">100</field>
</block>
</value>
<next>
<block type="timeouts_settimeout" id="R]Y)~WjV^zz`MMAO*?Sj">
<field name="NAME">Auslösen</field>
<field name="DELAY">30</field>
<field name="UNIT">sec</field>
<statement name="STATEMENT">
<block type="controls_if" id=":X?w_**_y[8ooL:34f=P">
<value name="IF0">
<block type="logic_compare" id="pP)IUf+4.x`5yA:jL-sD">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="9f#[G?W=A_CXQ4WFgd#M">
<field name="ATTR">val</field>
<field name="OID">MyVariable.0.Alarmanlage.alarm_ausgelöst</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="YNw{-}8|gBx|r6?q^St5">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="controls_if" id="`_0osBIv.YQ[sySUmtz0">
<value name="IF0">
<block type="logic_compare" id="TR!t%9B5vFw}QUgy(sx^">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="]7)h;hV~7WA]uHL=3`cN">
<field name="ATTR">val</field>
<field name="OID">MyVariable.0.Alarmanlage.alarm_ausgelöst</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="`%W,ZYlRt0=!:`De`Fe.">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="@:1sW^6`FI;=2~7^/(Ic">
<mutation delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7811dcfd7da9.mid</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="convert_tonumber" id="UM5s92-vR(Z},9v/A*s~">
<value name="VALUE">
<block type="text" id="a4v)@27YvH;`:3*3/.F4">
<field name="TEXT">2</field>
</block>
</value>
</block>
</value>
<next>
<block type="control" id="-%~IpTjr)=:(^4HBsvW+">
<mutation delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7811dcfd7da9.volume</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="convert_tonumber" id="mNalWVTOS8)w,zk.gL@3">
<value name="VALUE">
<block type="text" id="jI+u^P{FWnw)hiKiqcT2">
<field name="TEXT">100</field>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</statement>
<next>
<block type="timeouts_setinterval" id="_Gq5hzMR^i-EO|C!-^le">
<field name="NAME">Blinklicht</field>
<field name="INTERVAL">1000</field>
<field name="UNIT">ms</field>
<statement name="STATEMENT">
<block type="control" id="P`AarH.2ntzd=~][tAq1">
<mutation delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7811dcfd7da9.on</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="iC447alE|)}}#4PHB_z,">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="control" id="U6D6{CnUe0^O(X_+`GBS">
<mutation delay_input="true"></mutation>
<field name="OID">mihome.0.devices.gateway_7811dcfd7da9.on</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">500</field>
<field name="UNIT">ms</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="@-Qs!CM!2uVAKCQN*Uj~">
<field name="BOOL">FALSE</field>
</block>
</value>
<next>
<block type="control" id="Y(plh@KG#w[usfPDic0~">
<mutation delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7811dcfd7da9.rgb</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="LS+q|D6OQ_GKV1,~1MG:">
<field name="TEXT">#ff0000</field>
</block>
</value>
<next>
<block type="control" id="nNvQ))=6)8if9CGzuHPb">
<mutation delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7811dcfd7da9.dimmer</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="Dmk}8_yBibLMbHd#+{n2">
<field name="TEXT">100</field>
</block>
</value>
<next>
<block type="control" id="XsLFZ6}yl~t=|_h?TYq|">
<mutation delay_input="false"></mutation>
<field name="OID">sonoff.0.Vitrine Esszimmer.POWER</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="L8FP+]DK@#aSWE.uD^er">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="control" id="cq,rn^]!:DmfJM|.D4by">
<mutation delay_input="false"></mutation>
<field name="OID">sonoff.0.Ecklampe.POWER</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="wf`_|A0CX~yU)uA,nhUy">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="control" id="~YO-|aW1TnT1[v6/b!Gd">
<mutation delay_input="false"></mutation>
<field name="OID">sonoff.0.Sideboard.POWER</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="Rfhxc;4JyKZVf[P9Wf,E">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</statement>
<next>
<block type="timeouts_setinterval" id="|EFQDab]0vJer@MQ6M:i">
<field name="NAME">Wiederholung</field>
<field name="INTERVAL">7</field>
<field name="UNIT">sec</field>
<statement name="STATEMENT">
<block type="control" id="lgfGvn-nMkAdQt|z}_NP">
<mutation delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7811dcfd7da9.mid</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="convert_tonumber" id="iLR+wBV7B(MLplom]=RD">
<value name="VALUE">
<block type="text" id="DXvX[rPwRSBA)YwRJit5">
<field name="TEXT">2</field>
</block>
</value>
</block>
</value>
<next>
<block type="control" id="cjE@|rmFY0c}3!dbkYyc">
<mutation delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7811dcfd7da9.volume</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="convert_tonumber" id="!p{f?l(mAJe{{Bwm7m|n">
<value name="VALUE">
<block type="text" id="-nCL!kgP:~E)!zSkf3KG">
<field name="TEXT">100</field>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</xml>
Xiaomi 3 Wege Taster für aus
Blockly Code Kopieren