@bigchris
Ich mach das so in Blockly.
30-12-_2021_23-13-51.jpg
Spoiler
<xml xmlns="
https://developers.google.com/blockly/xml">
<variables>
<variable id="vK5H@#I*^M/lcgeE@PRB">gartentor_kontakt</variable>
</variables>
<block type="controls_if" id="t3;@zJrP8;CshBO=leo" x="84" y="719"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="rU:Gudg8L?)6YAOZY5,i"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="2oCy$Pv4O}CUtN}3R^g">
<field name="VAR" id="vK5H@#I*^M/lcgeE@PRB">gartentor_kontakt</field>
</block>
</value>
<value name="B">
<block type="get_value" id="xC=k;KAoSu;JNEteJxEJ">
<field name="ATTR">ts</field>
<field name="OID">zigbee.0.00158d0003122049.contact</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="controls_if" id="c2pi$JJp5_@[rqX13Er#">
<value name="IF0">
<block type="logic_compare" id="y=E?U!qZvcnTQGsWeCBr">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="!GY;5QaQ6bN$9qd1g0E8">
<field name="ATTR">val</field>
<field name="OID">0_userdata.0.alive_check.kontakt.gartentor</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="y5wg5=D=d1sAvo)sK2f"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="telegram" id="7CF?dqO4L~;4.:T|c%">
<field name="INSTANCE"></field>
<field name="LOG"></field>
<field name="SILENT">FALSE</field>
<field name="PARSEMODE">default</field>
<value name="MESSAGE">
<shadow type="text">
<field name="TEXT">Temperatur</field>
</shadow>
<block type="text_join" id="6mr=w-tS^/=cKv,E]?i1">
<mutation items="5"></mutation>
<value name="ADD0">
<block type="text" id="Nqcwf:lWk1e{z;!XDsW"> <field name="TEXT">Der Kontaktsensor</field> </block> </value> <value name="ADD1"> <block type="text_newline" id="TYmsFcSPv9its@eR9XfP"> <field name="Type">\n</field> </block> </value> <value name="ADD2"> <block type="text" id="*Lka:pXH$5R{x%RHGer">
<field name="TEXT">Gartentor</field>
</block>
</value>
<value name="ADD3">
<block type="text_newline" id="b]@FQC)^446MEN2L~wd"> <field name="Type">\n</field> </block> </value> <value name="ADD4"> <block type="text" id="F1.mII:L*|_lnF+CTbRD"> <field name="TEXT">hat keine Verbindung!</field> </block> </value> </block> </value> <next> <block type="control" id="s{s7$)2lE}HTx~R8T$KE"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.alive_check.kontakt.gartentor</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id=":jrO(.y4q?mh)a)Cn(U">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</statement>
<statement name="ELSE">
<block type="variables_set" id="$1A3@m9)fZo-+8Y8Ss.8">
<field name="VAR" id="vK5H@#I^M/lcgeE@PRB">gartentor_kontakt</field>
<value name="VALUE">
<block type="get_value" id="EI{?gF/btN4y{T^H7-+x">
<field name="ATTR">ts</field>
<field name="OID">zigbee.0.00158d0003122049.contact</field>
</block>
</value>
<next>
<block type="control" id="wJhCK|P.!}Gt|m6Xv^^@">
<mutation xmlns="
http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.alive_check.kontakt.gartentor</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="yRm2P{,~`kuT|D:ngP=0">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</xml>