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. Umrechnung Zahl in std min sek

NEWS

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

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

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

Umrechnung Zahl in std min sek

Geplant Angeheftet Gesperrt Verschoben Blockly
7 Beiträge 5 Kommentatoren 622 Aufrufe 3 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.
  • J Offline
    J Offline
    joachim.knape
    schrieb am zuletzt editiert von
    #1

    Ich habe jetzt wirklich ausführlich die Suchfunktion genutzt und nichts für mich hilfreiches gefunden - zumal es sich um ein eigentlich recht banales Problem handelt..
    Ich habe einen Datenpunkt Countdown 0_userdata.0.Pool.Countdown der auf Knopfdruck in der VIS z.b. auf 2000 gesetzt wird. Also 2000 Sekunden. Diese zählen brav runter bis auf null, und ich kanns auch stoppen.
    Was mich aber irre macht: nirgendwo finde ich simplen Blockly Code, um diese Zahl (number) 2000 in Stunden:Minuten:Sekunden sauber umzurechnen und in der VIS anzeigen zu lassen.
    Alle meine Versuche, die Zahl irgendwie umzurechnen, scheitern kläglich..

    Hier mein bisheriger Code:

    <xml xmlns="https://developers.google.com/blockly/xml">
      <variables>
        <variable type="interval" id="Intervall">Intervall</variable>
        <variable id="r)M)J`L2gdR+-rjVpLQA">Dauer</variable>
        <variable id="moxiY#/V659kTQ}a:eJ[">tage</variable>
        <variable id="kE/kiClb=y?}6)j?_-_R">std</variable>
        <variable id="F..#nc_!4s(/0NkG7Dzk">min</variable>
        <variable id="DRJ.iVA5f}kG0snR{]c|">sec</variable>
      </variables>
      <block type="on" id="1Tq^4!D-.,a%(VGmgqbI" x="62" y="-213">
        <field name="OID">javascript.0.scriptEnabled.common.Pool_Umwälzpumpe_1_Stunde</field>
        <field name="CONDITION">ne</field>
        <field name="ACK_CONDITION"></field>
        <statement name="STATEMENT">
          <block type="controls_if" id="-Hh%o]@ug7?ayaQbb9{K">
            <value name="IF0">
              <block type="logic_compare" id="Wx$~v;{?T)8%t.K;LpB:">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="get_value" id="U^IkX]JROGhfEaO{.eDV">
                    <field name="ATTR">val</field>
                    <field name="OID">javascript.0.scriptEnabled.common.Pool_Umwälzpumpe_1_Stunde</field>
                  </block>
                </value>
                <value name="B">
                  <block type="logic_boolean" id="Adi3BU2?OQ}F^Q:VZU{)">
                    <field name="BOOL">FALSE</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="update" id="AS9z5app.u#sMX_@r2=N">
                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                <field name="OID">0_userdata.0.Pool.Countdown</field>
                <field name="WITH_DELAY">FALSE</field>
                <value name="VALUE">
                  <block type="math_number" id="`dD:A+upjMj)!;]kXd/j">
                    <field name="NUM">0</field>
                  </block>
                </value>
                <next>
                  <block type="update" id="9G.kSe:+UFu:v|D;BJ^#">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">0_userdata.0.Pool.countdown_minute</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="math_number" id="jP9-}VJMOo]vUD(xucYg">
                        <field name="NUM">0</field>
                      </block>
                    </value>
                    <next>
                      <block type="update" id="cB?=Z(?%KaAK8}z3uct`">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">0_userdata.0.Pool.countdown_sekunde</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="math_number" id="l*p+eAf*!Bb}m_qyPJn5">
                            <field name="NUM">0</field>
                          </block>
                        </value>
                        <next>
                          <block type="update" id="sSASiIKTEaz?kJsm@L[-">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">0_userdata.0.Pool.countdown_stunde</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="math_number" id="SpX)/`i??6/f^aGfq#*a">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </statement>
            <next>
              <block type="controls_if" id="{QFSH0e^GP-eybJKT#RK">
                <value name="IF0">
                  <block type="logic_compare" id="q}q[t~vh%ZbqxW:Ar-o6">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="get_value" id="}QZ+8t3CMp^{EiWVO)Dx">
                        <field name="ATTR">val</field>
                        <field name="OID">javascript.0.scriptEnabled.common.Pool_Umwälzpumpe_1_Stunde</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_boolean" id="kZJH`D4Rsf]Bs5Z%hjSA">
                        <field name="BOOL">TRUE</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="update" id="]Oq6Sw|j9*a}V@@_(Sx|">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">0_userdata.0.Pool.Countdown</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="math_number" id="y1TKREl.0Jikg:qkF%F_">
                        <field name="NUM">100</field>
                      </block>
                    </value>
                    <next>
                      <block type="timeouts_setinterval" id="8[L,;XYj)s!GV+??au`:">
                        <field name="NAME">Intervall</field>
                        <field name="INTERVAL">1</field>
                        <field name="UNIT">sec</field>
                        <statement name="STATEMENT">
                          <block type="controls_if" id="42]8LTtu54/t(-2|#:#$">
                            <value name="IF0">
                              <block type="logic_compare" id=";AGS,!lPI5}b;52U|`6*">
                                <field name="OP">LT</field>
                                <value name="A">
                                  <block type="get_value" id="6ob2WR$,{|,Y6:6Gx{~!">
                                    <field name="ATTR">val</field>
                                    <field name="OID">0_userdata.0.Pool.Countdown</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="math_number" id="*kJu5G$s7u(oE?o+2h$P">
                                    <field name="NUM">1</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="timeouts_clearinterval" id="k}7.ed~Jnd?1pjpsWq77">
                                <field name="NAME">Intervall</field>
                                <next>
                                  <block type="control" id="ujw.BgE:cFyA:Yqlkm6%">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">javascript.0.scriptEnabled.common.Pool_Umwälzpumpe_1_Stunde</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="logic_boolean" id="Yc+gEn4v^)5|?~`NiSiA">
                                        <field name="BOOL">FALSE</field>
                                      </block>
                                    </value>
                                  </block>
                                </next>
                              </block>
                            </statement>
                            <next>
                              <block type="update" id="|3g+Ua3v:Gy9b]ew+[UP">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">0_userdata.0.Pool.Countdown</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="math_arithmetic" id="vX0(jSmDTCjLp(BGMPsw">
                                    <field name="OP">MINUS</field>
                                    <value name="A">
                                      <shadow type="math_number" id="V4mZ8Hehu0rrImF;Ak?C">
                                        <field name="NUM">1</field>
                                      </shadow>
                                      <block type="get_value" id="dM|buv*vzib1BK^2RRXu">
                                        <field name="ATTR">val</field>
                                        <field name="OID">0_userdata.0.Pool.Countdown</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <shadow type="math_number" id="r#DzQiES5j326Vg#=AQA">
                                        <field name="NUM">1</field>
                                      </shadow>
                                    </value>
                                  </block>
                                </value>
                                <next>
                                  <block type="comment" id="H-NoHqZu]=Y0x=LhSU!S">
                                    <field name="COMMENT">Kommentar</field>
                                    <next>
                                      <block type="comment" id="idvzV8g)513*==2yR,.C">
                                        <field name="COMMENT">Kommentar</field>
                                        <next>
                                          <block type="variables_set" id="ioolV*0*~aK99._xGf4i">
                                            <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA">Dauer</field>
                                            <value name="VALUE">
                                              <block type="get_value" id="wV+=)oo])APJ-up+Kcm3">
                                                <field name="ATTR">ts</field>
                                                <field name="OID">0_userdata.0.Pool.Countdown</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="variables_set" id="d#Mf%Vp1N]rbGTAqMJ1%">
                                                <field name="VAR" id="moxiY#/V659kTQ}a:eJ[">tage</field>
                                                <value name="VALUE">
                                                  <block type="math_round" id="kl^`w62qML7NfK6obI)R">
                                                    <field name="OP">ROUNDDOWN</field>
                                                    <value name="NUM">
                                                      <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="9?PDN?vq0I(1J0/t@VTk">
                                                        <field name="NUM">3.1</field>
                                                      </shadow>
                                                      <block type="math_arithmetic" id="Vq4e$#!w=`xg_}Su1.ED">
                                                        <field name="OP">DIVIDE</field>
                                                        <value name="A">
                                                          <shadow type="math_number" id="dtfN1M%5RNb0]xbUEm:R">
                                                            <field name="NUM">1</field>
                                                          </shadow>
                                                          <block type="variables_get" id="P2DL%-5VMuQs8M.vDPhQ">
                                                            <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA">Dauer</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <shadow type="math_number" id="xN73Vg#|I~62Ed=PUT%^">
                                                            <field name="NUM">86400000</field>
                                                          </shadow>
                                                        </value>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="variables_set" id="XzKStL$rv+783U;lrI1]">
                                                    <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA">Dauer</field>
                                                    <value name="VALUE">
                                                      <block type="math_arithmetic" id="@PeJ}u3X):vUjeEbh}b!">
                                                        <field name="OP">MINUS</field>
                                                        <value name="A">
                                                          <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="vZXOD9^Cw`KiCMM5BUbH">
                                                            <field name="NUM">1</field>
                                                          </shadow>
                                                          <block type="variables_get" id="rYu:XuWA=@c.X[oR~2QX">
                                                            <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA">Dauer</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="5+De(qT}`Jjl^O;@eM5n">
                                                            <field name="NUM">1</field>
                                                          </shadow>
                                                          <block type="math_arithmetic" id="[=RIpUA6gN7kz_Q7;K9*">
                                                            <field name="OP">MULTIPLY</field>
                                                            <value name="A">
                                                              <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="D[UXt!BH2NGCqR?Q|UiO">
                                                                <field name="NUM">1</field>
                                                              </shadow>
                                                              <block type="variables_get" id="R-1S]-Y`CW]Ug]ZZf)]!">
                                                                <field name="VAR" id="moxiY#/V659kTQ}a:eJ[">tage</field>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <shadow type="math_number" id="962lAEL@@9*Z{v)YClgt">
                                                                <field name="NUM">86400000</field>
                                                              </shadow>
                                                            </value>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="variables_set" id="4}N56*i%8!#K?;dkAaYf">
                                                        <field name="VAR" id="kE/kiClb=y?}6)j?_-_R">std</field>
                                                        <value name="VALUE">
                                                          <block type="math_round" id="i_ICM,.fM!CQOVV+#;~G">
                                                            <field name="OP">ROUNDDOWN</field>
                                                            <value name="NUM">
                                                              <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="9?PDN?vq0I(1J0/t@VTk">
                                                                <field name="NUM">3.1</field>
                                                              </shadow>
                                                              <block type="math_arithmetic" id="|=g9W]nda)Y)2k/[Wv_=">
                                                                <field name="OP">DIVIDE</field>
                                                                <value name="A">
                                                                  <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="dtfN1M%5RNb0]xbUEm:R">
                                                                    <field name="NUM">1</field>
                                                                  </shadow>
                                                                  <block type="variables_get" id="3n^zkm.#vR+K0H6t4UM_">
                                                                    <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA">Dauer</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <shadow type="math_number" id="N`]ykTeeI#)Hf$%e]L2!">
                                                                    <field name="NUM">3600000</field>
                                                                  </shadow>
                                                                </value>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="variables_set" id="h/81*9P*8[4VR,|Y/l[/">
                                                            <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA">Dauer</field>
                                                            <value name="VALUE">
                                                              <block type="math_arithmetic" id="CfGZ4A5O~064DV0BtM.u">
                                                                <field name="OP">MINUS</field>
                                                                <value name="A">
                                                                  <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="vZXOD9^Cw`KiCMM5BUbH">
                                                                    <field name="NUM">1</field>
                                                                  </shadow>
                                                                  <block type="variables_get" id="WS(P/bX7d^ul}?60y)qY">
                                                                    <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA">Dauer</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="5+De(qT}`Jjl^O;@eM5n">
                                                                    <field name="NUM">1</field>
                                                                  </shadow>
                                                                  <block type="math_arithmetic" id="i}+8JL_Q#0S}Vl#t-Ke3">
                                                                    <field name="OP">MULTIPLY</field>
                                                                    <value name="A">
                                                                      <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="D[UXt!BH2NGCqR?Q|UiO">
                                                                        <field name="NUM">1</field>
                                                                      </shadow>
                                                                      <block type="variables_get" id="?bB0b4ITZD7):P/T1jKh">
                                                                        <field name="VAR" id="kE/kiClb=y?}6)j?_-_R">std</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <shadow type="math_number" id=",;(Ox_#1$7=rTId$yc/[">
                                                                        <field name="NUM">3600000</field>
                                                                      </shadow>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <next>
                                                              <block type="variables_set" id="mi|Nsm(ddYqrJk$i-`|#">
                                                                <field name="VAR" id="F..#nc_!4s(/0NkG7Dzk">min</field>
                                                                <value name="VALUE">
                                                                  <block type="math_round" id="E$./CjOLf~Yz!Ti6iR_D">
                                                                    <field name="OP">ROUNDDOWN</field>
                                                                    <value name="NUM">
                                                                      <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="9?PDN?vq0I(1J0/t@VTk">
                                                                        <field name="NUM">3.1</field>
                                                                      </shadow>
                                                                      <block type="math_arithmetic" id="n7z]@zr[x6NHv3OU*e9*">
                                                                        <field name="OP">DIVIDE</field>
                                                                        <value name="A">
                                                                          <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="dtfN1M%5RNb0]xbUEm:R">
                                                                            <field name="NUM">1</field>
                                                                          </shadow>
                                                                          <block type="variables_get" id="HzzXG8yC)eLfjq|H~v3;">
                                                                            <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA">Dauer</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <shadow type="math_number" id="uem@3Cu$;SXmgtnx-#P6">
                                                                            <field name="NUM">60000</field>
                                                                          </shadow>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                                <next>
                                                                  <block type="variables_set" id=".aKU3yi6Vn}Q}8h{O;sl">
                                                                    <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA">Dauer</field>
                                                                    <value name="VALUE">
                                                                      <block type="math_arithmetic" id="%%%KFqfG)8ex=|_VKxy^">
                                                                        <field name="OP">MINUS</field>
                                                                        <value name="A">
                                                                          <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="vZXOD9^Cw`KiCMM5BUbH">
                                                                            <field name="NUM">1</field>
                                                                          </shadow>
                                                                          <block type="variables_get" id="+DL#x{a]cSnzG6V;=dK1">
                                                                            <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA">Dauer</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="5+De(qT}`Jjl^O;@eM5n">
                                                                            <field name="NUM">1</field>
                                                                          </shadow>
                                                                          <block type="math_arithmetic" id="pN|DbN#YE,WTL-}C,n0|">
                                                                            <field name="OP">MULTIPLY</field>
                                                                            <value name="A">
                                                                              <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="D[UXt!BH2NGCqR?Q|UiO">
                                                                                <field name="NUM">1</field>
                                                                              </shadow>
                                                                              <block type="variables_get" id="==;p=)Y`/E0ocGx$e(WM">
                                                                                <field name="VAR" id="F..#nc_!4s(/0NkG7Dzk">min</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="B">
                                                                              <shadow type="math_number" id="j@2_L0kpv^S%`n0TR7~v">
                                                                                <field name="NUM">60000</field>
                                                                              </shadow>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                    <next>
                                                                      <block type="variables_set" id="{qDt~P^xXdlUYMEJ/JN{">
                                                                        <field name="VAR" id="DRJ.iVA5f}kG0snR{]c|">sec</field>
                                                                        <value name="VALUE">
                                                                          <block type="math_round" id="DEX*kqOIekO!tF;KFU:i">
                                                                            <field name="OP">ROUND</field>
                                                                            <value name="NUM">
                                                                              <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="9?PDN?vq0I(1J0/t@VTk">
                                                                                <field name="NUM">3.1</field>
                                                                              </shadow>
                                                                              <block type="math_arithmetic" id="[@!2`6uwcXC0Jl1}*fde">
                                                                                <field name="OP">DIVIDE</field>
                                                                                <value name="A">
                                                                                  <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="dtfN1M%5RNb0]xbUEm:R">
                                                                                    <field name="NUM">1</field>
                                                                                  </shadow>
                                                                                  <block type="variables_get" id="AT^9^[wo;G$VGKTgabU:">
                                                                                    <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA">Dauer</field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="B">
                                                                                  <shadow type="math_number" id="9@OD[Q0RL7.#0B6M$?d8">
                                                                                    <field name="NUM">1000</field>
                                                                                  </shadow>
                                                                                </value>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                        <next>
                                                                          <block type="control" id="7HfM6x`@DGG2)WpoYAg0">
                                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                            <field name="OID">0_userdata.0.Pool.Laufzeit</field>
                                                                            <field name="WITH_DELAY">FALSE</field>
                                                                            <value name="VALUE">
                                                                              <block type="text_join" id=":r_DP)dXj@Jv~7?yyyK_">
                                                                                <mutation items="8"></mutation>
                                                                                <value name="ADD0">
                                                                                  <block type="variables_get" id="!EZopb^xh[~,gG@4W1,w">
                                                                                    <field name="VAR" id="moxiY#/V659kTQ}a:eJ[">tage</field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="ADD1">
                                                                                  <block type="text" id="+h^zTHY7^I!hRy7N0WNH">
                                                                                    <field name="TEXT"> ; </field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="ADD2">
                                                                                  <block type="variables_get" id="sOY$z$z[]a=/h+V@Uz2H">
                                                                                    <field name="VAR" id="kE/kiClb=y?}6)j?_-_R">std</field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="ADD3">
                                                                                  <block type="text" id=")lj,hPOWg~tF(AEaY-wB">
                                                                                    <field name="TEXT"> : </field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="ADD4">
                                                                                  <block type="variables_get" id="JBAVOqF#j#wA#5hA%X4q">
                                                                                    <field name="VAR" id="F..#nc_!4s(/0NkG7Dzk">min</field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="ADD5">
                                                                                  <block type="text" id="!IyHG|A%`h(?iFXz+O^A">
                                                                                    <field name="TEXT"> : </field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="ADD6">
                                                                                  <block type="variables_get" id="naIdEV$uD!hEu`d/Rcno">
                                                                                    <field name="VAR" id="DRJ.iVA5f}kG0snR{]c|">sec</field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="ADD7">
                                                                                  <block type="text" id="o)$!!Z38,;4;O5tR|7,i">
                                                                                    <field name="TEXT"></field>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </statement>
      </block>
    </xml>
    

    Was mache ich falsch? Nur um einen Number-Datenpunkt in eine Zeitanzeige umrechnen?

    DJMarc75D HomoranH 2 Antworten Letzte Antwort
    0
    • J joachim.knape

      Ich habe jetzt wirklich ausführlich die Suchfunktion genutzt und nichts für mich hilfreiches gefunden - zumal es sich um ein eigentlich recht banales Problem handelt..
      Ich habe einen Datenpunkt Countdown 0_userdata.0.Pool.Countdown der auf Knopfdruck in der VIS z.b. auf 2000 gesetzt wird. Also 2000 Sekunden. Diese zählen brav runter bis auf null, und ich kanns auch stoppen.
      Was mich aber irre macht: nirgendwo finde ich simplen Blockly Code, um diese Zahl (number) 2000 in Stunden:Minuten:Sekunden sauber umzurechnen und in der VIS anzeigen zu lassen.
      Alle meine Versuche, die Zahl irgendwie umzurechnen, scheitern kläglich..

      Hier mein bisheriger Code:

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable type="interval" id="Intervall">Intervall</variable>
          <variable id="r)M)J`L2gdR+-rjVpLQA">Dauer</variable>
          <variable id="moxiY#/V659kTQ}a:eJ[">tage</variable>
          <variable id="kE/kiClb=y?}6)j?_-_R">std</variable>
          <variable id="F..#nc_!4s(/0NkG7Dzk">min</variable>
          <variable id="DRJ.iVA5f}kG0snR{]c|">sec</variable>
        </variables>
        <block type="on" id="1Tq^4!D-.,a%(VGmgqbI" x="62" y="-213">
          <field name="OID">javascript.0.scriptEnabled.common.Pool_Umwälzpumpe_1_Stunde</field>
          <field name="CONDITION">ne</field>
          <field name="ACK_CONDITION"></field>
          <statement name="STATEMENT">
            <block type="controls_if" id="-Hh%o]@ug7?ayaQbb9{K">
              <value name="IF0">
                <block type="logic_compare" id="Wx$~v;{?T)8%t.K;LpB:">
                  <field name="OP">EQ</field>
                  <value name="A">
                    <block type="get_value" id="U^IkX]JROGhfEaO{.eDV">
                      <field name="ATTR">val</field>
                      <field name="OID">javascript.0.scriptEnabled.common.Pool_Umwälzpumpe_1_Stunde</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="logic_boolean" id="Adi3BU2?OQ}F^Q:VZU{)">
                      <field name="BOOL">FALSE</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO0">
                <block type="update" id="AS9z5app.u#sMX_@r2=N">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                  <field name="OID">0_userdata.0.Pool.Countdown</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="math_number" id="`dD:A+upjMj)!;]kXd/j">
                      <field name="NUM">0</field>
                    </block>
                  </value>
                  <next>
                    <block type="update" id="9G.kSe:+UFu:v|D;BJ^#">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">0_userdata.0.Pool.countdown_minute</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="math_number" id="jP9-}VJMOo]vUD(xucYg">
                          <field name="NUM">0</field>
                        </block>
                      </value>
                      <next>
                        <block type="update" id="cB?=Z(?%KaAK8}z3uct`">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">0_userdata.0.Pool.countdown_sekunde</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="math_number" id="l*p+eAf*!Bb}m_qyPJn5">
                              <field name="NUM">0</field>
                            </block>
                          </value>
                          <next>
                            <block type="update" id="sSASiIKTEaz?kJsm@L[-">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">0_userdata.0.Pool.countdown_stunde</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="math_number" id="SpX)/`i??6/f^aGfq#*a">
                                  <field name="NUM">0</field>
                                </block>
                              </value>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </statement>
              <next>
                <block type="controls_if" id="{QFSH0e^GP-eybJKT#RK">
                  <value name="IF0">
                    <block type="logic_compare" id="q}q[t~vh%ZbqxW:Ar-o6">
                      <field name="OP">EQ</field>
                      <value name="A">
                        <block type="get_value" id="}QZ+8t3CMp^{EiWVO)Dx">
                          <field name="ATTR">val</field>
                          <field name="OID">javascript.0.scriptEnabled.common.Pool_Umwälzpumpe_1_Stunde</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_boolean" id="kZJH`D4Rsf]Bs5Z%hjSA">
                          <field name="BOOL">TRUE</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="update" id="]Oq6Sw|j9*a}V@@_(Sx|">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">0_userdata.0.Pool.Countdown</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="math_number" id="y1TKREl.0Jikg:qkF%F_">
                          <field name="NUM">100</field>
                        </block>
                      </value>
                      <next>
                        <block type="timeouts_setinterval" id="8[L,;XYj)s!GV+??au`:">
                          <field name="NAME">Intervall</field>
                          <field name="INTERVAL">1</field>
                          <field name="UNIT">sec</field>
                          <statement name="STATEMENT">
                            <block type="controls_if" id="42]8LTtu54/t(-2|#:#$">
                              <value name="IF0">
                                <block type="logic_compare" id=";AGS,!lPI5}b;52U|`6*">
                                  <field name="OP">LT</field>
                                  <value name="A">
                                    <block type="get_value" id="6ob2WR$,{|,Y6:6Gx{~!">
                                      <field name="ATTR">val</field>
                                      <field name="OID">0_userdata.0.Pool.Countdown</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="math_number" id="*kJu5G$s7u(oE?o+2h$P">
                                      <field name="NUM">1</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="timeouts_clearinterval" id="k}7.ed~Jnd?1pjpsWq77">
                                  <field name="NAME">Intervall</field>
                                  <next>
                                    <block type="control" id="ujw.BgE:cFyA:Yqlkm6%">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">javascript.0.scriptEnabled.common.Pool_Umwälzpumpe_1_Stunde</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="Yc+gEn4v^)5|?~`NiSiA">
                                          <field name="BOOL">FALSE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                              <next>
                                <block type="update" id="|3g+Ua3v:Gy9b]ew+[UP">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">0_userdata.0.Pool.Countdown</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="math_arithmetic" id="vX0(jSmDTCjLp(BGMPsw">
                                      <field name="OP">MINUS</field>
                                      <value name="A">
                                        <shadow type="math_number" id="V4mZ8Hehu0rrImF;Ak?C">
                                          <field name="NUM">1</field>
                                        </shadow>
                                        <block type="get_value" id="dM|buv*vzib1BK^2RRXu">
                                          <field name="ATTR">val</field>
                                          <field name="OID">0_userdata.0.Pool.Countdown</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <shadow type="math_number" id="r#DzQiES5j326Vg#=AQA">
                                          <field name="NUM">1</field>
                                        </shadow>
                                      </value>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="comment" id="H-NoHqZu]=Y0x=LhSU!S">
                                      <field name="COMMENT">Kommentar</field>
                                      <next>
                                        <block type="comment" id="idvzV8g)513*==2yR,.C">
                                          <field name="COMMENT">Kommentar</field>
                                          <next>
                                            <block type="variables_set" id="ioolV*0*~aK99._xGf4i">
                                              <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA">Dauer</field>
                                              <value name="VALUE">
                                                <block type="get_value" id="wV+=)oo])APJ-up+Kcm3">
                                                  <field name="ATTR">ts</field>
                                                  <field name="OID">0_userdata.0.Pool.Countdown</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="variables_set" id="d#Mf%Vp1N]rbGTAqMJ1%">
                                                  <field name="VAR" id="moxiY#/V659kTQ}a:eJ[">tage</field>
                                                  <value name="VALUE">
                                                    <block type="math_round" id="kl^`w62qML7NfK6obI)R">
                                                      <field name="OP">ROUNDDOWN</field>
                                                      <value name="NUM">
                                                        <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="9?PDN?vq0I(1J0/t@VTk">
                                                          <field name="NUM">3.1</field>
                                                        </shadow>
                                                        <block type="math_arithmetic" id="Vq4e$#!w=`xg_}Su1.ED">
                                                          <field name="OP">DIVIDE</field>
                                                          <value name="A">
                                                            <shadow type="math_number" id="dtfN1M%5RNb0]xbUEm:R">
                                                              <field name="NUM">1</field>
                                                            </shadow>
                                                            <block type="variables_get" id="P2DL%-5VMuQs8M.vDPhQ">
                                                              <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA">Dauer</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <shadow type="math_number" id="xN73Vg#|I~62Ed=PUT%^">
                                                              <field name="NUM">86400000</field>
                                                            </shadow>
                                                          </value>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="variables_set" id="XzKStL$rv+783U;lrI1]">
                                                      <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA">Dauer</field>
                                                      <value name="VALUE">
                                                        <block type="math_arithmetic" id="@PeJ}u3X):vUjeEbh}b!">
                                                          <field name="OP">MINUS</field>
                                                          <value name="A">
                                                            <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="vZXOD9^Cw`KiCMM5BUbH">
                                                              <field name="NUM">1</field>
                                                            </shadow>
                                                            <block type="variables_get" id="rYu:XuWA=@c.X[oR~2QX">
                                                              <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA">Dauer</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="5+De(qT}`Jjl^O;@eM5n">
                                                              <field name="NUM">1</field>
                                                            </shadow>
                                                            <block type="math_arithmetic" id="[=RIpUA6gN7kz_Q7;K9*">
                                                              <field name="OP">MULTIPLY</field>
                                                              <value name="A">
                                                                <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="D[UXt!BH2NGCqR?Q|UiO">
                                                                  <field name="NUM">1</field>
                                                                </shadow>
                                                                <block type="variables_get" id="R-1S]-Y`CW]Ug]ZZf)]!">
                                                                  <field name="VAR" id="moxiY#/V659kTQ}a:eJ[">tage</field>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <shadow type="math_number" id="962lAEL@@9*Z{v)YClgt">
                                                                  <field name="NUM">86400000</field>
                                                                </shadow>
                                                              </value>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="variables_set" id="4}N56*i%8!#K?;dkAaYf">
                                                          <field name="VAR" id="kE/kiClb=y?}6)j?_-_R">std</field>
                                                          <value name="VALUE">
                                                            <block type="math_round" id="i_ICM,.fM!CQOVV+#;~G">
                                                              <field name="OP">ROUNDDOWN</field>
                                                              <value name="NUM">
                                                                <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="9?PDN?vq0I(1J0/t@VTk">
                                                                  <field name="NUM">3.1</field>
                                                                </shadow>
                                                                <block type="math_arithmetic" id="|=g9W]nda)Y)2k/[Wv_=">
                                                                  <field name="OP">DIVIDE</field>
                                                                  <value name="A">
                                                                    <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="dtfN1M%5RNb0]xbUEm:R">
                                                                      <field name="NUM">1</field>
                                                                    </shadow>
                                                                    <block type="variables_get" id="3n^zkm.#vR+K0H6t4UM_">
                                                                      <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA">Dauer</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <shadow type="math_number" id="N`]ykTeeI#)Hf$%e]L2!">
                                                                      <field name="NUM">3600000</field>
                                                                    </shadow>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <next>
                                                            <block type="variables_set" id="h/81*9P*8[4VR,|Y/l[/">
                                                              <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA">Dauer</field>
                                                              <value name="VALUE">
                                                                <block type="math_arithmetic" id="CfGZ4A5O~064DV0BtM.u">
                                                                  <field name="OP">MINUS</field>
                                                                  <value name="A">
                                                                    <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="vZXOD9^Cw`KiCMM5BUbH">
                                                                      <field name="NUM">1</field>
                                                                    </shadow>
                                                                    <block type="variables_get" id="WS(P/bX7d^ul}?60y)qY">
                                                                      <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA">Dauer</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="5+De(qT}`Jjl^O;@eM5n">
                                                                      <field name="NUM">1</field>
                                                                    </shadow>
                                                                    <block type="math_arithmetic" id="i}+8JL_Q#0S}Vl#t-Ke3">
                                                                      <field name="OP">MULTIPLY</field>
                                                                      <value name="A">
                                                                        <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="D[UXt!BH2NGCqR?Q|UiO">
                                                                          <field name="NUM">1</field>
                                                                        </shadow>
                                                                        <block type="variables_get" id="?bB0b4ITZD7):P/T1jKh">
                                                                          <field name="VAR" id="kE/kiClb=y?}6)j?_-_R">std</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="B">
                                                                        <shadow type="math_number" id=",;(Ox_#1$7=rTId$yc/[">
                                                                          <field name="NUM">3600000</field>
                                                                        </shadow>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <next>
                                                                <block type="variables_set" id="mi|Nsm(ddYqrJk$i-`|#">
                                                                  <field name="VAR" id="F..#nc_!4s(/0NkG7Dzk">min</field>
                                                                  <value name="VALUE">
                                                                    <block type="math_round" id="E$./CjOLf~Yz!Ti6iR_D">
                                                                      <field name="OP">ROUNDDOWN</field>
                                                                      <value name="NUM">
                                                                        <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="9?PDN?vq0I(1J0/t@VTk">
                                                                          <field name="NUM">3.1</field>
                                                                        </shadow>
                                                                        <block type="math_arithmetic" id="n7z]@zr[x6NHv3OU*e9*">
                                                                          <field name="OP">DIVIDE</field>
                                                                          <value name="A">
                                                                            <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="dtfN1M%5RNb0]xbUEm:R">
                                                                              <field name="NUM">1</field>
                                                                            </shadow>
                                                                            <block type="variables_get" id="HzzXG8yC)eLfjq|H~v3;">
                                                                              <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA">Dauer</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="B">
                                                                            <shadow type="math_number" id="uem@3Cu$;SXmgtnx-#P6">
                                                                              <field name="NUM">60000</field>
                                                                            </shadow>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                  <next>
                                                                    <block type="variables_set" id=".aKU3yi6Vn}Q}8h{O;sl">
                                                                      <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA">Dauer</field>
                                                                      <value name="VALUE">
                                                                        <block type="math_arithmetic" id="%%%KFqfG)8ex=|_VKxy^">
                                                                          <field name="OP">MINUS</field>
                                                                          <value name="A">
                                                                            <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="vZXOD9^Cw`KiCMM5BUbH">
                                                                              <field name="NUM">1</field>
                                                                            </shadow>
                                                                            <block type="variables_get" id="+DL#x{a]cSnzG6V;=dK1">
                                                                              <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA">Dauer</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="B">
                                                                            <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="5+De(qT}`Jjl^O;@eM5n">
                                                                              <field name="NUM">1</field>
                                                                            </shadow>
                                                                            <block type="math_arithmetic" id="pN|DbN#YE,WTL-}C,n0|">
                                                                              <field name="OP">MULTIPLY</field>
                                                                              <value name="A">
                                                                                <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="D[UXt!BH2NGCqR?Q|UiO">
                                                                                  <field name="NUM">1</field>
                                                                                </shadow>
                                                                                <block type="variables_get" id="==;p=)Y`/E0ocGx$e(WM">
                                                                                  <field name="VAR" id="F..#nc_!4s(/0NkG7Dzk">min</field>
                                                                                </block>
                                                                              </value>
                                                                              <value name="B">
                                                                                <shadow type="math_number" id="j@2_L0kpv^S%`n0TR7~v">
                                                                                  <field name="NUM">60000</field>
                                                                                </shadow>
                                                                              </value>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                      <next>
                                                                        <block type="variables_set" id="{qDt~P^xXdlUYMEJ/JN{">
                                                                          <field name="VAR" id="DRJ.iVA5f}kG0snR{]c|">sec</field>
                                                                          <value name="VALUE">
                                                                            <block type="math_round" id="DEX*kqOIekO!tF;KFU:i">
                                                                              <field name="OP">ROUND</field>
                                                                              <value name="NUM">
                                                                                <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="9?PDN?vq0I(1J0/t@VTk">
                                                                                  <field name="NUM">3.1</field>
                                                                                </shadow>
                                                                                <block type="math_arithmetic" id="[@!2`6uwcXC0Jl1}*fde">
                                                                                  <field name="OP">DIVIDE</field>
                                                                                  <value name="A">
                                                                                    <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="dtfN1M%5RNb0]xbUEm:R">
                                                                                      <field name="NUM">1</field>
                                                                                    </shadow>
                                                                                    <block type="variables_get" id="AT^9^[wo;G$VGKTgabU:">
                                                                                      <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA">Dauer</field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="B">
                                                                                    <shadow type="math_number" id="9@OD[Q0RL7.#0B6M$?d8">
                                                                                      <field name="NUM">1000</field>
                                                                                    </shadow>
                                                                                  </value>
                                                                                </block>
                                                                              </value>
                                                                            </block>
                                                                          </value>
                                                                          <next>
                                                                            <block type="control" id="7HfM6x`@DGG2)WpoYAg0">
                                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                              <field name="OID">0_userdata.0.Pool.Laufzeit</field>
                                                                              <field name="WITH_DELAY">FALSE</field>
                                                                              <value name="VALUE">
                                                                                <block type="text_join" id=":r_DP)dXj@Jv~7?yyyK_">
                                                                                  <mutation items="8"></mutation>
                                                                                  <value name="ADD0">
                                                                                    <block type="variables_get" id="!EZopb^xh[~,gG@4W1,w">
                                                                                      <field name="VAR" id="moxiY#/V659kTQ}a:eJ[">tage</field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="ADD1">
                                                                                    <block type="text" id="+h^zTHY7^I!hRy7N0WNH">
                                                                                      <field name="TEXT"> ; </field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="ADD2">
                                                                                    <block type="variables_get" id="sOY$z$z[]a=/h+V@Uz2H">
                                                                                      <field name="VAR" id="kE/kiClb=y?}6)j?_-_R">std</field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="ADD3">
                                                                                    <block type="text" id=")lj,hPOWg~tF(AEaY-wB">
                                                                                      <field name="TEXT"> : </field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="ADD4">
                                                                                    <block type="variables_get" id="JBAVOqF#j#wA#5hA%X4q">
                                                                                      <field name="VAR" id="F..#nc_!4s(/0NkG7Dzk">min</field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="ADD5">
                                                                                    <block type="text" id="!IyHG|A%`h(?iFXz+O^A">
                                                                                      <field name="TEXT"> : </field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="ADD6">
                                                                                    <block type="variables_get" id="naIdEV$uD!hEu`d/Rcno">
                                                                                      <field name="VAR" id="DRJ.iVA5f}kG0snR{]c|">sec</field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="ADD7">
                                                                                    <block type="text" id="o)$!!Z38,;4;O5tR|7,i">
                                                                                      <field name="TEXT"></field>
                                                                                    </block>
                                                                                  </value>
                                                                                </block>
                                                                              </value>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </statement>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
          </statement>
        </block>
      </xml>
      

      Was mache ich falsch? Nur um einen Number-Datenpunkt in eine Zeitanzeige umrechnen?

      DJMarc75D Offline
      DJMarc75D Offline
      DJMarc75
      schrieb am zuletzt editiert von DJMarc75
      #2

      @joachim-knape
      Vll so ?

      Screenshot 2022-05-26 113829.png

      -3600000 ist die Anpassung an CEST die Zeitzone Europe/Berlin

      Lehrling seit 1975 !!!
      Beitrag geholfen ? dann gerne ein upvote rechts unten im Beitrag klicken ;)
      https://forum.iobroker.net/topic/51555/hinweise-f%C3%BCr-gute-forenbeitr%C3%A4ge

      J 1 Antwort Letzte Antwort
      0
      • J joachim.knape

        Ich habe jetzt wirklich ausführlich die Suchfunktion genutzt und nichts für mich hilfreiches gefunden - zumal es sich um ein eigentlich recht banales Problem handelt..
        Ich habe einen Datenpunkt Countdown 0_userdata.0.Pool.Countdown der auf Knopfdruck in der VIS z.b. auf 2000 gesetzt wird. Also 2000 Sekunden. Diese zählen brav runter bis auf null, und ich kanns auch stoppen.
        Was mich aber irre macht: nirgendwo finde ich simplen Blockly Code, um diese Zahl (number) 2000 in Stunden:Minuten:Sekunden sauber umzurechnen und in der VIS anzeigen zu lassen.
        Alle meine Versuche, die Zahl irgendwie umzurechnen, scheitern kläglich..

        Hier mein bisheriger Code:

        <xml xmlns="https://developers.google.com/blockly/xml">
          <variables>
            <variable type="interval" id="Intervall">Intervall</variable>
            <variable id="r)M)J`L2gdR+-rjVpLQA">Dauer</variable>
            <variable id="moxiY#/V659kTQ}a:eJ[">tage</variable>
            <variable id="kE/kiClb=y?}6)j?_-_R">std</variable>
            <variable id="F..#nc_!4s(/0NkG7Dzk">min</variable>
            <variable id="DRJ.iVA5f}kG0snR{]c|">sec</variable>
          </variables>
          <block type="on" id="1Tq^4!D-.,a%(VGmgqbI" x="62" y="-213">
            <field name="OID">javascript.0.scriptEnabled.common.Pool_Umwälzpumpe_1_Stunde</field>
            <field name="CONDITION">ne</field>
            <field name="ACK_CONDITION"></field>
            <statement name="STATEMENT">
              <block type="controls_if" id="-Hh%o]@ug7?ayaQbb9{K">
                <value name="IF0">
                  <block type="logic_compare" id="Wx$~v;{?T)8%t.K;LpB:">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="get_value" id="U^IkX]JROGhfEaO{.eDV">
                        <field name="ATTR">val</field>
                        <field name="OID">javascript.0.scriptEnabled.common.Pool_Umwälzpumpe_1_Stunde</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_boolean" id="Adi3BU2?OQ}F^Q:VZU{)">
                        <field name="BOOL">FALSE</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="update" id="AS9z5app.u#sMX_@r2=N">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">0_userdata.0.Pool.Countdown</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="math_number" id="`dD:A+upjMj)!;]kXd/j">
                        <field name="NUM">0</field>
                      </block>
                    </value>
                    <next>
                      <block type="update" id="9G.kSe:+UFu:v|D;BJ^#">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">0_userdata.0.Pool.countdown_minute</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="math_number" id="jP9-}VJMOo]vUD(xucYg">
                            <field name="NUM">0</field>
                          </block>
                        </value>
                        <next>
                          <block type="update" id="cB?=Z(?%KaAK8}z3uct`">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">0_userdata.0.Pool.countdown_sekunde</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="math_number" id="l*p+eAf*!Bb}m_qyPJn5">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                            <next>
                              <block type="update" id="sSASiIKTEaz?kJsm@L[-">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">0_userdata.0.Pool.countdown_stunde</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="math_number" id="SpX)/`i??6/f^aGfq#*a">
                                    <field name="NUM">0</field>
                                  </block>
                                </value>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </statement>
                <next>
                  <block type="controls_if" id="{QFSH0e^GP-eybJKT#RK">
                    <value name="IF0">
                      <block type="logic_compare" id="q}q[t~vh%ZbqxW:Ar-o6">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id="}QZ+8t3CMp^{EiWVO)Dx">
                            <field name="ATTR">val</field>
                            <field name="OID">javascript.0.scriptEnabled.common.Pool_Umwälzpumpe_1_Stunde</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_boolean" id="kZJH`D4Rsf]Bs5Z%hjSA">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="update" id="]Oq6Sw|j9*a}V@@_(Sx|">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">0_userdata.0.Pool.Countdown</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="math_number" id="y1TKREl.0Jikg:qkF%F_">
                            <field name="NUM">100</field>
                          </block>
                        </value>
                        <next>
                          <block type="timeouts_setinterval" id="8[L,;XYj)s!GV+??au`:">
                            <field name="NAME">Intervall</field>
                            <field name="INTERVAL">1</field>
                            <field name="UNIT">sec</field>
                            <statement name="STATEMENT">
                              <block type="controls_if" id="42]8LTtu54/t(-2|#:#$">
                                <value name="IF0">
                                  <block type="logic_compare" id=";AGS,!lPI5}b;52U|`6*">
                                    <field name="OP">LT</field>
                                    <value name="A">
                                      <block type="get_value" id="6ob2WR$,{|,Y6:6Gx{~!">
                                        <field name="ATTR">val</field>
                                        <field name="OID">0_userdata.0.Pool.Countdown</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="math_number" id="*kJu5G$s7u(oE?o+2h$P">
                                        <field name="NUM">1</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="timeouts_clearinterval" id="k}7.ed~Jnd?1pjpsWq77">
                                    <field name="NAME">Intervall</field>
                                    <next>
                                      <block type="control" id="ujw.BgE:cFyA:Yqlkm6%">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">javascript.0.scriptEnabled.common.Pool_Umwälzpumpe_1_Stunde</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="Yc+gEn4v^)5|?~`NiSiA">
                                            <field name="BOOL">FALSE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </next>
                                  </block>
                                </statement>
                                <next>
                                  <block type="update" id="|3g+Ua3v:Gy9b]ew+[UP">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">0_userdata.0.Pool.Countdown</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="math_arithmetic" id="vX0(jSmDTCjLp(BGMPsw">
                                        <field name="OP">MINUS</field>
                                        <value name="A">
                                          <shadow type="math_number" id="V4mZ8Hehu0rrImF;Ak?C">
                                            <field name="NUM">1</field>
                                          </shadow>
                                          <block type="get_value" id="dM|buv*vzib1BK^2RRXu">
                                            <field name="ATTR">val</field>
                                            <field name="OID">0_userdata.0.Pool.Countdown</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <shadow type="math_number" id="r#DzQiES5j326Vg#=AQA">
                                            <field name="NUM">1</field>
                                          </shadow>
                                        </value>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="comment" id="H-NoHqZu]=Y0x=LhSU!S">
                                        <field name="COMMENT">Kommentar</field>
                                        <next>
                                          <block type="comment" id="idvzV8g)513*==2yR,.C">
                                            <field name="COMMENT">Kommentar</field>
                                            <next>
                                              <block type="variables_set" id="ioolV*0*~aK99._xGf4i">
                                                <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA">Dauer</field>
                                                <value name="VALUE">
                                                  <block type="get_value" id="wV+=)oo])APJ-up+Kcm3">
                                                    <field name="ATTR">ts</field>
                                                    <field name="OID">0_userdata.0.Pool.Countdown</field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="variables_set" id="d#Mf%Vp1N]rbGTAqMJ1%">
                                                    <field name="VAR" id="moxiY#/V659kTQ}a:eJ[">tage</field>
                                                    <value name="VALUE">
                                                      <block type="math_round" id="kl^`w62qML7NfK6obI)R">
                                                        <field name="OP">ROUNDDOWN</field>
                                                        <value name="NUM">
                                                          <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="9?PDN?vq0I(1J0/t@VTk">
                                                            <field name="NUM">3.1</field>
                                                          </shadow>
                                                          <block type="math_arithmetic" id="Vq4e$#!w=`xg_}Su1.ED">
                                                            <field name="OP">DIVIDE</field>
                                                            <value name="A">
                                                              <shadow type="math_number" id="dtfN1M%5RNb0]xbUEm:R">
                                                                <field name="NUM">1</field>
                                                              </shadow>
                                                              <block type="variables_get" id="P2DL%-5VMuQs8M.vDPhQ">
                                                                <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA">Dauer</field>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <shadow type="math_number" id="xN73Vg#|I~62Ed=PUT%^">
                                                                <field name="NUM">86400000</field>
                                                              </shadow>
                                                            </value>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="variables_set" id="XzKStL$rv+783U;lrI1]">
                                                        <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA">Dauer</field>
                                                        <value name="VALUE">
                                                          <block type="math_arithmetic" id="@PeJ}u3X):vUjeEbh}b!">
                                                            <field name="OP">MINUS</field>
                                                            <value name="A">
                                                              <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="vZXOD9^Cw`KiCMM5BUbH">
                                                                <field name="NUM">1</field>
                                                              </shadow>
                                                              <block type="variables_get" id="rYu:XuWA=@c.X[oR~2QX">
                                                                <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA">Dauer</field>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="5+De(qT}`Jjl^O;@eM5n">
                                                                <field name="NUM">1</field>
                                                              </shadow>
                                                              <block type="math_arithmetic" id="[=RIpUA6gN7kz_Q7;K9*">
                                                                <field name="OP">MULTIPLY</field>
                                                                <value name="A">
                                                                  <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="D[UXt!BH2NGCqR?Q|UiO">
                                                                    <field name="NUM">1</field>
                                                                  </shadow>
                                                                  <block type="variables_get" id="R-1S]-Y`CW]Ug]ZZf)]!">
                                                                    <field name="VAR" id="moxiY#/V659kTQ}a:eJ[">tage</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <shadow type="math_number" id="962lAEL@@9*Z{v)YClgt">
                                                                    <field name="NUM">86400000</field>
                                                                  </shadow>
                                                                </value>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="variables_set" id="4}N56*i%8!#K?;dkAaYf">
                                                            <field name="VAR" id="kE/kiClb=y?}6)j?_-_R">std</field>
                                                            <value name="VALUE">
                                                              <block type="math_round" id="i_ICM,.fM!CQOVV+#;~G">
                                                                <field name="OP">ROUNDDOWN</field>
                                                                <value name="NUM">
                                                                  <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="9?PDN?vq0I(1J0/t@VTk">
                                                                    <field name="NUM">3.1</field>
                                                                  </shadow>
                                                                  <block type="math_arithmetic" id="|=g9W]nda)Y)2k/[Wv_=">
                                                                    <field name="OP">DIVIDE</field>
                                                                    <value name="A">
                                                                      <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="dtfN1M%5RNb0]xbUEm:R">
                                                                        <field name="NUM">1</field>
                                                                      </shadow>
                                                                      <block type="variables_get" id="3n^zkm.#vR+K0H6t4UM_">
                                                                        <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA">Dauer</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <shadow type="math_number" id="N`]ykTeeI#)Hf$%e]L2!">
                                                                        <field name="NUM">3600000</field>
                                                                      </shadow>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <next>
                                                              <block type="variables_set" id="h/81*9P*8[4VR,|Y/l[/">
                                                                <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA">Dauer</field>
                                                                <value name="VALUE">
                                                                  <block type="math_arithmetic" id="CfGZ4A5O~064DV0BtM.u">
                                                                    <field name="OP">MINUS</field>
                                                                    <value name="A">
                                                                      <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="vZXOD9^Cw`KiCMM5BUbH">
                                                                        <field name="NUM">1</field>
                                                                      </shadow>
                                                                      <block type="variables_get" id="WS(P/bX7d^ul}?60y)qY">
                                                                        <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA">Dauer</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="5+De(qT}`Jjl^O;@eM5n">
                                                                        <field name="NUM">1</field>
                                                                      </shadow>
                                                                      <block type="math_arithmetic" id="i}+8JL_Q#0S}Vl#t-Ke3">
                                                                        <field name="OP">MULTIPLY</field>
                                                                        <value name="A">
                                                                          <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="D[UXt!BH2NGCqR?Q|UiO">
                                                                            <field name="NUM">1</field>
                                                                          </shadow>
                                                                          <block type="variables_get" id="?bB0b4ITZD7):P/T1jKh">
                                                                            <field name="VAR" id="kE/kiClb=y?}6)j?_-_R">std</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <shadow type="math_number" id=",;(Ox_#1$7=rTId$yc/[">
                                                                            <field name="NUM">3600000</field>
                                                                          </shadow>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                                <next>
                                                                  <block type="variables_set" id="mi|Nsm(ddYqrJk$i-`|#">
                                                                    <field name="VAR" id="F..#nc_!4s(/0NkG7Dzk">min</field>
                                                                    <value name="VALUE">
                                                                      <block type="math_round" id="E$./CjOLf~Yz!Ti6iR_D">
                                                                        <field name="OP">ROUNDDOWN</field>
                                                                        <value name="NUM">
                                                                          <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="9?PDN?vq0I(1J0/t@VTk">
                                                                            <field name="NUM">3.1</field>
                                                                          </shadow>
                                                                          <block type="math_arithmetic" id="n7z]@zr[x6NHv3OU*e9*">
                                                                            <field name="OP">DIVIDE</field>
                                                                            <value name="A">
                                                                              <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="dtfN1M%5RNb0]xbUEm:R">
                                                                                <field name="NUM">1</field>
                                                                              </shadow>
                                                                              <block type="variables_get" id="HzzXG8yC)eLfjq|H~v3;">
                                                                                <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA">Dauer</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="B">
                                                                              <shadow type="math_number" id="uem@3Cu$;SXmgtnx-#P6">
                                                                                <field name="NUM">60000</field>
                                                                              </shadow>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                    <next>
                                                                      <block type="variables_set" id=".aKU3yi6Vn}Q}8h{O;sl">
                                                                        <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA">Dauer</field>
                                                                        <value name="VALUE">
                                                                          <block type="math_arithmetic" id="%%%KFqfG)8ex=|_VKxy^">
                                                                            <field name="OP">MINUS</field>
                                                                            <value name="A">
                                                                              <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="vZXOD9^Cw`KiCMM5BUbH">
                                                                                <field name="NUM">1</field>
                                                                              </shadow>
                                                                              <block type="variables_get" id="+DL#x{a]cSnzG6V;=dK1">
                                                                                <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA">Dauer</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="B">
                                                                              <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="5+De(qT}`Jjl^O;@eM5n">
                                                                                <field name="NUM">1</field>
                                                                              </shadow>
                                                                              <block type="math_arithmetic" id="pN|DbN#YE,WTL-}C,n0|">
                                                                                <field name="OP">MULTIPLY</field>
                                                                                <value name="A">
                                                                                  <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="D[UXt!BH2NGCqR?Q|UiO">
                                                                                    <field name="NUM">1</field>
                                                                                  </shadow>
                                                                                  <block type="variables_get" id="==;p=)Y`/E0ocGx$e(WM">
                                                                                    <field name="VAR" id="F..#nc_!4s(/0NkG7Dzk">min</field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="B">
                                                                                  <shadow type="math_number" id="j@2_L0kpv^S%`n0TR7~v">
                                                                                    <field name="NUM">60000</field>
                                                                                  </shadow>
                                                                                </value>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                        <next>
                                                                          <block type="variables_set" id="{qDt~P^xXdlUYMEJ/JN{">
                                                                            <field name="VAR" id="DRJ.iVA5f}kG0snR{]c|">sec</field>
                                                                            <value name="VALUE">
                                                                              <block type="math_round" id="DEX*kqOIekO!tF;KFU:i">
                                                                                <field name="OP">ROUND</field>
                                                                                <value name="NUM">
                                                                                  <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="9?PDN?vq0I(1J0/t@VTk">
                                                                                    <field name="NUM">3.1</field>
                                                                                  </shadow>
                                                                                  <block type="math_arithmetic" id="[@!2`6uwcXC0Jl1}*fde">
                                                                                    <field name="OP">DIVIDE</field>
                                                                                    <value name="A">
                                                                                      <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="dtfN1M%5RNb0]xbUEm:R">
                                                                                        <field name="NUM">1</field>
                                                                                      </shadow>
                                                                                      <block type="variables_get" id="AT^9^[wo;G$VGKTgabU:">
                                                                                        <field name="VAR" id="r)M)J`L2gdR+-rjVpLQA">Dauer</field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <value name="B">
                                                                                      <shadow type="math_number" id="9@OD[Q0RL7.#0B6M$?d8">
                                                                                        <field name="NUM">1000</field>
                                                                                      </shadow>
                                                                                    </value>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </value>
                                                                            <next>
                                                                              <block type="control" id="7HfM6x`@DGG2)WpoYAg0">
                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                <field name="OID">0_userdata.0.Pool.Laufzeit</field>
                                                                                <field name="WITH_DELAY">FALSE</field>
                                                                                <value name="VALUE">
                                                                                  <block type="text_join" id=":r_DP)dXj@Jv~7?yyyK_">
                                                                                    <mutation items="8"></mutation>
                                                                                    <value name="ADD0">
                                                                                      <block type="variables_get" id="!EZopb^xh[~,gG@4W1,w">
                                                                                        <field name="VAR" id="moxiY#/V659kTQ}a:eJ[">tage</field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <value name="ADD1">
                                                                                      <block type="text" id="+h^zTHY7^I!hRy7N0WNH">
                                                                                        <field name="TEXT"> ; </field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <value name="ADD2">
                                                                                      <block type="variables_get" id="sOY$z$z[]a=/h+V@Uz2H">
                                                                                        <field name="VAR" id="kE/kiClb=y?}6)j?_-_R">std</field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <value name="ADD3">
                                                                                      <block type="text" id=")lj,hPOWg~tF(AEaY-wB">
                                                                                        <field name="TEXT"> : </field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <value name="ADD4">
                                                                                      <block type="variables_get" id="JBAVOqF#j#wA#5hA%X4q">
                                                                                        <field name="VAR" id="F..#nc_!4s(/0NkG7Dzk">min</field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <value name="ADD5">
                                                                                      <block type="text" id="!IyHG|A%`h(?iFXz+O^A">
                                                                                        <field name="TEXT"> : </field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <value name="ADD6">
                                                                                      <block type="variables_get" id="naIdEV$uD!hEu`d/Rcno">
                                                                                        <field name="VAR" id="DRJ.iVA5f}kG0snR{]c|">sec</field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <value name="ADD7">
                                                                                      <block type="text" id="o)$!!Z38,;4;O5tR|7,i">
                                                                                        <field name="TEXT"></field>
                                                                                      </block>
                                                                                    </value>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </next>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </statement>
                          </block>
                        </next>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </statement>
          </block>
        </xml>
        

        Was mache ich falsch? Nur um einen Number-Datenpunkt in eine Zeitanzeige umrechnen?

        HomoranH Nicht stören
        HomoranH Nicht stören
        Homoran
        Global Moderator Administrators
        schrieb am zuletzt editiert von
        #3

        @joachim-knape sagte in Umrechnung Zahl in std min sek:

        Ich habe jetzt wirklich ausführlich die Suchfunktion genutzt

        https://forum.iobroker.net/topic/55078/wert-aus-datenpunkt-in-hh-mm-ss-umrechnen-gelöst?_=1653559207624

        kein Support per PN! - Fragen im Forum stellen -
        Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.
        Das Forum freut sich über eine Spende. Benutzt dazu den Spendenbutton oben rechts. Danke!
        der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

        1 Antwort Letzte Antwort
        0
        • DJMarc75D DJMarc75

          @joachim-knape
          Vll so ?

          Screenshot 2022-05-26 113829.png

          -3600000 ist die Anpassung an CEST die Zeitzone Europe/Berlin

          J Offline
          J Offline
          joachim.knape
          schrieb am zuletzt editiert von joachim.knape
          #4

          @djmarc75 leider funzt das nicht..
          mein code:

          <xml xmlns="https://developers.google.com/blockly/xml">
            <variables>
              <variable type="interval" id="Intervall">Intervall</variable>
            </variables>
            <block type="on" id="1Tq^4!D-.,a%(VGmgqbI" x="62" y="-213">
              <field name="OID">javascript.0.scriptEnabled.common.Pool_Umwälzpumpe_1_Stunde</field>
              <field name="CONDITION">ne</field>
              <field name="ACK_CONDITION"></field>
              <statement name="STATEMENT">
                <block type="controls_if" id="-Hh%o]@ug7?ayaQbb9{K">
                  <value name="IF0">
                    <block type="logic_compare" id="Wx$~v;{?T)8%t.K;LpB:">
                      <field name="OP">EQ</field>
                      <value name="A">
                        <block type="get_value" id="U^IkX]JROGhfEaO{.eDV">
                          <field name="ATTR">val</field>
                          <field name="OID">javascript.0.scriptEnabled.common.Pool_Umwälzpumpe_1_Stunde</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_boolean" id="Adi3BU2?OQ}F^Q:VZU{)">
                          <field name="BOOL">FALSE</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="update" id="AS9z5app.u#sMX_@r2=N">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">0_userdata.0.Pool.Countdown</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="math_number" id="`dD:A+upjMj)!;]kXd/j">
                          <field name="NUM">0</field>
                        </block>
                      </value>
                      <next>
                        <block type="update" id="9G.kSe:+UFu:v|D;BJ^#">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">0_userdata.0.Pool.countdown_minute</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="math_number" id="jP9-}VJMOo]vUD(xucYg">
                              <field name="NUM">0</field>
                            </block>
                          </value>
                          <next>
                            <block type="update" id="cB?=Z(?%KaAK8}z3uct`">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">0_userdata.0.Pool.countdown_sekunde</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="math_number" id="l*p+eAf*!Bb}m_qyPJn5">
                                  <field name="NUM">0</field>
                                </block>
                              </value>
                              <next>
                                <block type="update" id="sSASiIKTEaz?kJsm@L[-">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">0_userdata.0.Pool.countdown_stunde</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="math_number" id="SpX)/`i??6/f^aGfq#*a">
                                      <field name="NUM">0</field>
                                    </block>
                                  </value>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </statement>
                  <next>
                    <block type="controls_if" id="{QFSH0e^GP-eybJKT#RK">
                      <value name="IF0">
                        <block type="logic_compare" id="q}q[t~vh%ZbqxW:Ar-o6">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id="}QZ+8t3CMp^{EiWVO)Dx">
                              <field name="ATTR">val</field>
                              <field name="OID">javascript.0.scriptEnabled.common.Pool_Umwälzpumpe_1_Stunde</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_boolean" id="kZJH`D4Rsf]Bs5Z%hjSA">
                              <field name="BOOL">TRUE</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="update" id="]Oq6Sw|j9*a}V@@_(Sx|">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">0_userdata.0.Pool.Countdown</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="math_number" id="y1TKREl.0Jikg:qkF%F_">
                              <field name="NUM">100</field>
                            </block>
                          </value>
                          <next>
                            <block type="timeouts_setinterval" id="8[L,;XYj)s!GV+??au`:">
                              <field name="NAME">Intervall</field>
                              <field name="INTERVAL">1</field>
                              <field name="UNIT">sec</field>
                              <statement name="STATEMENT">
                                <block type="controls_if" id="42]8LTtu54/t(-2|#:#$">
                                  <value name="IF0">
                                    <block type="logic_compare" id=";AGS,!lPI5}b;52U|`6*">
                                      <field name="OP">LT</field>
                                      <value name="A">
                                        <block type="get_value" id="6ob2WR$,{|,Y6:6Gx{~!">
                                          <field name="ATTR">val</field>
                                          <field name="OID">0_userdata.0.Pool.Countdown</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="math_number" id="*kJu5G$s7u(oE?o+2h$P">
                                          <field name="NUM">1</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO0">
                                    <block type="timeouts_clearinterval" id="k}7.ed~Jnd?1pjpsWq77">
                                      <field name="NAME">Intervall</field>
                                      <next>
                                        <block type="control" id="ujw.BgE:cFyA:Yqlkm6%">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">javascript.0.scriptEnabled.common.Pool_Umwälzpumpe_1_Stunde</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="logic_boolean" id="Yc+gEn4v^)5|?~`NiSiA">
                                              <field name="BOOL">FALSE</field>
                                            </block>
                                          </value>
                                        </block>
                                      </next>
                                    </block>
                                  </statement>
                                  <next>
                                    <block type="update" id="|3g+Ua3v:Gy9b]ew+[UP">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">0_userdata.0.Pool.Countdown</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="math_arithmetic" id="vX0(jSmDTCjLp(BGMPsw">
                                          <field name="OP">MINUS</field>
                                          <value name="A">
                                            <shadow type="math_number" id="V4mZ8Hehu0rrImF;Ak?C">
                                              <field name="NUM">1</field>
                                            </shadow>
                                            <block type="get_value" id="dM|buv*vzib1BK^2RRXu">
                                              <field name="ATTR">val</field>
                                              <field name="OID">0_userdata.0.Pool.Countdown</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <shadow type="math_number" id="r#DzQiES5j326Vg#=AQA">
                                              <field name="NUM">1</field>
                                            </shadow>
                                          </value>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="comment" id="H-NoHqZu]=Y0x=LhSU!S">
                                          <field name="COMMENT">Kommentar</field>
                                          <next>
                                            <block type="control" id="Y:0CqVWK`BK#h{ZTniP`">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                              <field name="OID">0_userdata.0.Pool.Laufzeit</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="convert_from_date" id="PR)XyCsHIhebeC/z#/F]">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                  <field name="OPTION">hh:mm:ss</field>
                                                  <value name="VALUE">
                                                    <block type="math_arithmetic" id="/|8kYS{9][dtmwgEJo1z">
                                                      <field name="OP">MINUS</field>
                                                      <value name="A">
                                                        <shadow type="math_number" id="~3k~p}xFG@8DNzjprc+u">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="get_value" id="g*~8y+#a].FnL/kwPS=#">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">0_userdata.0.Pool.Countdown</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <shadow type="math_number" id=";gbJL*Dv#2xN(r.6P,-`">
                                                          <field name="NUM">3600000</field>
                                                        </shadow>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="debug" id="XhiP],F0yF1}~IW,r_l2">
                                                  <field name="Severity">warn</field>
                                                  <value name="TEXT">
                                                    <shadow type="text" id="yb?P@`z@Ab+]O-S3^[vS">
                                                      <field name="TEXT">test</field>
                                                    </shadow>
                                                    <block type="convert_from_date" id="_ldLo4Dy-_x:ZqVW4g#P">
                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                      <field name="OPTION">hh:mm:ss</field>
                                                      <value name="VALUE">
                                                        <block type="math_arithmetic" id="[bo^Rr8h7%[iM[y~xS0E">
                                                          <field name="OP">MINUS</field>
                                                          <value name="A">
                                                            <shadow type="math_number">
                                                              <field name="NUM">1</field>
                                                            </shadow>
                                                            <block type="get_value" id="ccmBjc~#e1tkl6COas`s">
                                                              <field name="ATTR">val</field>
                                                              <field name="OID">0_userdata.0.Pool.Countdown</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <shadow type="math_number" id="[K..IiB-FwktE7qr6Y%l">
                                                              <field name="NUM">3600000</field>
                                                            </shadow>
                                                          </value>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="comment" id="idvzV8g)513*==2yR,.C">
                                                      <field name="COMMENT">Kommentar</field>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                  </next>
                </block>
              </statement>
            </block>
          </xml>
          

          der Countdown ist erstmal manuell auf 100 Sekunden gesetzt, aber der Datenpunkt Laufzeit zeigt immer nur 1:00:00 an und ändert sich nicht..
          Liegt es am Typ des Datenpunktes? Welchen Typ muss der haben bei Zeitanzeigen? Number, String, Mixed? Oder was anderes?
          Der Datenpunkt Countdown ist die gewünschte Anzahl an Sekunden. Typ: Number. Und was fürn Typ muss der Datenpunkt der Ausgabe (hier Laufzeit) haben?

          Meister MopperM paul53P 2 Antworten Letzte Antwort
          0
          • J joachim.knape

            @djmarc75 leider funzt das nicht..
            mein code:

            <xml xmlns="https://developers.google.com/blockly/xml">
              <variables>
                <variable type="interval" id="Intervall">Intervall</variable>
              </variables>
              <block type="on" id="1Tq^4!D-.,a%(VGmgqbI" x="62" y="-213">
                <field name="OID">javascript.0.scriptEnabled.common.Pool_Umwälzpumpe_1_Stunde</field>
                <field name="CONDITION">ne</field>
                <field name="ACK_CONDITION"></field>
                <statement name="STATEMENT">
                  <block type="controls_if" id="-Hh%o]@ug7?ayaQbb9{K">
                    <value name="IF0">
                      <block type="logic_compare" id="Wx$~v;{?T)8%t.K;LpB:">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id="U^IkX]JROGhfEaO{.eDV">
                            <field name="ATTR">val</field>
                            <field name="OID">javascript.0.scriptEnabled.common.Pool_Umwälzpumpe_1_Stunde</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_boolean" id="Adi3BU2?OQ}F^Q:VZU{)">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="update" id="AS9z5app.u#sMX_@r2=N">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">0_userdata.0.Pool.Countdown</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="math_number" id="`dD:A+upjMj)!;]kXd/j">
                            <field name="NUM">0</field>
                          </block>
                        </value>
                        <next>
                          <block type="update" id="9G.kSe:+UFu:v|D;BJ^#">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">0_userdata.0.Pool.countdown_minute</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="math_number" id="jP9-}VJMOo]vUD(xucYg">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                            <next>
                              <block type="update" id="cB?=Z(?%KaAK8}z3uct`">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">0_userdata.0.Pool.countdown_sekunde</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="math_number" id="l*p+eAf*!Bb}m_qyPJn5">
                                    <field name="NUM">0</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="update" id="sSASiIKTEaz?kJsm@L[-">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">0_userdata.0.Pool.countdown_stunde</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="math_number" id="SpX)/`i??6/f^aGfq#*a">
                                        <field name="NUM">0</field>
                                      </block>
                                    </value>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </statement>
                    <next>
                      <block type="controls_if" id="{QFSH0e^GP-eybJKT#RK">
                        <value name="IF0">
                          <block type="logic_compare" id="q}q[t~vh%ZbqxW:Ar-o6">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="get_value" id="}QZ+8t3CMp^{EiWVO)Dx">
                                <field name="ATTR">val</field>
                                <field name="OID">javascript.0.scriptEnabled.common.Pool_Umwälzpumpe_1_Stunde</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_boolean" id="kZJH`D4Rsf]Bs5Z%hjSA">
                                <field name="BOOL">TRUE</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="update" id="]Oq6Sw|j9*a}V@@_(Sx|">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">0_userdata.0.Pool.Countdown</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="math_number" id="y1TKREl.0Jikg:qkF%F_">
                                <field name="NUM">100</field>
                              </block>
                            </value>
                            <next>
                              <block type="timeouts_setinterval" id="8[L,;XYj)s!GV+??au`:">
                                <field name="NAME">Intervall</field>
                                <field name="INTERVAL">1</field>
                                <field name="UNIT">sec</field>
                                <statement name="STATEMENT">
                                  <block type="controls_if" id="42]8LTtu54/t(-2|#:#$">
                                    <value name="IF0">
                                      <block type="logic_compare" id=";AGS,!lPI5}b;52U|`6*">
                                        <field name="OP">LT</field>
                                        <value name="A">
                                          <block type="get_value" id="6ob2WR$,{|,Y6:6Gx{~!">
                                            <field name="ATTR">val</field>
                                            <field name="OID">0_userdata.0.Pool.Countdown</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number" id="*kJu5G$s7u(oE?o+2h$P">
                                            <field name="NUM">1</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="timeouts_clearinterval" id="k}7.ed~Jnd?1pjpsWq77">
                                        <field name="NAME">Intervall</field>
                                        <next>
                                          <block type="control" id="ujw.BgE:cFyA:Yqlkm6%">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">javascript.0.scriptEnabled.common.Pool_Umwälzpumpe_1_Stunde</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="logic_boolean" id="Yc+gEn4v^)5|?~`NiSiA">
                                                <field name="BOOL">FALSE</field>
                                              </block>
                                            </value>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                    <next>
                                      <block type="update" id="|3g+Ua3v:Gy9b]ew+[UP">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">0_userdata.0.Pool.Countdown</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="math_arithmetic" id="vX0(jSmDTCjLp(BGMPsw">
                                            <field name="OP">MINUS</field>
                                            <value name="A">
                                              <shadow type="math_number" id="V4mZ8Hehu0rrImF;Ak?C">
                                                <field name="NUM">1</field>
                                              </shadow>
                                              <block type="get_value" id="dM|buv*vzib1BK^2RRXu">
                                                <field name="ATTR">val</field>
                                                <field name="OID">0_userdata.0.Pool.Countdown</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <shadow type="math_number" id="r#DzQiES5j326Vg#=AQA">
                                                <field name="NUM">1</field>
                                              </shadow>
                                            </value>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="comment" id="H-NoHqZu]=Y0x=LhSU!S">
                                            <field name="COMMENT">Kommentar</field>
                                            <next>
                                              <block type="control" id="Y:0CqVWK`BK#h{ZTniP`">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">0_userdata.0.Pool.Laufzeit</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="convert_from_date" id="PR)XyCsHIhebeC/z#/F]">
                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                    <field name="OPTION">hh:mm:ss</field>
                                                    <value name="VALUE">
                                                      <block type="math_arithmetic" id="/|8kYS{9][dtmwgEJo1z">
                                                        <field name="OP">MINUS</field>
                                                        <value name="A">
                                                          <shadow type="math_number" id="~3k~p}xFG@8DNzjprc+u">
                                                            <field name="NUM">1</field>
                                                          </shadow>
                                                          <block type="get_value" id="g*~8y+#a].FnL/kwPS=#">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">0_userdata.0.Pool.Countdown</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <shadow type="math_number" id=";gbJL*Dv#2xN(r.6P,-`">
                                                            <field name="NUM">3600000</field>
                                                          </shadow>
                                                        </value>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="debug" id="XhiP],F0yF1}~IW,r_l2">
                                                    <field name="Severity">warn</field>
                                                    <value name="TEXT">
                                                      <shadow type="text" id="yb?P@`z@Ab+]O-S3^[vS">
                                                        <field name="TEXT">test</field>
                                                      </shadow>
                                                      <block type="convert_from_date" id="_ldLo4Dy-_x:ZqVW4g#P">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                        <field name="OPTION">hh:mm:ss</field>
                                                        <value name="VALUE">
                                                          <block type="math_arithmetic" id="[bo^Rr8h7%[iM[y~xS0E">
                                                            <field name="OP">MINUS</field>
                                                            <value name="A">
                                                              <shadow type="math_number">
                                                                <field name="NUM">1</field>
                                                              </shadow>
                                                              <block type="get_value" id="ccmBjc~#e1tkl6COas`s">
                                                                <field name="ATTR">val</field>
                                                                <field name="OID">0_userdata.0.Pool.Countdown</field>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <shadow type="math_number" id="[K..IiB-FwktE7qr6Y%l">
                                                                <field name="NUM">3600000</field>
                                                              </shadow>
                                                            </value>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="comment" id="idvzV8g)513*==2yR,.C">
                                                        <field name="COMMENT">Kommentar</field>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </statement>
                              </block>
                            </next>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </statement>
              </block>
            </xml>
            

            der Countdown ist erstmal manuell auf 100 Sekunden gesetzt, aber der Datenpunkt Laufzeit zeigt immer nur 1:00:00 an und ändert sich nicht..
            Liegt es am Typ des Datenpunktes? Welchen Typ muss der haben bei Zeitanzeigen? Number, String, Mixed? Oder was anderes?
            Der Datenpunkt Countdown ist die gewünschte Anzahl an Sekunden. Typ: Number. Und was fürn Typ muss der Datenpunkt der Ausgabe (hier Laufzeit) haben?

            Meister MopperM Online
            Meister MopperM Online
            Meister Mopper
            Most Active
            schrieb am zuletzt editiert von
            #5

            @joachim-knape
            Hier mal ein funktionierendes Beispiel mit Minuten. Das kannst Du ja leicht auf Sekunden ummodeln.

            Es wird ein string erzeugt, den kannst Du auch in der vis anzeigen.

            119af71b-ee21-4942-a239-65499c84365e-grafik.png

            Proxmox und HA - dank KI/AI endlich "blocklyfrei"

            1 Antwort Letzte Antwort
            0
            • J joachim.knape

              @djmarc75 leider funzt das nicht..
              mein code:

              <xml xmlns="https://developers.google.com/blockly/xml">
                <variables>
                  <variable type="interval" id="Intervall">Intervall</variable>
                </variables>
                <block type="on" id="1Tq^4!D-.,a%(VGmgqbI" x="62" y="-213">
                  <field name="OID">javascript.0.scriptEnabled.common.Pool_Umwälzpumpe_1_Stunde</field>
                  <field name="CONDITION">ne</field>
                  <field name="ACK_CONDITION"></field>
                  <statement name="STATEMENT">
                    <block type="controls_if" id="-Hh%o]@ug7?ayaQbb9{K">
                      <value name="IF0">
                        <block type="logic_compare" id="Wx$~v;{?T)8%t.K;LpB:">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id="U^IkX]JROGhfEaO{.eDV">
                              <field name="ATTR">val</field>
                              <field name="OID">javascript.0.scriptEnabled.common.Pool_Umwälzpumpe_1_Stunde</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_boolean" id="Adi3BU2?OQ}F^Q:VZU{)">
                              <field name="BOOL">FALSE</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="update" id="AS9z5app.u#sMX_@r2=N">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">0_userdata.0.Pool.Countdown</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="math_number" id="`dD:A+upjMj)!;]kXd/j">
                              <field name="NUM">0</field>
                            </block>
                          </value>
                          <next>
                            <block type="update" id="9G.kSe:+UFu:v|D;BJ^#">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">0_userdata.0.Pool.countdown_minute</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="math_number" id="jP9-}VJMOo]vUD(xucYg">
                                  <field name="NUM">0</field>
                                </block>
                              </value>
                              <next>
                                <block type="update" id="cB?=Z(?%KaAK8}z3uct`">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">0_userdata.0.Pool.countdown_sekunde</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="math_number" id="l*p+eAf*!Bb}m_qyPJn5">
                                      <field name="NUM">0</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="update" id="sSASiIKTEaz?kJsm@L[-">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">0_userdata.0.Pool.countdown_stunde</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="math_number" id="SpX)/`i??6/f^aGfq#*a">
                                          <field name="NUM">0</field>
                                        </block>
                                      </value>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </statement>
                      <next>
                        <block type="controls_if" id="{QFSH0e^GP-eybJKT#RK">
                          <value name="IF0">
                            <block type="logic_compare" id="q}q[t~vh%ZbqxW:Ar-o6">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="}QZ+8t3CMp^{EiWVO)Dx">
                                  <field name="ATTR">val</field>
                                  <field name="OID">javascript.0.scriptEnabled.common.Pool_Umwälzpumpe_1_Stunde</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="kZJH`D4Rsf]Bs5Z%hjSA">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="update" id="]Oq6Sw|j9*a}V@@_(Sx|">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">0_userdata.0.Pool.Countdown</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="math_number" id="y1TKREl.0Jikg:qkF%F_">
                                  <field name="NUM">100</field>
                                </block>
                              </value>
                              <next>
                                <block type="timeouts_setinterval" id="8[L,;XYj)s!GV+??au`:">
                                  <field name="NAME">Intervall</field>
                                  <field name="INTERVAL">1</field>
                                  <field name="UNIT">sec</field>
                                  <statement name="STATEMENT">
                                    <block type="controls_if" id="42]8LTtu54/t(-2|#:#$">
                                      <value name="IF0">
                                        <block type="logic_compare" id=";AGS,!lPI5}b;52U|`6*">
                                          <field name="OP">LT</field>
                                          <value name="A">
                                            <block type="get_value" id="6ob2WR$,{|,Y6:6Gx{~!">
                                              <field name="ATTR">val</field>
                                              <field name="OID">0_userdata.0.Pool.Countdown</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="math_number" id="*kJu5G$s7u(oE?o+2h$P">
                                              <field name="NUM">1</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <statement name="DO0">
                                        <block type="timeouts_clearinterval" id="k}7.ed~Jnd?1pjpsWq77">
                                          <field name="NAME">Intervall</field>
                                          <next>
                                            <block type="control" id="ujw.BgE:cFyA:Yqlkm6%">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                              <field name="OID">javascript.0.scriptEnabled.common.Pool_Umwälzpumpe_1_Stunde</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="logic_boolean" id="Yc+gEn4v^)5|?~`NiSiA">
                                                  <field name="BOOL">FALSE</field>
                                                </block>
                                              </value>
                                            </block>
                                          </next>
                                        </block>
                                      </statement>
                                      <next>
                                        <block type="update" id="|3g+Ua3v:Gy9b]ew+[UP">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">0_userdata.0.Pool.Countdown</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="math_arithmetic" id="vX0(jSmDTCjLp(BGMPsw">
                                              <field name="OP">MINUS</field>
                                              <value name="A">
                                                <shadow type="math_number" id="V4mZ8Hehu0rrImF;Ak?C">
                                                  <field name="NUM">1</field>
                                                </shadow>
                                                <block type="get_value" id="dM|buv*vzib1BK^2RRXu">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">0_userdata.0.Pool.Countdown</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <shadow type="math_number" id="r#DzQiES5j326Vg#=AQA">
                                                  <field name="NUM">1</field>
                                                </shadow>
                                              </value>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="comment" id="H-NoHqZu]=Y0x=LhSU!S">
                                              <field name="COMMENT">Kommentar</field>
                                              <next>
                                                <block type="control" id="Y:0CqVWK`BK#h{ZTniP`">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">0_userdata.0.Pool.Laufzeit</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="convert_from_date" id="PR)XyCsHIhebeC/z#/F]">
                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                      <field name="OPTION">hh:mm:ss</field>
                                                      <value name="VALUE">
                                                        <block type="math_arithmetic" id="/|8kYS{9][dtmwgEJo1z">
                                                          <field name="OP">MINUS</field>
                                                          <value name="A">
                                                            <shadow type="math_number" id="~3k~p}xFG@8DNzjprc+u">
                                                              <field name="NUM">1</field>
                                                            </shadow>
                                                            <block type="get_value" id="g*~8y+#a].FnL/kwPS=#">
                                                              <field name="ATTR">val</field>
                                                              <field name="OID">0_userdata.0.Pool.Countdown</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <shadow type="math_number" id=";gbJL*Dv#2xN(r.6P,-`">
                                                              <field name="NUM">3600000</field>
                                                            </shadow>
                                                          </value>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="debug" id="XhiP],F0yF1}~IW,r_l2">
                                                      <field name="Severity">warn</field>
                                                      <value name="TEXT">
                                                        <shadow type="text" id="yb?P@`z@Ab+]O-S3^[vS">
                                                          <field name="TEXT">test</field>
                                                        </shadow>
                                                        <block type="convert_from_date" id="_ldLo4Dy-_x:ZqVW4g#P">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                          <field name="OPTION">hh:mm:ss</field>
                                                          <value name="VALUE">
                                                            <block type="math_arithmetic" id="[bo^Rr8h7%[iM[y~xS0E">
                                                              <field name="OP">MINUS</field>
                                                              <value name="A">
                                                                <shadow type="math_number">
                                                                  <field name="NUM">1</field>
                                                                </shadow>
                                                                <block type="get_value" id="ccmBjc~#e1tkl6COas`s">
                                                                  <field name="ATTR">val</field>
                                                                  <field name="OID">0_userdata.0.Pool.Countdown</field>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <shadow type="math_number" id="[K..IiB-FwktE7qr6Y%l">
                                                                  <field name="NUM">3600000</field>
                                                                </shadow>
                                                              </value>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="comment" id="idvzV8g)513*==2yR,.C">
                                                          <field name="COMMENT">Kommentar</field>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </statement>
                                </block>
                              </next>
                            </block>
                          </statement>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </xml>
              

              der Countdown ist erstmal manuell auf 100 Sekunden gesetzt, aber der Datenpunkt Laufzeit zeigt immer nur 1:00:00 an und ändert sich nicht..
              Liegt es am Typ des Datenpunktes? Welchen Typ muss der haben bei Zeitanzeigen? Number, String, Mixed? Oder was anderes?
              Der Datenpunkt Countdown ist die gewünschte Anzahl an Sekunden. Typ: Number. Und was fürn Typ muss der Datenpunkt der Ausgabe (hier Laufzeit) haben?

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

              @joachim-knape sagte: mein code:

              Für die Wandlung müssen Sekunden in ms umgerechnet werden. Für den Count down verwende besser eine Variable wegen der asynchronen Abarbeitung von "aktualisiere".

              Bild_2022-05-26_163702405.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

              J 1 Antwort Letzte Antwort
              0
              • paul53P paul53

                @joachim-knape sagte: mein code:

                Für die Wandlung müssen Sekunden in ms umgerechnet werden. Für den Count down verwende besser eine Variable wegen der asynchronen Abarbeitung von "aktualisiere".

                Bild_2022-05-26_163702405.png

                J Offline
                J Offline
                joachim.knape
                schrieb am zuletzt editiert von
                #7

                @paul53 DAS WARS !!!
                Woher soll manN wissen, daß für solche Umrechnungen Millisekunden gebraucht werden...
                Ich schließe Dich mal in mein Abendgebet mit ein! DANKE!

                Wofür ich das brauche...
                Ich habe in meiner VIS einen Button, der die Umwälzpumpe des Pools eben nur für eine oder 1,5 Stunden einschalten soll und dann wieder abschaltet. Die Anzeige der Sekunden bis Null gefällt mir halt nicht, ich will die Restzeitanzeige in Stunde : Minute : Sekunde haben.
                Und hiermit funktioniert es endlich:

                <xml xmlns="https://developers.google.com/blockly/xml">
                  <variables>
                    <variable id="op`Z.+Kx,aE}tc_RlE1S">cnt</variable>
                    <variable type="interval" id="Intervall">Intervall</variable>
                  </variables>
                  <block type="on" id="1Tq^4!D-.,a%(VGmgqbI" x="62" y="-213">
                    <field name="OID">javascript.0.scriptEnabled.common.Pool_Umwälzpumpe_1_Stunde</field>
                    <field name="CONDITION">ne</field>
                    <field name="ACK_CONDITION"></field>
                    <statement name="STATEMENT">
                      <block type="controls_if" id="-Hh%o]@ug7?ayaQbb9{K">
                        <value name="IF0">
                          <block type="logic_compare" id="Wx$~v;{?T)8%t.K;LpB:">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="get_value" id="U^IkX]JROGhfEaO{.eDV">
                                <field name="ATTR">val</field>
                                <field name="OID">javascript.0.scriptEnabled.common.Pool_Umwälzpumpe_1_Stunde</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_boolean" id="Adi3BU2?OQ}F^Q:VZU{)">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="variables_set" id="OMIG~M!)Tgbh}SQ;13mw">
                            <field name="VAR" id="op`Z.+Kx,aE}tc_RlE1S">cnt</field>
                            <value name="VALUE">
                              <block type="math_number" id="dbNGw9IS[M)Fo:,64Ftw">
                                <field name="NUM">1</field>
                              </block>
                            </value>
                            <next>
                              <block type="update" id="BLpA3Wtq=[-u!y=E~ohK">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">0_userdata.0.Pool.Countdown</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="variables_get" id="/$!=DQM[MzDmvMuT}j*8">
                                    <field name="VAR" id="op`Z.+Kx,aE}tc_RlE1S">cnt</field>
                                  </block>
                                </value>
                              </block>
                            </next>
                          </block>
                        </statement>
                        <next>
                          <block type="controls_if" id="{QFSH0e^GP-eybJKT#RK">
                            <value name="IF0">
                              <block type="logic_compare" id="q}q[t~vh%ZbqxW:Ar-o6">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="}QZ+8t3CMp^{EiWVO)Dx">
                                    <field name="ATTR">val</field>
                                    <field name="OID">javascript.0.scriptEnabled.common.Pool_Umwälzpumpe_1_Stunde</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_boolean" id="kZJH`D4Rsf]Bs5Z%hjSA">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="variables_set" id="9J!zFSmIB2Ib?}%UZFlQ">
                                <field name="VAR" id="op`Z.+Kx,aE}tc_RlE1S">cnt</field>
                                <value name="VALUE">
                                  <block type="math_number" id="zv8qt$#}psja6KYs0[CW">
                                    <field name="NUM">3605</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="timeouts_setinterval" id="8[L,;XYj)s!GV+??au`:">
                                    <field name="NAME">Intervall</field>
                                    <field name="INTERVAL">1</field>
                                    <field name="UNIT">sec</field>
                                    <statement name="STATEMENT">
                                      <block type="math_change" id="2PKEM#zmbpbRYV$csQZw">
                                        <field name="VAR" id="op`Z.+Kx,aE}tc_RlE1S">cnt</field>
                                        <value name="DELTA">
                                          <shadow type="math_number" id="1,?E/cgNvLx-BYFKT!3S">
                                            <field name="NUM">-1</field>
                                          </shadow>
                                        </value>
                                        <next>
                                          <block type="update" id="]Oq6Sw|j9*a}V@@_(Sx|">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">0_userdata.0.Pool.Countdown</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="variables_get" id="30jny5z1x$veeMy[CBH7">
                                                <field name="VAR" id="op`Z.+Kx,aE}tc_RlE1S">cnt</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="update" id="iQvn17-#VC9W|^E8,0Yw">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">0_userdata.0.Pool.Laufzeit</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="convert_from_date" id="jPW;[GF@Lv/Zgl1QM0MI">
                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                    <field name="OPTION">hh:mm:ss</field>
                                                    <value name="VALUE">
                                                      <block type="math_arithmetic" id="Or$ri}W`{~ziqhDoyvaE">
                                                        <field name="OP">MULTIPLY</field>
                                                        <value name="A">
                                                          <shadow type="math_number" id="#|IH#ce)V15qnSgU@BOu">
                                                            <field name="NUM">1000</field>
                                                          </shadow>
                                                        </value>
                                                        <value name="B">
                                                          <shadow type="math_number" id="XbbDt{NQ|]H@4.u/GkCy">
                                                            <field name="NUM">1</field>
                                                          </shadow>
                                                          <block type="math_arithmetic" id="ino^~y]SxM||24A7dhq9">
                                                            <field name="OP">MINUS</field>
                                                            <value name="A">
                                                              <shadow type="math_number" id="ut/-Hd?zBjW|1!l{ei}l">
                                                                <field name="NUM">1</field>
                                                              </shadow>
                                                              <block type="variables_get" id="EbgM5RoL!Hy3oAUYj^WD">
                                                                <field name="VAR" id="op`Z.+Kx,aE}tc_RlE1S">cnt</field>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <shadow type="math_number" id="![`kqY5pz}qn[,bY!6v@">
                                                                <field name="NUM">3600</field>
                                                              </shadow>
                                                            </value>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="controls_if" id="42]8LTtu54/t(-2|#:#$">
                                                    <value name="IF0">
                                                      <block type="logic_compare" id=";AGS,!lPI5}b;52U|`6*">
                                                        <field name="OP">LT</field>
                                                        <value name="A">
                                                          <block type="variables_get" id="P9]m`16(*D;vVi!#}D.q">
                                                            <field name="VAR" id="op`Z.+Kx,aE}tc_RlE1S">cnt</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="math_number" id="*kJu5G$s7u(oE?o+2h$P">
                                                            <field name="NUM">1</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <statement name="DO0">
                                                      <block type="timeouts_clearinterval" id="k}7.ed~Jnd?1pjpsWq77">
                                                        <field name="NAME">Intervall</field>
                                                        <next>
                                                          <block type="variables_set" id="4YodaC{|-F{-(13tDnwj">
                                                            <field name="VAR" id="op`Z.+Kx,aE}tc_RlE1S">cnt</field>
                                                            <value name="VALUE">
                                                              <block type="math_number" id="SML4q$W:q#or;l;hs^eh">
                                                                <field name="NUM">0</field>
                                                              </block>
                                                            </value>
                                                            <next>
                                                              <block type="control" id="ujw.BgE:cFyA:Yqlkm6%">
                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                <field name="OID">javascript.0.scriptEnabled.common.Pool_Umwälzpumpe_1_Stunde</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="logic_boolean" id="Yc+gEn4v^)5|?~`NiSiA">
                                                                    <field name="BOOL">FALSE</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </statement>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                  </block>
                                </next>
                              </block>
                            </statement>
                          </block>
                        </next>
                      </block>
                    </statement>
                  </block>
                </xml>
                
                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

                585

                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