@paul53 Hi Paul,
ich habe deinen Aufbau noch einmal nachgebaut, warum auch immer funktioniert er jetzt auch ohne Fehlermeldung.
Ich habe wieder etwas gelernt. Vielen Dank für dein Hilfe!
[image: 1656942559426-cron-ganz-neu-terrassenrollladen-resized.jpg]
Spoiler
<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable id="Y%pufia=8!##Q0/KdW{5">zeit</variable>
<variable type="cron" id="schaltzeit">schaltzeit</variable>
</variables>
<block type="procedures_defnoreturn" id="Wmf3`4h5g3onUOpRc0fk" x="-537" y="12">
<mutation>
<arg name="zeit" varid="Y%pufia=8!##Q0/KdW{5"></arg>
</mutation>
<field name="NAME">etwas tun</field>
<comment pinned="false" h="80" w="160">Extrahiert aus einem Datenpunkt die Zeit und fügt diese in den cron ein</comment>
<statement name="STACK">
<block type="comment" id="^xO{D@;,:!0$$}hBW0bh">
<field name="COMMENT">erstellt eine Liste aus der Variablen zeit</field>
<next>
<block type="variables_set" id="T;@!m-bR|)E:fD+7on={">
<field name="VAR" id="Y%pufia=8!##Q0/KdW{5">zeit</field>
<value name="VALUE">
<block type="lists_split" id="z{@%Q#.E-t!-$Y?tVFq~">
<mutation mode="SPLIT"></mutation>
<field name="MODE">SPLIT</field>
<value name="INPUT">
<block type="variables_get" id=":oh0wv-(9$qXNIUQ(@HH">
<field name="VAR" id="Y%pufia=8!##Q0/KdW{5">zeit</field>
</block>
</value>
<value name="DELIM">
<shadow type="text" id="Q|wm{FPZ!roAlQloxo|_">
<field name="TEXT">:</field>
</shadow>
<block type="text" id="mKV_]dQ`k]j5BJPbn09$">
<field name="TEXT">:</field>
</block>
</value>
</block>
</value>
<next>
<block type="comment" id="!R^F|:S$^Z*i!B^i##(9">
<field name="COMMENT">Liste wird zum eintragen der Zeit in cron</field>
<next>
<block type="comment" id="KJ$Z;@nekb{)|,jTNtGh">
<field name="COMMENT">ausgewertet</field>
<next>
<block type="schedule_create" id="#uF?4kc0|K;)wRTv8tW8">
<field name="NAME">schaltzeit</field>
<value name="SCHEDULE">
<shadow type="field_cron" id="~J85aJ3%eTvuf?xh*w[.">
<field name="CRON">* * * * *</field>
</shadow>
<block type="cron_builder" id="DUx8HcU[Slc*p=@UXA8A">
<mutation xmlns="http://www.w3.org/1999/xhtml" seconds="false" as_line="false"></mutation>
<field name="LINE">FALSE</field>
<field name="WITH_SECONDS">FALSE</field>
<value name="DOW">
<shadow type="text" id="O$%1Iy.kR4o,)x/jNv:m">
<field name="TEXT">*</field>
</shadow>
</value>
<value name="MONTHS">
<shadow type="text" id=",P?C=uBVBD$r*W0UpQUX">
<field name="TEXT">*</field>
</shadow>
</value>
<value name="DAYS">
<shadow type="text" id="vK(;DJy**!Mh4fxc,0Gu">
<field name="TEXT">*</field>
</shadow>
</value>
<value name="HOURS">
<shadow type="text" id="T{%ldSUl^jdUu4e%6Gm;">
<field name="TEXT">*</field>
</shadow>
<block type="lists_getIndex" id="-#L`(Co4JA|%|-#Z?Fu2">
<mutation statement="false" at="true"></mutation>
<field name="MODE">GET</field>
<field name="WHERE">FROM_START</field>
<value name="VALUE">
<block type="variables_get" id="n2()]?@glZiXRuRl}mR.">
<field name="VAR" id="Y%pufia=8!##Q0/KdW{5">zeit</field>
</block>
</value>
<value name="AT">
<block type="math_number" id="tsM9{Xnh*?{v-_=/Lg|p">
<field name="NUM">1</field>
</block>
</value>
</block>
</value>
<value name="MINUTES">
<shadow type="text" id="D@snQRdOF#|8uFMfmXX{">
<field name="TEXT">*</field>
</shadow>
<block type="lists_getIndex" id="Tj{PEXJdJY)Oc.:$HrCm">
<mutation statement="false" at="true"></mutation>
<field name="MODE">GET</field>
<field name="WHERE">FROM_START</field>
<value name="VALUE">
<block type="variables_get" id=",Ic^L?QVC|9DbmLJ8kWJ">
<field name="VAR" id="Y%pufia=8!##Q0/KdW{5">zeit</field>
</block>
</value>
<value name="AT">
<block type="math_number" id="*r4nWNS8?NY8g_u6,t]c">
<field name="NUM">2</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="STATEMENT">
<block type="comment" id="iZeQXFS]1zc{22q^rW/6">
<field name="COMMENT">Steuert den Terrassenrolladen mit einer Zufallszahl</field>
<next>
<block type="control" id="f]O`0boFjO{7^pOPr)1P">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">alias.0.Rolläden.Terrassentür</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_random_int" id="cT77:#6|)!!H]Qsd|-Z]">
<value name="FROM">
<shadow type="math_number" id="FuUwLi2;W97%)XtACY@m">
<field name="NUM">1</field>
</shadow>
<block type="math_number" id="i$:AYAI%KH?U=gSHhuG]">
<field name="NUM">45</field>
</block>
</value>
<value name="TO">
<shadow type="math_number" id=":6g6!%C2:_G.4fP9BUe*">
<field name="NUM">100</field>
</shadow>
<block type="math_number" id="y$46Zr2LDb~zytskl/p4">
<field name="NUM">52</field>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</statement>
<next>
<block type="comment" id="{8/cm7mhzQ]Ae`Ep%KoM">
<field name="COMMENT">Konsolenausgabe zum überprüfen der geschriebenen</field>
<next>
<block type="comment" id="1gquG0r0S-^n]}c)CRX+">
<field name="COMMENT">Werte</field>
<next>
<block type="debug" id="kU~Cyhy?E$jN1TcB]6Z#">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="t5)r,W9`kc{r7~Dq`fd.">
<field name="TEXT">test</field>
</shadow>
<block type="cron_builder" id="t{(G[a(N:^N-vERm_cKd">
<mutation xmlns="http://www.w3.org/1999/xhtml" seconds="false" as_line="false"></mutation>
<field name="LINE">FALSE</field>
<field name="WITH_SECONDS">FALSE</field>
<value name="DOW">
<shadow type="text" id="Qr1BkSOt,iXgbK3wv6:N">
<field name="TEXT">*</field>
</shadow>
</value>
<value name="MONTHS">
<shadow type="text" id="|P5(,AbZ7NANUxw2Web+">
<field name="TEXT">*</field>
</shadow>
</value>
<value name="DAYS">
<shadow type="text" id="cw?dTzPR7,F|e%U1e*xV">
<field name="TEXT">*</field>
</shadow>
</value>
<value name="HOURS">
<shadow type="text">
<field name="TEXT">*</field>
</shadow>
<block type="lists_getIndex" id="OnqB(hn+OcJTCfL%?W.,">
<mutation statement="false" at="true"></mutation>
<field name="MODE">GET</field>
<field name="WHERE">FROM_START</field>
<value name="VALUE">
<block type="variables_get" id=",:9x|;|U7I;bt:^9*^o3">
<field name="VAR" id="Y%pufia=8!##Q0/KdW{5">zeit</field>
</block>
</value>
<value name="AT">
<block type="math_number" id="|iE(gW6hH1rHg4ZPT9$v">
<field name="NUM">1</field>
</block>
</value>
</block>
</value>
<value name="MINUTES">
<shadow type="text">
<field name="TEXT">*</field>
</shadow>
<block type="lists_getIndex" id="0,=|a583Gfnc(VsDj~?=">
<mutation statement="false" at="true"></mutation>
<field name="MODE">GET</field>
<field name="WHERE">FROM_START</field>
<value name="VALUE">
<block type="variables_get" id="D5YXoI3Ap][b%F-_F~b!">
<field name="VAR" id="Y%pufia=8!##Q0/KdW{5">zeit</field>
</block>
</value>
<value name="AT">
<block type="math_number" id="w(Pf8W;/#b}S-8-m:hp+">
<field name="NUM">2</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
<block type="comment" id="01)$bEQ0.r`P?dQjn8Q5" x="213" y="613">
<field name="COMMENT">Schreibt in die Variable zeit den Wert aus dem datenpunkt</field>
<next>
<block type="procedures_callnoreturn" id="OyxQu1;=WJ#y^7?rPSy.">
<mutation name="etwas tun">
<arg name="zeit"></arg>
</mutation>
<value name="ARG0">
<block type="get_value" id="-*_^uavj{~7Nen2Pao6=">
<field name="ATTR">val</field>
<field name="OID">0_userdata.0.Katzenklappe.Rolladenschaltzeit_aus</field>
</block>
</value>
<next>
<block type="comment" id="j+h.e)M~mwm)[[13yf8B">
<field name="COMMENT">Trigger damit cron beim ändern der</field>
<next>
<block type="comment" id="?P2+]mmv|Daa:iEsuExq">
<field name="COMMENT">Öffnungszeit geändert wird</field>
<next>
<block type="on_ext" id="Y_^k7nFYY7~7%c0Y+200">
<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="qCbD`YRaQyF4dUzy@fi{">
<field name="oid">default</field>
</shadow>
<block type="field_oid" id="n/|9,4Z_699F7)On_yE$">
<field name="oid">0_userdata.0.Katzenklappe.Rolladenschaltzeit_aus</field>
</block>
</value>
<statement name="STATEMENT">
<block type="schedule_clear" id="t=shQM(35qs;VzOpwcqC">
<field name="NAME">schaltzeit</field>
<next>
<block type="procedures_callnoreturn" id="ihLo#7}_O)Q26_(j!70X">
<mutation name="etwas tun">
<arg name="zeit"></arg>
</mutation>
<value name="ARG0">
<block type="on_source" id="bY10~~[p[[vRf~IFCAdO">
<field name="ATTR">state.val</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</xml>