Hallo Leute,
hier ein Script im original aus dem iobroker Forum, ich habe es leicht abgewandelt für eine Meldung im Winter wenn die Eingangstür länger als 2 Minuten offen ist.
Spoiler
<variables>
<variable type="timeout" id="timeout">timeout</variable>
<variable type="timeout" id="timeout1">timeout1</variable>
</variables>
<block type="comment" id=",PAwXU(MWu9YaP?mpw1R" x="88" y="-312">
<field name="COMMENT">Haustürüberwachung Olaf</field>
<next>
<block type="on_ext" id="_.I7^x}W:gfNVERH%oru">
<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="KyaxfRwoxlBnP1yzxyr.">
<field name="oid">innogy-smarthome.0.Flur.Aussentür.IsOpen</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="comment" id="^ZW!dDs!ayF(mU^g.Kw@">
<field name="COMMENT">Schreibe Ereignis ins Logfile</field>
<next>
<block type="debug" id="gQ/s~:_t7wFQyP6aL6|%">
<field name="Severity">log</field>
<value name="TEXT">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="]5X`Az*E2_l,wmhmI`nP">
<field name="TEXT">Haustür Ereignis</field>
</shadow>
<block type="text_join" id="WqxH#iLh5x)iy-Ww(iYr">
<mutation items="5"></mutation>
<value name="ADD0">
<block type="text" id="h3Byu-W,OmKis`6no~,!">
<field name="TEXT">Haustür Ereignis</field>
</block>
</value>
<value name="ADD1">
<block type="text" id="6;ov)%;-4LK?FV{fsPG,">
<field name="TEXT">Tür offen(ja,nein)</field>
</block>
</value>
<value name="ADD2">
<block type="text" id="V42yb;U6s%qtr)~{w!;!">
<field name="TEXT"> </field>
</block>
</value>
<value name="ADD3">
<block type="get_value" id=",:HTO,4YV^*Fd7j)mm)5">
<field name="ATTR">val</field>
<field name="OID">innogy-smarthome.0.Flur.Aussentür.IsOpen</field>
</block>
</value>
<value name="ADD4">
<block type="text" id="kf5Qu(Df+a|/Q(G];y2h">
<field name="TEXT"> </field>
</block>
</value>
</block>
</value>
<next>
<block type="timeouts_settimeout" id="]_[p,0o(JVCTIfN8zG,a">
<field name="NAME">timeout</field>
<field name="DELAY">1</field>
<field name="UNIT">sec</field>
<statement name="STATEMENT">
<block type="comment" id="T1../1B8U:3qd7ii0ZIC">
<field name="COMMENT">Sekündchen warten bevor wir Alexa bitten</field>
<next>
<block type="controls_if" id="T}-VK5L]*(,eud_kC-lC">
<value name="IF0">
<block type="logic_compare" id="w|5CU#4U*rwk7hj/WA_0">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="K1^mO!!*K]YbsovdXbq7">
<field name="ATTR">val</field>
<field name="OID">innogy-smarthome.0.Flur.Aussentür.IsOpen</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="N4EDgT)@=xraAp/7M@+c">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="comment" id="]|7Z*Qnp=J@R`%[/xU4g">
<field name="COMMENT">Hat tatsächlich jemand die Tür geöffnet</field>
<next>
<block type="control" id="o,CTG:4MmLyPcU1P=#+j">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">alexa2.0.Echo-Devices.90F00818732500U1.Commands.speak</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="0:mGj?p:ZXOcwA1]%MO{">
<field name="TEXT">Die Eingangstür wurde geöffnet</field>
</block>
</value>
<next>
<block type="comment" id="QaTH1B+Fi2~NqWU]*cjy">
<field name="COMMENT">Ab jetzt läuft der Countdown</field>
<next>
<block type="timeouts_settimeout" id="31c3ZN^-R6U+FgX(Cq@:">
<field name="NAME">timeout1</field>
<field name="DELAY">60</field>
<field name="UNIT">sec</field>
<statement name="STATEMENT">
<block type="comment" id="!{m:}#V0GOdX(=rlW%o(">
<field name="COMMENT">Noch offen?</field>
<next>
<block type="controls_if" id="ht]83B}0x*};)sP%)|XC">
<value name="IF0">
<block type="logic_compare" id="@Sq)v2|3=~ZHi4RsGa0w">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="d{d^AvTT}P}c/ByE+ATK">
<field name="ATTR">val</field>
<field name="OID">innogy-smarthome.0.Flur.Aussentür.IsOpen</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="ax#E_p;Xy[W*LvM35~h)">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="comment" id="h`dNr*Y~6*BXF#G(e`=a">
<field name="COMMENT">Das kann nur Dani sein ...</field>
<next>
<block type="control" id="36lA]lF0gHlh20:0[!_W">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">alexa2.0.Echo-Devices.90F00818732500U1.Commands.speak</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id=".olCy~,G+v1STW2uP#lk">
<field name="TEXT">Die Eingangstür bitte schließen</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
<next>
<block type="controls_if" id="3rh5^pq`RD/-%g)2T/Eq">
<value name="IF0">
<block type="logic_compare" id="_elmUW@%Gh_;kle,:x#O">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="k1N0Z/%u|4=O]d%V*L#:">
<field name="ATTR">val</field>
<field name="OID">innogy-smarthome.0.Flur.Aussentür.IsOpen</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="xoOK,1VM_7^jC2~_+}sb">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="comment" id="KC04Oga_PW6]9`mXggug">
<field name="COMMENT">Gott sei dank Türe wieder zu</field>
<next>
<block type="control" id="l1tUS?N6l_?C4~Yv*74B">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">alexa2.0.Echo-Devices.90F00818732500U1.Commands.speak</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="uFp4c}:u7QCu.pnE@B@H">
<field name="TEXT">Die Eingangstür wurde geschlossen</field>
</block>
</value>
<next>
<block type="timeouts_cleartimeout" id="4S-RE(SDZX`?b[tFHY%H">
<field name="NAME">timeout1</field>
</block>
</next>
</block>
</next>
</block>
</statement>
<next>
<block type="comment" id="o7m.BW]b{9_B(ak`nZ]Y">
<field name="COMMENT">Tür zu, Olaf zufrieden</field>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</xml>```
[/details]