@paul53 said in S0 Stromzähler umrechnen in aktuelle Verbrauch:
@do4bmw sagte:
Test mit 7KW last gemacht , leider zeigt das script nie mehr als ungefähr 3568watt an.
Script ? Kommen ca. 2 Impulse pro s ?
Hy
das script habe ich von @GoodOld übernommen, sieht bei mir derzeit so aus
und ja es kann schon sein das manchmal 2 impulse pro Sek kommen ... ist das dass problem ?
gerade dann wenn man halt viele KW zieht.
<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable id="Y*)uQOfA3A0pswm8w1GH">Wert</variable>
</variables>
<block type="on_ext" id="0Sk;oHtQ6S:k07HPnW?7" x="63" y="88">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
<field name="CONDITION">any</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="L/T2y/92sL}W_HXn2T1~">
<field name="oid">mqtt.0.DO4BMW_S0-1.Strom.Time</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="iUaf[k~^|w),4x.){V+F">
<value name="IF0">
<block type="logic_compare" id="t[QH7N-2s/0#f()E*+TK">
<field name="OP">GT</field>
<value name="A">
<block type="get_value" id="l,*,Z*N:qq6wgKXv[xRA">
<field name="ATTR">val</field>
<field name="OID">mqtt.0.DO4BMW_S0-1.Strom.Time</field>
</block>
</value>
<value name="B">
<block type="math_number" id="12!)ey:4h!i1Vcpa_P/.">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="We#NKwtz7+;Hz#jm.(;}">
<field name="VAR" id="Y*)uQOfA3A0pswm8w1GH">Wert</field>
<value name="VALUE">
<block type="math_arithmetic" id="ej+i[]|eM4x7k?O^x^E7">
<field name="OP">DIVIDE</field>
<value name="A">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="h5vLrf=_}6A)FIyY4iyR">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="l|suXsLX?BHmSza7l|iJ">
<field name="ATTR">val</field>
<field name="OID">mqtt.0.DO4BMW_S0-1.Strom.Time</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="LM4@`W`A:}E8Y9it}x=+">
<field name="NUM">1000</field>
</shadow>
</value>
</block>
</value>
<next>
<block type="variables_set" id="~;[g2O3X(]AA,rIqaiF+">
<field name="VAR" id="Y*)uQOfA3A0pswm8w1GH">Wert</field>
<value name="VALUE">
<block type="math_arithmetic" id="8*o-g!6Okm;;z%}o*W65">
<field name="OP">DIVIDE</field>
<value name="A">
<shadow type="math_number" id="I[7R;75:Lju`h(5wk]:}">
<field name="NUM">3600</field>
</shadow>
</value>
<value name="B">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="d6ob|)J]{ekBQ]}g`P_4">
<field name="NUM">1000</field>
</shadow>
<block type="variables_get" id="/e/c.+=#@9#.ykM}aa+*">
<field name="VAR" id="Y*)uQOfA3A0pswm8w1GH">Wert</field>
</block>
</value>
</block>
</value>
<next>
<block type="control" id="Op`JzD}_|;6;ql1k2ON9">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">mqtt.0.DO4BMW_S0-1.Strom.Watt2</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_round" id="F=.oa5q#rl**.n0;FfkU">
<field name="OP">ROUND</field>
<value name="NUM">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="P=8-%G(uftUvKd|SikfY">
<field name="NUM">3.1</field>
</shadow>
<block type="variables_get" id="0{|G%xhtf5NW3jz4NXe=">
<field name="VAR" id="Y*)uQOfA3A0pswm8w1GH">Wert</field>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
</xml>