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 -> Shelly schalten

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    PV Überschuss -> Shelly schalten

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

      Hallo zusammen

      Versuche gerade einen Shelly mittels Blockly zu schalten, wenn genug PV Überschuss vorhanden ist.
      Das Funktioniert auch soweit, nur ein kleines Problem habe ich noch:

      Wenn der Überschuss nur für einen sehr kurzen Zeitraum vorhanden ist, und dann sofort wieder abfällt, wird der Shelly trotzdem eingeschalten.

      50232822-7c48-4fe7-ad1a-f8bc11409475-image.png

      Video:

      1. Shelly ist aus, PV Überschuss 100W
      2. Ich setze den Überschuss auf 3000, und dann direkt wieder auf 100.
      3. Shelly schaltet trotzdem nach Ablauf der Verzögerung ein.

      20231106-124925.mp4

      Hier noch das Script:

      <xml xmlns="https://developers.google.com/blockly/xml">
        <block type="comment" id="H2F(np_ChnRLZIi%TfE6" x="-1362" y="-1063">
          <field name="COMMENT">Boiler_1 Einschalten</field>
          <next>
            <block type="on_ext" id="8,+J4UjXXRs#)b7cF;/_">
              <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
              <field name="CONDITION">ne</field>
              <field name="ACK_CONDITION"></field>
              <value name="OID0">
                <shadow type="field_oid" id="j_9Wf%:DT#z60QA=5O]I">
                  <field name="oid">0_userdata.0.Test.PVÜberschuss</field>
                </shadow>
              </value>
              <statement name="STATEMENT">
                <block type="controls_if" id="y,%U,k0yUnll.v6v8s](">
                  <value name="IF0">
                    <block type="logic_compare" id="6A)4UIy*_%RiDYEb8)Ur">
                      <field name="OP">EQ</field>
                      <value name="A">
                        <block type="get_value" id="uJ00(aI2I.TAk4s2bjVi">
                          <field name="ATTR">val</field>
                          <field name="OID">0_userdata.0.Test.Shelly</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_boolean" id="yQ*Q!=#^].P8eLtG{p}q">
                          <field name="BOOL">FALSE</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="controls_if" id="D)TIHyM8^PgXqG}Z1F4u">
                      <value name="IF0">
                        <block type="logic_compare" id="]z.N|GSd0I}3=|OZuEkK">
                          <field name="OP">GT</field>
                          <value name="A">
                            <block type="get_value" id="%{z*(G.Fp]FCXfWozWfY">
                              <field name="ATTR">val</field>
                              <field name="OID">0_userdata.0.Test.PVÜberschuss</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="math_number" id="$^s:^BOJps?ZYHi?xY,Q">
                              <field name="NUM">2000</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="debug" id="=.4N(Y%Q,+[Kn_b%5tK?">
                          <field name="Severity">log</field>
                          <value name="TEXT">
                            <shadow type="text" id="dx?dI|XIS;^oL0sA~`zE">
                              <field name="TEXT">EIN - 10sek starten</field>
                            </shadow>
                          </value>
                          <next>
                            <block type="control_ex" id="no`)x`$7]z#?75G]fw@R">
                              <field name="TYPE">false</field>
                              <field name="CLEAR_RUNNING">FALSE</field>
                              <value name="OID">
                                <shadow type="field_oid" id="i}`oaPs)n2@.0H}wYhO{">
                                  <field name="oid">0_userdata.0.Test.Shelly</field>
                                </shadow>
                              </value>
                              <value name="VALUE">
                                <shadow type="logic_boolean" id="oT6BK^jK6[*ebUB0%2lm">
                                  <field name="BOOL">TRUE</field>
                                </shadow>
                              </value>
                              <value name="DELAY_MS">
                                <shadow type="math_number" id="T/6J1+.#KY6BIPZ`,dw3">
                                  <field name="NUM">10000</field>
                                </shadow>
                              </value>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                  </statement>
                </block>
              </statement>
            </block>
          </next>
        </block>
        <block type="comment" id="[M!Un7$_ob1t%S_xUI$[" x="-1362" y="-587">
          <field name="COMMENT">Boiler_ 1 Ausschalten</field>
          <next>
            <block type="on_ext" id="~}I9lru#2R^%`JPbZJ(j">
              <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
              <field name="CONDITION">ne</field>
              <field name="ACK_CONDITION"></field>
              <value name="OID0">
                <shadow type="field_oid" id="XMbRi98R,7h(o-9muHF]">
                  <field name="oid">0_userdata.0.Test.PVÜberschuss</field>
                </shadow>
              </value>
              <statement name="STATEMENT">
                <block type="controls_if" id="C}PVI/8/voUTT_,~6I=`">
                  <value name="IF0">
                    <block type="logic_compare" id="./Kq;Ce8u7YqosR8/q$z">
                      <field name="OP">EQ</field>
                      <value name="A">
                        <block type="get_value" id="!7Nh^f5Is@i71tnsv]3i">
                          <field name="ATTR">val</field>
                          <field name="OID">0_userdata.0.Test.Shelly</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_boolean" id="YRUNJ5sI_!X][vXR$nRS">
                          <field name="BOOL">TRUE</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="controls_if" id=":ZsBInQ7ljA^n0_n%a;K">
                      <value name="IF0">
                        <block type="logic_compare" id="QI3^0(OAu=wPtJtHbn=l">
                          <field name="OP">LT</field>
                          <value name="A">
                            <block type="get_value" id="/IYxF6wn1Q3yv5`Q5c6.">
                              <field name="ATTR">val</field>
                              <field name="OID">0_userdata.0.Test.PVÜberschuss</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="math_number" id=",?[}w^H^{LCHr)=Dad0C">
                              <field name="NUM">300</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="debug" id="HL5IUb$/$:7+^pIsC@b)">
                          <field name="Severity">log</field>
                          <value name="TEXT">
                            <shadow type="text" id="l!7w6}hmK`)v0oU=qau)">
                              <field name="TEXT">AUS - 10sek starten</field>
                            </shadow>
                          </value>
                          <next>
                            <block type="control_ex" id="X+IMP}e=v.C2)=H(yR^I">
                              <field name="TYPE">false</field>
                              <field name="CLEAR_RUNNING">FALSE</field>
                              <value name="OID">
                                <shadow type="field_oid" id="Xhc|PYVh1w%LYs.F^ok^">
                                  <field name="oid">0_userdata.0.Test.Shelly</field>
                                </shadow>
                              </value>
                              <value name="VALUE">
                                <shadow type="logic_boolean" id="ZRv#umV@LYVx.69Sg8@I">
                                  <field name="BOOL">FALSE</field>
                                </shadow>
                              </value>
                              <value name="DELAY_MS">
                                <shadow type="math_number" id="$VYf#{ej2F^Z,Za!cfSV">
                                  <field name="NUM">10000</field>
                                </shadow>
                              </value>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                  </statement>
                </block>
              </statement>
            </block>
          </next>
        </block>
      </xml>
      
      paul53 1 Reply Last reply Reply Quote 0
      • paul53
        paul53 @Endurance last edited by paul53

        @endurance
        Prinzip:

        Blockly_temp.JPG

        ... schon einige Male im Forum gepostet

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

        Support us

        ioBroker
        Community Adapters
        Donate

        756
        Online

        32.0k
        Users

        80.4k
        Topics

        1.3m
        Posts

        2
        2
        228
        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