NEWS
Zeitangabe für Betriebszeit in VIS Stunden und Minuten
-
Hallo
Ich versuche gerade die Betriebszeit der Poolpumpe zu visualisieren.
Das Blockly funktioniert soweit, dass die Betriebszeit in 2 Datenpunkte korrekt geschrieben wird.Die Betriebszeit Tag setzt sich jede Nacht auf 0.
Die Betriebszeit Tag erhalte ich in Minuten. (Das funktioniert)
Jetzt möchte ich für VIS die Betriebszeit in diesem Format haben: Z.B: 1 Std, 34 min
Was mache ich falsch? Da kommt nur 0 Std, 0 min
Gruß
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="sd`6B`5b#zM5Fwe]E3IS">Betriebstundenzaehler_Gesamt</variable> <variable id="IjgvjnMks{6!LJY(Et,D">Betriebstundenzaehler_Tag</variable> <variable id=")Cc5r@L[bYCt+3:4#x`=">Stunden_Tag</variable> <variable id=".4:N.6`[32(IVs2l,fTw">Minuten_Tag</variable> </variables> <block type="on_ext" id="r!u^?V0*HV1.C,7{D`^X" x="-356" y="96"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">lt</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="GH2DbyOV=DGi`fs:#%To"> <field name="oid">hm-rpc.0.IEQ0383063.1.STATE</field> </shadow> </value> <statement name="STATEMENT"> <block type="variables_set" id="?0eGH_v,,fAD)+j=.`Z$"> <field name="VAR" id="sd`6B`5b#zM5Fwe]E3IS">Betriebstundenzaehler_Gesamt</field> <value name="VALUE"> <block type="get_value" id="m5}1##ACHqBsH`^ktcrT"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Geraetesteuerung.Homematic.Pool.Pool_Betriebstundenzaehler_Gesamt</field> </block> </value> <next> <block type="variables_set" id="e(xmw(Q;=E~x`CSV:%0z"> <field name="VAR" id="IjgvjnMks{6!LJY(Et,D">Betriebstundenzaehler_Tag</field> <value name="VALUE"> <block type="get_value" id="U0QkQL/DdY8s5{dNS]kl"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Geraetesteuerung.Homematic.Pool.Pool_Betriebstundenzaehler_Tag</field> </block> </value> <next> <block type="math_change" id="uA(:Gpw0vtqSMd(GkFAD"> <field name="VAR" id="sd`6B`5b#zM5Fwe]E3IS">Betriebstundenzaehler_Gesamt</field> <value name="DELTA"> <shadow type="math_number" id="*eX/,3A8/[VymQi@YYX-"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="zx,`VfGE=[77l*IgwAm?" inline="false"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number" id="7lNEB}wrqGe8?0qPjr@M"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="86uN6Q*ha8OI3/;]z(Zp"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="()~PO9a9_9XZ4Mg=T$4("> <field name="NUM">1</field> </shadow> <block type="on_source" id="1dg2/]R1eA;Kd@8H2!Ba"> <field name="ATTR">state.lc</field> </block> </value> <value name="B"> <shadow type="math_number" id="S85?/zHGz_8Gy=XpaC@*"> <field name="NUM">1</field> </shadow> <block type="on_source" id="BgtW[a`s`6wFq}2pAMK%"> <field name="ATTR">oldState.lc</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="7{:1k~nKtf-{}e!:wb,`"> <field name="NUM">1</field> </shadow> <block type="math_number" id="WcTj(:Jx*b[vp-h%[XY#"> <field name="NUM">3600000</field> </block> </value> </block> </value> <next> <block type="math_change" id="UB.nUGKwc%}h9Z*9/|rI"> <field name="VAR" id="IjgvjnMks{6!LJY(Et,D">Betriebstundenzaehler_Tag</field> <value name="DELTA"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="]+d;z1]c%Yxw?YBh},Y1" inline="false"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="ikI9Y^K~]P-LP5SzR,!F"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="on_source" id="sR{8f2|IV7%kh5xWyxF0"> <field name="ATTR">state.lc</field> </block> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="on_source" id=")0lw.0~FT!j!cT)yP{db"> <field name="ATTR">oldState.lc</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="math_number" id="w{rP02}~BKf#q(58|l-b"> <field name="NUM">60000</field> </block> </value> </block> </value> <next> <block type="update" id=".^[+xg//z,%I-(SRjP(f"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Geraetesteuerung.Homematic.Pool.Pool_Betriebstundenzaehler_Gesamt</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_rndfixed" id="-QY%FqUc:4N?+vgo`o0M"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="*xoe(+uiQYxCqVW.*|:t"> <field name="NUM">3.1234</field> </shadow> <block type="variables_get" id="r0.Y).0?s~D{!`OlGUb^"> <field name="VAR" id="sd`6B`5b#zM5Fwe]E3IS">Betriebstundenzaehler_Gesamt</field> </block> </value> </block> </value> <next> <block type="update" id="$9z8hwU-#-Q_fIS`]=Lb"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Geraetesteuerung.Homematic.Pool.Pool_Betriebstundenzaehler_Tag</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_rndfixed" id="~2?%zDD^hdJD.-xI2#[9"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="${RJ_V!|B3D0j)ekSWg@"> <field name="NUM">3.1234</field> </shadow> <block type="variables_get" id="g0$r{rs|t}Woh3t0y_{6"> <field name="VAR" id="IjgvjnMks{6!LJY(Et,D">Betriebstundenzaehler_Tag</field> </block> </value> </block> </value> <next> <block type="variables_set" id="[(|hWUVt(-4q?x{XfIy:"> <field name="VAR" id=")Cc5r@L[bYCt+3:4#x`=">Stunden_Tag</field> <value name="VALUE"> <block type="math_round" id="^0J={O7BJ{x=`2.?${xd"> <field name="OP">ROUNDDOWN</field> <value name="NUM"> <shadow type="math_number" id="_1AE5!=[:quMD09gPxD3"> <field name="NUM">3.1</field> </shadow> <block type="math_arithmetic" id="Zs?}7VMRzK1g6:;b@WiY"> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number" id="CrJx#d@NX@N[ld2N0o0|"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="l(n}XbCkj$M`A0qJp{,e"> <field name="VAR" id="IjgvjnMks{6!LJY(Et,D">Betriebstundenzaehler_Tag</field> </block> </value> <value name="B"> <shadow type="math_number" id="qiOg)T^u[7]^mh2U:.x:"> <field name="NUM">60</field> </shadow> <block type="math_number" id="sx}UKM|Asdtg4AH3uQNk"> <field name="NUM">60</field> </block> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="`S98xN7(_:J{7zqb*9|."> <field name="VAR" id=".4:N.6`[32(IVs2l,fTw">Minuten_Tag</field> <value name="VALUE"> <block type="math_round" id="mEwKkOU,KJmpusJgne`J"> <field name="OP">ROUNDDOWN</field> <value name="NUM"> <shadow type="math_number" id="Erxs_NrS8ZS+rfD7B9nl"> <field name="NUM">3.1</field> </shadow> <block type="math_modulo" id="?dOecMnAB(]{aoGqL4eo"> <value name="DIVIDEND"> <shadow type="math_number" id="Wm!GYl+DC(6*UN]rR5`o"> <field name="NUM">64</field> </shadow> <block type="variables_get" id="FalrWctgS$#2rHQ`{Njm"> <field name="VAR" id="IjgvjnMks{6!LJY(Et,D">Betriebstundenzaehler_Tag</field> </block> </value> <value name="DIVISOR"> <shadow type="math_number" id="q{q/2dSCBwU+CM6`5pqd"> <field name="NUM">60</field> </shadow> <block type="math_number" id="TjEv]}Kqh2$.uX-LCFM="> <field name="NUM">60</field> </block> </value> </block> </value> </block> </value> <next> <block type="update" id="gb1+_W1T#j/88i+DYH|%"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Geraetesteuerung.Homematic.Pool.Betriebszeit_Poolpumpe_fuer_VIS</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text_join" id="rl=8]_}dRKq0BkB#1)%5"> <mutation items="4"></mutation> <value name="ADD0"> <block type="variables_get" id="TdT6FQt@%ZFYnBL_!T;e"> <field name="VAR" id=")Cc5r@L[bYCt+3:4#x`=">Stunden_Tag</field> </block> </value> <value name="ADD1"> <block type="text" id="8_7fG~*C)h-6H{@z_=|*"> <field name="TEXT"> Std, </field> </block> </value> <value name="ADD2"> <block type="variables_get" id="S9MotYag6rzOBc[D*w#d"> <field name="VAR" id=")Cc5r@L[bYCt+3:4#x`=">Stunden_Tag</field> </block> </value> <value name="ADD3"> <block type="text" id="::NvNweA)I)9l*)GNGlH"> <field name="TEXT"> min</field> </block> </value> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> <block type="schedule" id="CM0!W_=6c!Lyhd|KvBB;" x="-362" y="738"> <field name="SCHEDULE">{"time":{"exactTime":true,"start":"00:05"},"period":{"days":1}}</field> <statement name="STATEMENT"> <block type="update" id="V%Wb!-m`Jof1O.2?AAF^"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Geraetesteuerung.Homematic.Pool.Pool_Betriebstundenzaehler_Tag</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="x}Y?a%jYloe^0MdK;JX8"> <field name="NUM">0</field> </block> </value> </block> </statement> </block> </xml>
-
@g-hawk sagte in Zeitangabe für Betriebszeit in VIS Stunden und Minuten:
Was mache ich falsch? Da kommt nur 0 Std, 0 min
setze mal den Textbaustein an einen debug Baustein.
was steht dann im log? -
@homoran
0Std, 0 minIch habe die Angabe der Betriebszeit in Minuten, was muss ich machen, um das Format "Stunde, Minute zu erhalten?
Und was heißt eigendlich "Rest von" -
-
@g-hawk sagte in Zeitangabe für Betriebszeit in VIS Stunden und Minuten:
@homoran
0Std, 0 minwas steht denn in der Variable die du durch 60 teilst?
-
@paul53
Oh man, das tut weh.Danke dir.
-
@homoran
Wie Paul sagte, die Variable war falsch ausgewählt