Moin
Brauche eure Hilfe, komme nicht weiter.
Ich haben drei Datenpunkte unter 0_userdata angelegt.
Alle als String.
Nun hatte ich hier im Forum ein ähnliches Script gefunden, nur weiß
ich nicht mehr wo.
Habe es versucht meinen Bedürfnissen anzupassen aber ohne Erfolg.
Brauch eure Hilfe.
Spoiler
<block xmlns="https://developers.google.com/blockly/xml" type="procedures_defnoreturn" id="t@W.$~v82LwO^J|eT5`|" x="-1137" y="-487">
<field name="NAME">PumpeSchalten | T1</field>
<comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
<statement name="STACK">
<block type="variables_set" id="vV,+{:[RYt5)}_~h+AIi">
<field name="VAR" id="E_~c0^TB22pIrJ;q.WDl">Timer1</field>
<value name="VALUE">
<block type="lists_split" id="^YO;i`5LEfI^DoghMk?C">
<mutation mode="SPLIT"></mutation>
<field name="MODE">SPLIT</field>
<value name="INPUT">
<block type="get_value" id="}[qxX2aoN?sGoV=b.BT6">
<field name="ATTR">val</field>
<field name="OID">0_userdata.0.Garten.Gartenpumpe.Timer1_ein</field>
</block>
</value>
<value name="DELIM">
<shadow type="text" id=",)1N6SFx]a3+=A9Sn;m/">
<field name="TEXT">:</field>
</shadow>
</value>
</block>
</value>
<next>
<block type="schedule_create" id="p,P8nF;Bl61xkwTsglM*">
<field name="NAME">Zeitplan1</field>
<value name="SCHEDULE">
<shadow type="field_cron" id="E6A{~$h3J*HDBKcniXPV">
<field name="CRON">* * * * *</field>
</shadow>
<block type="cron_builder" id="9?ian2@%vy8n=W@6}gbK">
<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="0K1%9{er4u975,xl[AYe">
<field name="TEXT">1-7</field>
</shadow>
</value>
<value name="MONTHS">
<shadow type="text" id="b+7%{HR6#Wo7`g5,uLFL">
<field name="TEXT">*</field>
</shadow>
</value>
<value name="DAYS">
<shadow type="text" id="?hjei^{M4H5`1Bl*f/,a">
<field name="TEXT">*</field>
</shadow>
</value>
<value name="HOURS">
<shadow type="text" id="|C9nW_M$qPIiy|${+oZ=">
<field name="TEXT">*</field>
</shadow>
<block type="lists_getIndex" id="9*/FQ^BU6S(HPru98;22">
<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="Id?4y]W[BCPme^~W^@{R">
<field name="VAR" id="E_~c0^TB22pIrJ;q.WDl">Timer1</field>
</block>
</value>
<value name="AT">
<block type="math_number" id="vBEl[_=!j)FJ6,IC}#f}">
<field name="NUM">1</field>
</block>
</value>
</block>
</value>
<value name="MINUTES">
<shadow type="text" id="PD?E$Zuyal6r.GXU3Mpe">
<field name="TEXT">*</field>
</shadow>
<block type="lists_getIndex" id="qB):{^TPsn`S}]bIVr}R">
<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=";eO6GDwCERER?3%PF88P">
<field name="VAR" id="E_~c0^TB22pIrJ;q.WDl">Timer1</field>
</block>
</value>
<value name="AT">
<block type="math_number" id="sE;C.2Go.Ws:{QL@k+Sx">
<field name="NUM">2</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="STATEMENT">
<block type="control" id="($~j+)wp[?Q6r7m]g0^s">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">hm-rpc.0.0001DD89973D1D.3.STATE</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="jAJ0I-5`:3F-89$~.J^R">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
Spoiler
<block xmlns="https://developers.google.com/blockly/xml" type="procedures_callnoreturn" id="0?,x0$eWddV%[eFGt[mZ" x="-688" y="-413">
<mutation name="PumpeSchalten | T1"></mutation>
<next>
<block type="controls_if" id="|}?*tca_MdfL!HTF{o[`">
<value name="IF0">
<block type="logic_compare" id="7juhw2HN]`n$4:Ok=K*,">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="4,Bq#0M2h{Cb`{xCm+fc">
<field name="ATTR">val</field>
<field name="OID">0_userdata.0.Garten.Gartenpumpe.Timer1_OffAuto</field>
</block>
</value>
<value name="B">
<block type="text" id="P}vgAniS7p#XnqRRfGbW">
<field name="TEXT">auto</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="schedule_clear" id="52[iF:mGFm[~9K%Z=2|7">
<field name="NAME">Zeitplan1</field>
<next>
<block type="procedures_callnoreturn" id="[$#ZP!B:Ob.HrF2[P=?W">
<mutation name="PumpeSchalten | T1"></mutation>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
Vielen Dank im Vorraus.