Hallo ich habe es bei mir so gelöst:
aber bitte macht die Codes jeden Tag neu!
Das Panel reagiert auf den gesicherten Code vom Rechner wenn man über den Näherungssensor kommt.
Das ist jetzt nur ein Script wo man aufbauen kann - ich habe die Kombination der täglichen Wechsel der Codes, mit Asterisk über Telefonanruf oder über Telegramm, oder über die Eingabe am Panel. Danach sollte man sich mit Fenstern und Bewegungsmeldern auseinandersetzten. Bearbeitet am 15.02.2026
[image: 1771162988834-bildschirmfoto-2026-02-15-um-14.40.13.png]
Status von einem Datenpunkt auf dem System auslesen (Datenpunkt muss eine Zahl sein) 0 ist die Vorgabe
[image: 1771163066361-bildschirmfoto-2026-02-15-um-14.40.27.png]
Werte aus der Rückmeldung vom Panel auslesen und Status für das Panel ändern.
Hier das Blockly dazu:
<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable id="4+MD)?]1`F^wPO9to%!5">text</variable>
<variable id="KEz)TGueaS/pcFfPD+A_">EPin</variable>
<variable id="wr9sLczO21!x4(ou9%Zy">data</variable>
<variable id="{P}X0fQnyAdLR,lQ2)j!">armmode</variable>
<variable id="0bjf[Xnfk[!D/96tDc8B">code</variable>
</variables>
<block type="create_ex" id="nq[OwAx(tic00gH1Eze=" x="38" y="-87">
<field name="NAME">javascript.0.Alarmanlage.PanelStatus</field>
<field name="TYPE">number</field>
<field name="READABLE">TRUE</field>
<field name="WRITEABLE">TRUE</field>
<value name="VALUE">
<block type="math_number" id="0!M~8=)1}2juqB]1}nGI">
<field name="NUM">0</field>
</block>
</value>
<next>
<block type="on_ext" id="Vcur%!@yJ-U,m?1%CO1}">
<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="o^!1m%^b.cjfzMJuC8|f">
<field name="oid">zigbee.0.680ae2fffee56cdd.occupancy</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id=";JcohRU+2in6hl$gC:m|">
<mutation elseif="2"></mutation>
<value name="IF0">
<block type="logic_multi_or" id=",%(GOc~B*rR/p1w%UG}N">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
<value name="OR0">
<block type="logic_compare" id="yDiooX`h1z3tfm/*2E,m">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="V9A3%iI?IvQ2_nx[V4sV">
<field name="ATTR">val</field>
<field name="OID">javascript.0.Alarmanlage.PanelStatus</field>
</block>
</value>
<value name="B">
<block type="math_number" id="t/=BTeYhxt+p-cWu;M1W">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<value name="OR1">
<block type="logic_compare" id="?A1rA:wf{}?.q!w^8X,2">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="{0OpC1x#$uMV[/U}yz$,">
<field name="ATTR">val</field>
<field name="OID">javascript.0.Alarmanlage.PanelStatus</field>
</block>
</value>
<value name="B">
<block type="math_number" id="^I[c.O9FQWWLeSf.o2W,">
<field name="NUM">4</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="debug" id=";bT/,}4?rtWH6*ox^b,S">
<field name="Severity">info</field>
<value name="TEXT">
<shadow type="text" id="oM9U{jpxSI[g0],-*ECt">
<field name="TEXT">Unscharf</field>
</shadow>
</value>
<next>
<block type="control" id="cl{LNRiou=G+g(/E!Dy$" inline="false">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
<field name="OID">zigbee.0.680ae2fffee56cdd.send_payload</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">1000</field>
<field name="UNIT">ms</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="VALUE">
<block type="text" id="4:(Z]y]@7p*;?],O*b(x">
<field name="TEXT">{ "arm_mode": { "mode": "disarm" } }</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<value name="IF1">
<block type="logic_compare" id="O?__#wFC{h]v52DRc;a+">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="fj/YF?!tyz2uoPmY*]iS">
<field name="ATTR">val</field>
<field name="OID">javascript.0.Alarmanlage.PanelStatus</field>
</block>
</value>
<value name="B">
<block type="math_number" id="~Z;$c#,bFcDBtT#t$E6s">
<field name="NUM">1</field>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="debug" id="DV`T)@;qDO}Vn~##1{=,">
<field name="Severity">info</field>
<value name="TEXT">
<shadow type="text" id="oNWHM{F10^kncmtph0E:">
<field name="TEXT">Scharf innerer Kreis</field>
</shadow>
</value>
<next>
<block type="control" id="7q*N0Zk$M[=Eu[UR:g_Z" inline="false">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
<field name="OID">zigbee.0.680ae2fffee56cdd.send_payload</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">1000</field>
<field name="UNIT">ms</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="VALUE">
<block type="text" id="hQ9lzZ+0:t-oB,NWxyfh">
<field name="TEXT">{ "arm_mode": { "mode": "arm_day_zones" } }</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<value name="IF2">
<block type="logic_compare" id="egMfJ0SuixfB/fp5$d(t">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="|r30^Aaz:P(r?)96bS1[">
<field name="ATTR">val</field>
<field name="OID">javascript.0.Alarmanlage.PanelStatus</field>
</block>
</value>
<value name="B">
<block type="math_number" id="~/e*2JzX%7mawna8fBiO">
<field name="NUM">3</field>
</block>
</value>
</block>
</value>
<statement name="DO2">
<block type="debug" id="6CVZ-[6e%(E%8|Z^!zoB">
<field name="Severity">info</field>
<value name="TEXT">
<shadow type="text" id="hiLhE_sy8FBJi8SB5QiL">
<field name="TEXT">Scharf äußerer Kreis</field>
</shadow>
</value>
<next>
<block type="control" id="gmO!S(Oi_Ta5,EtuCU)P" inline="false">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
<field name="OID">zigbee.0.680ae2fffee56cdd.send_payload</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">1000</field>
<field name="UNIT">ms</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="VALUE">
<block type="text" id=",I^te~kL0R8)]=0%E8}V">
<field name="TEXT">{ "arm_mode": { "mode": "arm_all_zones" } }</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</statement>
<next>
<block type="on_ext" id="@V+)cnbMy4/5;$Y%?Xd1">
<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="lQ,c!_x=Di7o;*P)Wo%;">
<field name="oid">zigbee.0.680ae2fffee56cdd.msg_from_zigbee</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="variables_set" id="h6){.1xfqse$[y|(r`^m">
<field name="VAR" id="4+MD)?]1`F^wPO9to%!5">text</field>
<value name="VALUE">
<block type="convert_json2object" id="nS3iB8w8Av8x8@:Kh+;P">
<value name="VALUE">
<block type="get_value" id="Og$+K,Sl%TMv@1#mMOq:">
<field name="ATTR">val</field>
<field name="OID">zigbee.0.680ae2fffee56cdd.msg_from_zigbee</field>
</block>
</value>
</block>
</value>
<next>
<block type="variables_set" id="iT+5n$U;k7mz#JX.d{Ao">
<field name="VAR" id="KEz)TGueaS/pcFfPD+A_">EPin</field>
<value name="VALUE">
<block type="convert_tonumber" id="q!PN)EJBVPV^G;(h|T#a">
<value name="VALUE">
<block type="get_value" id="m/%[#y-yo1u[u*rh-|+V">
<field name="ATTR">val</field>
<field name="OID">javascript.0.Alarmanlage.PIN</field>
</block>
</value>
</block>
</value>
<next>
<block type="variables_set" id="IwBx%CmNEkW!D7{%zxRH">
<field name="VAR" id="wr9sLczO21!x4(ou9%Zy">data</field>
<value name="VALUE">
<block type="get_attr" id="O_=@?rLKo80Ap0M{~e1z">
<value name="PATH">
<shadow type="text" id="{2-lL/iAulGR$*.2F7)M">
<field name="TEXT">data</field>
</shadow>
</value>
<value name="OBJECT">
<shadow type="get_object" id="q2SUNhaobO7(6w4_T*|K">
<field name="OID">Object ID</field>
</shadow>
<block type="variables_get" id="nYtWi,|n9TB4Qwd:X(Em">
<field name="VAR" id="4+MD)?]1`F^wPO9to%!5">text</field>
</block>
</value>
</block>
</value>
<next>
<block type="variables_set" id="9N2qixyj1h4~?Fp%D#QJ">
<field name="VAR" id="{P}X0fQnyAdLR,lQ2)j!">armmode</field>
<value name="VALUE">
<block type="convert_tonumber" id="S[SU}nwo6Qi!x-{fuE@9">
<value name="VALUE">
<block type="get_attr" id="a.BGDe8X9i}qdp[F6Mk#">
<value name="PATH">
<shadow type="text" id="sf8[?@}[^{AS7UO8He26">
<field name="TEXT">armmode</field>
</shadow>
</value>
<value name="OBJECT">
<shadow type="get_object" id="q2SUNhaobO7(6w4_T*|K">
<field name="OID">Object ID</field>
</shadow>
<block type="variables_get" id=",%,(t#mKyMlWuD/%*YFw">
<field name="VAR" id="wr9sLczO21!x4(ou9%Zy">data</field>
</block>
</value>
</block>
</value>
</block>
</value>
<next>
<block type="variables_set" id="aObf!:SY0QPpM_`o/jTr">
<field name="VAR" id="0bjf[Xnfk[!D/96tDc8B">code</field>
<value name="VALUE">
<block type="convert_tonumber" id="Hd}6BU*tvx?d9TWZ+Dg[">
<value name="VALUE">
<block type="get_attr" id="OSe-6C;K,1g;zg@@6C{Z">
<value name="PATH">
<shadow type="text" id="Jmr4@RNmZK+wR}f@wqWw">
<field name="TEXT">code</field>
</shadow>
</value>
<value name="OBJECT">
<shadow type="get_object" id="q2SUNhaobO7(6w4_T*|K">
<field name="OID">Object ID</field>
</shadow>
<block type="variables_get" id="pt(PU$0f:(HY6v1pF4g^">
<field name="VAR" id="wr9sLczO21!x4(ou9%Zy">data</field>
</block>
</value>
</block>
</value>
</block>
</value>
<next>
<block type="controls_if" id="1q]Ae8fk-;dy4$6oJTU%">
<value name="IF0">
<block type="logic_multi_or" id=";_y?ZO[se;2Ix(+p)NP$">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation>
<value name="OR0">
<block type="logic_compare" id="x5z~QXDIB`1hxO9m+qiO">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="-`W_SA/uZqq+p3(oZ(C.">
<field name="VAR" id="{P}X0fQnyAdLR,lQ2)j!">armmode</field>
</block>
</value>
<value name="B">
<block type="math_number" id="|A:gE,:CkS,IKPi1%E)m">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<value name="OR1">
<block type="logic_compare" id="~oB5E1,ha~,AsOS.;4`E">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="n,zFrvt=a]10+Lw|ql=}">
<field name="VAR" id="{P}X0fQnyAdLR,lQ2)j!">armmode</field>
</block>
</value>
<value name="B">
<block type="math_number" id="dSU{(?`?-V(I|2U@$}3e">
<field name="NUM">1</field>
</block>
</value>
</block>
</value>
<value name="OR2">
<block type="logic_compare" id="a]!l+1nTz|7}DeF--V%o">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="k#pDL`8.jCj{I]ybPP.3">
<field name="VAR" id="{P}X0fQnyAdLR,lQ2)j!">armmode</field>
</block>
</value>
<value name="B">
<block type="math_number" id="*1}}8,`k/W,@Mzz`cyGj">
<field name="NUM">3</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="controls_if" id="@bn+q{GUP2`Y[N+6%Hg#">
<mutation elseif="2"></mutation>
<value name="IF0">
<block type="logic_multi_and" id="{tKeW40LcyL%.3,t_0Rd">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
<value name="AND0">
<block type="logic_compare" id="a0k`+fP#zY,noj;guX[:">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="qoWfqt{DD#1MV^ba1fz1">
<field name="VAR" id="{P}X0fQnyAdLR,lQ2)j!">armmode</field>
</block>
</value>
<value name="B">
<block type="math_number" id="G[IFO_ZPus=!G3fwsTH`">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<value name="AND1">
<block type="logic_compare" id=".e8?N7mv,F2=Bqc6(Q]X">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="]0f`*re!V+Ah9RGopdht">
<field name="VAR" id="KEz)TGueaS/pcFfPD+A_">EPin</field>
</block>
</value>
<value name="B">
<block type="variables_get" id="+0:L=u1:y5;$F47i!d]W">
<field name="VAR" id="0bjf[Xnfk[!D/96tDc8B">code</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="mQ:s9Ds)g@K(1_sItca.">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
<field name="OID">javascript.0.Alarmanlage.PanelStatus</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">200</field>
<field name="UNIT">ms</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="VALUE">
<block type="math_number" id="IIIpKYeo/xg`(OVXSNnq">
<field name="NUM">0</field>
</block>
</value>
</block>
</statement>
<value name="IF1">
<block type="logic_multi_and" id="X-dhM~.*)3U1i2QcN8cN">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
<value name="AND0">
<block type="logic_compare" id="{|;@=wpb]]$%*g/$`jiS">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="]pq@-*a7-K3#7S~8Es^O">
<field name="VAR" id="{P}X0fQnyAdLR,lQ2)j!">armmode</field>
</block>
</value>
<value name="B">
<block type="math_number" id="hL{cL*7P77JttaZP,OAM">
<field name="NUM">1</field>
</block>
</value>
</block>
</value>
<value name="AND1">
<block type="logic_compare" id="HZv$R$cla$/qP2B,ti[K">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="Z^L138~4ptBrVkaD]EuD">
<field name="VAR" id="0bjf[Xnfk[!D/96tDc8B">code</field>
</block>
</value>
<value name="B">
<block type="math_number" id="8zLqPwQu!c2+w4ziEi=7">
<field name="NUM">1111</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="control" id="P6=:/o(8HLdU%l9PH3--">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
<field name="OID">javascript.0.Alarmanlage.PanelStatus</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">200</field>
<field name="UNIT">ms</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="VALUE">
<block type="math_number" id="tSF2w!dY=JZjU+k4yz2;">
<field name="NUM">1</field>
</block>
</value>
</block>
</statement>
<value name="IF2">
<block type="logic_multi_and" id="Qb}JMUbGzHl%=pV0$Tj[">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
<value name="AND0">
<block type="logic_compare" id="6$c7d,%U=[[.dZh57fD.">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="^+Y_00!#0.)d|8J5W0dh">
<field name="VAR" id="{P}X0fQnyAdLR,lQ2)j!">armmode</field>
</block>
</value>
<value name="B">
<block type="math_number" id="KVfj4y!m0FRYci_%rs[A">
<field name="NUM">3</field>
</block>
</value>
</block>
</value>
<value name="AND1">
<block type="logic_compare" id="Adb}F4R4o,HyjvBSb#rg">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="%GY_Fc/tLjszK?~Le?dh">
<field name="VAR" id="0bjf[Xnfk[!D/96tDc8B">code</field>
</block>
</value>
<value name="B">
<block type="math_number" id="]S.r`cMx3C:Kxb_W{Hy4">
<field name="NUM">1111</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO2">
<block type="control" id="*.39;{=EiTP^kvOP0.Z.">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
<field name="OID">javascript.0.Alarmanlage.PanelStatus</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">200</field>
<field name="UNIT">ms</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="VALUE">
<block type="math_number" id="1PIj`R$,at^H6lWAn8(t">
<field name="NUM">3</field>
</block>
</value>
</block>
</statement>
<next>
<block type="debug" id="8s40b:nv-s!fjzg@|~#A">
<field name="Severity">info</field>
<value name="TEXT">
<shadow type="text" id="%+l~ivtP)No;[qAVKt,{">
<field name="TEXT">test</field>
</shadow>
<block type="text_join" id="Mk|{gLI*D)|D)GuCzKd6">
<mutation items="3"></mutation>
<value name="ADD0">
<block type="variables_get" id="B+x`lP/Pg~L{;D)f:d|#">
<field name="VAR" id="0bjf[Xnfk[!D/96tDc8B">code</field>
</block>
</value>
<value name="ADD1">
<block type="text_newline" id="SB0Z@3O*JWkBt9u_k+{g">
<field name="Type">\n</field>
</block>
</value>
<value name="ADD2">
<block type="variables_get" id="W~-{jKI]zJ!WxN|]f[56">
<field name="VAR" id="{P}X0fQnyAdLR,lQ2)j!">armmode</field>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</xml>