Hier stelle ich meine View zur weiteren Verwendung / Anregung zur Verfügung
Ursprung aus dem Thread Adapter VW Connect
.
.
Ein Dialog View Popup ( Button bei Standort ) öffnet die Standort Karte des Fahrzeugs
.
.
Adapter die benötigt werden :
ioBroker.vw-connect
ioBroker.vis-materialdesign
ioBroker.vis-map
ioBroker.icons-icons8
ioBroker.sourceanalytix
Audi View.txt
Audi_Karte.txt
.transparent_box{
opacity:0.8;
background-color:#ffffff;
padding-left:0px;
padding-top:0px;
border:#acacac solid 0px;
border-radius:8px;
box-shadow:6px 0px 12px 0 #161616;
z-index:1;
}
on({ id: "vw-connect.0.DEINAUDI.charger.status.chargingStatusData.chargingState.content", change: "ne" }, function (obj) {
var status = getState("vw-connect.0.DEINAUDI.charger.status.chargingStatusData.chargingState.content").val;
if (status == "completed") {
sendTo('telegram.4', { text: "Das Auto ist vollständig geladen.", disable_notification: true});
}
});
const idSnips = "javascript.0.Vis.Wallbox.Akku_angeschlossen"; // Diesen Datenpunkt erstellen , ist schon voreigestellt in View Audi Textausgabe
on({ id: "vw-connect.0.DEINAUDI.charger.status.plugStatusData.plugState.content", change: "ne" }, function (obj) {
var con = getState("vw-connect.0.DEINAUDI.charger.status.plugStatusData.plugState.content").val;
if (con == "connected") {
var min = getState("vw-connect.0.DEINAUDI.charger.status.batteryStatusData.remainingChargingTime.content").val;
var soc = getState("vw-connect.0.DEINAUDI.charger.status.batteryStatusData.stateOfCharge.content").val;
var timestr = "";
if (min < 60) { timestr = min + " Minuten"; }
else {
var leftovermin = min % 60;
leftovermin = (leftovermin > 9) ? leftovermin : "0" + leftovermin; // Führende "0" bei Minute
var h = (min - leftovermin) / 60;
timestr = "" + h + ":" + leftovermin +" Stunden";
}
sendTo('telegram.4', { text: 'Das Auto wurde mit ' + soc + ' % angeschlossen und ist in ca. ' + timestr + ' geladen.', disable_notification: true});
text = "Das Auto wurde mit " + soc + " % angeschlossen und ist in ca. " + timestr + " geladen.";
console.log(text);
setState(idSnips, text);
}
});
<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable id="5k/)/)9ix[bn|.m}D`-:">ladeende</variable>
</variables>
<block type="procedures_defcustomnoreturn" id="q@;vSFy]?AvzgJ=lJKIp" x="63" y="13">
<mutation statements="false"></mutation>
<field name="NAME">etwas tun</field>
<field name="SCRIPT">Y3JlYXRlU3RhdGUoImphdmFzY3JpcHQuMC5WaXMuV2FsbGJveC5MYWRlemVpdF9SZXN0bGF1ZnplaXQiLCB7bmFtZTogIlJlc3RsYXVmemVpdCIsIHVuaXQ6ICIwIn0pOw0K</field>
<comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
</block>
<block type="procedures_callcustomnoreturn" id=")Z6tuH;oFB0FXvdwTlry" x="62" y="63">
<mutation name="etwas tun"></mutation>
<next>
<block type="on_ext" id="/wYH{5@4u0cvvxHUtVGv">
<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#@t:,G+vXfKZK%7uP;">
<field name="oid">vw-connect.0.MEINAUDI.charger.status.batteryStatusData.remainingChargingTime.content</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="variables_set" id="i@uM*VT/[b!mCTyzzf_`">
<field name="VAR" id="5k/)/)9ix[bn|.m}D`-:">ladeende</field>
<value name="VALUE">
<block type="convert_from_date" id="2`fn[[h6Bllij0j`$3oi">
<mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
<field name="OPTION">hh:mm</field>
<value name="VALUE">
<block type="math_arithmetic" id="r7)e^u7XFIq*N{d]icI5">
<field name="OP">ADD</field>
<value name="A">
<shadow type="math_number" id="QN,{#+eS51Vd/yWZ_@R}">
<field name="NUM">1</field>
</shadow>
<block type="time_get" id="p=ZNS.*D)4eUA/l8A]Dn">
<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="6ruHpPk_JYzFMhN--S49">
<field name="NUM">1</field>
</shadow>
<block type="math_arithmetic" id=";#;$Tl;KmclD2ISV*9.n">
<field name="OP">MULTIPLY</field>
<value name="A">
<shadow type="math_number" id="BP{*GS,CyM7kX1cJYh2A">
<field name="NUM">60000</field>
</shadow>
</value>
<value name="B">
<shadow type="math_number" id="m}CV#e=y1|@fj~W~VHy5">
<field name="NUM">1</field>
</shadow>
<block type="on_source" id="hf=p]H2}dk-_L@Q9??2N">
<field name="ATTR">state.val</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<next>
<block type="update" id="xDQL,_!5gF?*b*VN{JD[">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">javascript.0.Vis.Wallbox.Ladezeit_Restlaufzeit</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="variables_get" id="|Mio@P3e~Wf$7Emu4.A5">
<field name="VAR" id="5k/)/)9ix[bn|.m}D`-:">ladeende</field>
</block>
</value>
<next>
<block type="debug" id="OKLdc)ar*#VugY2Tmwk-">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="RZD)g%~J*H04IfB]ctyv">
<field name="TEXT">test</field>
</shadow>
<block type="variables_get" id="`*cv?V-n)pugV^XMS#5B">
<field name="VAR" id="5k/)/)9ix[bn|.m}D`-:">ladeende</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</xml>
<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable id="iudvL[/g8HU53/JA:jNL">Strompreis_proKWh</variable>
<variable id="?3%%L.;KPa-d6Zkoj*6T">AUS Zaehler</variable>
<variable id="/mlJ|]H$WBhj/HlKp={M">Waschdauer</variable>
<variable id="id5*A#_}QH!*|tRHHXMu">EnergieVerbrauch</variable>
<variable id=")aU%h@rMlr2se[EG@%r{">EnergieVerbrauchEuro</variable>
<variable type="timeout" id="timeout">timeout</variable>
</variables>
<block type="comment" id="}j`kpGa0AYkYykZo`e3e" x="38" y="-12">
<field name="COMMENT"></field>
<next>
<block type="create" id="!tN4!:gtM^}ek;|m=nHo">
<field name="NAME">Vis.Wallbox.Aktiv</field>
<next>
<block type="comment" id="Drb49w]ON!TnRz~^vn9]">
<field name="COMMENT">Definition des aktuellen Strompreises (€ pro KWh)</field>
<next>
<block type="variables_set" id="2}Lr[4V,e]r2)`DVAl}T">
<field name="VAR" id="iudvL[/g8HU53/JA:jNL">Strompreis_proKWh</field>
<value name="VALUE">
<block type="math_number" id="F4?M5]+8(Nvs`o4ccwyj">
<field name="NUM">0.28</field>
</block>
</value>
<next>
<block type="control" id="Kb.uPdr~gS|=7Ng+:H?a">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">javascript.0.Vis.Wallbox.Aktiv</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="vqBy?8.1fiDNDoLrT;G~">
<field name="BOOL">FALSE</field>
</block>
</value>
<next>
<block type="on_ext" id="+A7wlutQO8gBfqosc.y3">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
<field name="CONDITION">any</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="L[i=p{|ii-ai*/YAZ@8s">
<field name="oid">modbus.2.holdingRegisters.4527_Aktuelle_Wirk- Leistung Total</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="bP`*)0;M+g9O:g?]Pd*f">
<mutation elseif="2"></mutation>
<value name="IF0">
<block type="logic_operation" id="F:)qYHsI}dugF;;Tjm,A" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="H5%_/a!o;(cd2f~t!+^Q">
<field name="OP">GT</field>
<value name="A">
<block type="get_value" id="a:y916W!S%H|pb5qQl:J">
<field name="ATTR">val</field>
<field name="OID">modbus.2.holdingRegisters.4527_Aktuelle_Wirk- Leistung Total</field>
</block>
</value>
<value name="B">
<block type="math_number" id="qFPWw{;UZY{D^a6HN4F4">
<field name="NUM">90</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="+]^D[{zcOd~)d%8C%:S9">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="E4;q.WI):RF8,)P;4GaM">
<field name="ATTR">val</field>
<field name="OID">javascript.0.Vis.Wallbox.Aktiv</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="BlP[`XK*dfV6{q],uSuN">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="XxjRG-wx{Gis|P}j%wi{">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">javascript.0.Vis.Wallbox.Aktiv</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="8]j]NPy0pzg_@fy7#pu9">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="variables_set" id="SCb#?8FQqUBm.b91G*9j">
<field name="VAR" id="/mlJ|]H$WBhj/HlKp={M">Waschdauer</field>
<value name="VALUE">
<block type="time_get" id="l]Y-K3-Yq9IeTq;6eJ;D">
<mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
<field name="OPTION">sid</field>
</block>
</value>
<next>
<block type="variables_set" id="l:AtbY[?EmL3Z~j6^GHE">
<field name="VAR" id="id5*A#_}QH!*|tRHHXMu">EnergieVerbrauch</field>
<value name="VALUE">
<block type="convert_tonumber" id="A*-+B{tOq6@wR.pmOm08">
<value name="VALUE">
<block type="get_value" id="!4xv1q7L@d1n!nnMwm#!">
<field name="ATTR">val</field>
<field name="OID">modbus.2.holdingRegisters.4630_Wirk-_Energie Bezug Total </field>
</block>
</value>
</block>
</value>
<next>
<block type="telegram" id="i||{vH9*ebG3rYojyq#~">
<field name="INSTANCE">.4</field>
<field name="LOG"></field>
<field name="SILENT">TRUE</field>
<field name="PARSEMODE">default</field>
<value name="MESSAGE">
<shadow type="text" id="U][E8N^7Bu/+`G(NxN}#">
<field name="TEXT">Die Wallbox wurde angeschalten.</field>
</shadow>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
<value name="IF1">
<block type="logic_operation" id="xQ~Axjp^x}xIc}?,~bd3" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="m:F[A,C]23{tVG.[9ogx">
<field name="OP">GT</field>
<value name="A">
<block type="get_value" id="~9hm.bn7JuR`9T^57r|!">
<field name="ATTR">val</field>
<field name="OID">modbus.2.holdingRegisters.4527_Aktuelle_Wirk- Leistung Total</field>
</block>
</value>
<value name="B">
<block type="math_number" id="KK#)EKMNqV.YXg?PWltR">
<field name="NUM">90</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_operation" id="WZqeqrqbx=zB-@D)~l_!" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="2#,2{UzKUXKc-b;aXI]d">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="X|7IEq+#eQ6U]K@QZDL_">
<field name="ATTR">val</field>
<field name="OID">javascript.0.Vis.Wallbox.Aktiv</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="88[x9TQtT`hkagX?ux;6">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id=";5T2wjhgRkI4a=fP=txA">
<field name="OP">GT</field>
<value name="A">
<block type="variables_get" id="X|5;WK_6+b*X7dWThdYF">
<field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T">AUS Zaehler</field>
</block>
</value>
<value name="B">
<block type="math_number" id="JhvY#m2e){iZg*}U)U7=">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="variables_set" id="qd2jcZSX.j`maks-0XGG">
<field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T">AUS Zaehler</field>
<value name="VALUE">
<block type="math_arithmetic" id="-Y}Zmf^#hm,WyL6)Kcd-">
<field name="OP">MINUS</field>
<value name="A">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="^~p~#U!R+eaJjaW~6U)d">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="c/b;teh7B.tfavW#3Kx2">
<field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T">AUS Zaehler</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="/@dSwZ{HpbKk6y3_q?jz">
<field name="NUM">1</field>
</shadow>
<block type="math_number" id="+:T9{S+iC93HBt`#rU~.">
<field name="NUM">1</field>
</block>
</value>
</block>
</value>
</block>
</statement>
<value name="IF2">
<block type="logic_operation" id="iHpE~=uUiC0HYZE0ixfv" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="~=`AKkV)p.LRK|-)ym#0">
<field name="OP">LT</field>
<value name="A">
<block type="get_value" id="{bMP3Rct]s~^OxB^KYJB">
<field name="ATTR">val</field>
<field name="OID">modbus.2.holdingRegisters.4527_Aktuelle_Wirk- Leistung Total</field>
</block>
</value>
<value name="B">
<block type="math_number" id="}n$r~.-0H0;Y`%V?r;zH">
<field name="NUM">20</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="!cAR@kagkdn/du!lg5?r">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="9TggDfqlTj?4OO=@`~eO">
<field name="ATTR">val</field>
<field name="OID">javascript.0.Vis.Wallbox.Aktiv</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="S1R!kS9-?kQk+KS_5Qs#">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO2">
<block type="math_change" id="T.un5=.rdLl@woGn*4oJ">
<field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T">AUS Zaehler</field>
<value name="DELTA">
<shadow type="math_number" id="?c=pXLOc61v3AJP.(d:k">
<field name="NUM">1</field>
</shadow>
<block type="math_number" id="4AV#hJ#9=-x[VVtzoB24">
<field name="NUM">1</field>
</block>
</value>
</block>
</statement>
<next>
<block type="controls_if" id="J!0cvTG#hm+.vpOmP+Dh">
<value name="IF0">
<block type="logic_compare" id="%AbMO?J2D[f-rCEWyq=O">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="u5FZNsypgs:pPUYsV1=g">
<field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T">AUS Zaehler</field>
</block>
</value>
<value name="B">
<block type="math_number" id="uaHP[P3wt-!h@M!UE]eX">
<field name="NUM">3</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="telegram" id="kL*lu.zQO-Y,D,k.!fo*">
<field name="INSTANCE">.4</field>
<field name="LOG"></field>
<field name="SILENT">TRUE</field>
<field name="PARSEMODE">default</field>
<value name="MESSAGE">
<shadow type="text" id="T_6rqN}8fY{mt}ON=7uM">
<field name="TEXT">Das Auto ist aufgeladen </field>
</shadow>
</value>
<next>
<block type="variables_set" id="C7#M!)MBNlXWFdRyu(1/">
<field name="VAR" id="/mlJ|]H$WBhj/HlKp={M">Waschdauer</field>
<value name="VALUE">
<block type="math_arithmetic" id="fwa0dvln1m_t%y4d]=*v">
<field name="OP">MINUS</field>
<value name="A">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="W8g;#tFz%V8Kx@!mjuqj">
<field name="NUM">1</field>
</shadow>
<block type="time_get" id="%;@b8KNTHRen[LP0FvK,">
<mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
<field name="OPTION">sid</field>
</block>
</value>
<value name="B">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="@l!h1lOMpXlo8N}y:{]+">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="XOpm)A@O%TF:(SAy7(I}">
<field name="VAR" id="/mlJ|]H$WBhj/HlKp={M">Waschdauer</field>
</block>
</value>
</block>
</value>
<next>
<block type="variables_set" id="*EN^aV(u5xu43kU!:HRo">
<field name="VAR" id="id5*A#_}QH!*|tRHHXMu">EnergieVerbrauch</field>
<value name="VALUE">
<block type="math_arithmetic" id="C#b,V#H{+Tb1Vow^^?-m">
<field name="OP">MINUS</field>
<value name="A">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="W8g;#tFz%V8Kx@!mjuqj">
<field name="NUM">1</field>
</shadow>
<block type="convert_tonumber" id="!GznomR}Q3[I`?RIED67">
<value name="VALUE">
<block type="get_value" id="e:t1-@XipZp9*++em~F|">
<field name="ATTR">val</field>
<field name="OID">modbus.2.holdingRegisters.4630_Wirk-_Energie Bezug Total </field>
</block>
</value>
</block>
</value>
<value name="B">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="@l!h1lOMpXlo8N}y:{]+">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="K1Op|B02aC^S,m0#m])z">
<field name="VAR" id="id5*A#_}QH!*|tRHHXMu">EnergieVerbrauch</field>
</block>
</value>
</block>
</value>
<next>
<block type="variables_set" id="Y2yS83fmq*G;2U|Ro;gW">
<field name="VAR" id=")aU%h@rMlr2se[EG@%r{">EnergieVerbrauchEuro</field>
<value name="VALUE">
<block type="math_arithmetic" id="7uL[t`(}Ib-:?i/4!vhX">
<field name="OP">MULTIPLY</field>
<value name="A">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="bcqkyu#ZlBXRizD{uOQ=">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="v;1DA!_L?_j.YN!xXgh)">
<field name="VAR" id="id5*A#_}QH!*|tRHHXMu">EnergieVerbrauch</field>
</block>
</value>
<value name="B">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="iMjl!udE1s2tQ.u]cgDa">
<field name="NUM">0.277</field>
</shadow>
<block type="variables_get" id="]!,gm)!^ZwQBWMFQNf1z">
<field name="VAR" id="iudvL[/g8HU53/JA:jNL">Strompreis_proKWh</field>
</block>
</value>
</block>
</value>
<next>
<block type="timeouts_settimeout" id=";RetM]1NMnq(gM2?*6vO">
<field name="NAME">timeout</field>
<field name="DELAY">1500</field>
<field name="UNIT">ms</field>
<statement name="STATEMENT">
<block type="telegram" id="ed05d|bQf^sw*MK?SR-6">
<field name="INSTANCE">.4</field>
<field name="LOG"></field>
<field name="SILENT">TRUE</field>
<field name="PARSEMODE">default</field>
<value name="MESSAGE">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="sKyyX,f?IkAZP`RFQReF"></shadow>
<block type="text_join" id="SU~Smg]|PJWN^YhT`/UH" inline="false">
<mutation items="7"></mutation>
<value name="ADD0">
<block type="text" id="Y(*XJm_!!kp.WBue49Ov">
<field name="TEXT">Die Aufladung dauerte </field>
</block>
</value>
<value name="ADD1">
<block type="math_round" id="g6P{I:1G?o4sMbO@!Vpp">
<field name="OP">ROUND</field>
<value name="NUM">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="?Nf,7E04Ici%)__NN|G3">
<field name="NUM">3.1</field>
</shadow>
<block type="math_arithmetic" id="{#58F+el+na7V8Yr{dp;">
<field name="OP">DIVIDE</field>
<value name="A">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="iL99}E8eI[-fCs=fI13E">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="fIFlQH_TLF~2[FpzWyS;">
<field name="VAR" id="/mlJ|]H$WBhj/HlKp={M">Waschdauer</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="t@(FJI)ZvKDy;s;]=oD+">
<field name="NUM">60</field>
</shadow>
</value>
</block>
</value>
</block>
</value>
<value name="ADD2">
<block type="text" id="D!GjLrm@wJSLHTR1D]Mf">
<field name="TEXT"> Minuten und hat </field>
</block>
</value>
<value name="ADD3">
<block type="math_rndfixed" id="w9Dywr+VAm2[!S8H|a#A">
<field name="n">2</field>
<value name="x">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="$E{uI~w,:T_bJcAFzCSm">
<field name="NUM">3.1234</field>
</shadow>
<block type="variables_get" id="GGMwh2+=g9gdbBa;ss[R">
<field name="VAR" id="id5*A#_}QH!*|tRHHXMu">EnergieVerbrauch</field>
</block>
</value>
</block>
</value>
<value name="ADD4">
<block type="text" id="~aj#Zp7Q5[tkPu2Z+E9^">
<field name="TEXT"> kWh Energie (</field>
</block>
</value>
<value name="ADD5">
<block type="math_rndfixed" id="[(V4R~mAlt~Dt:t2rxwo">
<field name="n">2</field>
<value name="x">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="%2L6^L,B2%o}]S|h%kIf">
<field name="NUM">3.1234</field>
</shadow>
<block type="variables_get" id="#7GrA6XBS]9ia)Y]ErSa">
<field name="VAR" id=")aU%h@rMlr2se[EG@%r{">EnergieVerbrauchEuro</field>
</block>
</value>
</block>
</value>
<value name="ADD6">
<block type="text" id="4k%.y+PB+G=M~uRvy|C`">
<field name="TEXT"> €) beim laden verbraucht.</field>
</block>
</value>
</block>
</value>
<next>
<block type="update" id="a4O0D7k9fwF@/Wl2D~8D" inline="false">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">javascript.0.Vis.Wallbox.Wallbox_Verbrauch</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text_join" id="*:sW/V2}-IQ-Vu8WV!oP" inline="false">
<mutation items="7"></mutation>
<value name="ADD0">
<block type="text" id="qu4+oyGw+jR`Zyjw6]NR">
<field name="TEXT">Das Aufladen dauerte </field>
</block>
</value>
<value name="ADD1">
<block type="math_round" id="*1mG)EDJ_MEWTV]CfsER">
<field name="OP">ROUND</field>
<value name="NUM">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="?Nf,7E04Ici%)__NN|G3">
<field name="NUM">3.1</field>
</shadow>
<block type="math_arithmetic" id=".+]{sfeo:EaZ$u~$IHNr">
<field name="OP">DIVIDE</field>
<value name="A">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="iL99}E8eI[-fCs=fI13E">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="sG+^1,9H$/)60/`5LAij">
<field name="VAR" id="/mlJ|]H$WBhj/HlKp={M">Waschdauer</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="=^A|0EqkEk]B?y,QZbYb">
<field name="NUM">60</field>
</shadow>
</value>
</block>
</value>
</block>
</value>
<value name="ADD2">
<block type="text" id="^lNDDPcD#(IZFVGiPiEw">
<field name="TEXT"> Minuten und hat </field>
</block>
</value>
<value name="ADD3">
<block type="math_rndfixed" id="GMV{?hju8ReS8/}7ONJb">
<field name="n">2</field>
<value name="x">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="$E{uI~w,:T_bJcAFzCSm">
<field name="NUM">3.1234</field>
</shadow>
<block type="variables_get" id="_y1)ZRH0(ImZp8An(r9{">
<field name="VAR" id="id5*A#_}QH!*|tRHHXMu">EnergieVerbrauch</field>
</block>
</value>
</block>
</value>
<value name="ADD4">
<block type="text" id="n2}:S4/Gq)UaUP%BR:g-">
<field name="TEXT"> kWh Energie (</field>
</block>
</value>
<value name="ADD5">
<block type="math_rndfixed" id="~4KLHx4_.}E)9Qh@|_/$">
<field name="n">2</field>
<value name="x">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="%2L6^L,B2%o}]S|h%kIf">
<field name="NUM">3.1234</field>
</shadow>
<block type="variables_get" id="I{VXPy!{+G!.ltEx86fW">
<field name="VAR" id=")aU%h@rMlr2se[EG@%r{">EnergieVerbrauchEuro</field>
</block>
</value>
</block>
</value>
<value name="ADD6">
<block type="text" id="`nX1qN@wMeXabZi0QfoQ">
<field name="TEXT"> €) beim laden verbraucht.</field>
</block>
</value>
</block>
</value>
<next>
<block type="debug" id="rwrKhL^d@Cl*w9gG?-pT">
<field name="Severity">log</field>
<value name="TEXT">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="m/_(A#eS)CA.g6Ac#-L+">
<field name="TEXT">test</field>
</shadow>
<block type="text_join" id="6!!!+YLC_m*/]UqE9DOn" inline="false">
<mutation items="7"></mutation>
<value name="ADD0">
<block type="text" id="vQxbp3[,GonLIp6:nBhf">
<field name="TEXT">-Wallbox- </field>
</block>
</value>
<value name="ADD1">
<block type="math_round" id="4X:S{KB0f]V,d^)9NK/O">
<field name="OP">ROUND</field>
<value name="NUM">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="?Nf,7E04Ici%)__NN|G3">
<field name="NUM">3.1</field>
</shadow>
<block type="math_arithmetic" id="yngx,t1m/zEYRj{AnS9{">
<field name="OP">DIVIDE</field>
<value name="A">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="iL99}E8eI[-fCs=fI13E">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="WTLk=B5Q(l.r_qB6O*th">
<field name="VAR" id="/mlJ|]H$WBhj/HlKp={M">Waschdauer</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="-.c@~}fC{x@)0R_IvoIB">
<field name="NUM">60</field>
</shadow>
</value>
</block>
</value>
</block>
</value>
<value name="ADD2">
<block type="text" id="rwIjR.nC8URt:CYuElr5">
<field name="TEXT"> Minuten / </field>
</block>
</value>
<value name="ADD3">
<block type="math_rndfixed" id="X0Y0WKJ7%#(2|glY.A{l">
<field name="n">2</field>
<value name="x">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="$E{uI~w,:T_bJcAFzCSm">
<field name="NUM">3.1234</field>
</shadow>
<block type="variables_get" id="n`i][HBx$L6XVTk_*;cy">
<field name="VAR" id="id5*A#_}QH!*|tRHHXMu">EnergieVerbrauch</field>
</block>
</value>
</block>
</value>
<value name="ADD4">
<block type="text" id="32=OM.meqg`J@V}QDF$c">
<field name="TEXT"> kWh / </field>
</block>
</value>
<value name="ADD5">
<block type="math_rndfixed" id="zJuue`7gvtM9L[T68Rau">
<field name="n">2</field>
<value name="x">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="%2L6^L,B2%o}]S|h%kIf">
<field name="NUM">3.1234</field>
</shadow>
<block type="variables_get" id="{gbw7Nb5K/A0q,*GLdM+">
<field name="VAR" id=")aU%h@rMlr2se[EG@%r{">EnergieVerbrauchEuro</field>
</block>
</value>
</block>
</value>
<value name="ADD6">
<block type="text" id="j4YLndI[BMso,/T4}Ff-">
<field name="TEXT"> € -Wallbox-</field>
</block>
</value>
</block>
</value>
<next>
<block type="variables_set" id="Hvd2vL)ptc4/sfjoP3Kx">
<field name="VAR" id="?3%%L.;KPa-d6Zkoj*6T">AUS Zaehler</field>
<value name="VALUE">
<block type="math_number" id="Yz`)rz,.esx8@lC+dmm^">
<field name="NUM">0</field>
</block>
</value>
<next>
<block type="control" id="sj0ZAG=ELQ-|XeWmtEg3">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">javascript.0.Vis.Wallbox.Aktiv</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="eX|Bf{oW+%BAW.Y:)kbK">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</xml>
.
Update 14.01.2020 /
History_Wallbox
.
Ein Dialog View Popup ( Button bei Historyliste ) öffnet die Gesamthistory
.
Adapter die zusätzlich zum Hauptview benötigt werden :
View Stromverbrauch.txt
Logparser History.txt
CSS Projekt.txt
Das Script ist aus diesen Kalender Thread
Kalender.txt
{
"active": true,
"name": "Wallbox",
"whitelistAnd": "-Wallbox-",
"whitelistOr": "",
"blacklist": "/##\\{\\s?\\\".*\\\"\\s?\\}##/",
"debug": false,
"info": true,
"warn": false,
"error": false,
"clean": "-Wallbox- , -Wallbox-",
"maxLength": "",
"merge": false,
"dateformat": "#DD.MM.# hh:mm"
}