Weiter zum Inhalt
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Hell
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dunkel
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. [gelöst]Startzeit puls Offset für Heizung

NEWS

  • Neuer ioBroker-Blog online: Monatsrückblick März/April 2026
    BluefoxB
    Bluefox
    8
    1
    459

  • Verwendung von KI bitte immer deutlich kennzeichnen
    HomoranH
    Homoran
    10
    1
    380

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    972

[gelöst]Startzeit puls Offset für Heizung

Geplant Angeheftet Gesperrt Verschoben Blockly
6 Beiträge 2 Kommentatoren 559 Aufrufe 1 Beobachtet
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • T Offline
    T Offline
    TT-Tom
    schrieb am zuletzt editiert von TT-Tom
    #1

    Hallo,

    mit meinem Blockly möchte ich mein Thermostat im Bad steuern, dazu lese ich die JSON aus dem iCal-Adapter aus. Das funktioniert auch soweit. Wie kann ich den Offset (wird in Minuten angegeben) dazu rechnen, damit der Zeitplan zu Richtgen Zeit den Datenpunkt setzt.

    für Verbesserungen bin ich immer offen, es ist mein erstes Projekt

    Hier mein aktuelles Blockly

    <xml xmlns="https://developers.google.com/blockly/xml">
      <variables>
        <variable id="KCN$MPYJlxuGzS.7Ja@P">heute</variable>
        <variable id="^0s1Y6_rW~Pl4?!U2Kbw">Termin_Liste</variable>
        <variable id="1RiW^|D=/gzaQIH4QWoI">i</variable>
        <variable id="r)R7ElzIwsQzAExJ39Rc">Datum</variable>
        <variable id="2BQZ5yirmbeTJ+f|Mc+{">Startzeit</variable>
        <variable id="?38yQpVW(CZ^t1Av97-l">Event</variable>
        <variable type="cron" id="schedule1">schedule1</variable>
      </variables>
      <block type="controls_if" id="40QGKCgY,mv9DD1EU!%-" x="113" y="38">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="logic_compare" id="gKZ!}[mmD,1`aeB!+Nt$">
            <field name="OP">GT</field>
            <value name="A">
              <block type="get_value" id="y^7ebUe.(BP=0~{n#$-a">
                <field name="ATTR">val</field>
                <field name="OID">ical.0.data.count</field>
              </block>
            </value>
            <value name="B">
              <block type="math_number" id="q.7:vKYjC2mbjeT5]]d#">
                <field name="NUM">0</field>
              </block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="variables_set" id="DBSZh^XhK8rMT%B~MAZb">
            <field name="VAR" id="KCN$MPYJlxuGzS.7Ja@P">heute</field>
            <value name="VALUE">
              <block type="time_get" id="Y4Jh?%5wY6Ls15Xvt%K-">
                <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                <field name="OPTION">DD.MM.</field>
              </block>
            </value>
            <next>
              <block type="variables_set" id="Acw%oMJ[bIKQwKyXqBrw">
                <field name="VAR" id="^0s1Y6_rW~Pl4?!U2Kbw">Termin_Liste</field>
                <value name="VALUE">
                  <block type="get_value" id="|l:6tjWFgm]=|Qt[.(`N">
                    <field name="ATTR">val</field>
                    <field name="OID">ical.0.data.table</field>
                  </block>
                </value>
                <next>
                  <block type="controls_forEach" id=",GwHQwju#p028ktGhDv3">
                    <field name="VAR" id="1RiW^|D=/gzaQIH4QWoI">i</field>
                    <value name="LIST">
                      <block type="variables_get" id="4R26Gc#Py2}M6Al#lBR/">
                        <field name="VAR" id="^0s1Y6_rW~Pl4?!U2Kbw">Termin_Liste</field>
                      </block>
                    </value>
                    <statement name="DO">
                      <block type="variables_set" id="/IlG1yY7beu69W4)c{E$">
                        <field name="VAR" id="r)R7ElzIwsQzAExJ39Rc">Datum</field>
                        <value name="VALUE">
                          <block type="convert_from_date" id="ar`;pDtDYtzBjza/Vu4)">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                            <field name="OPTION">DD.MM.</field>
                            <value name="VALUE">
                              <block type="get_attr" id="l#%m?=.VX;9#hI{dF{K7">
                                <value name="PATH">
                                  <shadow type="text" id="K`sKHj?YAUgfafgQAe+*">
                                    <field name="TEXT">_date</field>
                                  </shadow>
                                </value>
                                <value name="OBJECT">
                                  <block type="variables_get" id="6};G_)z@J]ktwPjI~Mr[">
                                    <field name="VAR" id="1RiW^|D=/gzaQIH4QWoI">i</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="/uW1q%G#+f:#6YpUY8zy">
                            <field name="VAR" id="2BQZ5yirmbeTJ+f|Mc+{">Startzeit</field>
                            <value name="VALUE">
                              <block type="convert_from_date" id="A-qUldk`DmXC_7QeA9q1">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                <field name="OPTION">hh:mm</field>
                                <value name="VALUE">
                                  <block type="get_attr" id="f=Ut/}QzOD}t4c3rL?]y">
                                    <value name="PATH">
                                      <shadow type="text" id="*dj.y7s/)}uR;VAUU%KY">
                                        <field name="TEXT">_date</field>
                                      </shadow>
                                    </value>
                                    <value name="OBJECT">
                                      <block type="variables_get" id="$gav6,l%Lh4p21!lWR%g">
                                        <field name="VAR" id="1RiW^|D=/gzaQIH4QWoI">i</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <next>
                              <block type="variables_set" id="q.~0We8?Sf4p^*70;QsE">
                                <field name="VAR" id="?38yQpVW(CZ^t1Av97-l">Event</field>
                                <value name="VALUE">
                                  <block type="get_attr" id="7vM~|?@QiU8SfVz}nI+P">
                                    <value name="PATH">
                                      <shadow type="text" id="s|Pz7JZrkOt-FtL8TcRl">
                                        <field name="TEXT">event</field>
                                      </shadow>
                                    </value>
                                    <value name="OBJECT">
                                      <block type="variables_get" id=",CkhsbO`4F;0KAH+/|4J">
                                        <field name="VAR" id="1RiW^|D=/gzaQIH4QWoI">i</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <next>
                                  <block type="controls_if" id="0C]E]6|F[2..|ud?v]x2">
                                    <mutation else="1"></mutation>
                                    <value name="IF0">
                                      <block type="logic_operation" id="1.a!eNscq[iL7]FBa.jU" inline="false">
                                        <field name="OP">AND</field>
                                        <value name="A">
                                          <block type="logic_compare" id="sQUGGkw#VXvOV6n#j[2T">
                                            <field name="OP">EQ</field>
                                            <value name="A">
                                              <block type="variables_get" id="Px81ppDWslIIex)jaBx1">
                                                <field name="VAR" id="r)R7ElzIwsQzAExJ39Rc">Datum</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="variables_get" id="IGi.Z}mEo#}kMk!@3KSD">
                                                <field name="VAR" id="KCN$MPYJlxuGzS.7Ja@P">heute</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="logic_compare" id="~1os|Qnz~VD6CEcniu@P">
                                            <field name="OP">EQ</field>
                                            <value name="A">
                                              <block type="text" id="|CsE+k(ub}*rWUJ}R;e1">
                                                <field name="TEXT">Frühdienst</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="variables_get" id="qOXrT?Ejb@WI*^`MP;g(">
                                                <field name="VAR" id="?38yQpVW(CZ^t1Av97-l">Event</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="debug" id="IEx^URgA^@hlo:8OmFqv">
                                        <field name="Severity">log</field>
                                        <value name="TEXT">
                                          <shadow type="text" id="@c12UE$8b9}/Z]?fLM^u">
                                            <field name="TEXT">test</field>
                                          </shadow>
                                          <block type="text_join" id="!c(YESJphEf]V4g%^]hU">
                                            <mutation items="5"></mutation>
                                            <value name="ADD0">
                                              <block type="variables_get" id="#O|.soxY}9QcXa)Ui`qo">
                                                <field name="VAR" id="2BQZ5yirmbeTJ+f|Mc+{">Startzeit</field>
                                              </block>
                                            </value>
                                            <value name="ADD1">
                                              <block type="text" id="]^TtyYzK:~b=esl.N1d`">
                                                <field name="TEXT"> </field>
                                              </block>
                                            </value>
                                            <value name="ADD2">
                                              <block type="variables_get" id="hJ:nZaXyw}=yep#7d#Z(">
                                                <field name="VAR" id="r)R7ElzIwsQzAExJ39Rc">Datum</field>
                                              </block>
                                            </value>
                                            <value name="ADD3">
                                              <block type="text" id="6]6=6_m~lkE^pWL{~?wo">
                                                <field name="TEXT"> </field>
                                              </block>
                                            </value>
                                            <value name="ADD4">
                                              <block type="variables_get" id="K1SqyOW~l)D7~C@./caR">
                                                <field name="VAR" id="?38yQpVW(CZ^t1Av97-l">Event</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="schedule_create" id="Gs!;25A-:r0mNNx06*bl">
                                            <field name="NAME">schedule1</field>
                                            <value name="SCHEDULE">
                                              <shadow type="field_cron" id="3n`:~9J0Pzh1=$5}[6G.">
                                                <field name="CRON">* * * * *</field>
                                              </shadow>
                                              <block type="cron_builder" id=",sK)%BE-3w[FRQAPLBYd">
                                                <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="QAq20GaTDVwix;R9fLkl">
                                                    <field name="TEXT">*</field>
                                                  </shadow>
                                                </value>
                                                <value name="MONTHS">
                                                  <shadow type="text" id="{hMOABJt:`Z~9c@ZnItX">
                                                    <field name="TEXT">*</field>
                                                  </shadow>
                                                </value>
                                                <value name="DAYS">
                                                  <shadow type="text" id=";obxGZmn[:{^omP~~ic7">
                                                    <field name="TEXT">*</field>
                                                  </shadow>
                                                </value>
                                                <value name="HOURS">
                                                  <shadow type="text" id="a,vj~8K;?;W074b1{tq7">
                                                    <field name="TEXT">*</field>
                                                  </shadow>
                                                  <block type="convert_from_date" id="L[!}f}7b5(8WQF/7X_gW">
                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                    <field name="OPTION">h</field>
                                                    <value name="VALUE">
                                                      <block type="variables_get" id="4N/iINQR3Bd*61/:%iHe">
                                                        <field name="VAR" id="2BQZ5yirmbeTJ+f|Mc+{">Startzeit</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <value name="MINUTES">
                                                  <shadow type="text" id="NU)xx6Bp=F3vNpb:2;k1">
                                                    <field name="TEXT">*</field>
                                                  </shadow>
                                                  <block type="convert_from_date" id="b%Z(-|m(%xxeF^:BJQtv">
                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                    <field name="OPTION">m</field>
                                                    <value name="VALUE">
                                                      <block type="variables_get" id="K})mMJg).2xWyp[C|62j">
                                                        <field name="VAR" id="2BQZ5yirmbeTJ+f|Mc+{">Startzeit</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <statement name="STATEMENT">
                                              <block type="control" id="3$BLCu6)d}FjIeGq(J=m">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">0_userdata.0.Kalender.Frühdienst</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="math_number" id="]6k5zEB`un)xer1~0_O_">
                                                    <field name="NUM">1</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </statement>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                    <statement name="ELSE">
                                      <block type="debug" id="jvkp~*=siiXGnG(.,$*4">
                                        <field name="Severity">log</field>
                                        <value name="TEXT">
                                          <shadow type="text" id=":U:b^eVkl%w:d:7OeGOB">
                                            <field name="TEXT">heute kein Frühdienst</field>
                                          </shadow>
                                        </value>
                                        <next>
                                          <block type="control" id="qsd{K%04-SceoV(Hrq`v">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">0_userdata.0.Kalender.Frühdienst</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="math_number" id="xR=6Cr!{EB#o}vS.54s!">
                                                <field name="NUM">0</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="schedule_clear" id="1MfuyoBh5J~PJLJXdFG3">
                                                <field name="NAME">schedule1</field>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="debug" id="YXEE*d8N6pr28SF0Pi`K">
            <field name="Severity">log</field>
            <value name="TEXT">
              <shadow type="text" id="y16cCDdrc$wRf?_.v8{y">
                <field name="TEXT">heute keine Termine</field>
              </shadow>
            </value>
          </block>
        </statement>
      </block>
    </xml>
    

    Bildschirmfoto 2022-03-24 um 18.12.21.png

    Gruß Tom

    Gruß Tom
    https://github.com/tt-tom17
    Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

    NSPanel Script Wiki
    https://github.com/joBr99/nspanel-lovelace-ui/wiki

    NSPanel Adapter Wiki
    https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

    paul53P 1 Antwort Letzte Antwort
    0
    • T TT-Tom

      Hallo,

      mit meinem Blockly möchte ich mein Thermostat im Bad steuern, dazu lese ich die JSON aus dem iCal-Adapter aus. Das funktioniert auch soweit. Wie kann ich den Offset (wird in Minuten angegeben) dazu rechnen, damit der Zeitplan zu Richtgen Zeit den Datenpunkt setzt.

      für Verbesserungen bin ich immer offen, es ist mein erstes Projekt

      Hier mein aktuelles Blockly

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable id="KCN$MPYJlxuGzS.7Ja@P">heute</variable>
          <variable id="^0s1Y6_rW~Pl4?!U2Kbw">Termin_Liste</variable>
          <variable id="1RiW^|D=/gzaQIH4QWoI">i</variable>
          <variable id="r)R7ElzIwsQzAExJ39Rc">Datum</variable>
          <variable id="2BQZ5yirmbeTJ+f|Mc+{">Startzeit</variable>
          <variable id="?38yQpVW(CZ^t1Av97-l">Event</variable>
          <variable type="cron" id="schedule1">schedule1</variable>
        </variables>
        <block type="controls_if" id="40QGKCgY,mv9DD1EU!%-" x="113" y="38">
          <mutation else="1"></mutation>
          <value name="IF0">
            <block type="logic_compare" id="gKZ!}[mmD,1`aeB!+Nt$">
              <field name="OP">GT</field>
              <value name="A">
                <block type="get_value" id="y^7ebUe.(BP=0~{n#$-a">
                  <field name="ATTR">val</field>
                  <field name="OID">ical.0.data.count</field>
                </block>
              </value>
              <value name="B">
                <block type="math_number" id="q.7:vKYjC2mbjeT5]]d#">
                  <field name="NUM">0</field>
                </block>
              </value>
            </block>
          </value>
          <statement name="DO0">
            <block type="variables_set" id="DBSZh^XhK8rMT%B~MAZb">
              <field name="VAR" id="KCN$MPYJlxuGzS.7Ja@P">heute</field>
              <value name="VALUE">
                <block type="time_get" id="Y4Jh?%5wY6Ls15Xvt%K-">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                  <field name="OPTION">DD.MM.</field>
                </block>
              </value>
              <next>
                <block type="variables_set" id="Acw%oMJ[bIKQwKyXqBrw">
                  <field name="VAR" id="^0s1Y6_rW~Pl4?!U2Kbw">Termin_Liste</field>
                  <value name="VALUE">
                    <block type="get_value" id="|l:6tjWFgm]=|Qt[.(`N">
                      <field name="ATTR">val</field>
                      <field name="OID">ical.0.data.table</field>
                    </block>
                  </value>
                  <next>
                    <block type="controls_forEach" id=",GwHQwju#p028ktGhDv3">
                      <field name="VAR" id="1RiW^|D=/gzaQIH4QWoI">i</field>
                      <value name="LIST">
                        <block type="variables_get" id="4R26Gc#Py2}M6Al#lBR/">
                          <field name="VAR" id="^0s1Y6_rW~Pl4?!U2Kbw">Termin_Liste</field>
                        </block>
                      </value>
                      <statement name="DO">
                        <block type="variables_set" id="/IlG1yY7beu69W4)c{E$">
                          <field name="VAR" id="r)R7ElzIwsQzAExJ39Rc">Datum</field>
                          <value name="VALUE">
                            <block type="convert_from_date" id="ar`;pDtDYtzBjza/Vu4)">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                              <field name="OPTION">DD.MM.</field>
                              <value name="VALUE">
                                <block type="get_attr" id="l#%m?=.VX;9#hI{dF{K7">
                                  <value name="PATH">
                                    <shadow type="text" id="K`sKHj?YAUgfafgQAe+*">
                                      <field name="TEXT">_date</field>
                                    </shadow>
                                  </value>
                                  <value name="OBJECT">
                                    <block type="variables_get" id="6};G_)z@J]ktwPjI~Mr[">
                                      <field name="VAR" id="1RiW^|D=/gzaQIH4QWoI">i</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </value>
                          <next>
                            <block type="variables_set" id="/uW1q%G#+f:#6YpUY8zy">
                              <field name="VAR" id="2BQZ5yirmbeTJ+f|Mc+{">Startzeit</field>
                              <value name="VALUE">
                                <block type="convert_from_date" id="A-qUldk`DmXC_7QeA9q1">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                  <field name="OPTION">hh:mm</field>
                                  <value name="VALUE">
                                    <block type="get_attr" id="f=Ut/}QzOD}t4c3rL?]y">
                                      <value name="PATH">
                                        <shadow type="text" id="*dj.y7s/)}uR;VAUU%KY">
                                          <field name="TEXT">_date</field>
                                        </shadow>
                                      </value>
                                      <value name="OBJECT">
                                        <block type="variables_get" id="$gav6,l%Lh4p21!lWR%g">
                                          <field name="VAR" id="1RiW^|D=/gzaQIH4QWoI">i</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <next>
                                <block type="variables_set" id="q.~0We8?Sf4p^*70;QsE">
                                  <field name="VAR" id="?38yQpVW(CZ^t1Av97-l">Event</field>
                                  <value name="VALUE">
                                    <block type="get_attr" id="7vM~|?@QiU8SfVz}nI+P">
                                      <value name="PATH">
                                        <shadow type="text" id="s|Pz7JZrkOt-FtL8TcRl">
                                          <field name="TEXT">event</field>
                                        </shadow>
                                      </value>
                                      <value name="OBJECT">
                                        <block type="variables_get" id=",CkhsbO`4F;0KAH+/|4J">
                                          <field name="VAR" id="1RiW^|D=/gzaQIH4QWoI">i</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="controls_if" id="0C]E]6|F[2..|ud?v]x2">
                                      <mutation else="1"></mutation>
                                      <value name="IF0">
                                        <block type="logic_operation" id="1.a!eNscq[iL7]FBa.jU" inline="false">
                                          <field name="OP">AND</field>
                                          <value name="A">
                                            <block type="logic_compare" id="sQUGGkw#VXvOV6n#j[2T">
                                              <field name="OP">EQ</field>
                                              <value name="A">
                                                <block type="variables_get" id="Px81ppDWslIIex)jaBx1">
                                                  <field name="VAR" id="r)R7ElzIwsQzAExJ39Rc">Datum</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="variables_get" id="IGi.Z}mEo#}kMk!@3KSD">
                                                  <field name="VAR" id="KCN$MPYJlxuGzS.7Ja@P">heute</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="logic_compare" id="~1os|Qnz~VD6CEcniu@P">
                                              <field name="OP">EQ</field>
                                              <value name="A">
                                                <block type="text" id="|CsE+k(ub}*rWUJ}R;e1">
                                                  <field name="TEXT">Frühdienst</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="variables_get" id="qOXrT?Ejb@WI*^`MP;g(">
                                                  <field name="VAR" id="?38yQpVW(CZ^t1Av97-l">Event</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <statement name="DO0">
                                        <block type="debug" id="IEx^URgA^@hlo:8OmFqv">
                                          <field name="Severity">log</field>
                                          <value name="TEXT">
                                            <shadow type="text" id="@c12UE$8b9}/Z]?fLM^u">
                                              <field name="TEXT">test</field>
                                            </shadow>
                                            <block type="text_join" id="!c(YESJphEf]V4g%^]hU">
                                              <mutation items="5"></mutation>
                                              <value name="ADD0">
                                                <block type="variables_get" id="#O|.soxY}9QcXa)Ui`qo">
                                                  <field name="VAR" id="2BQZ5yirmbeTJ+f|Mc+{">Startzeit</field>
                                                </block>
                                              </value>
                                              <value name="ADD1">
                                                <block type="text" id="]^TtyYzK:~b=esl.N1d`">
                                                  <field name="TEXT"> </field>
                                                </block>
                                              </value>
                                              <value name="ADD2">
                                                <block type="variables_get" id="hJ:nZaXyw}=yep#7d#Z(">
                                                  <field name="VAR" id="r)R7ElzIwsQzAExJ39Rc">Datum</field>
                                                </block>
                                              </value>
                                              <value name="ADD3">
                                                <block type="text" id="6]6=6_m~lkE^pWL{~?wo">
                                                  <field name="TEXT"> </field>
                                                </block>
                                              </value>
                                              <value name="ADD4">
                                                <block type="variables_get" id="K1SqyOW~l)D7~C@./caR">
                                                  <field name="VAR" id="?38yQpVW(CZ^t1Av97-l">Event</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="schedule_create" id="Gs!;25A-:r0mNNx06*bl">
                                              <field name="NAME">schedule1</field>
                                              <value name="SCHEDULE">
                                                <shadow type="field_cron" id="3n`:~9J0Pzh1=$5}[6G.">
                                                  <field name="CRON">* * * * *</field>
                                                </shadow>
                                                <block type="cron_builder" id=",sK)%BE-3w[FRQAPLBYd">
                                                  <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="QAq20GaTDVwix;R9fLkl">
                                                      <field name="TEXT">*</field>
                                                    </shadow>
                                                  </value>
                                                  <value name="MONTHS">
                                                    <shadow type="text" id="{hMOABJt:`Z~9c@ZnItX">
                                                      <field name="TEXT">*</field>
                                                    </shadow>
                                                  </value>
                                                  <value name="DAYS">
                                                    <shadow type="text" id=";obxGZmn[:{^omP~~ic7">
                                                      <field name="TEXT">*</field>
                                                    </shadow>
                                                  </value>
                                                  <value name="HOURS">
                                                    <shadow type="text" id="a,vj~8K;?;W074b1{tq7">
                                                      <field name="TEXT">*</field>
                                                    </shadow>
                                                    <block type="convert_from_date" id="L[!}f}7b5(8WQF/7X_gW">
                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                      <field name="OPTION">h</field>
                                                      <value name="VALUE">
                                                        <block type="variables_get" id="4N/iINQR3Bd*61/:%iHe">
                                                          <field name="VAR" id="2BQZ5yirmbeTJ+f|Mc+{">Startzeit</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <value name="MINUTES">
                                                    <shadow type="text" id="NU)xx6Bp=F3vNpb:2;k1">
                                                      <field name="TEXT">*</field>
                                                    </shadow>
                                                    <block type="convert_from_date" id="b%Z(-|m(%xxeF^:BJQtv">
                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                      <field name="OPTION">m</field>
                                                      <value name="VALUE">
                                                        <block type="variables_get" id="K})mMJg).2xWyp[C|62j">
                                                          <field name="VAR" id="2BQZ5yirmbeTJ+f|Mc+{">Startzeit</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <statement name="STATEMENT">
                                                <block type="control" id="3$BLCu6)d}FjIeGq(J=m">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">0_userdata.0.Kalender.Frühdienst</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="math_number" id="]6k5zEB`un)xer1~0_O_">
                                                      <field name="NUM">1</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </statement>
                                            </block>
                                          </next>
                                        </block>
                                      </statement>
                                      <statement name="ELSE">
                                        <block type="debug" id="jvkp~*=siiXGnG(.,$*4">
                                          <field name="Severity">log</field>
                                          <value name="TEXT">
                                            <shadow type="text" id=":U:b^eVkl%w:d:7OeGOB">
                                              <field name="TEXT">heute kein Frühdienst</field>
                                            </shadow>
                                          </value>
                                          <next>
                                            <block type="control" id="qsd{K%04-SceoV(Hrq`v">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                              <field name="OID">0_userdata.0.Kalender.Frühdienst</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="math_number" id="xR=6Cr!{EB#o}vS.54s!">
                                                  <field name="NUM">0</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="schedule_clear" id="1MfuyoBh5J~PJLJXdFG3">
                                                  <field name="NAME">schedule1</field>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </statement>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </statement>
          <statement name="ELSE">
            <block type="debug" id="YXEE*d8N6pr28SF0Pi`K">
              <field name="Severity">log</field>
              <value name="TEXT">
                <shadow type="text" id="y16cCDdrc$wRf?_.v8{y">
                  <field name="TEXT">heute keine Termine</field>
                </shadow>
              </value>
            </block>
          </statement>
        </block>
      </xml>
      

      Bildschirmfoto 2022-03-24 um 18.12.21.png

      Gruß Tom

      paul53P Offline
      paul53P Offline
      paul53
      schrieb am zuletzt editiert von
      #2

      @tt-tom sagte: Wie kann ich den Offset (wird in Minuten angegeben) dazu rechnen

      Woher kommt der Offset und was beinhaltet er?

      Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
      Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

      T 1 Antwort Letzte Antwort
      0
      • paul53P paul53

        @tt-tom sagte: Wie kann ich den Offset (wird in Minuten angegeben) dazu rechnen

        Woher kommt der Offset und was beinhaltet er?

        T Offline
        T Offline
        TT-Tom
        schrieb am zuletzt editiert von
        #3

        @paul53
        Ich wollte einen datenpunkt als Typ Zahl nutzen. Dort wird der Offset +/- eingetragen.

        Gruß Tom
        https://github.com/tt-tom17
        Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

        NSPanel Script Wiki
        https://github.com/joBr99/nspanel-lovelace-ui/wiki

        NSPanel Adapter Wiki
        https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

        paul53P 1 Antwort Letzte Antwort
        0
        • T TT-Tom

          @paul53
          Ich wollte einen datenpunkt als Typ Zahl nutzen. Dort wird der Offset +/- eingetragen.

          paul53P Offline
          paul53P Offline
          paul53
          schrieb am zuletzt editiert von paul53
          #4

          @tt-tom sagt: Dort wird der Offset +/- eingetragen.

          Der soll auf die Uhrzeit aus "_date" aufaddiert werden?

          Bild_2022-03-24_224641.png

          oder besser

          Bild_2022-03-24_232008.png

          Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
          Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

          T 1 Antwort Letzte Antwort
          0
          • paul53P paul53

            @tt-tom sagt: Dort wird der Offset +/- eingetragen.

            Der soll auf die Uhrzeit aus "_date" aufaddiert werden?

            Bild_2022-03-24_224641.png

            oder besser

            Bild_2022-03-24_232008.png

            T Offline
            T Offline
            TT-Tom
            schrieb am zuletzt editiert von
            #5

            @paul53

            Danke für deine Unterstützung, ich habe das Blockly angepasst an dein zweiten Vorschlag. Zusätzlich habe ich noch ein Schleifenabbruch eingefügt, weil der Termin vom nächsten Tag den Zeitplan gleich wieder stoppte.

            ich stelle den Code nochmal hierhin, vielleicht fällt dir noch ein gravierender Fehler auf. Danke
            Gruß Tom

            Bildschirmfoto 2022-03-25 um 11.11.21.png

            <xml xmlns="https://developers.google.com/blockly/xml">
             <variables>
               <variable id="KCN$MPYJlxuGzS.7Ja@P">heute</variable>
               <variable id="^0s1Y6_rW~Pl4?!U2Kbw">Termin_Liste</variable>
               <variable id="1RiW^|D=/gzaQIH4QWoI">i</variable>
               <variable id="r)R7ElzIwsQzAExJ39Rc">Datum</variable>
               <variable id="?38yQpVW(CZ^t1Av97-l">Event</variable>
               <variable id="2BQZ5yirmbeTJ+f|Mc+{">Startzeit</variable>
               <variable type="cron" id="schedule1">schedule1</variable>
             </variables>
             <block type="schedule" id="8lE|N4icH2kRI}vhU6fI" x="113" y="-62">
               <field name="SCHEDULE">5 0 * * *</field>
               <statement name="STATEMENT">
                 <block type="controls_if" id="40QGKCgY,mv9DD1EU!%-">
                   <mutation else="1"></mutation>
                   <value name="IF0">
                     <block type="logic_compare" id="gKZ!}[mmD,1`aeB!+Nt$">
                       <field name="OP">GT</field>
                       <value name="A">
                         <block type="get_value" id="y^7ebUe.(BP=0~{n#$-a">
                           <field name="ATTR">val</field>
                           <field name="OID">ical.0.data.count</field>
                         </block>
                       </value>
                       <value name="B">
                         <block type="math_number" id="q.7:vKYjC2mbjeT5]]d#">
                           <field name="NUM">0</field>
                         </block>
                       </value>
                     </block>
                   </value>
                   <statement name="DO0">
                     <block type="variables_set" id="DBSZh^XhK8rMT%B~MAZb">
                       <field name="VAR" id="KCN$MPYJlxuGzS.7Ja@P">heute</field>
                       <value name="VALUE">
                         <block type="time_get" id="Y4Jh?%5wY6Ls15Xvt%K-">
                           <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                           <field name="OPTION">DD.MM.</field>
                         </block>
                       </value>
                       <next>
                         <block type="variables_set" id="Acw%oMJ[bIKQwKyXqBrw">
                           <field name="VAR" id="^0s1Y6_rW~Pl4?!U2Kbw">Termin_Liste</field>
                           <value name="VALUE">
                             <block type="get_value" id="|l:6tjWFgm]=|Qt[.(`N">
                               <field name="ATTR">val</field>
                               <field name="OID">ical.0.data.table</field>
                             </block>
                           </value>
                           <next>
                             <block type="controls_forEach" id=",GwHQwju#p028ktGhDv3">
                               <field name="VAR" id="1RiW^|D=/gzaQIH4QWoI">i</field>
                               <value name="LIST">
                                 <block type="variables_get" id="4R26Gc#Py2}M6Al#lBR/">
                                   <field name="VAR" id="^0s1Y6_rW~Pl4?!U2Kbw">Termin_Liste</field>
                                 </block>
                               </value>
                               <statement name="DO">
                                 <block type="variables_set" id="/IlG1yY7beu69W4)c{E$">
                                   <field name="VAR" id="r)R7ElzIwsQzAExJ39Rc">Datum</field>
                                   <value name="VALUE">
                                     <block type="convert_from_date" id="ar`;pDtDYtzBjza/Vu4)">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                       <field name="OPTION">DD.MM.</field>
                                       <value name="VALUE">
                                         <block type="get_attr" id="l#%m?=.VX;9#hI{dF{K7">
                                           <value name="PATH">
                                             <shadow type="text" id="K`sKHj?YAUgfafgQAe+*">
                                               <field name="TEXT">_date</field>
                                             </shadow>
                                           </value>
                                           <value name="OBJECT">
                                             <block type="variables_get" id="6};G_)z@J]ktwPjI~Mr[">
                                               <field name="VAR" id="1RiW^|D=/gzaQIH4QWoI">i</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="variables_set" id="q.~0We8?Sf4p^*70;QsE">
                                       <field name="VAR" id="?38yQpVW(CZ^t1Av97-l">Event</field>
                                       <value name="VALUE">
                                         <block type="get_attr" id="7vM~|?@QiU8SfVz}nI+P">
                                           <value name="PATH">
                                             <shadow type="text" id="s|Pz7JZrkOt-FtL8TcRl">
                                               <field name="TEXT">event</field>
                                             </shadow>
                                           </value>
                                           <value name="OBJECT">
                                             <block type="variables_get" id=",CkhsbO`4F;0KAH+/|4J">
                                               <field name="VAR" id="1RiW^|D=/gzaQIH4QWoI">i</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                       <next>
                                         <block type="controls_if" id="0C]E]6|F[2..|ud?v]x2">
                                           <mutation else="1"></mutation>
                                           <value name="IF0">
                                             <block type="logic_operation" id="1.a!eNscq[iL7]FBa.jU" inline="false">
                                               <field name="OP">AND</field>
                                               <value name="A">
                                                 <block type="logic_compare" id="sQUGGkw#VXvOV6n#j[2T">
                                                   <field name="OP">EQ</field>
                                                   <value name="A">
                                                     <block type="variables_get" id="Px81ppDWslIIex)jaBx1">
                                                       <field name="VAR" id="r)R7ElzIwsQzAExJ39Rc">Datum</field>
                                                     </block>
                                                   </value>
                                                   <value name="B">
                                                     <block type="variables_get" id="IGi.Z}mEo#}kMk!@3KSD">
                                                       <field name="VAR" id="KCN$MPYJlxuGzS.7Ja@P">heute</field>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </value>
                                               <value name="B">
                                                 <block type="logic_compare" id="~1os|Qnz~VD6CEcniu@P">
                                                   <field name="OP">EQ</field>
                                                   <value name="A">
                                                     <block type="text" id="|CsE+k(ub}*rWUJ}R;e1">
                                                       <field name="TEXT">Frühdienst</field>
                                                     </block>
                                                   </value>
                                                   <value name="B">
                                                     <block type="variables_get" id="qOXrT?Ejb@WI*^`MP;g(">
                                                       <field name="VAR" id="?38yQpVW(CZ^t1Av97-l">Event</field>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                           <statement name="DO0">
                                             <block type="variables_set" id="/uW1q%G#+f:#6YpUY8zy">
                                               <field name="VAR" id="2BQZ5yirmbeTJ+f|Mc+{">Startzeit</field>
                                               <value name="VALUE">
                                                 <block type="convert_from_date" id="A-qUldk`DmXC_7QeA9q1">
                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                   <field name="OPTION">mid</field>
                                                   <value name="VALUE">
                                                     <block type="get_attr" id="f=Ut/}QzOD}t4c3rL?]y">
                                                       <value name="PATH">
                                                         <shadow type="text" id="*dj.y7s/)}uR;VAUU%KY">
                                                           <field name="TEXT">_date</field>
                                                         </shadow>
                                                       </value>
                                                       <value name="OBJECT">
                                                         <block type="variables_get" id="$gav6,l%Lh4p21!lWR%g">
                                                           <field name="VAR" id="1RiW^|D=/gzaQIH4QWoI">i</field>
                                                         </block>
                                                       </value>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </value>
                                               <next>
                                                 <block type="math_change" id="/Lh0b;SHzS~896:/4d.G">
                                                   <field name="VAR" id="2BQZ5yirmbeTJ+f|Mc+{">Startzeit</field>
                                                   <value name="DELTA">
                                                     <shadow type="math_number" id="!2[_g^m9!m}H9TdMyH2f">
                                                       <field name="NUM">1</field>
                                                     </shadow>
                                                     <block type="get_value" id="L![9/$5WFOC//vwx#@Q4">
                                                       <field name="ATTR">val</field>
                                                       <field name="OID">0_userdata.0.Kalender.offset</field>
                                                     </block>
                                                   </value>
                                                   <next>
                                                     <block type="debug" id="IEx^URgA^@hlo:8OmFqv">
                                                       <field name="Severity">log</field>
                                                       <value name="TEXT">
                                                         <shadow type="text" id="@c12UE$8b9}/Z]?fLM^u">
                                                           <field name="TEXT">test</field>
                                                         </shadow>
                                                         <block type="text_join" id="!c(YESJphEf]V4g%^]hU">
                                                           <mutation items="5"></mutation>
                                                           <value name="ADD0">
                                                             <block type="variables_get" id="#O|.soxY}9QcXa)Ui`qo">
                                                               <field name="VAR" id="2BQZ5yirmbeTJ+f|Mc+{">Startzeit</field>
                                                             </block>
                                                           </value>
                                                           <value name="ADD1">
                                                             <block type="text" id="]^TtyYzK:~b=esl.N1d`">
                                                               <field name="TEXT"> </field>
                                                             </block>
                                                           </value>
                                                           <value name="ADD2">
                                                             <block type="variables_get" id="hJ:nZaXyw}=yep#7d#Z(">
                                                               <field name="VAR" id="r)R7ElzIwsQzAExJ39Rc">Datum</field>
                                                             </block>
                                                           </value>
                                                           <value name="ADD3">
                                                             <block type="text" id="6]6=6_m~lkE^pWL{~?wo">
                                                               <field name="TEXT"> </field>
                                                             </block>
                                                           </value>
                                                           <value name="ADD4">
                                                             <block type="variables_get" id="K1SqyOW~l)D7~C@./caR">
                                                               <field name="VAR" id="?38yQpVW(CZ^t1Av97-l">Event</field>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </value>
                                                       <next>
                                                         <block type="schedule_create" id="Gs!;25A-:r0mNNx06*bl">
                                                           <field name="NAME">schedule1</field>
                                                           <value name="SCHEDULE">
                                                             <shadow type="field_cron" id="3n`:~9J0Pzh1=$5}[6G.">
                                                               <field name="CRON">* * * * *</field>
                                                             </shadow>
                                                             <block type="cron_builder" id=",sK)%BE-3w[FRQAPLBYd">
                                                               <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="QAq20GaTDVwix;R9fLkl">
                                                                   <field name="TEXT">*</field>
                                                                 </shadow>
                                                               </value>
                                                               <value name="MONTHS">
                                                                 <shadow type="text" id="{hMOABJt:`Z~9c@ZnItX">
                                                                   <field name="TEXT">*</field>
                                                                 </shadow>
                                                               </value>
                                                               <value name="DAYS">
                                                                 <shadow type="text" id=";obxGZmn[:{^omP~~ic7">
                                                                   <field name="TEXT">*</field>
                                                                 </shadow>
                                                               </value>
                                                               <value name="HOURS">
                                                                 <shadow type="text" id="a,vj~8K;?;W074b1{tq7">
                                                                   <field name="TEXT">*</field>
                                                                 </shadow>
                                                                 <block type="math_round" id="Kr79KIlX#A)/p_}T)42j">
                                                                   <field name="OP">ROUNDDOWN</field>
                                                                   <value name="NUM">
                                                                     <shadow type="math_number" id="l*^r2yNoj`{rpRUB69_d">
                                                                       <field name="NUM">3.1</field>
                                                                     </shadow>
                                                                     <block type="math_arithmetic" id="eTb]U-j0]bKtW~d)!IEn">
                                                                       <field name="OP">DIVIDE</field>
                                                                       <value name="A">
                                                                         <shadow type="math_number" id="z9Gr(DOxNqSRYH4iGa.y">
                                                                           <field name="NUM">1</field>
                                                                         </shadow>
                                                                         <block type="variables_get" id="4N/iINQR3Bd*61/:%iHe">
                                                                           <field name="VAR" id="2BQZ5yirmbeTJ+f|Mc+{">Startzeit</field>
                                                                         </block>
                                                                       </value>
                                                                       <value name="B">
                                                                         <shadow type="math_number" id="X.8p@JB-ZpTz`o/[v.6!">
                                                                           <field name="NUM">60</field>
                                                                         </shadow>
                                                                       </value>
                                                                     </block>
                                                                   </value>
                                                                 </block>
                                                               </value>
                                                               <value name="MINUTES">
                                                                 <shadow type="text" id="NU)xx6Bp=F3vNpb:2;k1">
                                                                   <field name="TEXT">*</field>
                                                                 </shadow>
                                                                 <block type="math_modulo" id="Jo]^0U$0ui4$m~a${A_r">
                                                                   <value name="DIVIDEND">
                                                                     <shadow type="math_number" id="1p=X.(rqU%^*QE.2j$(J">
                                                                       <field name="NUM">64</field>
                                                                     </shadow>
                                                                     <block type="variables_get" id="K})mMJg).2xWyp[C|62j">
                                                                       <field name="VAR" id="2BQZ5yirmbeTJ+f|Mc+{">Startzeit</field>
                                                                     </block>
                                                                   </value>
                                                                   <value name="DIVISOR">
                                                                     <shadow type="math_number" id="ge])vW8Cv;hMPft/SD]*">
                                                                       <field name="NUM">60</field>
                                                                     </shadow>
                                                                   </value>
                                                                 </block>
                                                               </value>
                                                             </block>
                                                           </value>
                                                           <statement name="STATEMENT">
                                                             <block type="control" id="3$BLCu6)d}FjIeGq(J=m">
                                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                               <field name="OID">0_userdata.0.Kalender.Frühdienst</field>
                                                               <field name="WITH_DELAY">FALSE</field>
                                                               <value name="VALUE">
                                                                 <block type="math_number" id="]6k5zEB`un)xer1~0_O_">
                                                                   <field name="NUM">1</field>
                                                                 </block>
                                                               </value>
                                                             </block>
                                                           </statement>
                                                           <next>
                                                             <block type="controls_flow_statements" id="@4],9/n7W95FY(TXO`x5">
                                                               <field name="FLOW">BREAK</field>
                                                             </block>
                                                           </next>
                                                         </block>
                                                       </next>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </next>
                                             </block>
                                           </statement>
                                           <statement name="ELSE">
                                             <block type="debug" id="jvkp~*=siiXGnG(.,$*4">
                                               <field name="Severity">log</field>
                                               <value name="TEXT">
                                                 <shadow type="text" id=":U:b^eVkl%w:d:7OeGOB">
                                                   <field name="TEXT">heute kein Frühdienst</field>
                                                 </shadow>
                                               </value>
                                               <next>
                                                 <block type="control" id="qsd{K%04-SceoV(Hrq`v">
                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                   <field name="OID">0_userdata.0.Kalender.Frühdienst</field>
                                                   <field name="WITH_DELAY">FALSE</field>
                                                   <value name="VALUE">
                                                     <block type="math_number" id="xR=6Cr!{EB#o}vS.54s!">
                                                       <field name="NUM">0</field>
                                                     </block>
                                                   </value>
                                                   <next>
                                                     <block type="schedule_clear" id="1MfuyoBh5J~PJLJXdFG3">
                                                       <field name="NAME">schedule1</field>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </next>
                                             </block>
                                           </statement>
                                         </block>
                                       </next>
                                     </block>
                                   </next>
                                 </block>
                               </statement>
                             </block>
                           </next>
                         </block>
                       </next>
                     </block>
                   </statement>
                   <statement name="ELSE">
                     <block type="debug" id="YXEE*d8N6pr28SF0Pi`K">
                       <field name="Severity">log</field>
                       <value name="TEXT">
                         <shadow type="text" id="y16cCDdrc$wRf?_.v8{y">
                           <field name="TEXT">heute keine Termine</field>
                         </shadow>
                       </value>
                       <next>
                         <block type="control" id="+`HOYA#m$sd`W}dA$sgX">
                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                           <field name="OID">0_userdata.0.Kalender.Frühdienst</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="math_number" id="wt$OorG7A8]wXXdEz?65">
                               <field name="NUM">0</field>
                             </block>
                           </value>
                           <next>
                             <block type="schedule_clear" id="}EXiKt/Z}[vWZ.W3{Ef|">
                               <field name="NAME">schedule1</field>
                             </block>
                           </next>
                         </block>
                       </next>
                     </block>
                   </statement>
                 </block>
               </statement>
             </block>
            </xml>
            

            Gruß Tom
            https://github.com/tt-tom17
            Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

            NSPanel Script Wiki
            https://github.com/joBr99/nspanel-lovelace-ui/wiki

            NSPanel Adapter Wiki
            https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

            1 Antwort Letzte Antwort
            0
            • T Offline
              T Offline
              TT-Tom
              schrieb am zuletzt editiert von
              #6

              Der Code lief heute sauber durch wie gewünscht.
              Wenn nötig, könnte man die Endzeit auch auslesen und ein Timer für das zurücksetzen des Datenpunktes stellen.
              Wo ich diese Zeilen hier schreibe, fällt mir auf das ich den Datenpunkt nicht zurücksetze. Wenn an mehreren Tagen hintereinander das selbe Event ist, würde sich eventuell die Startzeit ändern, aber der Datenpunkt immer auf „1“ bleiben und nicht von 0 auf 1 wechseln. Also zum Beginn des Codes erstmal auf 0 setzen.

              Gruß Tom

              Gruß Tom
              https://github.com/tt-tom17
              Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

              NSPanel Script Wiki
              https://github.com/joBr99/nspanel-lovelace-ui/wiki

              NSPanel Adapter Wiki
              https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

              1 Antwort Letzte Antwort
              0

              Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.

              Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.

              Mit deinem Input könnte dieser Beitrag noch besser werden 💗

              Registrieren Anmelden
              Antworten
              • In einem neuen Thema antworten
              Anmelden zum Antworten
              • Älteste zuerst
              • Neuste zuerst
              • Meiste Stimmen


              Support us

              ioBroker
              Community Adapters
              Donate

              494

              Online

              32.8k

              Benutzer

              82.8k

              Themen

              1.3m

              Beiträge
              Community
              Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
              ioBroker Community 2014-2025
              logo
              • Anmelden

              • Du hast noch kein Konto? Registrieren

              • Anmelden oder registrieren, um zu suchen
              • Erster Beitrag
                Letzter Beitrag
              0
              • Home
              • Aktuell
              • Tags
              • Ungelesen 0
              • Kategorien
              • Unreplied
              • Beliebt
              • GitHub
              • Docu
              • Hilfe