Hallo zusammen, nachdem ich einige Vorschläge analysiert habe, konnte ich jetzt auf meine Bedürfnisse das Blockly ans "Laufen" bringen. Es sieht derziet so aus:
TerrassenTuerFinal.png
BlocklyJavascriptTypeScriptRules
Protokoll
Ausgewählte Blöcke exportieren
<xml xmlns="https://developers.google.com/blockly/xml">
<block type="comment" id="~=K~@VWYen;^|zr`[!XD" x="-162" y="-612">
<field name="COMMENT">1,5 Std. nach Sonnenuntergang Rollladen schließen</field>
<next>
<block type="astro" id="WNo!5b}:)]MBft9bAL{)">
<field name="TYPE">sunset</field>
<field name="OFFSET">90</field>
<statement name="STATEMENT">
<block type="controls_if" id="L5}@GbtZ${Q#:7iWZQR:">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_operation" id="hf{[@^33#H.mK`37?4bh" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="aE9}aAbgX`sMom?2uW8C">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="Iv_P3VC{{id0!^}6pz.6">
<field name="ATTR">val</field>
<field name="OID">deconz.0.Sensors.15.open</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="zoD0}3NfkSYpQX`YmGhk">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="_]zp]#coBO6A)3qi;IuS">
<field name="OP">GT</field>
<value name="A">
<block type="get_value" id="0w[,/}AT^GhrPDizT+m#">
<field name="ATTR">val</field>
<field name="OID">shelly.1.SHSW-25#3C6105E53BCD#1.Shutter.Position</field>
</block>
</value>
<value name="B">
<block type="math_number" id="TQehh!XOJU{]S+5H#_Fc">
<field name="NUM">60</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="khi/zPBYQmJeV9,i=7*`">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
<field name="OID">shelly.1.SHSW-25#3C6105E53BCD#1.Shutter.Position</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">180</field>
<field name="UNIT">sec</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="VALUE">
<block type="math_number" id="pXD#veylQzly]-SCRBUM">
<field name="NUM">0</field>
</block>
</value>
</block>
</statement>
<statement name="ELSE">
<block type="control" id="|oYc-gfDF/UuYgbP(3,^">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">shelly.1.SHSW-25#3C6105E53BCD#1.Shutter.Position</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="8*trvUtc~fcBUuaX}[gO">
<field name="NUM">100</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
<next>
<block type="comment" id="FeG^rZp?q`x7^HwIv]`5">
<field name="COMMENT">30 Min.nach Sonnenaufgang Rollladen öffnen</field>
<next>
<block type="astro" id="/6pws5mtVQ3*ss#lf1ZK">
<field name="TYPE">sunrise</field>
<field name="OFFSET">30</field>
<statement name="STATEMENT">
<block type="control" id="Upr5%nUi|J]_k$2:QeSk">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
<field name="OID">shelly.1.SHSW-25#3C6105E53BCD#1.Shutter.Position</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="math_number" id="fV|{.Nb0{Qwn@H#fkzfo">
<field name="NUM">100</field>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</xml>
<xml xmlns="https://developers.google.com/blockly/xml">
<block type="comment" id="~=K~@VWYen;^|zr`[!XD" x="-162" y="-612">
<field name="COMMENT">1,5 Std. nach Sonnenuntergang Rollladen schließen</field>
<next>
<block type="astro" id="WNo!5b}:)]MBft9bAL{)">
<field name="TYPE">sunset</field>
<field name="OFFSET">90</field>
<statement name="STATEMENT">
<block type="controls_if" id="L5}@GbtZ${Q#:7iWZQR:">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_operation" id="hf{[@^33#H.mK`37?4bh" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="aE9}aAbgX`sMom?2uW8C">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="Iv_P3VC{{id0!^}6pz.6">
<field name="ATTR">val</field>
<field name="OID">deconz.0.Sensors.15.open</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="zoD0}3NfkSYpQX`YmGhk">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="_]zp]#coBO6A)3qi;IuS">
<field name="OP">GT</field>
<value name="A">
<block type="get_value" id="0w[,/}AT^GhrPDizT+m#">
<field name="ATTR">val</field>
<field name="OID">shelly.1.SHSW-25#3C6105E53BCD#1.Shutter.Position</field>
</block>
</value>
<value name="B">
<block type="math_number" id="TQehh!XOJU{]S+5H#_Fc">
<field name="NUM">60</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="khi/zPBYQmJeV9,i=7*`">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
<field name="OID">shelly.1.SHSW-25#3C6105E53BCD#1.Shutter.Position</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">180</field>
<field name="UNIT">sec</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="VALUE">
<block type="math_number" id="pXD#veylQzly]-SCRBUM">
<field name="NUM">0</field>
</block>
</value>
</block>
</statement>
<statement name="ELSE">
<block type="control" id="|oYc-gfDF/UuYgbP(3,^">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">shelly.1.SHSW-25#3C6105E53BCD#1.Shutter.Position</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="8*trvUtc~fcBUuaX}[gO">
<field name="NUM">100</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
<next>
<block type="comment" id="FeG^rZp?q`x7^HwIv]`5">
<field name="COMMENT">30 Min.nach Sonnenaufgang Rollladen öffnen</field>
<next>
<block type="astro" id="/6pws5mtVQ3*ss#lf1ZK">
<field name="TYPE">sunrise</field>
<field name="OFFSET">30</field>
<statement name="STATEMENT">
<block type="control" id="Upr5%nUi|J]_k$2:QeSk">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
<field name="OID">shelly.1.SHSW-25#3C6105E53BCD#1.Shutter.Position</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="math_number" id="fV|{.Nb0{Qwn@H#fkzfo">
<field name="NUM">100</field>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</xml>
Es ist jetzt keine Automatik eingebaut, dass das Rollo an der Terrassentuer sofort runterfährt, wenn die Türe geschlossen wird. Das kann ich vor Ort dann noch manuell per Taster erledigen. Das ist aber auch gut so. Aber schon mal Danke für Eure Hilfe