@paul53 sagte in Objekt Temperatur Tag 0.5 Grad Schritte:
@MGK sagte:
Ich habe Beispiel schon nachgebaut,
Hast Du nicht: runde ist falsch angeordnet und es ist keine Addition von 2, sondern eine Division durch 2 !
Spoiler
<xml xmlns="http://www.w3.org/1999/xhtml">
<block type="comment" id="L1z^UnvAh]FbqfSR!3~[" x="-337" y="137">
<field name="COMMENT">virtueller Sollwert</field>
<next>
<block type="on_ext" id="xQT$V4H4dI{h+ZJfmDM_">
<mutation items="1"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="@NFstpOxq2;/S)P-}iie">
<field name="oid">default</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="Kb@=QRA_.n0?}?P:KUd9">
<value name="IF0">
<block type="logic_compare" id="9nw2K$SM5dh$jre6CC.Y">
<field name="OP">NEQ</field>
<value name="A">
<block type="on_source" id="$mqIr3,[g~Pa@uHSdU8$">
<field name="ATTR">state.from</field>
</block>
</value>
<value name="B">
<block type="text" id=";^9{.F]UA-b|3vQe2D6o">
<field name="TEXT">system.adapter.javascript.0</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="comment" id="5@TV7wIY0VQD-OARFny=">
<field name="COMMENT">Sollwert</field>
<next>
<block type="control" id="|u:4(-:G0TIn0f[8-i``">
<mutation delay_input="false"></mutation>
<field name="OID">Object ID</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_arithmetic" id="s$imRFT`{Lo0$ts)Js5F">
<field name="OP">DIVIDE</field>
<value name="A">
<shadow type="math_number" id="?nFz7C{w2Nf4dMWv(MUe">
<field name="NUM">1</field>
</shadow>
<block type="math_round" id="c.;M}PyDw-(0iMuwiNVN">
<field name="OP">ROUND</field>
<value name="NUM">
<shadow type="math_number" id="6C-L$7TvZP,IE5N1V/@a">
<field name="NUM">3.1</field>
</shadow>
<block type="math_arithmetic" id="LVjJ1?z+DoSg7%-RKnw2">
<field name="OP">MULTIPLY</field>
<value name="A">
<shadow type="math_number" id="OKG:aqr.c!/hv2b.e6G_">
<field name="NUM">1</field>
</shadow>
<block type="on_source" id="_~A,.)H;(`c7k+pk=wMf">
<field name="ATTR">state.val</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="]n34Ox7,aE#c,zZ}qgyA">
<field name="NUM">2</field>
</shadow>
</value>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="hI{U1MRmhYu,G`*DR9}!">
<field name="NUM">2</field>
</shadow>
</value>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
</next>
</block>
</xml>
Stimmt, da hatte sich ein Fehler eingeschlichen.
Danke für den Tipp.