Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. "please delete this Post" Im Anhang nochmal das Blocky

    NEWS

    • Neues Video "KI im Smart Home" - ioBroker plus n8n

    • Neues Video über Aliase, virtuelle Geräte und Kategorien

    • Wir empfehlen: Node.js 22.x

    "please delete this Post" Im Anhang nochmal das Blocky

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

      Re: E3DC Hauskraftwerk via Tibber laden

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable id="0Y=so_Zpfh)R*xO_xNNF">laden</variable>
          <variable id="sna]-E(|pedUs57eb$2`">Modus</variable>
          <variable id=":HUM}NcSr6pr)*_tZ%K~">Modus2</variable>
        </variables>
        <block type="comment" id="wYGKOV@m;DSPr+gVMqP?" x="-1737" y="13">
          <field name="COMMENT">Akku Kappa prüfen </field>
        </block>
        <block type="on" id="KFi=aS{@Kx{roq-j!Xe7" disabled="true" x="-1037" y="38">
          <field name="OID">modbus.0.holdingRegisters.40083_Batterie_SOC</field>
          <field name="CONDITION">any</field>
          <field name="ACK_CONDITION"></field>
          <statement name="STATEMENT">
            <block type="controls_if" id="9N6u3).GRGvc)1gm;X|!">
              <mutation elseif="1"></mutation>
              <value name="IF0">
                <block type="logic_compare" id="QWTMu`{ISH)Q+@B6L/%v">
                  <field name="OP">GTE</field>
                  <value name="A">
                    <block type="on_source" id="T;.A|P5(O7jN0G*;H~!m">
                      <field name="ATTR">state.val</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="math_number" id="]I19$BZjvJ!+)um^!_HI">
                      <field name="NUM">90</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO0">
                <block type="variables_set" id="ssF!(q$ucIV!^0/gI.DE">
                  <field name="VAR" id="0Y=so_Zpfh)R*xO_xNNF">laden</field>
                  <value name="VALUE">
                    <block type="logic_boolean" id="!-5fe:)bt2D^o55`~V6e">
                      <field name="BOOL">FALSE</field>
                    </block>
                  </value>
                </block>
              </statement>
              <value name="IF1">
                <block type="logic_compare" id="vM=KXc6DPa*}Pr$Te~L4">
                  <field name="OP">LT</field>
                  <value name="A">
                    <block type="on_source" id="W{$9=T9Riae0N%gbqi:f">
                      <field name="ATTR">state.val</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="math_number" id="/sBQS6(EU]m?-Y-d0IOy">
                      <field name="NUM">60</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO1">
                <block type="variables_set" id="=Q8){LXrePz%dE.!$~N0">
                  <field name="VAR" id="0Y=so_Zpfh)R*xO_xNNF">laden</field>
                  <value name="VALUE">
                    <block type="logic_boolean" id="[N(Y1gE!ZR0xnH[0xv6C">
                      <field name="BOOL">TRUE</field>
                    </block>
                  </value>
                </block>
              </statement>
              <next>
                <block type="procedures_callnoreturn" id="Yhrcf/j6f8Y~(@|y8Io|">
                  <mutation name="Ladeschaltung"></mutation>
                </block>
              </next>
            </block>
          </statement>
        </block>
        <block type="variables_set" id="x9m5V3x?MUQf?=|sIA)O" x="-1701" y="103">
          <field name="VAR" id="0Y=so_Zpfh)R*xO_xNNF">laden</field>
          <value name="VALUE">
            <block type="logic_compare" id="!y@{Jc}M%Bx)@xDEF[e6">
              <field name="OP">LT</field>
              <value name="A">
                <block type="get_value" id="tLKe{e977sRsinM3RlD2">
                  <field name="ATTR">val</field>
                  <field name="OID">modbus.0.holdingRegisters.40083_Batterie_SOC</field>
                </block>
              </value>
              <value name="B">
                <block type="math_number" id="0G.cUP$cs(uN^d_e0)`e">
                  <field name="NUM">90</field>
                </block>
              </value>
            </block>
          </value>
          <next>
            <block type="on_ext" id="i[kzA$?k0Au)PSJj3NUX">
              <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="W+V%)[~WW^AK@Ec{McC:">
                  <field name="oid">tibberlink.0.Homes.344a4436-7f96-4251-9a15-1dda22b8cbe3.CurrentPrice.total</field>
                </shadow>
              </value>
              <value name="OID1">
                <shadow type="field_oid" id="[H;K_$kk#fvdMgmVK,H/">
                  <field name="oid">e3dc-rscp.0.EMS.BAT_SOC</field>
                </shadow>
              </value>
              <statement name="STATEMENT">
                <block type="controls_if" id="UmNudO+,rEct.^!V?j5b">
                  <mutation elseif="1"></mutation>
                  <value name="IF0">
                    <block type="logic_compare" id="AKgs?gRA*]lIT5e*HvC+">
                      <field name="OP">GTE</field>
                      <value name="A">
                        <block type="on_source" id="$?3+?crUY.`!=+a2kY!;">
                          <field name="ATTR">state.val</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="math_number" id="~$z+Ztl$p~8dlt{5`M5W">
                          <field name="NUM">90</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="variables_set" id="sC?yyd#svq#4)f^QMN(d">
                      <field name="VAR" id="0Y=so_Zpfh)R*xO_xNNF">laden</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="Lk_)ggA/}P[lL1Y+iyGT">
                          <field name="BOOL">FALSE</field>
                        </block>
                      </value>
                    </block>
                  </statement>
                  <value name="IF1">
                    <block type="logic_compare" id="hoS~CwMU$B(3;8*@;w?C">
                      <field name="OP">LT</field>
                      <value name="A">
                        <block type="on_source" id="6,~f[|=t71GEEl9]YdEU">
                          <field name="ATTR">state.val</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="math_number" id="Xz9JLpxA+K`5Vh:tlc$n">
                          <field name="NUM">60</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO1">
                    <block type="variables_set" id="ocdHdKy}TTE*!BBxZ5Gl">
                      <field name="VAR" id="0Y=so_Zpfh)R*xO_xNNF">laden</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="x-2MJ)({x}%|.E3G~8nt">
                          <field name="BOOL">TRUE</field>
                        </block>
                      </value>
                    </block>
                  </statement>
                  <next>
                    <block type="procedures_callnoreturn" id="Wzv?*kolrctW9wZ!.uI@">
                      <mutation name="Ladeschaltung"></mutation>
                    </block>
                  </next>
                </block>
              </statement>
              <next>
                <block type="on" id=":2,QS4x0YvzuIG??Qk{6">
                  <field name="OID">tibberlink.0.Homes.344a4436-7f96-4251-9a15-1dda22b8cbe3.CurrentPrice.total</field>
                  <field name="CONDITION">ne</field>
                  <field name="ACK_CONDITION"></field>
                  <statement name="STATEMENT">
                    <block type="procedures_callnoreturn" id="kECB%]i[JX!ln^uC{3KS">
                      <mutation name="Ladeschaltung"></mutation>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
          </next>
        </block>
        <block type="procedures_defnoreturn" id="5/;3|HSfY1DAjxt5?Boe" x="-1312" y="313">
          <field name="NAME">Ladeschaltung</field>
          <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
          <statement name="STACK">
            <block type="variables_set" id="}Fqs{clkugC%PJw|,#%x">
              <field name="VAR" id="sna]-E(|pedUs57eb$2`">Modus</field>
              <value name="VALUE">
                <block type="logic_ternary" id="[.r)hU4YsaqlemuDNLsW" inline="false">
                  <value name="IF">
                    <block type="logic_operation" id="H*{$FtGE0%O3m5jr4c21" inline="false">
                      <field name="OP">AND</field>
                      <value name="A">
                        <block type="time_compare" id="wZye_u#FX4S:_:^FGt5M">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation>
                          <field name="OPTION">between</field>
                          <field name="START_TIME">00:00</field>
                          <field name="END_TIME">23:59</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_operation" id="ER[=B#TFc_ndUaaaTNRt" inline="false">
                          <field name="OP">AND</field>
                          <value name="A">
                            <block type="variables_get" id="!*+rWx@,]$AW+i93=Mn*">
                              <field name="VAR" id="0Y=so_Zpfh)R*xO_xNNF">laden</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_compare" id="=8#@vo)?z[cBMw:{FplF">
                              <field name="OP">LTE</field>
                              <value name="A">
                                <block type="get_value" id="E@n3z2oC/LJYxONikYzn">
                                  <field name="ATTR">val</field>
                                  <field name="OID">tibberlink.0.Homes.344a4436-7f96-4251-9a15-1dda22b8cbe3.CurrentPrice.total</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="math_arithmetic" id="GWdA~Yt7%EBIt:MB7mUx">
                                  <field name="OP">DIVIDE</field>
                                  <value name="A">
                                    <shadow type="math_number" id="XFc}i=E5`-sQo,q=EB3s">
                                      <field name="NUM">1</field>
                                    </shadow>
                                    <block type="get_value" id="Mg4(^8mm2m1m-!KR:KNU">
                                      <field name="ATTR">val</field>
                                      <field name="OID">mqtt.0.openWB.global.awattar.MaxPriceForCharging</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <shadow type="math_number" id="b|b]G0E|N?lfzh|zDNi0">
                                      <field name="NUM">100</field>
                                    </shadow>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </value>
                    </block>
                  </value>
                  <value name="THEN">
                    <block type="math_number" id="o#}VxYa6c$I+LFI1+swW">
                      <field name="NUM">4</field>
                    </block>
                  </value>
                  <value name="ELSE">
                    <block type="math_number" id="-Ex~STFr^1*sZg6W]l9t">
                      <field name="NUM">0</field>
                    </block>
                  </value>
                </block>
              </value>
              <next>
                <block type="controls_if" id=":;ok#KZ[]ZEu0T|P=kkc">
                  <value name="IF0">
                    <block type="logic_compare" id="Et5%B.C)v{VpjEE{Uu:m">
                      <field name="OP">NEQ</field>
                      <value name="A">
                        <block type="variables_get" id="#_L2|M#CMg$RtVppuO;i">
                          <field name="VAR" id="sna]-E(|pedUs57eb$2`">Modus</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="get_value" id="%_p_e*RYch*Ordw=@WAO">
                          <field name="ATTR">val</field>
                          <field name="OID">e3dc-rscp.0.EMS.SET_POWER_MODE</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="control" id="/N-q:7/s~*M1MC``1^c,">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">e3dc-rscp.0.EMS.SET_POWER_MODE</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="variables_get" id="88O=,bjBm3i_+(?W{@lF">
                          <field name="VAR" id="sna]-E(|pedUs57eb$2`">Modus</field>
                        </block>
                      </value>
                      <next>
                        <block type="control" id="#s@xa/|zj!h~d)F5W#i_">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                          <field name="OID">e3dc-rscp.0.EMS.SET_POWER_VALUE</field>
                          <field name="WITH_DELAY">TRUE</field>
                          <field name="DELAY_MS">5</field>
                          <field name="UNIT">sec</field>
                          <field name="CLEAR_RUNNING">FALSE</field>
                          <value name="VALUE">
                            <block type="math_number" id="7SgL{z$d[1n.T^;9?W0X">
                              <field name="NUM">9000</field>
                            </block>
                          </value>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
          </statement>
        </block>
        <block type="logic_compare" id="wF64?Si9r?dwKy]_EDI," disabled="true" x="-412" y="338">
          <field name="OP">LTE</field>
          <value name="A">
            <block type="get_value" id="SeKBpiJu(74N$cpJcunB">
              <field name="ATTR">val</field>
              <field name="OID">tibber.0.priceInfo.current.total</field>
            </block>
          </value>
          <value name="B">
            <block type="math_number" id="G8B$puW6XG_@^WC4)xou">
              <field name="NUM">0.175</field>
            </block>
          </value>
        </block>
        <block type="comment" id="Ti|wD85x|9vJ|jQkdkC." x="-1512" y="763">
          <field name="COMMENT">Entladesperrzeiten setzten </field>
          <next>
            <block type="on" id="IIm+KjOL:(hXR[e|*WE{">
              <field name="OID">go-e.1.car</field>
              <field name="CONDITION">ne</field>
              <field name="ACK_CONDITION"></field>
              <statement name="STATEMENT">
                <block type="procedures_callnoreturn" id="7h}sCENa/zpk*Nt~ZBVc">
                  <mutation name="Endladesperre"></mutation>
                </block>
              </statement>
            </block>
          </next>
        </block>
        <block type="procedures_defnoreturn" id="wZzT|Qsccu:rd|,.;1Z-" x="-1512" y="938">
          <field name="NAME">Endladesperre</field>
          <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
          <statement name="STACK">
            <block type="variables_set" id="5*C{VGE_Dxz}J=P657-P">
              <field name="VAR" id=":HUM}NcSr6pr)*_tZ%K~">Modus2</field>
              <value name="VALUE">
                <block type="logic_ternary" id="fq`!8q%cl%)d=Ixn1_Hl">
                  <value name="IF">
                    <block type="logic_operation" id="E]@LMsU2],iqOI4VcarV">
                      <field name="OP">AND</field>
                      <value name="A">
                        <block type="logic_compare" id="sqp/G2tE45TP4w64%Hx,">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id="s[Mrpp-{OnFlKb{`Qr7|">
                              <field name="ATTR">val</field>
                              <field name="OID">go-e.1.car</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="math_number" id=":3T$q[mhTuRd2gtv@Q=a">
                              <field name="NUM">2</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_compare" id="0*6%m8W!.RY8k~PXGF@0">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id="vcPnw^PDiIlR``5H4SHJ">
                              <field name="ATTR">val</field>
                              <field name="OID">mqtt.0.openWB.global.ChargeMode</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="math_number" id="J0dUc^1a%dpvJZn:~h|6">
                              <field name="NUM">0</field>
                            </block>
                          </value>
                        </block>
                      </value>
                    </block>
                  </value>
                  <value name="THEN">
                    <block type="logic_boolean" id="?/u~qD1:Nk{[YN}VPcJZ">
                      <field name="BOOL">TRUE</field>
                    </block>
                  </value>
                  <value name="ELSE">
                    <block type="logic_boolean" id=",x??(^xPFEaGr(CV)yt}">
                      <field name="BOOL">FALSE</field>
                    </block>
                  </value>
                </block>
              </value>
              <next>
                <block type="controls_if" id="VXEP_o7e$E$G%i4UeHf9">
                  <value name="IF0">
                    <block type="logic_compare" id="x}#J]4N8U:kxEu[z2C_1">
                      <field name="OP">NEQ</field>
                      <value name="A">
                        <block type="variables_get" id="t@o(k7Y_cK5@;br)n1!f">
                          <field name="VAR" id=":HUM}NcSr6pr)*_tZ%K~">Modus2</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="get_value" id="JeuFg+eo_?g(5fZ|?KDM">
                          <field name="ATTR">val</field>
                          <field name="OID">e3dc-rscp.0.EMS.IDLE_PERIODS_DISCHARGE.00-Monday.IDLE_PERIOD_ACTIVE</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="control" id=",v4{PWtN7j=IbT,{?9wu">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                      <field name="OID">e3dc-rscp.0.EMS.IDLE_PERIODS_DISCHARGE.00-Monday.IDLE_PERIOD_ACTIVE</field>
                      <field name="WITH_DELAY">TRUE</field>
                      <field name="DELAY_MS">1</field>
                      <field name="UNIT">sec</field>
                      <field name="CLEAR_RUNNING">FALSE</field>
                      <value name="VALUE">
                        <block type="variables_get" id="C-UAIh|@3K@q4FbUsZY6">
                          <field name="VAR" id=":HUM}NcSr6pr)*_tZ%K~">Modus2</field>
                        </block>
                      </value>
                      <next>
                        <block type="control" id=";bo#Od1yavuvBA0M7MPB">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                          <field name="OID">e3dc-rscp.0.EMS.IDLE_PERIODS_DISCHARGE.01-Tuesday.IDLE_PERIOD_ACTIVE</field>
                          <field name="WITH_DELAY">TRUE</field>
                          <field name="DELAY_MS">2</field>
                          <field name="UNIT">sec</field>
                          <field name="CLEAR_RUNNING">FALSE</field>
                          <value name="VALUE">
                            <block type="variables_get" id="fm2`{!(Wvx1^zTh}k1?}">
                              <field name="VAR" id=":HUM}NcSr6pr)*_tZ%K~">Modus2</field>
                            </block>
                          </value>
                          <next>
                            <block type="control" id=";KkLypI!01qn~g%gPOJu">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                              <field name="OID">e3dc-rscp.0.EMS.IDLE_PERIODS_DISCHARGE.02-Wednesday.IDLE_PERIOD_ACTIVE</field>
                              <field name="WITH_DELAY">TRUE</field>
                              <field name="DELAY_MS">3</field>
                              <field name="UNIT">sec</field>
                              <field name="CLEAR_RUNNING">FALSE</field>
                              <value name="VALUE">
                                <block type="variables_get" id="+sPa([CU]vgKBmHNq+:-">
                                  <field name="VAR" id=":HUM}NcSr6pr)*_tZ%K~">Modus2</field>
                                </block>
                              </value>
                              <next>
                                <block type="control" id="v8QU_)qgLDHjau}SpUMd">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                  <field name="OID">e3dc-rscp.0.EMS.IDLE_PERIODS_DISCHARGE.03-Thursday.IDLE_PERIOD_ACTIVE</field>
                                  <field name="WITH_DELAY">TRUE</field>
                                  <field name="DELAY_MS">4</field>
                                  <field name="UNIT">sec</field>
                                  <field name="CLEAR_RUNNING">FALSE</field>
                                  <value name="VALUE">
                                    <block type="variables_get" id="#0OV]H%qAXHD.x*iMrdL">
                                      <field name="VAR" id=":HUM}NcSr6pr)*_tZ%K~">Modus2</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="control" id="9h}O1NWT4D]+,lWk!0sj">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                      <field name="OID">e3dc-rscp.0.EMS.IDLE_PERIODS_DISCHARGE.04-Friday.IDLE_PERIOD_ACTIVE</field>
                                      <field name="WITH_DELAY">TRUE</field>
                                      <field name="DELAY_MS">5</field>
                                      <field name="UNIT">sec</field>
                                      <field name="CLEAR_RUNNING">FALSE</field>
                                      <value name="VALUE">
                                        <block type="variables_get" id="].%%C*600cCsr/FuC_S|">
                                          <field name="VAR" id=":HUM}NcSr6pr)*_tZ%K~">Modus2</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="control" id=".nyo-LMoZbB4G7bY|8QU">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                          <field name="OID">e3dc-rscp.0.EMS.IDLE_PERIODS_DISCHARGE.05-Saturday.IDLE_PERIOD_ACTIVE</field>
                                          <field name="WITH_DELAY">TRUE</field>
                                          <field name="DELAY_MS">6</field>
                                          <field name="UNIT">sec</field>
                                          <field name="CLEAR_RUNNING">FALSE</field>
                                          <value name="VALUE">
                                            <block type="variables_get" id="u8X-iz3T{bt,0MHrap:X">
                                              <field name="VAR" id=":HUM}NcSr6pr)*_tZ%K~">Modus2</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="control" id="DB_AQFx-Ijot);%W#^@g">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                              <field name="OID">e3dc-rscp.0.EMS.IDLE_PERIODS_DISCHARGE.06-Sunday.IDLE_PERIOD_ACTIVE</field>
                                              <field name="WITH_DELAY">TRUE</field>
                                              <field name="DELAY_MS">7</field>
                                              <field name="UNIT">sec</field>
                                              <field name="CLEAR_RUNNING">FALSE</field>
                                              <value name="VALUE">
                                                <block type="variables_get" id="*E+#K/MUZjz*lZWg%slf">
                                                  <field name="VAR" id=":HUM}NcSr6pr)*_tZ%K~">Modus2</field>
                                                </block>
                                              </value>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
          </statement>
        </block>
      </xml>
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      Support us

      ioBroker
      Community Adapters
      Donate

      972
      Online

      32.1k
      Users

      80.6k
      Topics

      1.3m
      Posts

      1
      1
      165
      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