Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. PV Überschuss nutzen um 1,5KW und 3,0KW Heizstab zu schalten

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    PV Überschuss nutzen um 1,5KW und 3,0KW Heizstab zu schalten

    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Spidermike last edited by

      Hallo,

      ich hatte schon vor zwei drei Jahren mal einen ähnlichen Beitrag gestartet.
      Jetzt hat sich ein bisschen was geändert und bräuchte mal euer Wissen was ich in meinen Skript ändern muss um die geänderten Geräte übertragen zu können.

      Situation ist diese:

      ich habe jetzt vom Elektriker für meine zwei Heizstäbe die Anschlüsse ändern lassen da mir die Shelly Steckdosen immer wieder abgeraucht sind (hauptsächlich beim 3kw Heizstab)

      Es sind jetzt 2 Schütze installiert worden die mit jeweils einen Shelly 1 Gen3 angesteuert werden.
      Jetzt ist natürlich mein Skript nicht mehr aktuell und ich habe versucht die Geräte im Script einfach mit den neuen Datenpunkten zu aktualisieren.

      Ich möchte jetzt nur mal wissen ob das so ohne weiteres möglich ist?

      Anbei mein geändertes Script

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable id="v_zWw#f*?6Kuz3q`qjCE">temp</variable>
          <variable id="(au?)v#|.A3h~W0?i*.n">heizstufe</variable>
          <variable id="i[uB)x-#tw=9O)mKmy}y">Wert</variable>
          <variable id="|d/H#5+,DS2pv7HuMpez">cntEin</variable>
          <variable id="@bW)OxFCEo,x]h%.K=oh">cntAus</variable>
          <variable id="Q!B|=?tF]T^rc#:%+tL0">heizstab1</variable>
          <variable id="9y5$f~sG5n39o=TlsnI_">heizstab2</variable>
        </variables>
        <block type="variables_set" id="s]toBuxd7qckZ=MV}gLw" x="-490" y="-567">
          <field name="VAR" id="v_zWw#f*?6Kuz3q`qjCE">temp</field>
          <value name="VALUE">
            <block type="logic_compare" id="U+SqV+X3u]BR5_*nSl4k">
              <field name="OP">LT</field>
              <value name="A">
                <block type="get_value" id="CVe8=quPf:*@70Vk5}6d">
                  <field name="ATTR">val</field>
                  <field name="OID">mqtt.0.ESP_Easy.Sensor_1.temperature_oben</field>
                </block>
              </value>
              <value name="B">
                <block type="math_number" id="b3E,fp|H]i=|XmwnnuIW">
                  <field name="NUM">55</field>
                </block>
              </value>
            </block>
          </value>
          <next>
            <block type="on" id="6f#8;/d2+mFgtGWucg-2">
              <field name="OID">mqtt.0.ESP_Easy.Sensor_1.temperature_oben</field>
              <field name="CONDITION">ne</field>
              <field name="ACK_CONDITION"></field>
              <statement name="STATEMENT">
                <block type="controls_if" id="OaYbhbrmcAVKNtsDyJ[C">
                  <mutation elseif="1"></mutation>
                  <value name="IF0">
                    <block type="logic_compare" id="JJI;11;vWM@(x6l#F(cl">
                      <field name="OP">LTE</field>
                      <value name="A">
                        <block type="variables_get" id=",V{H10qqDsBZx4}Bfc+J">
                          <field name="VAR" id="i[uB)x-#tw=9O)mKmy}y">Wert</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="math_number" id="32RNlk^;jzjak=gFDmY1">
                          <field name="NUM">50</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="variables_set" id="rP;IY{-Vx3IG)Y+/)$eU">
                      <field name="VAR" id="v_zWw#f*?6Kuz3q`qjCE">temp</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="BNy3J_[.$RptDl1XNscM">
                          <field name="BOOL">TRUE</field>
                        </block>
                      </value>
                    </block>
                  </statement>
                  <value name="IF1">
                    <block type="logic_compare" id="OH#3a231eMy6}TO!43u6">
                      <field name="OP">GTE</field>
                      <value name="A">
                        <block type="variables_get" id="wU|o-md1ws%zHkM3n_qh">
                          <field name="VAR" id="i[uB)x-#tw=9O)mKmy}y">Wert</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="math_number" id="_g/FeurV7eXC]_KI]GMB">
                          <field name="NUM">55</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO1">
                    <block type="variables_set" id="s9@@iOXvKs)eN`,1]!wM">
                      <field name="VAR" id="v_zWw#f*?6Kuz3q`qjCE">temp</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="O/Rp=A:]gda*~]fsGmnh">
                          <field name="BOOL">FALSE</field>
                        </block>
                      </value>
                      <next>
                        <block type="controls_if" id="|nY7W$^CJek*8R1+{v#W">
                          <value name="IF0">
                            <block type="variables_get" id="79;C=LtG,c@Cxjtsc(:5">
                              <field name="VAR" id="(au?)v#|.A3h~W0?i*.n">heizstufe</field>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="variables_set" id="Uv!/!l*wK~We$na*b2TL">
                              <field name="VAR" id="(au?)v#|.A3h~W0?i*.n">heizstufe</field>
                              <value name="VALUE">
                                <block type="math_number" id="Q_g|DHs,1VyUn95M21vu">
                                  <field name="NUM">0</field>
                                </block>
                              </value>
                              <next>
                                <block type="control" id=")F=,NBOgB+U?RY{{_pH8">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">shelly.1.shelly1g3#1500W#1.Relay0.Switch</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="logic_boolean" id="/=,=mDZpkkJ0nP{U}Jn]">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="control" id="^URPUfp~E$?wVU2xo/;N">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">shelly.1.shelly1g3#1500W#1.Relay0.Switch</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="C3!$xs5bu:u.kTi?n)/u">
                                          <field name="BOOL">FALSE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </statement>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </statement>
              <next>
                <block type="variables_set" id="XHga6uI*!=}qs_H{/!pN">
                  <field name="VAR" id="(au?)v#|.A3h~W0?i*.n">heizstufe</field>
                  <value name="VALUE">
                    <block type="math_arithmetic" id="Srk4mTqbc0P_aoZ^0gk," inline="false">
                      <field name="OP">ADD</field>
                      <value name="A">
                        <shadow type="math_number" id="/N~^PWKp.(tMa*mm(|rw">
                          <field name="NUM">1</field>
                        </shadow>
                        <block type="logic_ternary" id="FE|(7.b9)88oOW`_HArh">
                          <value name="IF">
                            <block type="get_value" id="QOX}s3wsRcPnYE8e84k.">
                              <field name="ATTR">val</field>
                              <field name="OID">shelly.1.shelly1g3#1500W#1.Relay0.Switch</field>
                            </block>
                          </value>
                          <value name="THEN">
                            <block type="math_number" id="L+`#==TQ1QH%a~g3o:pF">
                              <field name="NUM">1</field>
                            </block>
                          </value>
                          <value name="ELSE">
                            <block type="math_number" id="%D*$ee{;8FBudZbvQ]16">
                              <field name="NUM">0</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <value name="B">
                        <shadow type="math_number" id="=d{[^G-:$`F]xab?9ax}">
                          <field name="NUM">1</field>
                        </shadow>
                        <block type="logic_ternary" id="aIY@36wn:78%*=EM]Et9">
                          <value name="IF">
                            <block type="get_value" id="-[j|,-dv?f2{[YO?*G/%">
                              <field name="ATTR">val</field>
                              <field name="OID">shelly.1.shelly1g3#3000W#1.Relay0.Switch</field>
                            </block>
                          </value>
                          <value name="THEN">
                            <block type="math_number" id="O(tM]$?].(mnxpG0vkaz">
                              <field name="NUM">2</field>
                            </block>
                          </value>
                          <value name="ELSE">
                            <block type="math_number" id="_S/b~weIZ(2-wAtzxX`d">
                              <field name="NUM">0</field>
                            </block>
                          </value>
                        </block>
                      </value>
                    </block>
                  </value>
                  <next>
                    <block type="on_ext" id="Mva_8W8W:(B67SM9XV?.">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                      <field name="CONDITION">ne</field>
                      <field name="ACK_CONDITION"></field>
                      <value name="OID0">
                        <shadow type="field_oid" id="YQ1pH-P-xR~Vu!xhvVNF">
                          <field name="oid">plenticore.0.devices.local.ToGrid_P</field>
                        </shadow>
                      </value>
                      <value name="OID1">
                        <shadow type="field_oid" id="Ng?V+#RU_WuMqgn4ei~0">
                          <field name="oid">plenticore.0.devices.local.HomeGrid_P</field>
                        </shadow>
                      </value>
                      <statement name="STATEMENT">
                        <block type="controls_if" id="XYQEZ03a2y3xg6Voj`%z">
                          <value name="IF0">
                            <block type="variables_get" id="uW!g34W+{^8n.x[rMOLr">
                              <field name="VAR" id="v_zWw#f*?6Kuz3q`qjCE">temp</field>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="controls_if" id="%(d{F+ltUwtI`W.smyd{">
                              <mutation else="1"></mutation>
                              <value name="IF0">
                                <block type="logic_compare" id="T#t0PlW*bvU={g!__9$!">
                                  <field name="OP">GT</field>
                                  <value name="A">
                                    <block type="get_value" id="8Uld{OP=Yt~|=`|i8Q{(">
                                      <field name="ATTR">val</field>
                                      <field name="OID">plenticore.0.devices.local.ToGrid_P</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="math_number" id="uQ6p}JW{99S|Qh_v#frq">
                                      <field name="NUM">1500</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="math_change" id="a/H;no;tGkjZlhu%QI~u">
                                  <field name="VAR" id="|d/H#5+,DS2pv7HuMpez">cntEin</field>
                                  <value name="DELTA">
                                    <shadow type="math_number" id="H;JnIF*$m8ywec4]K13!">
                                      <field name="NUM">1</field>
                                    </shadow>
                                  </value>
                                  <next>
                                    <block type="controls_if" id="^5y%H-FY;A9NV}M`T^bZ">
                                      <value name="IF0">
                                        <block type="logic_operation" id="HBS.o.I#GLgPVUn_!(el" inline="false">
                                          <field name="OP">AND</field>
                                          <value name="A">
                                            <block type="logic_compare" id="X9/a9lg*sY7G(LmIX+:1">
                                              <field name="OP">GTE</field>
                                              <value name="A">
                                                <block type="variables_get" id="s~*8Hs%wp?Dj|Iiu6]Ja">
                                                  <field name="VAR" id="|d/H#5+,DS2pv7HuMpez">cntEin</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="math_number" id="GC,bq=x6~W{p.SYKma}M">
                                                  <field name="NUM">10</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="logic_compare" id="RwA6#idx9=BM:S:RCgnt">
                                              <field name="OP">LT</field>
                                              <value name="A">
                                                <block type="variables_get" id="1B+-prk8-;`[q;n,L21T">
                                                  <field name="VAR" id="(au?)v#|.A3h~W0?i*.n">heizstufe</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="math_number" id="jaA-iLYNZD--F{80bZEk">
                                                  <field name="NUM">3</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <statement name="DO0">
                                        <block type="variables_set" id="e1ZO}-{R*ozC2V)xv/NL">
                                          <field name="VAR" id="|d/H#5+,DS2pv7HuMpez">cntEin</field>
                                          <value name="VALUE">
                                            <block type="math_number" id="]Lh5K[KUfvl:?{oGtrPY">
                                              <field name="NUM">0</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="math_change" id="y3RXZ?0v28TMS+g(y*ME">
                                              <field name="VAR" id="(au?)v#|.A3h~W0?i*.n">heizstufe</field>
                                              <value name="DELTA">
                                                <shadow type="math_number" id="D,[8m8#iVyo`/xu3/|K/">
                                                  <field name="NUM">1</field>
                                                </shadow>
                                              </value>
                                            </block>
                                          </next>
                                        </block>
                                      </statement>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                              <statement name="ELSE">
                                <block type="variables_set" id="tH+4|Wbc5GHu.%ky56%y">
                                  <field name="VAR" id="|d/H#5+,DS2pv7HuMpez">cntEin</field>
                                  <value name="VALUE">
                                    <block type="math_number" id="JJlOmhL0Jh*{50~Y-h8V">
                                      <field name="NUM">0</field>
                                    </block>
                                  </value>
                                </block>
                              </statement>
                              <next>
                                <block type="controls_if" id="`C/Lr*6kU!Tt4gW,s=Db">
                                  <mutation else="1"></mutation>
                                  <value name="IF0">
                                    <block type="logic_compare" id="c_-xcB`:PJhp0-JHIJwZ">
                                      <field name="OP">GT</field>
                                      <value name="A">
                                        <block type="get_value" id="Z!0%:J!gsy3:gST[WLtR">
                                          <field name="ATTR">val</field>
                                          <field name="OID">plenticore.0.devices.local.HomeGrid_P</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="math_number" id="UW6:78]L.}3j+Ia?W?F*">
                                          <field name="NUM">200</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO0">
                                    <block type="math_change" id="eCcs$hs.OX8Moi,839rk">
                                      <field name="VAR" id="@bW)OxFCEo,x]h%.K=oh">cntAus</field>
                                      <value name="DELTA">
                                        <shadow type="math_number" id="%lyF737W.]7!ObDhu4*Q">
                                          <field name="NUM">1</field>
                                        </shadow>
                                      </value>
                                      <next>
                                        <block type="controls_if" id="b?7(ya-OF-`%%;tc#bxM">
                                          <value name="IF0">
                                            <block type="logic_operation" id="qfIor]$W$@y#:L#{9UXe" inline="false">
                                              <field name="OP">AND</field>
                                              <value name="A">
                                                <block type="logic_compare" id="iHvO`42bm!/s5Er8zCI1">
                                                  <field name="OP">GTE</field>
                                                  <value name="A">
                                                    <block type="variables_get" id="7af~Z/lsJ^ol-7$KOWGC">
                                                      <field name="VAR" id="@bW)OxFCEo,x]h%.K=oh">cntAus</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="math_number" id="17]XhR(X*j/f)OWgYi4i">
                                                      <field name="NUM">10</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="logic_compare" id="0%ZJ}M%wt?Pq;JIe!YNB">
                                                  <field name="OP">GT</field>
                                                  <value name="A">
                                                    <block type="variables_get" id="[3PN}:M)1@]zi0;:AZaG">
                                                      <field name="VAR" id="(au?)v#|.A3h~W0?i*.n">heizstufe</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="math_number" id="i9S6mdgJTy{S6##g3U=_">
                                                      <field name="NUM">0</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO0">
                                            <block type="variables_set" id="R75us`YE]0Iz]EJepA$U">
                                              <field name="VAR" id="@bW)OxFCEo,x]h%.K=oh">cntAus</field>
                                              <value name="VALUE">
                                                <block type="math_number" id="%3t@SYrb4[P}NnQpI+Pl">
                                                  <field name="NUM">0</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="math_change" id="Qj*BMP)Ci{6n;.2*HW,3">
                                                  <field name="VAR" id="(au?)v#|.A3h~W0?i*.n">heizstufe</field>
                                                  <value name="DELTA">
                                                    <shadow type="math_number" id="nbS2*F5O|ABVkC*Xt-l?">
                                                      <field name="NUM">-1</field>
                                                    </shadow>
                                                  </value>
                                                </block>
                                              </next>
                                            </block>
                                          </statement>
                                        </block>
                                      </next>
                                    </block>
                                  </statement>
                                  <statement name="ELSE">
                                    <block type="variables_set" id="uzm[8.*2lEfFSjC$f|fz">
                                      <field name="VAR" id="@bW)OxFCEo,x]h%.K=oh">cntAus</field>
                                      <value name="VALUE">
                                        <block type="math_number" id="eM6D_[FsERl*3r]EiB9)">
                                          <field name="NUM">0</field>
                                        </block>
                                      </value>
                                    </block>
                                  </statement>
                                  <next>
                                    <block type="variables_set" id="b[DGt0nuaGL5jO;n$JAq">
                                      <field name="VAR" id="Q!B|=?tF]T^rc#:%+tL0">heizstab1</field>
                                      <value name="VALUE">
                                        <block type="math_number_property" id="Y7q0s4;cuGr3{}*_r-xX">
                                          <mutation divisor_input="false"></mutation>
                                          <field name="PROPERTY">ODD</field>
                                          <value name="NUMBER_TO_CHECK">
                                            <shadow type="math_number" id="j|55VNxUMVjBGhl-m/4{">
                                              <field name="NUM">0</field>
                                            </shadow>
                                            <block type="variables_get" id="|;_$J9D-@(!!o!@A|d.v">
                                              <field name="VAR" id="(au?)v#|.A3h~W0?i*.n">heizstufe</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="variables_set" id="Z{ol+x/+(u^aajx@Vhn2">
                                          <field name="VAR" id="9y5$f~sG5n39o=TlsnI_">heizstab2</field>
                                          <value name="VALUE">
                                            <block type="logic_compare" id="#DBQR1Cup4N-Qr=DF+*H">
                                              <field name="OP">GTE</field>
                                              <value name="A">
                                                <block type="variables_get" id="|go[K4{-;0Tp3c|,w~,%">
                                                  <field name="VAR" id="(au?)v#|.A3h~W0?i*.n">heizstufe</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="math_number" id="SW.U0{Tl.~iOkYh@}{3Z">
                                                  <field name="NUM">2</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="controls_if" id=";6-9=_mR)~.uoX?!#xb!">
                                              <value name="IF0">
                                                <block type="logic_compare" id=":Nk({$pt]]-xzY.a,5?G">
                                                  <field name="OP">NEQ</field>
                                                  <value name="A">
                                                    <block type="variables_get" id="PoV8lq}:;v[obkCM53~8">
                                                      <field name="VAR" id="Q!B|=?tF]T^rc#:%+tL0">heizstab1</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="get_value" id="dL$^y^A(Go.{3dD-3DUs">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">shelly.1.shelly1g3#1500W#1.Relay0.Switch</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <statement name="DO0">
                                                <block type="control" id="2X!0?2?;J){g|_#ftd|+">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">shelly.0.SHPLG2-1#40915155EDF3#1.Relay0.Switch</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="variables_get" id="%ydOnd8[XHC$/3{9VFj$">
                                                      <field name="VAR" id="Q!B|=?tF]T^rc#:%+tL0">heizstab1</field>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="controls_if" id="%9.d:$w^iNz;L:nd5BoG">
                                                      <value name="IF0">
                                                        <block type="logic_compare" id="UQv[Rz^5f:#)fAqUWMk-">
                                                          <field name="OP">NEQ</field>
                                                          <value name="A">
                                                            <block type="variables_get" id="K^Cr`lcToTn%,N+kEZ[s">
                                                              <field name="VAR" id="9y5$f~sG5n39o=TlsnI_">heizstab2</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="get_value" id="3Yr2{GacZb_mhZ4^?jF*">
                                                              <field name="ATTR">val</field>
                                                              <field name="OID">shelly.1.shelly1g3#3000W#1.Relay0.Switch</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <statement name="DO0">
                                                        <block type="control" id="D/q[T[3mSbu1ysV{VPjV">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                          <field name="OID">shelly.1.shelly1g3#3000W#1.Relay0.Switch</field>
                                                          <field name="WITH_DELAY">FALSE</field>
                                                          <value name="VALUE">
                                                            <block type="variables_get" id=",[uX/yd,c(y.Gx~g[U#y">
                                                              <field name="VAR" id="9y5$f~sG5n39o=TlsnI_">heizstab2</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </statement>
                                                      <next>
                                                        <block type="debug" id="KS{*7I7)yzeN1jB=6;V/">
                                                          <field name="Severity">info</field>
                                                          <value name="TEXT">
                                                            <shadow type="text" id="KS:4~UZ{vccU~iTf-V_u">
                                                              <field name="TEXT">test</field>
                                                            </shadow>
                                                            <block type="text_join" id="5Y{~PghQ={@pOvAT^46;" inline="false">
                                                              <mutation items="8"></mutation>
                                                              <value name="ADD0">
                                                                <block type="text" id="`0;1s$3.TKPa^lIjw~W4">
                                                                  <field name="TEXT">Einspeisung:</field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD1">
                                                                <block type="get_value" id="8z^$PnY|MP{gr{A#bPi.">
                                                                  <field name="ATTR">val</field>
                                                                  <field name="OID">plenticore.0.devices.local.ToGrid_P</field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD2">
                                                                <block type="text" id="nlvwHcKhv@po6U57sDxA">
                                                                  <field name="TEXT"> Netz-Bezug:</field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD3">
                                                                <block type="get_value" id="EL:l7T_?7p#z;7DZZs6`">
                                                                  <field name="ATTR">val</field>
                                                                  <field name="OID">plenticore.0.devices.local.HomeGrid_P</field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD4">
                                                                <block type="text" id="8R5CWhYs_y*4;ljCHQcR">
                                                                  <field name="TEXT"> Heiz-Stufe:</field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD5">
                                                                <block type="variables_get" id="(Oc3%bWXeM6!16qd]K7}">
                                                                  <field name="VAR" id="(au?)v#|.A3h~W0?i*.n">heizstufe</field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD6">
                                                                <block type="text" id="Y_gY|k^^bh44qU{VA%^z">
                                                                  <field name="TEXT"> Boilertemp:</field>
                                                                </block>
                                                              </value>
                                                              <value name="ADD7">
                                                                <block type="get_value" id="s783,ESop@{W@u@|4o?r">
                                                                  <field name="ATTR">val</field>
                                                                  <field name="OID">mqtt.0.ESP_Easy.Sensor_1.temperature_oben</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </statement>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </statement>
                        </block>
                      </statement>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </next>
        </block>
      </xml>
      

      kann mir einer weiterhelfen ob das so ok ist oder vielleich was verändert werden müsste oder sogar vereinfacht werden kann?

      Danke schon mal für Eure Hilfe

      Gruß Maik

      paul53 1 Reply Last reply Reply Quote 0
      • paul53
        paul53 @Spidermike last edited by

        @spidermike sagte: was verändert werden müsste

        Das Schalten der Heizstäbe darf nicht verschachtelt werden, sondern muss unabhängig erfolgen:

        Blockly_temp.JPG

        S 1 Reply Last reply Reply Quote 0
        • S
          Spidermike @paul53 last edited by

          @paul53 Danke für Deine Hilfe,

          was muss ich da jetzt änderen
          glaube ich habe da was vergessen zu wechseln

          paul53 1 Reply Last reply Reply Quote 0
          • paul53
            paul53 @Spidermike last edited by paul53

            @spidermike sagte: was muss ich da jetzt änderen

            So wie gezeigt: Das Schalten von Heizstab2 und den Debug-Block unter die Prüfung für Heizstab1 schieben.

            S 1 Reply Last reply Reply Quote 0
            • S
              Spidermike @paul53 last edited by

              @paul53
              so

                <value name="IF0">
                  <block type="logic_compare" id="UQv[Rz^5f:#)fAqUWMk-">
                    <field name="OP">NEQ</field>
                    <value name="A">
                      <block type="variables_get" id="K^Cr`lcToTn%,N+kEZ[s">
                        <field name="VAR" id="9y5$f~sG5n39o=TlsnI_">heizstab2</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="get_value" id="3Yr2{GacZb_mhZ4^?jF*">
                        <field name="ATTR">val</field>
                        <field name="OID">shelly.1.shelly1g3#3000W#1.Relay0.Switch</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="control" id="D/q[T[3mSbu1ysV{VPjV">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">shelly.1.shelly1g3#3000W#1.Relay0.Switch</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="variables_get" id=",[uX/yd,c(y.Gx~g[U#y">
                        <field name="VAR" id="9y5$f~sG5n39o=TlsnI_">heizstab2</field>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="debug" id="KS{*7I7)yzeN1jB=6;V/">
                    <field name="Severity">info</field>
                    <value name="TEXT">
                      <shadow type="text" id="KS:4~UZ{vccU~iTf-V_u">
                        <field name="TEXT">test</field>
                      </shadow>
                      <block type="text_join" id="5Y{~PghQ={@pOvAT^46;" inline="false">
                        <mutation items="8"></mutation>
                        <value name="ADD0">
                          <block type="text" id="`0;1s$3.TKPa^lIjw~W4">
                            <field name="TEXT">Einspeisung:</field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="get_value" id="8z^$PnY|MP{gr{A#bPi.">
                            <field name="ATTR">val</field>
                            <field name="OID">plenticore.0.devices.local.ToGrid_P</field>
                          </block>
                        </value>
                        <value name="ADD2">
                          <block type="text" id="nlvwHcKhv@po6U57sDxA">
                            <field name="TEXT"> Netz-Bezug:</field>
                          </block>
                        </value>
                        <value name="ADD3">
                          <block type="get_value" id="EL:l7T_?7p#z;7DZZs6`">
                            <field name="ATTR">val</field>
                            <field name="OID">plenticore.0.devices.local.HomeGrid_P</field>
                          </block>
                        </value>
                        <value name="ADD4">
                          <block type="text" id="8R5CWhYs_y*4;ljCHQcR">
                            <field name="TEXT"> Heiz-Stufe:</field>
                          </block>
                        </value>
                        <value name="ADD5">
                          <block type="variables_get" id="(Oc3%bWXeM6!16qd]K7}">
                            <field name="VAR" id="(au?)v#|.A3h~W0?i*.n">heizstufe</field>
                          </block>
                        </value>
                        <value name="ADD6">
                          <block type="text" id="Y_gY|k^^bh44qU{VA%^z">
                            <field name="TEXT"> Boilertemp:</field>
                          </block>
                        </value>
                        <value name="ADD7">
                          <block type="get_value" id="s783,ESop@{W@u@|4o?r">
                            <field name="ATTR">val</field>
                            <field name="OID">mqtt.0.ESP_Easy.Sensor_1.temperature_oben</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </next>
              </block>
              
              paul53 1 Reply Last reply Reply Quote 0
              • paul53
                paul53 @Spidermike last edited by

                @spidermike sagte: so

                Lässt sich nicht importieren!
                Zeige den unteren Blockly-Ausschnitt als Bild.

                S 1 Reply Last reply Reply Quote 0
                • S
                  Spidermike @paul53 last edited by

                  @paul53
                  neu 25.03.JPG

                  S paul53 2 Replies Last reply Reply Quote 0
                  • S
                    Spidermike @Spidermike last edited by

                    @spidermike neu 25.03 neu.JPG

                    1 Reply Last reply Reply Quote 0
                    • paul53
                      paul53 @Spidermike last edited by paul53

                      @spidermike
                      Den Debug-Block unter das Schalten von Heizstab1 schieben, denn der schaltet bei jeder Stufenänderung.

                      Blockly_temp.JPG

                      Der gesteuerte Shelly für Heizstab1 ist offenbar falsch.

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        Spidermike @paul53 last edited by Spidermike

                        @paul53

                        ja hatte ich schon gesehen und gegen den anderen Shelly geändert.

                        ich sehe bei mir im script keine Geräte sondern nur den Datenpunkt

                        komisch nur das er in deinen Bildern mir das Gerät sprich den Shelly anzeigt sonst wäre es mir nicht aufgefallen

                        S 1 Reply Last reply Reply Quote 0
                        • S
                          Spidermike @Spidermike last edited by

                          @spidermike
                          hier noch ein versuch

                          <block xmlns="https://developers.google.com/blockly/xml" type="debug" id="KS{*7I7)yzeN1jB=6;V/" x="-341.83333587646484" y="878">
                            <field name="Severity">info</field>
                            <value name="TEXT">
                              <shadow type="text" id="KS:4~UZ{vccU~iTf-V_u">
                                <field name="TEXT">test</field>
                              </shadow>
                              <block type="text_join" id="5Y{~PghQ={@pOvAT^46;" inline="false">
                                <mutation items="8"></mutation>
                                <value name="ADD0">
                                  <block type="text" id="`0;1s$3.TKPa^lIjw~W4">
                                    <field name="TEXT">Einspeisung:</field>
                                  </block>
                                </value>
                                <value name="ADD1">
                                  <block type="get_value" id="8z^$PnY|MP{gr{A#bPi.">
                                    <field name="ATTR">val</field>
                                    <field name="OID">plenticore.0.devices.local.ToGrid_P</field>
                                  </block>
                                </value>
                                <value name="ADD2">
                                  <block type="text" id="nlvwHcKhv@po6U57sDxA">
                                    <field name="TEXT"> Netz-Bezug:</field>
                                  </block>
                                </value>
                                <value name="ADD3">
                                  <block type="get_value" id="EL:l7T_?7p#z;7DZZs6`">
                                    <field name="ATTR">val</field>
                                    <field name="OID">plenticore.0.devices.local.HomeGrid_P</field>
                                  </block>
                                </value>
                                <value name="ADD4">
                                  <block type="text" id="8R5CWhYs_y*4;ljCHQcR">
                                    <field name="TEXT"> Heiz-Stufe:</field>
                                  </block>
                                </value>
                                <value name="ADD5">
                                  <block type="variables_get" id="(Oc3%bWXeM6!16qd]K7}">
                                    <field name="VAR" id="(au?)v#|.A3h~W0?i*.n">heizstufe</field>
                                  </block>
                                </value>
                                <value name="ADD6">
                                  <block type="text" id="Y_gY|k^^bh44qU{VA%^z">
                                    <field name="TEXT"> Boilertemp:</field>
                                  </block>
                                </value>
                                <value name="ADD7">
                                  <block type="get_value" id="s783,ESop@{W@u@|4o?r">
                                    <field name="ATTR">val</field>
                                    <field name="OID">mqtt.0.ESP_Easy.Sensor_1.temperature_oben</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                          
                          paul53 1 Reply Last reply Reply Quote 0
                          • paul53
                            paul53 @Spidermike last edited by

                            @spidermike sagte: hier noch ein versuch

                            Das ist nur der Debug-Block.

                            @spidermike sagte in PV Überschuss nutzen um 1,5KW und 3,0KW Heizstab zu schalten:

                            ich sehe bei mir im script keine Geräte sondern nur den Datenpunkt

                            Wenn der Datenpunkt existiert, wird in Blockly der Name dargestellt, andernfalls die ID.

                            S 1 Reply Last reply Reply Quote 0
                            • S
                              Spidermike @paul53 last edited by

                              @paul53 ist das jetzt soweit ok?

                              paul53 1 Reply Last reply Reply Quote 0
                              • paul53
                                paul53 @Spidermike last edited by

                                @spidermike sagte: ist das jetzt soweit ok?

                                Kann ich nicht beurteilen, denn der Export enthält nur den Debug-Block:

                                Blockly_temp.JPG

                                S 3 Replies Last reply Reply Quote 0
                                • S
                                  Spidermike @paul53 last edited by

                                  @paul53 ok ich werde es morgen sehen was passiert und melde mich dann nochmal wenn ich es ok ist oder probleme gibt

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    Spidermike @paul53 last edited by

                                    @paul53 ich wollte mich mal wieder melden und nach einer gewissen testphase ein kleines Feedback geben.

                                    das Script funktioniert jetzt wieder super und schaltet meine Heizstäbe wunderbar,

                                    Danke für Deine Hilfe

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      Spidermike @paul53 last edited by

                                      @paul53 hallo,

                                      nach dem Shelly adapter upate schaltet das script die zwei shellys nicht mehr obwohl die datenpunkte vorhanden sind.

                                      was kann das jetzt wieder sein?

                                      gruß Maik

                                      1 Reply Last reply Reply Quote 0
                                      • First post
                                        Last post

                                      Support us

                                      ioBroker
                                      Community Adapters
                                      Donate

                                      912
                                      Online

                                      31.7k
                                      Users

                                      79.7k
                                      Topics

                                      1.3m
                                      Posts

                                      2
                                      17
                                      346
                                      Loading More Posts
                                      • Oldest to Newest
                                      • Newest to Oldest
                                      • Most Votes
                                      Reply
                                      • Reply as topic
                                      Log in to reply
                                      Community
                                      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                      The ioBroker Community 2014-2023
                                      logo