Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. Test Adapter Fiat Jeep v0.0.x

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Test Adapter Fiat Jeep v0.0.x

    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      Tschaeens @alexbln01 last edited by

      @alexbln01 da ich einen go e charger besitze, habe ich ein langes Blockly. Ich kann dir gern mal den Codeschnipsel für die Batterie schicken. Die ersten zwei Blocklys steuern den Ladevorgang, falls iobroker oder das Skript mal neugestartet wurden, während eines Ladevorgangs. Das dritte und vierte Blockly steuert die Ladebegrenzung.

      <block xmlns="https://developers.google.com/blockly/xml" type="on_ext" id="+:JA:!Q*^?E}RS#@GGOG" collapsed="true" x="484" y="508">
        <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
        <field name="CONDITION">ne</field>
        <field name="ACK_CONDITION"></field>
        <value name="OID0">
          <shadow type="field_oid" id="F1}Qur:x}}yE0I`0t|tt">
            <field name="oid">javascript.0.fiat.fiat_cron_restart</field>
          </shadow>
        </value>
        <statement name="STATEMENT">
          <block type="controls_if" id="Vbd?DY|$(kyNKf%G70U!">
            <mutation elseif="1"></mutation>
            <value name="IF0">
              <block type="logic_operation" id="bS@e=5oskl*oe|YZ(E-Y" inline="false">
                <field name="OP">AND</field>
                <value name="A">
                  <block type="logic_operation" id="bAiVN$mdtNz=?S`uYpRw" inline="false">
                    <field name="OP">AND</field>
                    <value name="A">
                      <block type="logic_compare" id="}CJc]n;4Wh)j`W+dR-}v">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id="7k;a~bI*]ArPfC@psyPY">
                            <field name="ATTR">val</field>
                            <field name="OID">go-e.0.car</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_number" id="Cdn3M*3.TPS6yg81tjq~">
                            <field name="NUM">2</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_compare" id="TLa{S@2[neGBv-M[@}-+">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id="y,V)Fx-![(@ZNW:-sWU1">
                            <field name="ATTR">val</field>
                            <field name="OID">fiat.0.ZFAEFAJ4XMX027965.status.evInfo.battery.chargingStatus</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="text" id="j7dSVqQaW#Q6^b*MFYWm">
                            <field name="TEXT">CHARGING</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <block type="logic_compare" id="1pNI6#6Z3P/gmbQ26i=2">
                    <field name="OP">GTE</field>
                    <value name="A">
                      <block type="math_arithmetic" id="!DP8G!A#@%JzNjx1J![v">
                        <field name="OP">MINUS</field>
                        <value name="A">
                          <shadow type="math_number">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="time_get" id="O==N/rR_9nYcUW%k]AoS">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                            <field name="OPTION">object</field>
                          </block>
                        </value>
                        <value name="B">
                          <shadow type="math_number" id="]c|)F$/:eaJQApe~=x~_">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="get_value" id="d/]1;]u0e$HWjvsT02kx">
                            <field name="ATTR">lc</field>
                            <field name="OID">fiat.0.ZFAEFAJ4XMX027965.remote.DEEPREFRESH</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <block type="math_arithmetic" id="!-0O9kDnF326Tis;{~`j">
                        <field name="OP">MULTIPLY</field>
                        <value name="A">
                          <shadow type="math_number" id="%h4odvT-:PZ|ulR}]*v,">
                            <field name="NUM">0.5</field>
                          </shadow>
                        </value>
                        <value name="B">
                          <shadow type="math_number" id=",5G:3/giy?8.rJX-xb8f">
                            <field name="NUM">3600000</field>
                          </shadow>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="timeouts_clearinterval" id="FvaE`2E..Ip,-SRZj@cp">
                <field name="NAME">Intervall2</field>
                <next>
                  <block type="timeouts_setinterval" id="}79OdtVAN=yoy_ols8NQ">
                    <field name="NAME">Intervall2</field>
                    <field name="INTERVAL">5</field>
                    <field name="UNIT">min</field>
                    <statement name="STATEMENT">
                      <block type="controls_if" id="K`~XvClTH?!e{Ldy.F2l">
                        <value name="IF0">
                          <block type="logic_operation" id="y[ojQwkFToS-~@_[U0r$" inline="false">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="logic_compare" id="7(kK9S.gWqX8keM-ecL{">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="2[l(nRK;02c)vj[k|Dy8">
                                    <field name="ATTR">val</field>
                                    <field name="OID">go-e.0.car</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="math_number" id="H3/4UdSDI?k`8MGu+Kop">
                                    <field name="NUM">2</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_compare" id="C8%Ili`+9.5aqFh}h8)w">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="Ry7C@,-C9~*y;(}qj*Gv">
                                    <field name="ATTR">val</field>
                                    <field name="OID">fiat.0.ZFAEFAJ4XMX027965.status.evInfo.battery.chargingStatus</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="text" id="xeJzmg_|B)X=F-VVf5;V">
                                    <field name="TEXT">CHARGING</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="toggle" id="p`=7vfo]QWEN:jl;{)74">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">fiat.0.ZFAEFAJ4XMX027965.remote.DEEPREFRESH</field>
                            <field name="WITH_DELAY">FALSE</field>
                          </block>
                        </statement>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </statement>
            <value name="IF1">
              <block type="logic_operation" id="XBX-)p|}75ofymW{{m${" inline="false">
                <field name="OP">OR</field>
                <value name="A">
                  <block type="logic_compare" id="4RC[j$?m!0dS_u9gv1M?">
                    <field name="OP">NEQ</field>
                    <value name="A">
                      <block type="get_value" id="#0_sAl$bg}K9#@C/du2O">
                        <field name="ATTR">val</field>
                        <field name="OID">go-e.0.car</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="math_number" id="D}?gklj/gunGd1T7ODQ(">
                        <field name="NUM">2</field>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <block type="logic_compare" id="A,q+lXhw?QmWdQ|6-[U:">
                    <field name="OP">NEQ</field>
                    <value name="A">
                      <block type="get_value" id="!KrwN4M4#W:BexKKHYe$">
                        <field name="ATTR">val</field>
                        <field name="OID">fiat.0.ZFAEFAJ4XMX027965.status.evInfo.battery.chargingStatus</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="text" id="Ofxd~,a-B![w@R4`Y,`e">
                        <field name="TEXT">CHARGING</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO1">
              <block type="timeouts_clearinterval" id="^)F5p}wsk/Xd8tlH1)dp">
                <field name="NAME">Intervall2</field>
              </block>
            </statement>
          </block>
        </statement>
      </block>
      

      und für das Skript habe ich einen Crone Restart erstellt.

      <block xmlns="https://developers.google.com/blockly/xml" type="control" id="Y2+L(?Z5~_T26^wiwLoA" x="484" y="469">
        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
        <field name="OID">javascript.0.fiat.fiat_cron_restart</field>
        <field name="WITH_DELAY">FALSE</field>
        <value name="VALUE">
          <block type="time_get" id="74=h@JkjIC)xZ_!A$Zn0">
            <mutation xmlns="http://www.w3.org/1999/xhtml" format="true" language="false"></mutation>
            <field name="OPTION">custom</field>
            <field name="FORMAT">TT.MM.JJJJ SS:mm:ss</field>
          </block>
        </value>
      </block>
      

      Ladevorgang

      <block xmlns="https://developers.google.com/blockly/xml" type="on_ext" id=")XKo!:dBfb6sny.zA/(m" x="484" y="732">
        <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
        <field name="CONDITION">ne</field>
        <field name="ACK_CONDITION"></field>
        <value name="OID0">
          <shadow type="field_oid" id="`s))^aauuo}Mh2dqbD0)">
            <field name="oid">go-e.0.car</field>
          </shadow>
        </value>
        <statement name="STATEMENT">
          <block type="comment" id="Y?72!3qk9+yAr~{pj8%1">
            <field name="COMMENT">Lädt</field>
            <next>
              <block type="controls_if" id="wFcQ.,l7F^%7+:{@Ic5Z">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="logic_compare" id="#S=TIWk]vTFag!Sq3@~Y">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="get_value" id="G.7g+JH/oBf06=LDhu(S">
                        <field name="ATTR">val</field>
                        <field name="OID">go-e.0.car</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="math_number" id="_#h)j896zDH+S.D$,T+T">
                        <field name="NUM">2</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="control" id="AgG(X|@XGx4;18^pYgK}">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">javascript.0.fiat.Ladung_Fiat</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="=Zi=dHBO+p^i|`G$p,pi">
                        <field name="BOOL">TRUE</field>
                      </block>
                    </value>
                    <next>
                      <block type="update" id="^MRFq{k2*ICQKb)etHDP">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">javascript.0.fiat.statistiken.Ladezyklen</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="math_arithmetic" id="Q4/A?i1Io.Es~Q|^V.mv">
                            <field name="OP">ADD</field>
                            <value name="A">
                              <shadow type="math_number" id="e5!R`U;#X)LN*Fz)S;SQ">
                                <field name="NUM">1</field>
                              </shadow>
                              <block type="get_value" id="I{xT5aR,Sx*MaRiSp~PL">
                                <field name="ATTR">val</field>
                                <field name="OID">javascript.0.fiat.statistiken.Ladezyklen</field>
                              </block>
                            </value>
                            <value name="B">
                              <shadow type="math_number" id=")z|tcaJ_cFcsI5H*!B~!">
                                <field name="NUM">1</field>
                              </shadow>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block type="timeouts_setinterval" id="98F0@V8EpHy!GPFtlvl~">
                            <field name="NAME">Intervall</field>
                            <field name="INTERVAL">5</field>
                            <field name="UNIT">min</field>
                            <statement name="STATEMENT">
                              <block type="controls_if" id="^wWQa3VyeoK2ooxr%UUl">
                                <value name="IF0">
                                  <block type="logic_operation" id="G{xFCb_xI2P{#!aAiWSQ" inline="false">
                                    <field name="OP">AND</field>
                                    <value name="A">
                                      <block type="logic_compare" id="`JX^5a4KZQkFMJjQSUeS">
                                        <field name="OP">EQ</field>
                                        <value name="A">
                                          <block type="get_value" id="uX(B+Mf-FldDGi026h){">
                                            <field name="ATTR">val</field>
                                            <field name="OID">go-e.0.car</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number" id="_OPwXk}^7Jk6(2z`t#12">
                                            <field name="NUM">2</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_compare" id="iGvJ(W;I$pbr-a]gFdZ=">
                                        <field name="OP">EQ</field>
                                        <value name="A">
                                          <block type="get_value" id="-@olz1n2C@=h|=?@WHR:">
                                            <field name="ATTR">val</field>
                                            <field name="OID">fiat.0.ZFAEFAJ4XMX027965.status.evInfo.battery.chargingStatus</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="text" id="q;y+A:!9Ys6m4a|G#90=">
                                            <field name="TEXT">CHARGING</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="toggle" id="c6O{-+@n*BqlE(uda0+5">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">fiat.0.ZFAEFAJ4XMX027965.remote.DEEPREFRESH</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                  </block>
                                </statement>
                              </block>
                            </statement>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block type="control" id="ab;,V#|a.@su:A%zqpyd">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">javascript.0.fiat.Ladung_Fiat</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="(Ea[|Nw:ZFo+6`i`Z-cl">
                        <field name="BOOL">FALSE</field>
                      </block>
                    </value>
                    <next>
                      <block type="timeouts_clearinterval" id="B{yNrakAQE?MRJ_G6AAm">
                        <field name="NAME">Intervall</field>
                        <next>
                          <block type="timeouts_clearinterval" id="xW+w%z-p1L3h{qrV%aRc">
                            <field name="NAME">Intervall2</field>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </statement>
                <next>
                  <block type="controls_if" id="Uc,_HphWlj@z1gj!E.gL">
                    <mutation else="1"></mutation>
                    <value name="IF0">
                      <block type="logic_operation" id="B[{)6VVyvZt!hrRH}hOR" inline="false">
                        <field name="OP">OR</field>
                        <value name="A">
                          <block type="logic_compare" id="ce4V8_ReX2Vo$K)~p(P|">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="get_value" id="D!L48p.S9_?tRfzkC9BZ">
                                <field name="ATTR">val</field>
                                <field name="OID">go-e.0.car</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="9jsnapylKolHYRtir-H4">
                                <field name="NUM">3</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_compare" id="{}Dd=vh4}hVJ0%m=Uq*m">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="get_value" id="ZJ*YwL6%2zs=YY|@qIRa">
                                <field name="ATTR">val</field>
                                <field name="OID">go-e.0.car</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="yUg|Ec|W_Zfo~XgpWS$:">
                                <field name="NUM">4</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="control" id="9k^LZMwT(3oq7nH+v$TG">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">javascript.0.fiat.Plugged_Fiat</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="VV|^r`a5V)qb+FL_]t~q">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <statement name="ELSE">
                      <block type="control" id="*v8m3Oh]+V92A/4au0dH">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">javascript.0.fiat.Plugged_Fiat</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="=h(RVDMw/,[}exx$x9^{">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <next>
                      <block type="controls_if" id="l:i#*NT-UH_rW/3D^Yj2">
                        <value name="IF0">
                          <block type="logic_operation" id="x[kONIbcy83.?ls_(o_H" inline="false">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="logic_compare" id="LvX_^B*AHe+vSxN/7GgP">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="H2h+yv+PN$o}]T;F;/dG">
                                    <field name="ATTR">val</field>
                                    <field name="OID">go-e.0.car</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="math_number" id="mul/?0]Ww}8aS~~IPZXy">
                                    <field name="NUM">1</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_operation" id="ff?IV5S[G,YEQTGD9=4k" inline="false">
                                <field name="OP">AND</field>
                                <value name="A">
                                  <block type="logic_operation" id="gxdQq}mF#{bGRlAu(2h=" inline="false">
                                    <field name="OP">AND</field>
                                    <value name="A">
                                      <block type="logic_compare" id="8XAH!-%_HEp!H+A7bj6(">
                                        <field name="OP">NEQ</field>
                                        <value name="A">
                                          <block type="get_value" id="u3`F=|j@[dS-UvUJeQWd">
                                            <field name="ATTR">val</field>
                                            <field name="OID">go-e.0.allow_charging</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number" id="+t(c]IGp)/$gIHDh-ZV6">
                                            <field name="NUM">1</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_compare" id="F+DYbY6zAB8/tfD1GPp%">
                                        <field name="OP">EQ</field>
                                        <value name="A">
                                          <block type="get_value" id="Q;nB+r@O,Oi%d1:iNA.f">
                                            <field name="ATTR">val</field>
                                            <field name="OID">javascript.0.fiat.Plugged_Fiat</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="logic_boolean" id="3eK0H;7@7*3-O41Q_g!o">
                                            <field name="BOOL">FALSE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_compare" id="m*M;+Zq+L8H?M~VQrt#X">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="get_value" id="a@V(0]@tw8Z8!kgPW8|U">
                                        <field name="ATTR">val</field>
                                        <field name="OID">javascript.0.fiat.Ladung_Fiat</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_boolean" id="d|J}0Q:%Zk[-2_%)/X8|">
                                        <field name="BOOL">FALSE</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="control" id="$@u=v);Mm6HHFMqdph/*">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">go-e.0.allow_charging</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="math_number" id="=*jKbpi:M_1I*30R5}nU">
                                <field name="NUM">1</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <next>
                          <block type="controls_if" id="a2Dcwlp(xt@(dYezw4oJ">
                            <value name="IF0">
                              <block type="logic_operation" id="=v(1yQW%Sy5^`NSYSg~[" inline="false">
                                <field name="OP">AND</field>
                                <value name="A">
                                  <block type="logic_compare" id="Vrky,(38tlLJbq=Pd;||">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="get_value" id="0F}aaQQ8PDoTNKA1,4.i">
                                        <field name="ATTR">val</field>
                                        <field name="OID">go-e.0.car</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="math_number" id=";ht2KyVlTdhu.b0RhFt#">
                                        <field name="NUM">1</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_compare" id="fXfBibiA^mkKz7A8KVJj">
                                    <field name="OP">NEQ</field>
                                    <value name="A">
                                      <block type="get_value" id="z;U`r2XuG1X)^)]f$ef;">
                                        <field name="ATTR">val</field>
                                        <field name="OID">go-e.0.allow_charging</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="math_number" id="dr/TlgBAoC1hk%YPlbx_">
                                        <field name="NUM">1</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="control" id="mvy-wthpIs;vV`iN=p(k">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">go-e.0.allow_charging</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="math_number" id="yjY?MBj@|QltirbCG{^*">
                                    <field name="NUM">1</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </statement>
      </block>
      

      Ladebegrenzung

      <block xmlns="https://developers.google.com/blockly/xml" type="on_ext" id=".PyTU5h`HYD.c(@wK5vD" collapsed="true" x="484" y="788">
        <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
        <field name="CONDITION">ne</field>
        <field name="ACK_CONDITION"></field>
        <value name="OID0">
          <shadow type="field_oid" id="1=.Nk.Ae/oD1t,JZC23Y">
            <field name="oid">fiat.0.ZFAEFAJ4XMX027965.status.evInfo.battery.stateOfCharge</field>
          </shadow>
        </value>
        <statement name="STATEMENT">
          <block type="controls_if" id="+TkJ6#|$Skz#oy.7zzzK">
            <value name="IF0">
              <block type="logic_operation" id="qNQ?=qoeTm|T:lJ{U1k`" inline="false">
                <field name="OP">AND</field>
                <value name="A">
                  <block type="logic_operation" id="H/*w]YwCp#S.`odbko2Z" inline="false">
                    <field name="OP">AND</field>
                    <value name="A">
                      <block type="logic_compare" id="4?+cp#]!G0%wYAO8WD*m">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id="]jI3H(.o%FrXU*:3R!!H">
                            <field name="ATTR">val</field>
                            <field name="OID">javascript.0.fiat.ladebegrenzung</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_boolean" id="p*|(uXi_{;y{;Fn4FBwU">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_compare" id="|U!FJG^Zx5nm=QI]*3$,">
                        <field name="OP">GTE</field>
                        <value name="A">
                          <block type="get_value" id="C{@1Y;:+{*=rUGeN#Il/">
                            <field name="ATTR">val</field>
                            <field name="OID">fiat.0.ZFAEFAJ4XMX027965.status.evInfo.battery.stateOfCharge</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="variables_get" id="{MnOX0#%ZnS|h$cJ3uYO">
                            <field name="VAR" id="w:1~o2Q@.YNtv,!.6D9^">vars_ladebegrenzung_Batterie</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <block type="logic_operation" id="j!D|0ORr[hm^oUsNlQVF" inline="false">
                    <field name="OP">AND</field>
                    <value name="A">
                      <block type="logic_compare" id="k+T+Hbmuo*+/YEOne#ft">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id="gWoG5r_8JL!-unv{p)b#">
                            <field name="ATTR">val</field>
                            <field name="OID">fiat.0.ZFAEFAJ4XMX027965.status.evInfo.battery.chargingStatus</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="text" id="1jn_qZx?p5,r.P+)Y2J?">
                            <field name="TEXT">CHARGING</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_compare" id="so|em;bKEi3ipmw+E]OB">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id="A*3hMpwi?XMZh37,k5Ve">
                            <field name="ATTR">val</field>
                            <field name="OID">go-e.0.car</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_number" id="F|9AA5k4AFbIBn=dI1bL">
                            <field name="NUM">2</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="control" id="v.I$K/)gf*!Ls0H`ux/3">
                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                <field name="OID">go-e.0.allow_charging</field>
                <field name="WITH_DELAY">FALSE</field>
                <value name="VALUE">
                  <block type="math_number" id="Ea9:-$/UBkk@Sb{d0Ai$">
                    <field name="NUM">0</field>
                  </block>
                </value>
              </block>
            </statement>
          </block>
        </statement>
      </block>
      

      Lieben Gruß

      1 Reply Last reply Reply Quote 0
      • A
        alexbln01 last edited by alexbln01

        Bei mir kommt immer alle Std. folgender Fehler:
        Error: The id "general.userInfo.Kl." is invalid. Ids are not allowed to end in "."
        Ich bin über Google über der Fiat App angemeldet, mein Name ist da Alexander Kl. den . habe ich schon aus meinem Google Account gelöscht. Aber immer noch kommt der Fehler. Ich denke mal das es jetzt direkt an Fiat liegt da ja meine Google Daten da Synchronisiert wurden. Bekommt man diesen Fehler noch über IoBroker weg ?

        Ich habe das Skript jetzt so gebastelt:

        <xml xmlns="https://developers.google.com/blockly/xml">
          <variables>
            <variable type="interval" id="Intervall">Intervall</variable>
          </variables>
          <block type="timeouts_setinterval" id="98F0@V8EpHy!GPFtlvl~" x="388" y="1563">
            <field name="NAME">Intervall</field>
            <field name="INTERVAL">5</field>
            <field name="UNIT">min</field>
            <statement name="STATEMENT">
              <block type="controls_if" id="z@,A[:KyLV!aUC{o[[fx">
                <value name="IF0">
                  <block type="logic_compare" id="iGvJ(W;I$pbr-a]gFdZ=">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="get_value" id="-@olz1n2C@=h|=?@WHR:">
                        <field name="ATTR">val</field>
                        <field name="OID">fiat.0.ZFAXXXXX.status.evInfo.battery.chargingStatus</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="text" id="q;y+A:!9Ys6m4a|G#90=">
                        <field name="TEXT">CHARGING</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="toggle" id="c6O{-+@n*BqlE(uda0+5">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">fiat.0.ZFAEXXXXXXXX.remote.DEEPREFRESH</field>
                    <field name="WITH_DELAY">FALSE</field>
                  </block>
                </statement>
              </block>
            </statement>
          </block>
        </xml>
        

        Doch leider meldet sich jetzt die Fiat App alle 5 Minuten, siehe Bild.
        Habe schon das Skript geändert das es den Wert nur Aktualisiert wenn der Fiat am Laden ist.
        Ich würde ungern die Benachrichtigungen der Fiat App ausschalten, gibt es noch einen anderen weg, das die Fiat App die Anfrage nicht erkennt und die Pusch Mitteilungen sein läßt ?

        IMG_2201.PNG

        T 1 Reply Last reply Reply Quote 0
        • T
          tombox @alexbln01 last edited by

          @alexbln01 Der fehler sollte in der github version weg sein
          Die Push message lässt sich nicht unterbinden. Es ist leider so bei fiat aufgebaut

          A 1 Reply Last reply Reply Quote 0
          • A
            alexbln01 @tombox last edited by

            @tombox Danke für die Info, habe den Adapter nun mal neu über github Installiert. Mal schauen ob der Fehler weg ist. Die Push Message habe ich erst einmal im Handy deaktiviert und frage den Status im Iobroker mit nem Script nur noch ab wenn auch geladen wird.

            1 Reply Last reply Reply Quote 0
            • Gagnismathr
              Gagnismathr last edited by

              Hallo!

              Das ist mein erster Gehversuch mit ioBroker.
              Ich bin bei OpenHab zuhause aber dieses Plugin hat mich hierher geführt 🙂
              Die Kommunikation mit MQTT steht auch schon (Broker zu OH3) und der MQTT Adapter ist auch in ioBroker installiert (nur Client).

              Das letzte Puzzleteil, das jetzt noch fehlt ist eine Regel zum senden des SOC an das Mosquitto-Topic (beim Laden alle 5 min, sonst beim Öffnen/Schließen).

              Wie bewerkstellige ich das am besten?

              Danke und Gruß

              Jonas

              INT 5749 1 Reply Last reply Reply Quote 0
              • INT 5749
                INT 5749 @Gagnismathr last edited by

                @gagnismathr

                Ein Hallo,

                ich verstehe, Du möchtest von openHAB nach ioBroker senden? Dann wäre dies wahrscheinlich im openHAB Forum besser aufgehoben?

                VG
                int5749

                Gagnismathr 1 Reply Last reply Reply Quote 0
                • Gagnismathr
                  Gagnismathr @INT 5749 last edited by

                  @int-5749
                  Hallo!

                  Nein, an einen MQTT broker reicht mir schon. Funktioniert schon alles und der Fiat wird auch in Objekten angezeigt.

                  Mir fehlt das Verständnis noch für folgenden Datenfluss:

                  Wo finde ich den SOC und
                  Wie bekomme ich den halbwegs regelämßig während dem Laden an MQTT gesendet?

                  Ich habe etwas weiter oben schon ein Bisschen Code gefunden aber ich weiß nicht, wo der eingefügt werden muss.

                  Danke für eure Hilfe!Bildschirmfoto 2022-04-08 um 09.30.05.png

                  Gagnismathr 1 Reply Last reply Reply Quote 0
                  • Gagnismathr
                    Gagnismathr @Gagnismathr last edited by Gagnismathr

                    Ich hab es geschafft 🙂
                    hab den Code von @alexbln01 geklaut und die Mosquitto Verknüpfung über den Schraubnschlüssel im Reiter "Objekte" beim SOC hergestellt.

                    1 Reply Last reply Reply Quote 0
                    • Gagnismathr
                      Gagnismathr last edited by

                      Ich lad zur Zeit ausschließlich mit PV Überschuss.
                      Das bringt in manchen Fällen ein Problem:

                      Die intelligente Ladesäue (Hardy Barth eCB1) hört auf, wenn kein Überschuss mehr produziert wird. Soweit so gut.

                      Wenn nun am nächsten Tag wieder die Sonne scheint fängt der Fiat nicht automatisch an zu laden weil er wohl tief schläft, was ja auch verständlich ist.

                      Ich habe das Objekt CNOW gefunden, welches den Ladevorgang manuell anstoßen sollte.

                      Leider funktioniert es nicht, wenn ich hier ein True sende.
                      Muss der Fiat vorher aufgeweckt werden? Wenn ja - wie?

                      Oder ist meine Denkweise verkehrt?

                      T 1 Reply Last reply Reply Quote 0
                      • T
                        tombox @Gagnismathr last edited by

                        @gagnismathr Wenn es über die App geht dann könnte man es auch über den Adapter lösen

                        Gagnismathr 1 Reply Last reply Reply Quote 0
                        • Gagnismathr
                          Gagnismathr @tombox last edited by

                          @tombox

                          Ja. Das dachte ich auch. Funktioniert aber leider nicht - nur über die App, nach Eingabe des Passworts. Ich habe einige Stunden investiert heute - erfolglos.
                          Anbei das Beweisbild. Ich habe den CNOW Boolean manuell - aber auch erfolgreich via MQTT auf True gesetzt aber das Auto schert sich nicht. Zudem habe ich versucht direkt danach einen Deeprefresh zu senden ind er Hoffnung der Wert wird übernommen aber leider hat auch das nicht geklappt. Erst nachdem ich direkt in der App auf "jetzt laden" gedrückt habe und mein PW eingegeben habe ging es los …

                          Gibt es irgendetwas das ich noch tun kann?
                          Wer hat das eigentlich entwickelt? Vielleicht kann von dieser Seite Hilfe kommen …

                          Danke euch!!

                          Bildschirmfoto 2022-05-05 um 12.32.51.png

                          T 1 Reply Last reply Reply Quote 0
                          • T
                            tombox @Gagnismathr last edited by

                            @gagnismathr Bräuchte ich vielleicht nochmal zugangsdate um zu sehen was die app anders macht

                            Gagnismathr 1 Reply Last reply Reply Quote 1
                            • Gagnismathr
                              Gagnismathr @tombox last edited by

                              @tombox Hab dir meine Daten gesendet. Wenn du noch was brauchst melde dich einfach.
                              Danke für den Support!!!

                              1 Reply Last reply Reply Quote 0
                              • Gagnismathr
                                Gagnismathr last edited by

                                Hello

                                i am haveing some issues still.

                                When i am using the ioBroker UI and set DeepRefresh true it works.
                                If i use MQTT it does not. it changes the value from true to false and vice versa but nothing "triggers".
                                Is there a setting in the mqtt settings i have to take care of?
                                Thank you!

                                T 1 Reply Last reply Reply Quote 0
                                • T
                                  tombox @Gagnismathr last edited by

                                  @gagnismathr Wichtig ist ohne ACK Bestätigt zu senden

                                  Gagnismathr 1 Reply Last reply Reply Quote 0
                                  • Gagnismathr
                                    Gagnismathr @tombox last edited by

                                    @tombox hallo! danke es geht ... habe es hier geändert: Bildschirmfoto 2022-06-27 um 15.50.32.png
                                    ist das richtig? Geht auf jeden fall.

                                    T 1 Reply Last reply Reply Quote 0
                                    • T
                                      ThetaGamma @Gagnismathr last edited by

                                      Servus, ich habe den Eindruck, dass das Feld für den Verbrauch zur letzen Fahrt (fiat.1.REDACTED.status.vehicleInfo.tripsInfo.TripB.energyUsed.value) nicht aktualisiert wird. Liefert die API das nicht oder ist das ein Bug?

                                      T 1 Reply Last reply Reply Quote 0
                                      • T
                                        tombox @ThetaGamma last edited by

                                        @thetagamma Mal löschen und den Adapter neustarten und schauen ob es neu erstellt wird

                                        T 1 Reply Last reply Reply Quote 0
                                        • T
                                          ThetaGamma @tombox last edited by

                                          @tombox yep, nach dem Löschen vom kompletten Baum "Trip B", wird er nach dem Neustart komplett neu erstellt. Das Feld "fiat.1.REDACTED.status.vehicleInfo.tripsInfo.TripB.totalElectricDistance.value" wird mit dem Wert der letzten Fahrt (aktuell 9 km) gefüllt. Irgendwie beschleicht mich die Erinnerung, einen ähnlichen Fall schonmal beim Passat gehabt zu haben...

                                          1 Reply Last reply Reply Quote 0
                                          • H
                                            hmpf99 @tombox last edited by

                                            @tombox Erstmal vielen Dank für den genialen Adapter. Dafür habe ich jetzt auch ioBroker installiert.
                                            Zu einem Wert habe ich noch eine Frage: "Charging_Level". Bei mir wird entweder Level_0 oder Level_2 angezeigt. Im Auto kann ich den Level 1-5 auswählen. Wähle ich im Auto Level_3, wird im ioBroker trotzdem Level_2 angezeigt.
                                            Passt der Wert nicht oder verwechsle ich da vielleicht eine Funktion?

                                            Vielen Dank, Frank

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            531
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            33
                                            156
                                            16001
                                            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