@Sarah sagte:
Versucht hab ich mit folgendem:
Der BWM muss triggern.
Export
<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable type="timeout" id="timeout">timeout</variable>
</variables>
<block type="comment" id="OSO=R5pTa5dd57(pCHBQ" x="-238" y="-387">
<field name="COMMENT">BWM</field>
<next>
<block type="on_ext" id="J^V:?i(?I[76Y)f51U|I">
<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="]$w0#p=ciU2rOBf2G]?a">
<field name="oid">default</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="%d|($)|c;/b1CQs_?eXp">
<mutation else="1"></mutation>
<value name="IF0">
<block type="on_source" id="?-T@4I@+ZNcSeEc5$$x:">
<field name="ATTR">state.val</field>
</block>
</value>
<statement name="DO0">
<block type="timeouts_cleartimeout" id="G1m!h!r*477zG[FxYi4W">
<field name="NAME">timeout</field>
<next>
<block type="controls_if" id="1?0XbxLFe^.|ZA@WMWP7">
<value name="IF0">
<block type="logic_compare" id="^_!,8bEk@r]*RH~#w`qr">
<field name="OP">LT</field>
<value name="A">
<block type="get_value" id="6,b;Ld,lC2ZZ~)WoP/2.">
<field name="ATTR">val</field>
<field name="OID">deconz.0.Sensors.27.lux</field>
</block>
</value>
<value name="B">
<block type="math_number" id="[KidI)n#+QBW_brL5p*f">
<field name="NUM">200</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="*#Uh!TMj4SYlJw:^6|//">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">deconz.0.Lights.11.on</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="a]k.d=zbPyw49|1T@bN9">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</statement>
<statement name="ELSE">
<block type="timeouts_settimeout" id="i_.N-{0pYsV./^Gbd)9#">
<field name="NAME">timeout</field>
<field name="DELAY">5</field>
<field name="UNIT">min</field>
<statement name="STATEMENT">
<block type="control" id="`?FeP*D:dM,8m}XBd|7U">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">deconz.0.Lights.11.on</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="qZ$IXjQ2NFg-xH!Dv[O+">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
</block>
</statement>
</block>
</next>
</block>
</xml>