Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [Frage] Realisierung Adapter UDP Keba Wallbox

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    [Frage] Realisierung Adapter UDP Keba Wallbox

    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      darkiop Most Active @Pengo last edited by

      @pengo sagte in [Frage] Realisierung Adapter UDP Keba Wallbox:

      wie kann ich hier ein Blockly Code einfügen?

      Einfach exportieren über den ioBroker Admin und dann die xml hier in code tags posten.

      P 1 Reply Last reply Reply Quote 0
      • P
        Pengo @darkiop last edited by Pengo

        @darkiop Danke

        Jetzt als Blockly

        <xml xmlns="https://developers.google.com/blockly/xml">
          <variables>
            <variable id=";%j!3mWWv6w?P6Pfpb~Q">Tag</variable>
            <variable id="Kz*=WTH~AN`IzF.eK_h~">Phasen</variable>
            <variable id="?qT3C,*0.0d@tEJwOM$n">powerlist</variable>
            <variable id="~o%t(DS,}oI?=g#.d]7J">zaehler</variable>
            <variable id="zWfw;SRCP3|#:BT25]h5">avg_value</variable>
          </variables>
          <block type="on_ext" id="gJc@E|sytq_vv`9Mczq1" x="-1404" y="-669">
            <mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation>
            <field name="CONDITION">ne</field>
            <field name="ACK_CONDITION"></field>
            <value name="OID0">
              <shadow type="field_oid" id="pxSA._6!wqGL3@EF;.7s">
                <field name="oid">default</field>
              </shadow>
              <block type="field_oid" id="?oBk.xY8yO2o~(aEa6}V">
                <field name="oid">kecontact.0.plug</field>
              </block>
            </value>
            <value name="OID1">
              <shadow type="field_oid" id="JpgNdw@075^h=A2^#S[R">
                <field name="oid">default</field>
              </shadow>
              <block type="field_oid" id="1pXd1VbAe}C{i/sEX79(">
                <field name="oid">kecontact.0.automatic.photovoltaics</field>
              </block>
            </value>
            <value name="OID2">
              <shadow type="field_oid" id="_YA//7dKi==[q]xQ|Zgz">
                <field name="oid">default</field>
              </shadow>
              <block type="variables_get" id="ZARk-pNuJQO^.IK(+R{E">
                <field name="VAR" id=";%j!3mWWv6w?P6Pfpb~Q">Tag</field>
              </block>
            </value>
            <statement name="STATEMENT">
              <block type="controls_if" id="1DF:y.#c0$ej~g/kz_HA">
                <value name="IF0">
                  <block type="logic_compare" id="qLN_PsFJQ?%Md?f;?XAp">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="get_value" id="[%Jrc_Pw/joj%^Ra=T6#">
                        <field name="ATTR">val</field>
                        <field name="OID">kecontact.0.plug</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="math_number" id="8[9[SJbu//EP`E9t+9wt">
                        <field name="NUM">7</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="controls_if" id="Jd71CR]]e1@3pE:2F;I{">
                    <mutation elseif="1" else="1"></mutation>
                    <value name="IF0">
                      <block type="logic_operation" id=".:]L$1i!TK|,J{hv~](+">
                        <field name="OP">AND</field>
                        <value name="A">
                          <block type="time_compare_ex" id="DD@z9]!sK+3|lWG3_|tt">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                            <field name="USE_ACTUAL_TIME">TRUE</field>
                            <field name="OPTION">between</field>
                            <value name="START_TIME">
                              <shadow type="text" id="k1565E2`!j5^N`n?3+Cp">
                                <field name="TEXT">12:00</field>
                              </shadow>
                              <block type="time_astro" id="$#`=uFL#clGae_N8y4EK">
                                <field name="TYPE">sunrise</field>
                                <field name="OFFSET">0</field>
                              </block>
                            </value>
                            <value name="END_TIME">
                              <shadow type="text" id="l8pS7gG_md[WNkG_l]U]">
                                <field name="TEXT">18:00</field>
                              </shadow>
                              <block type="time_astro" id="|2A:7C48,[_QJ7g%3cG?">
                                <field name="TYPE">sunset</field>
                                <field name="OFFSET">0</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_compare" id="QwZi.P?5`L[`v:O(8s#8">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="get_value" id="@gMy(4P+_9|?tGG5;G4E">
                                <field name="ATTR">val</field>
                                <field name="OID">kecontact.0.automatic.photovoltaics</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_boolean" id="]gZA[Rp-_2(`?Lh/3Er[">
                                <field name="BOOL">TRUE</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="controls_if" id="%:1t?M836@!R4eZtfeC}">
                        <mutation else="1"></mutation>
                        <value name="IF0">
                          <block type="logic_compare" id="i}MPD=l;GiY(zvOfBx{l">
                            <field name="OP">GTE</field>
                            <value name="A">
                              <block type="math_arithmetic" id="~](NLB2L*F?KWJbb6$MZ">
                                <field name="OP">ADD</field>
                                <value name="A">
                                  <shadow type="math_number">
                                    <field name="NUM">1</field>
                                  </shadow>
                                  <block type="get_value" id="fhA]|nN0vb!f^?w)pj2x">
                                    <field name="ATTR">val</field>
                                    <field name="OID">sma-em.0.3014002797.psurplus</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <shadow type="math_number">
                                    <field name="NUM">1</field>
                                  </shadow>
                                  <block type="get_value" id="`kH900CY#FJ,s1}#LbVy">
                                    <field name="ATTR">val</field>
                                    <field name="OID">0_userdata.0.Neuer_Ordner.Ladeleistung</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="%]4UBw8F%Noz5Jrqz}xg">
                                <field name="NUM">3680</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="procedures_callnoreturn" id="Jk3ooL=7}i`~inV)BtaO">
                            <mutation name="3 Phasen"></mutation>
                          </block>
                        </statement>
                        <statement name="ELSE">
                          <block type="procedures_callnoreturn" id="7*{HVtyGY|:DS}wHi7TY">
                            <mutation name="1 Phase"></mutation>
                          </block>
                        </statement>
                        <next>
                          <block type="timeouts_wait" id="IRzdL~4PNLAHe9(Z|sxU">
                            <field name="DELAY">10</field>
                            <field name="UNIT">sec</field>
                            <next>
                              <block type="variables_set" id="0aa?[W^Eiz/+s!b_cjv:">
                                <field name="VAR" id="?qT3C,*0.0d@tEJwOM$n">powerlist</field>
                                <value name="VALUE">
                                  <block type="lists_create_with" id="l{)ggJUIC^MB5~HnpkK">
                                    <mutation items="1"></mutation>
                                    <value name="ADD0">
                                      <block type="lists_repeat" id="qTquchIQ2hsLO@+nwdb">
                                        <value name="NUM">
                                          <shadow type="math_number" id="OOxCj9]M~w6x,4GjIY1w">
                                            <field name="NUM">90</field>
                                          </shadow>
                                        </value>
                                        <value name="ITEM">
                                          <block type="math_number" id="}J@R=hD{b4@:1|m;fr@1">
                                            <field name="NUM">0</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <next>
                                  <block type="variables_set" id="_wJwOrDH[-@z)7#f.]~d">
                                    <field name="VAR" id="~o%t(DS,}oI?=g#.d]7J">zaehler</field>
                                    <value name="VALUE">
                                      <block type="math_number" id="^1qClPKO)byi*^}yrl">
                                        <field name="NUM">1</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="controls_whileUntil" id="pxE2b$GJV.9~:Q8h^7Ee">
                                        <field name="MODE">WHILE</field>
                                        <value name="BOOL">
                                          <block type="logic_operation" id="1g50E=9^_h^uI5s6h%C+">
                                            <field name="OP">AND</field>
                                            <value name="A">
                                              <block type="time_compare_ex" id="q:9bT$__a,F#S$Hbr*=H">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="false" actual_time="true"></mutation>
                                                <field name="USE_ACTUAL_TIME">TRUE</field>
                                                <field name="OPTION">&lt;</field>
                                                <value name="START_TIME">
                                                  <shadow type="text" id="-(uX=7/_=.VdnqJ.1[MK">
                                                    <field name="TEXT">12:00</field>
                                                  </shadow>
                                                  <block type="time_astro" id="V9Uk=V)Tj5:#@fhy%L=l">
                                                    <field name="TYPE">sunset</field>
                                                    <field name="OFFSET">0</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="logic_compare" id="U!,b?(N.8Tq,P,GF@PhV">
                                                <field name="OP">EQ</field>
                                                <value name="A">
                                                  <block type="get_value" id=",2u?eKSdhP%]@e(l!}lb">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">kecontact.0.automatic.photovoltaics</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="math_number" id="PrJ8)EhLWreQ0ZoW9;Gy">
                                                    <field name="NUM">1</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="DO">
                                          <block type="lists_setIndex" id="i[9ekb#FxDO[Q,XJUf%z">
                                            <mutation at="true"></mutation>
                                            <field name="MODE">SET</field>
                                            <field name="WHERE">FROM_START</field>
                                            <value name="LIST">
                                              <block type="variables_get" id="r]E9:0GGU,7t#Tqmsr0A">
                                                <field name="VAR" id="?qT3C,*0.0d@tEJwOM$n">powerlist</field>
                                              </block>
                                            </value>
                                            <value name="AT">
                                              <block type="variables_get" id="OEy#cK{(ocW-W/P=0REj">
                                                <field name="VAR" id="~o%t(DS,}oI?=g#.d]7J">zaehler</field>
                                              </block>
                                            </value>
                                            <value name="TO">
                                              <block type="math_arithmetic" id="L.Nc4fAgMKYx8#LM^ROQ">
                                                <field name="OP">ADD</field>
                                                <value name="A">
                                                  <shadow type="math_number" id=";atn8^a[)rxSfRQ+~1=`">
                                                    <field name="NUM">1</field>
                                                  </shadow>
                                                  <block type="get_value" id="vGh?.Xe$!IgoeLlRPMmc">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">sma-em.0.3014002797.psurplus</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <shadow type="math_number" id="o`9t[Y(mW,UQ|Et{)Skm">
                                                    <field name="NUM">1</field>
                                                  </shadow>
                                                  <block type="get_value" id="X/o+}8`]%tlU:z6g3_NP">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">0_userdata.0.Neuer_Ordner.Ladeleistung</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="controls_if" id="x(3]2/PR=(yMJ}uG?Uh,">
                                                <value name="IF0">
                                                  <block type="logic_compare" id="HsSrLZlMD0fDvd}LBHRP">
                                                    <field name="OP">EQ</field>
                                                    <value name="A">
                                                      <block type="variables_get" id="YPHVohUdGN/YmEVD{v">
                                                        <field name="VAR" id="~o%t(DS,}oI?=g#.d]7J">zaehler</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="math_number" id="OG6z9tzsrW|MVnF@N590">
                                                        <field name="NUM">90</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <statement name="DO0">
                                                  <block type="variables_set" id="}26op)#ACFS@6GCrqdsM">
                                                    <field name="VAR" id="~o%t(DS,}oI?=g#.d]7J">zaehler</field>
                                                    <value name="VALUE">
                                                      <block type="math_number" id=":U2HH_Tw43Z9dw[B(E0Z">
                                                        <field name="NUM">0</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </statement>
                                                <next>
                                                  <block type="math_change" id=")DYK%F553DwziokE]-p*">
                                                    <field name="VAR" id="~o%t(DS,}oI?=g#.d]7J">zaehler</field>
                                                    <value name="DELTA">
                                                      <shadow type="math_number" id="B8xv]2@}Pt8_lYV;Y6D">
                                                        <field name="NUM">1</field>
                                                      </shadow>
                                                    </value>
                                                    <next>
                                                      <block type="variables_set" id="7j-hdnljTg~+n;hMm#j">
                                                        <field name="VAR" id="zWfw;SRCP3|#:BT25]h5">avg_value</field>
                                                        <value name="VALUE">
                                                          <block type="math_on_list" id="b)d0^t{W1V#)z47Z1h(">
                                                            <mutation op="AVERAGE"></mutation>
                                                            <field name="OP">AVERAGE</field>
                                                            <value name="LIST">
                                                              <block type="variables_get" id="r-/qP?MC)4!OxRnYex/F">
                                                                <field name="VAR" id="?qT3C,*0.0d@tEJwOM$n">powerlist</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="controls_if" id="~3G2l5V:d%5:9r1Gh65a">
                                                            <value name="IF0">
                                                              <block type="logic_operation" id="Rnz{F~e|SAqLdK5FN^]1">
                                                                <field name="OP">AND</field>
                                                                <value name="A">
                                                                  <block type="logic_compare" id="%SHZ{_Yo:eV?^e9BH}7b">
                                                                    <field name="OP">LT</field>
                                                                    <value name="A">
                                                                      <block type="variables_get" id=".{+=~e!Kcru]Bsy{@^bj">
                                                                        <field name="VAR" id="zWfw;SRCP3|#:BT25]h5">avg_value</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <block type="math_number" id="RD^DjqZTL.16k9)@l5,*">
                                                                        <field name="NUM">3450</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="logic_compare" id="R7?I%@NFcd:v:RE#_o35">
                                                                    <field name="OP">EQ</field>
                                                                    <value name="A">
                                                                      <block type="variables_get" id="MZnc5q(eNWL%}C68lLKx">
                                                                        <field name="VAR" id="Kz*=WTH~AN`IzF.eK_h~">Phasen</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <block type="math_number" id="MZ9w:y@hDsj4Ou]Eczo;">
                                                                        <field name="NUM">3</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <statement name="DO0">
                                                              <block type="procedures_callnoreturn" id="v[zpf{^u=M`C!185u5i;">
                                                                <mutation name="1 Phase"></mutation>
                                                              </block>
                                                            </statement>
                                                            <next>
                                                              <block type="controls_if" id="DjTN%L00TD[`P$*kjIfQ">
                                                                <value name="IF0">
                                                                  <block type="logic_operation" id="W0O=Hl$-3lD|bhlW9/ay">
                                                                    <field name="OP">AND</field>
                                                                    <value name="A">
                                                                      <block type="logic_compare" id="fr?t3@:|%9{ANA$4B=2_">
                                                                        <field name="OP">GT</field>
                                                                        <value name="A">
                                                                          <block type="variables_get" id="$_e8S=K~gF/{@qUepuRI">
                                                                            <field name="VAR" id="zWfw;SRCP3|#:BT25]h5">avg_value</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <block type="math_number" id="Pch7#2J(4)lT,(|Kz%DI">
                                                                            <field name="NUM">3680</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <block type="logic_compare" id="j]jK|/5NOT[wQZr5mej2">
                                                                        <field name="OP">EQ</field>
                                                                        <value name="A">
                                                                          <block type="variables_get" id=".@P;L^3x!IXPi06*HvF:">
                                                                            <field name="VAR" id="Kz*=WTH~AN`IzF.eK_h~">Phasen</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <block type="math_number" id="m2hy8-Vo)_Ym)QOxP0a+">
                                                                            <field name="NUM">1</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                                <statement name="DO0">
                                                                  <block type="procedures_callnoreturn" id="0,U``80.^GB/Uo7d@{u6">
                                                                    <mutation name="3 Phasen"></mutation>
                                                                  </block>
                                                                </statement>
                                                                <next>
                                                                  <block type="timeouts_wait" id="v76QTHT:6/fF1{BP+(J1">
                                                                    <field name="DELAY">10</field>
                                                                    <field name="UNIT">sec</field>
                                                                    <next>
                                                                      <block type="debug" id="?=?`^`OntB9{_eld;cJ^" disabled="true">
                                                                        <field name="Severity">log</field>
                                                                        <value name="TEXT">
                                                                          <shadow type="text">
                                                                            <field name="TEXT">test</field>
                                                                          </shadow>
                                                                          <block type="get_value" id="`0^Kp}_FK`O}_SR-t`m^">
                                                                            <field name="ATTR">val</field>
                                                                            <field name="OID">modbus.0.inputRegisters.30775_aktuelle_Leistung</field>
                                                                          </block>
                                                                        </value>
                                                                        <next>
                                                                          <block type="debug" id="F7g0[Y!Ttf2!kIHM}f(%" disabled="true">
                                                                            <field name="Severity">log</field>
                                                                            <value name="TEXT">
                                                                              <shadow type="text">
                                                                                <field name="TEXT">test</field>
                                                                              </shadow>
                                                                              <block type="variables_get" id="Xc#L,+Xx7b:dNk`twq7y">
                                                                                <field name="VAR" id="zWfw;SRCP3|#:BT25]h5">avg_value</field>
                                                                              </block>
                                                                            </value>
                                                                            <next>
                                                                              <block type="debug" id="@HG](]:ewVluTnfc6o{L" disabled="true">
                                                                                <field name="Severity">log</field>
                                                                                <value name="TEXT">
                                                                                  <shadow type="text">
                                                                                    <field name="TEXT">test</field>
                                                                                  </shadow>
                                                                                  <block type="variables_get" id="95O0|GdTo?Nz_Gdkss?x">
                                                                                    <field name="VAR" id="Kz*=WTH~AN`IzF.eK_h~">Phasen</field>
                                                                                  </block>
                                                                                </value>
                                                                                <next>
                                                                                  <block type="controls_if" id="Fa+*!}YL(s~)C-IL{:hY">
                                                                                    <value name="IF0">
                                                                                      <block type="logic_compare" id="7wE2DSq0:FPdf[d%_3c?">
                                                                                        <field name="OP">EQ</field>
                                                                                        <value name="A">
                                                                                          <block type="get_value" id="XbN^=5m%u/^#]d|_.2YV">
                                                                                            <field name="ATTR">val</field>
                                                                                            <field name="OID">kecontact.0.plug</field>
                                                                                          </block>
                                                                                        </value>
                                                                                        <value name="B">
                                                                                          <block type="math_number" id="+^.0eZ`x/(Nog?+B[)NG">
                                                                                            <field name="NUM">3</field>
                                                                                          </block>
                                                                                        </value>
                                                                                      </block>
                                                                                    </value>
                                                                                    <statement name="DO0">
                                                                                      <block type="controls_flow_statements" id=":[ML)WYiS7{,Y42yR|wV">
                                                                                        <field name="FLOW">BREAK</field>
                                                                                      </block>
                                                                                    </statement>
                                                                                  </block>
                                                                                </next>
                                                                              </block>
                                                                            </next>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </statement>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </statement>
                    <value name="IF1">
                      <block type="logic_compare" id="Hi9^[9co?D[f$2(~{PJA">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id="e5ggB+SOj43=Sr+UB.1D">
                            <field name="ATTR">val</field>
                            <field name="OID">kecontact.0.automatic.photovoltaics</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_boolean" id="qI:+(-Y%IYhir2}|~Na5">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO1">
                      <block type="procedures_callnoreturn" id="24ny*jG*t}uvyBbOjfXs">
                        <mutation name="3 Phasen"></mutation>
                        <next>
                          <block type="debug" id=".WqJ3;UEU~@;Mp[wbILL" disabled="true">
                            <field name="Severity">log</field>
                            <value name="TEXT">
                              <shadow type="text">
                                <field name="TEXT">test</field>
                              </shadow>
                              <block type="variables_get" id="5xW^/OA@dYnjzaoXbi)]">
                                <field name="VAR" id="Kz*=WTH~AN`IzF.eK_h~">Phasen</field>
                              </block>
                            </value>
                          </block>
                        </next>
                      </block>
                    </statement>
                    <statement name="ELSE">
                      <block type="procedures_callnoreturn" id="oBJh:[M=VOWMZjKF4t!X">
                        <mutation name="1 Phase"></mutation>
                        <next>
                          <block type="debug" id="cv+@zC)bHE]`{p]ZzHu4" disabled="true">
                            <field name="Severity">log</field>
                            <value name="TEXT">
                              <shadow type="text">
                                <field name="TEXT">test</field>
                              </shadow>
                              <block type="variables_get" id="/-zUM]JoDvi3dwATQvan">
                                <field name="VAR" id="Kz*=WTH~AN`IzF.eK_h~">Phasen</field>
                              </block>
                            </value>
                          </block>
                        </next>
                      </block>
                    </statement>
                  </block>
                </statement>
              </block>
            </statement>
          </block>
          <block type="procedures_defnoreturn" id="+:BfWA8J8v]SJ[BWWq^G" collapsed="true" x="-562" y="-62">
            <field name="NAME">1 Phase</field>
            <comment pinned="false" h="80" w="160">Shelly schalten und den Schütz auf 1 Phase schalten</comment>
            <statement name="STACK">
              <block type="variables_set" id="?8JK1`_x@fU.xLh!y^gz">
                <field name="VAR" id="Kz*=WTH~AN`IzF.eK_h~">Phasen</field>
                <value name="VALUE">
                  <block type="math_number" id="Cx.]EU#~GBykR)(?MjcK">
                    <field name="NUM">1</field>
                  </block>
                </value>
                <next>
                  <block type="control" id="H#8[]icR(}DNlZc5Wg5B">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">kecontact.0.automatic.pauseWallbox</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="]9W!vBFo.@OTz1dNHy/#">
                        <field name="BOOL">TRUE</field>
                      </block>
                    </value>
                    <next>
                      <block type="timeouts_wait" id="$9t#mgn$S2BtD(58Nb%=">
                        <field name="DELAY">5</field>
                        <field name="UNIT">sec</field>
                        <next>
                          <block type="update" id="d`:Hzs(;Og}l2Qv#T^~G">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">kecontact.0.automatic.calcPhases</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="math_number" id="|s7#]YnPIEU$M+lA;uOC">
                                <field name="NUM">1</field>
                              </block>
                            </value>
                            <next>
                              <block type="controls_whileUntil" id=",uZF[YXQuRyE.^;^ftJ{">
                                <field name="MODE">WHILE</field>
                                <value name="BOOL">
                                  <block type="logic_compare" id="6oP(N0v|b4^d]K;e4^MH">
                                    <field name="OP">GT</field>
                                    <value name="A">
                                      <block type="get_value" id="%HXMzLG#|Sk5[eLP1A2z">
                                        <field name="ATTR">val</field>
                                        <field name="OID">kecontact.0.i1</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="math_number" id="JWHb-SU@DJH]W]Q+J0@[">
                                        <field name="NUM">0</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO">
                                  <block type="timeouts_wait" id="(Vq8Xu|*|+l`glp/URPY">
                                    <field name="DELAY">5</field>
                                    <field name="UNIT">sec</field>
                                  </block>
                                </statement>
                                <next>
                                  <block type="control" id="?{M4,+O^UheHPV/=FsC+">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">shelly.0.SHSW-1#48551903197D#1.Relay0.Switch</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="logic_boolean" id="*or~=){_^uj:MrKKt9)l">
                                        <field name="BOOL">FALSE</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="timeouts_wait" id="$uDHG{wVQJoC!_^^}DJ9">
                                        <field name="DELAY">10</field>
                                        <field name="UNIT">sec</field>
                                        <next>
                                          <block type="control" id="7UBw*Dqsv.El69C}5:BJ">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">kecontact.0.automatic.pauseWallbox</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="logic_boolean" id="QEBr46mHsiU~_!Ce5ofg">
                                                <field name="BOOL">FALSE</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="timeouts_wait" id="sI%e/yx~D!mc5^im0oaJ">
                                                <field name="DELAY">10</field>
                                                <field name="UNIT">sec</field>
                                                <next>
                                                  <block type="control" id="i@DG*~Z4_[F`~0!ye%Ay">
                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                    <field name="OID">kecontact.0.enableUser</field>
                                                    <field name="WITH_DELAY">FALSE</field>
                                                    <value name="VALUE">
                                                      <block type="logic_boolean" id="LSrvk0A284oGZf,FF+L=">
                                                        <field name="BOOL">TRUE</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </statement>
          </block>
          <block type="procedures_defnoreturn" id="4Jp]jR~cSu1$ZHK1u$bW" collapsed="true" x="-312" y="-62">
            <field name="NAME">3 Phasen</field>
            <comment pinned="false" h="80" w="160">Shelly schalten und den Schütz auf 3 Phasen schalten</comment>
            <statement name="STACK">
              <block type="variables_set" id="^X=8N8.u%e;}RXc+MttM">
                <field name="VAR" id="Kz*=WTH~AN`IzF.eK_h~">Phasen</field>
                <value name="VALUE">
                  <block type="math_number" id="2R$5nx)0u9oc]9DMs[PC">
                    <field name="NUM">3</field>
                  </block>
                </value>
                <next>
                  <block type="control" id="@vPtd+30K2hB#REqM4_x">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">kecontact.0.automatic.pauseWallbox</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="D|!vW-aR`4ET?%Jm46@9">
                        <field name="BOOL">TRUE</field>
                      </block>
                    </value>
                    <next>
                      <block type="timeouts_wait" id="SKy$/)P`%FC~@nMeJ2Vn">
                        <field name="DELAY">5</field>
                        <field name="UNIT">sec</field>
                        <next>
                          <block type="update" id="!4Cyxf^orOyxkD(-5S[d">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">kecontact.0.automatic.calcPhases</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="math_number" id="K55.,o%CKD%TQb#ZxnR1">
                                <field name="NUM">3</field>
                              </block>
                            </value>
                            <next>
                              <block type="controls_whileUntil" id="b(^vKw^CoRFgKY|fl5?K">
                                <field name="MODE">WHILE</field>
                                <value name="BOOL">
                                  <block type="logic_compare" id="|Zav.Gz1*RhM@2Sw.Y!-">
                                    <field name="OP">GT</field>
                                    <value name="A">
                                      <block type="get_value" id=",!GiG8ImT+:+KkTWDeC%">
                                        <field name="ATTR">val</field>
                                        <field name="OID">kecontact.0.i1</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="math_number" id="QkTRnwT1H520)-XJShS^">
                                        <field name="NUM">0</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO">
                                  <block type="timeouts_wait" id="?:YAMT)a(,JEV2bLiP(-">
                                    <field name="DELAY">5</field>
                                    <field name="UNIT">sec</field>
                                  </block>
                                </statement>
                                <next>
                                  <block type="control" id=":=#q,7roNxt::SX:)jTk">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">shelly.0.SHSW-1#48551903197D#1.Relay0.Switch</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="logic_boolean" id="N(]saMzr=AvGl=#K_iT!">
                                        <field name="BOOL">TRUE</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="timeouts_wait" id="Eq;KVra^Ixxu_Lm(A)kn">
                                        <field name="DELAY">10</field>
                                        <field name="UNIT">sec</field>
                                        <next>
                                          <block type="control" id="=.CHz;:*;?)8goAn]z0(">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">kecontact.0.automatic.pauseWallbox</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="logic_boolean" id="Yxxn(9w(*ZksQ[AKYgu)">
                                                <field name="BOOL">FALSE</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="timeouts_wait" id="5hH:sO#ZfFhJNlePc*}G">
                                                <field name="DELAY">10</field>
                                                <field name="UNIT">sec</field>
                                                <next>
                                                  <block type="control" id="%fBo|Ojbxu_7EVlUU?3o">
                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                    <field name="OID">kecontact.0.enableUser</field>
                                                    <field name="WITH_DELAY">FALSE</field>
                                                    <value name="VALUE">
                                                      <block type="logic_boolean" id="0-b.K1=4sBHGpPxl%5a+">
                                                        <field name="BOOL">TRUE</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </statement>
          </block>
          <block type="astro" id="W-A2LzCA_99BQoOghdK+" x="-537" y="39">
            <field name="TYPE">sunrise</field>
            <field name="OFFSET">1</field>
            <statement name="STATEMENT">
              <block type="controls_if" id="2$S@5t15$0Jcfsqq94#p">
                <value name="IF0">
                  <block type="logic_compare" id="h-XdzriV5LzcxXxwe0lA">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="get_value" id="bY!6i!07lI=rp6=fSu11">
                        <field name="ATTR">val</field>
                        <field name="OID">kecontact.0.plug</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="math_number" id="LRm-!1xcW;Tf9rpKC02o">
                        <field name="NUM">7</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="variables_set" id="=Zb.ulP|,cdQ_voFIJks">
                    <field name="VAR" id=";%j!3mWWv6w?P6Pfpb~Q">Tag</field>
                    <value name="VALUE">
                      <block type="math_number" id="}pe0Oz5l:yX/A~Fojp7J">
                        <field name="NUM">1</field>
                      </block>
                    </value>
                  </block>
                </statement>
              </block>
            </statement>
          </block>
        </xml>
        

        Ist es so OK?

        1 Reply Last reply Reply Quote 0
        • S
          Sneak-L8 last edited by

          Aktuell bin ich dabei, eine 1p/3-Steuerung für die Wallbox zu implementieren, muss aber erst noch ein wenig programmieren und dann den Schütz einbauen.

          In der Zwischenzeit habe ich ma die 3. Phase der Wallbox abgeklemmt, um gerade jetzt im Winter mit 2 Phasen und damit bereits ab 2.760W Überschuss zu laden.
          Dabei fiel mir heute auf, dass der ID.3 sehr flexibel ist und wohl allen Strom nimmt, den er bekommen kann:
          a698c644-36e7-4615-92be-87ae1cd98893-grafik.png

          Ich hatte die Wallbox auf volle Ladeleistung gestellt, da mir gerade die Sonne, aber auch der Strom im Akku fehlt.
          In diesem Fall lädt er mit 32A auf Phase 1 und 16A auf Phase 2, so dass er selbt bei 2 Phasen auf die volle Ladesteitung von 11 kW kommt. Da finde ich erstaunlich aber auch cool. Vermutlich geht es, wiel der Lader auf Phase 1 eben bis 32 A ausgelegt ist, um auch einphasig mit 7,6 kW laden zu können.

          Ich dachte eigentlich, dass die Keba von sich aus hier eine Schieflast begrenzt. Aber entweder sind 32A/16A/0A keine Schieflast oder die Wallbox macht es doch nicht.
          Aber dann dürfte die Wallbox so ja garn icht in Deutschland laufen, denn normalerweise würde sie ja immer mit voller Leistung laden...

          1 Reply Last reply Reply Quote 0
          • Shiva Mann
            Shiva Mann last edited by

            Hallo,
            ich habe eine Keba P30c v 3.10.36 (211117-093932) und in iobroker (1.5.2) eingebunden. Ich sehe die Keba auch und kann Werte auslesen. z.b. Firmware oder kecontact.0.statistics.lastChargeAmount etc. Leider bleiben bei mir das Feld: kecontact.0.statistics.rfid_tag leer. Ich habe im Debug Log folgenden Fehler:

            Unknown Session value received: RFID tag=0f4XXXXXX0000000
            aber auch
            Unknown Session value received: RFID class=00000000000000000000
            und weitere ..

            Wenn ich über ein UDP Tool report 100 hole, bekomme ich auch den RFID tag
            Könnt Ihr mir helfen?
            Danke
            shiva

            S 1 Reply Last reply Reply Quote 0
            • S
              Sneak-L8 @Shiva Mann last edited by

              @shiva-mann Hallo Shiva, das ist komisch. Ich sehe die Logik und auch den Key, der dafür im Adapter definiert ist.
              Gibt es bei Dir bei den Channel "Sessions" udn die States "Sessions.Session_nn" bzw. hast du den Schalter "lade letzte Ladesitzungen" in den Einstellungen aktiviert?
              Falls nein, probiere mal, diese zu aktivieren und schau, ob der Fehler weg und dafür die Werte da sind.

              Ich vermute, dass es der Adapter derezeit nur mit Vorhandensein der Ladesitzungen hinbekommt. Falls dem so ist, passe ich das entpsrechend an.

              S 1 Reply Last reply Reply Quote 0
              • S
                Sneak-L8 @Sneak-L8 last edited by Sneak-L8

                @Shiva-Mann Ach ja, jetzt sehe ich es. Schlecht programmiert. Über den Schalter werden nicht nur die Session-Werte für vergangene Sessions deaktiviert sondern auch die der aktuellen Session.
                Mir sind die Meldungen bishern icht aufgefallen, weil sie nur im Debug-Level ausgegeben werden.
                Also mach einmal die Option "lade letzte Ladesitzungen" an. Dann kannst Du die Option wieder ausmachen und alle Sessions_01 bis Session_nn löschen (nur die Session_00 stehen lassen).
                Dann sollte es erstmal gehen.
                Den Rest passe ich mit der nächsten Version an. Kannst aber schon testen, wenn Du die Version von github installierst.

                Shiva Mann 1 Reply Last reply Reply Quote 0
                • Shiva Mann
                  Shiva Mann @Sneak-L8 last edited by

                  @sneak-l8
                  Super jetzt funktioniert es 🙂 Tausend Dank!
                  Ich habe die neuste Version aus dem GIT installiert, jetzt wird meine RFID_Tag angezeigt.
                  Great Job!

                  1 Reply Last reply Reply Quote 1
                  • M
                    Malz1902 last edited by

                    eb549256-0a0d-4617-b30d-45d23cc49fa7-grafik.png

                    Hmm bei mir ist der Tag auch leer, wie kann ich den RFID Tag rausfinden, ich brauchen den ja um automatisch zu laden oder?
                    Momentan halte ich mein Token immer vor die Wallbox damit der zu laden anfängt

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      Sneak-L8 @Malz1902 last edited by

                      @malz1902 Hast Du es mal mit der Version von github probiert? Wenn du die nicht nutzen willst, dann aktiviere mal das Laden der letzten Ladesessions. solange dann die Sessions in den Datenpunkten drinstehen, sollten rfid_class und rfid_tag gefüllt werden.
                      Danach kannst du die Option wieder rausnehmen und auch die Ladesessions löschen.
                      In einer neuen Version wird das dann behoben sein. Die braucht aber noch etwas. Muss jetzt mal meinen Installationsschhütz morgen einbauen und dann testen, ob das Umschalten auf zunächst (bei wenig PV-Überschuss) 1-phasigen und später auf 3-phasiges Laden auch klappt.

                      1 Reply Last reply Reply Quote 1
                      • M
                        Malz1902 last edited by

                        Github Version klappt, danke 🙂

                        1 Reply Last reply Reply Quote 1
                        • D
                          darkiop Most Active last edited by

                          Hallo zusammen und einen schönen Abend 🙂

                          Mir ist gerade aufgefallen, das ich die Lade/Verbrauchsdaten meiner Keba noch nicht logge ... g

                          Was schreibt ihr Weg und von welchen DPs?

                          Interessant wäre:

                          • Summe Tag in kWh
                          • Davon jeweils Netzbezug und PV - auch jeweils in kWh

                          Muss später mal die vorhandenen DPs durchschauen und prüfen mit welchen ich zu meiner Anforderung komme.

                          S 1 Reply Last reply Reply Quote 0
                          • S
                            Sneak-L8 @darkiop last edited by

                            @darkiop Hallo über den Rhein 🙂

                            unter kecontact.0.statistics.lastChargeFinish findest Du immer den Strombezug der letzten Ladesitzung. Und kecontact.0.eTotal könntest du im 24h-Rhythmus loggen. Also einfach über den SQL-Adapter in ne DB schreiben.
                            Den Unterschied Netzbezug und PV-Leistung wird schwierig zu ermitteln...

                            D 1 Reply Last reply Reply Quote 0
                            • D
                              darkiop Most Active @Sneak-L8 last edited by

                              @sneak-l8 sagte in [Frage] Realisierung Adapter UDP Keba Wallbox:

                              Hallo über den Rhein

                              Zurück 😉

                              @sneak-l8 sagte in [Frage] Realisierung Adapter UDP Keba Wallbox:

                              kecontact.0.statistics.lastChargeFinish

                              Hab jetzt auch mal geschaut, und

                              kecontact.0.statistics.lastChargeAmount
                              

                              in die DB aufgenommen.

                              Und mit

                              kecontact.0.eTotal 
                              

                              lässt sich die Tagesmenge berechnen. Danke für den Hinweis, irgenwie übersehen 😉

                              @sneak-l8 sagte in [Frage] Realisierung Adapter UDP Keba Wallbox:

                              Den Unterschied Netzbezug und PV-Leistung wird schwierig zu ermitteln...

                              Wäre aber Interessant ... g

                              1 Reply Last reply Reply Quote 0
                              • M
                                Malz1902 last edited by

                                über welchen state kann man das laden starten?

                                1 Reply Last reply Reply Quote 0
                                • M
                                  Malz1902 @Sneak-L8 last edited by

                                  @sneak-l8

                                  wie genau klappt das? was muss bei dem state eintragen?

                                  S 1 Reply Last reply Reply Quote 0
                                  • S
                                    Sneak-L8 @Malz1902 last edited by

                                    @malz1902 Kannst Du die Frage etwas konkretisieren?
                                    Denn pauschal würde ich sagen: Du kannst das Laden starten, in dem Du die Automatik (kecontact.0.automatic.photovoltaics auf false) ausschaltest oder für genügend Stromüberschuss sorgst.

                                    M 1 Reply Last reply Reply Quote 0
                                    • M
                                      Malz1902 @Sneak-L8 last edited by

                                      @sneak-l8 said in [Frage] Realisierung Adapter UDP Keba Wallbox:

                                      @malz1902 Kannst Du die Frage etwas konkretisieren?
                                      Denn pauschal würde ich sagen: Du kannst das Laden starten, in dem Du die Automatik (kecontact.0.automatic.photovoltaics auf false) ausschaltest oder für genügend Stromüberschuss sorgst.

                                      Pv automatik steht auf false da noch keine pv Anlage. Ich würde das Laden gerne per iobroker starten, da ich manchmal meinen rfid chip vergesse und dann könnte ich das Laden später am Pc starten. Jedoch weiß ich nicht wie ich das machen muss.

                                      Hatte bei dem state start rfid class und rfid tag eingegeben aber auch dann fing das Laden nicht an

                                      S 1 Reply Last reply Reply Quote 0
                                      • S
                                        Sneak-L8 @Malz1902 last edited by

                                        @malz1902 Ich nutze leider keine Freigabe, habe die Funktion daher nur auf Anforderung anderer eingebaut.
                                        Aber es müsste gehen, indem Du kecontact.0.start mit id und class befüllst. Laut Keba-Doku sind das ein 8 und 10 byte hex string. Die Werte müssen ggf. auch als autorisierter Lader freigegbeen sein.
                                        Wenn Du mit der vorhandenen Karte die Ladung freigibst, dann solltest du deren Werte unter kecontact.0.statistics.rfid_tag und kecontact.0.statistics.rfid_class finden.

                                        M 1 Reply Last reply Reply Quote 0
                                        • M
                                          Malz1902 @Sneak-L8 last edited by

                                          @sneak-l8
                                          ja unter kecontact.0.statistics.rfid_tag und kecontact.0.statistics.rfid_class stehen auch die beiden keys.
                                          Habe unter kecontact.0.start dann folgendes eingegeben: dxxxxxx000000000 axxxxxx8000000000000 und auch [dxxxxxx000000000] [axxxxxx8000000000000] aber beides klappte nicht. Muss das ganze ein besonderes Format sein? Hat das evtl. schonmal einer probiert

                                          S 1 Reply Last reply Reply Quote 0
                                          • S
                                            Sneak-L8 @Malz1902 last edited by

                                            @malz1902 lass mal das d und das a weg. Also nur "xxxxxx000000000 xxxxxx8000000000000".
                                            Steht evtl. was im Log?

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            858
                                            Online

                                            31.7k
                                            Users

                                            79.6k
                                            Topics

                                            1.3m
                                            Posts

                                            68
                                            1252
                                            330360
                                            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