@paul53
Hallo Paul, ich muß leider doch nochmal stören. Ich hatte das Skript so erstellt.

<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable id="bgX:Wxxn%S[O^9f,wDcC">computer</variable>
<variable id="Ik?`;_^3$2,9W6VQSQ~3">manuell</variable>
</variables>
<block type="procedures_defnoreturn" id="li@;?QwWuFbHVeb0uMoX" x="-813" y="-562">
<field name="NAME">wandlampe</field>
<comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
<statement name="STACK">
<block type="controls_if" id="vQFC4G#mtRRlX.VWnqrI">
<value name="IF0">
<block type="logic_operation" id="Yy~I1gw@#1s|eb*^QU]s" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="logic_negate" id="Hjw[|jxFGlaK+tB[Xzic">
<value name="BOOL">
<block type="variables_get" id="}CE3k{LCn40h(vIrYV=x">
<field name="VAR" id="Ik?`;_^3$2,9W6VQSQ~3">manuell</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="time_compare_ex" id="ey-,zU=|GQ~-lu2{d?05">
<mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
<field name="USE_ACTUAL_TIME">TRUE</field>
<field name="OPTION">not between</field>
<value name="START_TIME">
<shadow type="text" id="CW1)M1p;$JsM:Cj5%}.p">
<field name="TEXT">12:00</field>
</shadow>
<block type="time_astro" id="Q?9@xZ*n9t/b-X?z:FKX">
<field name="TYPE">sunrise</field>
<field name="OFFSET">0</field>
</block>
</value>
<value name="END_TIME">
<shadow type="text" id="Lrv[#^v+EiYT/RyF-38]">
<field name="TEXT">18:00</field>
</shadow>
<block type="time_astro" id="?M!.Ij2q~S:14)nF3-B5">
<field name="TYPE">sunset</field>
<field name="OFFSET">-60</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="j{iYD3~l*zpr@KNEtMr[">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">alias.0.Licht.Arbeitszimmer.Wandlampe_Arbeitszimmer</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="variables_get" id="Zeh(oy7gF`2K[w|gV%fs">
<field name="VAR" id="bgX:Wxxn%S[O^9f,wDcC">computer</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
</block>
<block type="variables_set" id="hP;B^;KNge^,;;UQNkIO" x="-813" y="-387">
<field name="VAR" id="bgX:Wxxn%S[O^9f,wDcC">computer</field>
<value name="VALUE">
<block type="get_value" id="lFgj?Q~fl8@x6QAW0Bp6">
<field name="ATTR">val</field>
<field name="OID">alias.0.Steckdosen.Arbeitszimmer.Computer_1_Arbeitszimmer</field>
</block>
</value>
<next>
<block type="procedures_callnoreturn" id="a:8axNpu=t@6Dgm|z$eI">
<mutation name="wandlampe"></mutation>
<next>
<block type="astro" id=";As25$]xOo`YtG[bxc^R">
<field name="TYPE">sunset</field>
<field name="OFFSET">0</field>
<statement name="STATEMENT">
<block type="procedures_callnoreturn" id="Zedx!5eNEb4Piu^Zg*%;">
<mutation name="wandlampe"></mutation>
</block>
</statement>
<next>
<block type="on_ext" id="m^ctya_*xjD8-KQUH,61">
<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="_T7NQNq|6_KL]8~#AmPL">
<field name="oid">alias.0.Steckdosen.Arbeitszimmer.Computer_1_Arbeitszimmer</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="variables_set" id="0s5m=A-i`}%1M~;LoAg;">
<field name="VAR" id="bgX:Wxxn%S[O^9f,wDcC">computer</field>
<value name="VALUE">
<block type="on_source" id="7[bt@dS+Kz?Lxlo-dOGP">
<field name="ATTR">state.val</field>
</block>
</value>
<next>
<block type="procedures_callnoreturn" id="vGo?PRoGS~,Qg8tE26#e">
<mutation name="wandlampe"></mutation>
</block>
</next>
</block>
</statement>
<next>
<block type="on_ext" id="Cc5FGM]lHd;8*-vEl(87">
<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="J82_w$aysD(,n#TfjKi$">
<field name="oid">alias.0.Licht.Arbeitszimmer.Wandlampe_Arbeitszimmer</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="variables_set" id="H.X]pVt-[.SG*mSo2%;G">
<field name="VAR" id="Ik?`;_^3$2,9W6VQSQ~3">manuell</field>
<value name="VALUE">
<block type="logic_operation" id="5X;VDBZ5|G0)6[t;_Ill" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="on_source" id=";,DoXcaNX$3MumBC`(t%">
<field name="ATTR">state.val</field>
</block>
</value>
<value name="B">
<block type="logic_compare" id="g,4XFQ{VIRAB~u$kAFec">
<field name="OP">NEQ</field>
<value name="A">
<block type="on_source" id="avL^M)Ct_sI32]4a1]X.">
<field name="ATTR">state.from</field>
</block>
</value>
<value name="B">
<block type="text" id="g%jGCj+)5XnCikl8P}Ni">
<field name="TEXT">system.adapter.javascript.0</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</xml>
Leider funktioniert es nicht, dass 60 Minuten vor Sonnenuntergang,bei eingeschaltetem Computer, die Wandlampe angeschaltet wird.
Kannst du mit weiterhelfen wie ich das hin bekomme?