NEWS
NOUS Zwischenstecker mit Tasmota geflasht
-
@lessthanmore Wahnsinn das immer wieder solche Einträge auftauchen. Ja mach mal besser auf ich vergesse das sonst.
Wegen deiner 1.5h Geschichte: du solltest den schwellwert definitiv auf 0 Watt stellen und dann muss man probieren, wie viele Werte er für ende aufzeichnen soll. Da er alle 10 Sekunden Werte holt sind 6 Werte 60 Sekunden VerzögerungAlles gut, ich reagier manchmal selber ein wenig allergiach auf das Thema, nehme dir nix böse
-
@xenon Hi, das heißt mit deinem Adapter fällt für die Waschmaschinenmeldung das komplette Blockly weg.. verstehe ich das richtig?
Gruss
-
@kusselin ja genau so siehts aus
Wenn ich endlich mal Zeit hätte würde ich auch noch eine neue, react Version rausbringen. Denke das wird ein Herbst Projekt werden. Sind ja noch so viele Wünsche offen
-
@xenon was ist ne react Version?
-
@xenon Ja, ich muss wirklich mal schauen, wie es sich verhält.
Unser Trockner bspw. fällt quasi direkt auf 0 und ist dann fertig. Wenn ich den Adapter richtig verstehe, so muss der Durchschnittsverbrauch unter die End-Schwelle fallen, korrekt?
Müsste also demnach die Schwelle entsprechend hochsetzen. -
@lessthanmore ja genau. Bei meinen Trockner ist es ähnlich, der ist einfach zu erfassen. Größere probwhab ich bei meinem Geschirrspüler, da er immer wieder längere Zeit unter 1W fällt. Das hat mich ein wenig Zeit gekostet die Werte zu ermitteln. Daraufhin kam ja auch der "average consumption" Datenpunkt rein. Da steht immer der aktuelle errechnete Durchschnittswert, der mit deinen Schwellwerten abgeglichen wird
@Kusselin der neue admin 5 ist react, also eine neue Oberfläche
-
@lessthanmore jetzt hats richtig funktioniert udn auch die kwh werden mit der Meldung richtig angezeigt!!
Danke dir nochmals
-
Ich habs bisl anders gelöst
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="^I[)%eM_8O[Ph^CuBx|e">TelegramWaschmaschineInfoSchonGesendet</variable> <variable id="@kZ)tH3Fj^+mr1t-0#Pj">TasmotaVerbrauchTrockner</variable> <variable id="Q,vvgr/boDofUHkaCh8M">TasmotaVerbrauchWaschmaschine</variable> <variable id="e8!i=b8Zrqce/dpv-,8W">TelegramTrocknerInfoSchonGesendet</variable> <variable id="=,.x-)RU;90Wm4lb{PN)">TasmotaWaschmaschineLaeuft</variable> <variable id="_ItQ7REn;[E9~+[Z@~TD">TasmotaTrocknerLaeuft</variable> <variable id="j}GP+rAY],:-|)=.m;Fs">VerbrauchWamaVorFertig</variable> <variable id="?Msz5#^E;K-c+-[QqDwY">VerbrauchWamaNachFertig</variable> <variable id="^pelg_cKgQ9q/UYoLXLI">VerbrauchTrocknerVorFertig</variable> <variable id="[nWW?62o9y]^2/]mA}@A">VerbrauchTrocknerNachFertig</variable> <variable id="eA{u}XqN{CDV`2PK[Nq1">VerbrauchWamaWaschgang</variable> <variable id="J:ul.4D5S.}j2#EfN@Px">VerbrauchTrocknerTrocknen</variable> <variable id="~t+}AK#yTr@*1wcGpV{(">KostenWama</variable> <variable id="P^QaN{j9}{2z8+MzY8Cd">KostenTrockner</variable> </variables> <block type="comment" id="cQ:[j5,8UOC#kcy;[.a5" x="-462" y="-162"> <field name="COMMENT">Waschmaschine</field> <next> <block type="on" id="2Gq^7sjoJ5dRTl4QaJ|~"> <field name="OID">sonoff.0.TasmotaSteckWaschmaschine.ENERGY_Power</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="variables_set" id="{j^N8%4X%~-`oY_7g%6n"> <field name="VAR" id="^I[)%eM_8O[Ph^CuBx|e">TelegramWaschmaschineInfoSchonGesendet</field> <value name="VALUE"> <block type="get_value" id="1@zRR[Ma5Fi6*1+EX)84"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.EigeneDatenpunkte.Tasmota.WaschmaschineInfoGesendet</field> </block> </value> <next> <block type="variables_set" id="[Ow^{9hB7px}f1Pjar?!"> <field name="VAR" id="Q,vvgr/boDofUHkaCh8M">TasmotaVerbrauchWaschmaschine</field> <value name="VALUE"> <block type="on_source" id="xFW=S|xPiz7P;#SsJ{;]"> <field name="ATTR">state.val</field> </block> </value> <next> <block type="controls_if" id="2t7LF]+Ymp}s:Y[%|kx9"> <value name="IF0"> <block type="logic_operation" id="!SpE6.nz%6%{~|Hg2.*w"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="Qe!cbVbH{rMV2rM7GRtt"> <field name="OP">GTE</field> <value name="A"> <block type="variables_get" id="a4.0(|[.kI#rI_L^ovlO"> <field name="VAR" id="Q,vvgr/boDofUHkaCh8M">TasmotaVerbrauchWaschmaschine</field> </block> </value> <value name="B"> <block type="math_number" id="3RS%?Jj[luTG{`Y^!;dZ"> <field name="NUM">10</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="7!Fr0fTvhL(%[^37Q5nL"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="@$#b:?x()BuVI5Mb*g)w"> <field name="VAR" id="^I[)%eM_8O[Ph^CuBx|e">TelegramWaschmaschineInfoSchonGesendet</field> </block> </value> <value name="B"> <block type="logic_boolean" id="4]A+RrOrm4G~X6+g123Q"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="update" id="=@k-kf+v3[_~jc#B:Fel"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.EigeneDatenpunkte.Tasmota.WaschmaschineLaeuft</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="h7s3]-qR*eMSCv^rmft)"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="update" id="4?j3.c34K}LNF;Z^I=]Q"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.EigeneDatenpunkte.Tasmota.WaschmaschineInfoGesendet</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="[+I4aa9.7z.So9ZC~V5E"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="variables_set" id="Aj/_Dt4sijR`9t6_M6Y["> <field name="VAR" id="j}GP+rAY],:-|)=.m;Fs">VerbrauchWamaVorFertig</field> <value name="VALUE"> <block type="get_value" id="#3C0B%$b5mtlT;P+#O:w"> <field name="ATTR">val</field> <field name="OID">sonoff.0.TasmotaSteckWaschmaschine.ENERGY_Total</field> </block> </value> <next> <block type="update" id="n.mz2E,7_CR^25DNnImB"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.EigeneDatenpunkte.Tasmota.VerbrauchWaschmaschine</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="|mAsU{AdMuo:E!s4+l^9"> <field name="VAR" id="j}GP+rAY],:-|)=.m;Fs">VerbrauchWamaVorFertig</field> </block> </value> <next> <block type="telegram" id="N+68jJzC0+udi@R+275*"> <field name="INSTANCE"></field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">HTML</field> <value name="MESSAGE"> <shadow type="text"> <field name="TEXT">text</field> </shadow> <block type="text" id="lLuVp,qh!T(jx3q+pTX2"> <field name="TEXT">Waschmaschine läuft</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </statement> <next> <block type="comment" id="`Jb@mYlpLAg-2[M#I-Ld"> <field name="COMMENT">falls Wama fertig</field> <next> <block type="on" id="W9Q;*$lkc)wJ3Fs0*T2A"> <field name="OID">sonoff.0.TasmotaSteckWaschmaschine.ENERGY_Power</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="variables_set" id="[$4h_e*=WYVt1H5GY+F;"> <field name="VAR" id="Q,vvgr/boDofUHkaCh8M">TasmotaVerbrauchWaschmaschine</field> <value name="VALUE"> <block type="on_source" id="zUrC1W5/vNdZsPHTDk$)"> <field name="ATTR">state.val</field> </block> </value> <next> <block type="variables_set" id="Wj=DYHHH=8D+XyXh+vt+"> <field name="VAR" id="=,.x-)RU;90Wm4lb{PN)">TasmotaWaschmaschineLaeuft</field> <value name="VALUE"> <block type="get_value" id="43iuxl?6:G*DD^qJb?$J"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.EigeneDatenpunkte.Tasmota.WaschmaschineLaeuft</field> </block> </value> <next> <block type="controls_if" id="ck9V@G,h29Q`I%fk`rkJ"> <value name="IF0"> <block type="logic_operation" id="N|O$:-566p!Zi(mAFRP_"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="_eyZ3/MZZ/g=/[,F[0Bd"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="(8l1{tAGe*?D1QspflQ$"> <field name="VAR" id="=,.x-)RU;90Wm4lb{PN)">TasmotaWaschmaschineLaeuft</field> </block> </value> <value name="B"> <block type="logic_boolean" id="6X#`Pb)Lq#dM^QFph%n2"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="qxILD^G%e7$I7._i%iQl"> <field name="OP">LTE</field> <value name="A"> <block type="variables_get" id="h!O^`Nuq{aZ4{Uo;Q[}G"> <field name="VAR" id="Q,vvgr/boDofUHkaCh8M">TasmotaVerbrauchWaschmaschine</field> </block> </value> <value name="B"> <block type="math_number" id="fJY7EJjiikhLfi1o6)jA"> <field name="NUM">5</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="_CHNF#y]`8E%^HzZ)mrU"> <field name="VAR" id="?Msz5#^E;K-c+-[QqDwY">VerbrauchWamaNachFertig</field> <value name="VALUE"> <block type="get_value" id="9!F_z%`5$rb]Fb}/+vf?"> <field name="ATTR">val</field> <field name="OID">sonoff.0.TasmotaSteckWaschmaschine.ENERGY_Total</field> </block> </value> <next> <block type="variables_set" id="[^Yl)XAj9n?Id.ZN}+!."> <field name="VAR" id="eA{u}XqN{CDV`2PK[Nq1">VerbrauchWamaWaschgang</field> <value name="VALUE"> <block type="math_arithmetic" id="`R-Z[X0;VtxB%;C!k,#s"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="3w)f7F^J.2T:.)-6%i?`"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="%[sSDp*~Dy1bK1$pXYcQ"> <field name="VAR" id="?Msz5#^E;K-c+-[QqDwY">VerbrauchWamaNachFertig</field> </block> </value> <value name="B"> <shadow type="math_number" id="Yr9s|x^3Gha~oxC@k)}8"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="dLU1zq,Fqwl@?#AiShU1"> <field name="VAR" id="j}GP+rAY],:-|)=.m;Fs">VerbrauchWamaVorFertig</field> </block> </value> </block> </value> <next> <block type="variables_set" id="LHL+Mq$wYGQFM,O}Ah{R"> <field name="VAR" id="eA{u}XqN{CDV`2PK[Nq1">VerbrauchWamaWaschgang</field> <value name="VALUE"> <block type="math_rndfixed" id="Si%jul^6;B(sIkXnISfl"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="nAAb0;hztOm11|fd?)6W"> <field name="NUM">3.1234</field> </shadow> <block type="variables_get" id="`}bfVB%!G(B#[Q}tWAGo"> <field name="VAR" id="eA{u}XqN{CDV`2PK[Nq1">VerbrauchWamaWaschgang</field> </block> </value> </block> </value> <next> <block type="variables_set" id="Hy_%9AO3}He~:T23.Bv]"> <field name="VAR" id="~t+}AK#yTr@*1wcGpV{(">KostenWama</field> <value name="VALUE"> <block type="math_arithmetic" id="?m1eTln_`2AnPR^`0C^q"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="!Nq)S!@n3}epcj$%vK}l"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="FmrIz)bc;E~nZ.*qk`bF"> <field name="VAR" id="eA{u}XqN{CDV`2PK[Nq1">VerbrauchWamaWaschgang</field> </block> </value> <value name="B"> <shadow type="math_number" id="Xn,/$/npj|#$ng/6=tX{"> <field name="NUM">1</field> </shadow> <block type="math_number" id="}L6[04C.W5]5Skj?W5EQ"> <field name="NUM">0.3</field> </block> </value> </block> </value> <next> <block type="variables_set" id=".$Z@kS;2`;U,lJMp9lTU"> <field name="VAR" id="~t+}AK#yTr@*1wcGpV{(">KostenWama</field> <value name="VALUE"> <block type="math_rndfixed" id="sA_E5BSn:Udy+]Y)xvME"> <field name="n">2</field> <value name="x"> <shadow type="math_number"> <field name="NUM">3.1234</field> </shadow> <block type="variables_get" id="g4Mz_2f:@|n]=`4rLv[z"> <field name="VAR" id="~t+}AK#yTr@*1wcGpV{(">KostenWama</field> </block> </value> </block> </value> <next> <block type="telegram" id="`%XVlQTutR@Q.$8mCPqx"> <field name="INSTANCE"></field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <value name="MESSAGE"> <shadow type="text" id="pRAcE.$X24J=cSKUCi0E"> <field name="TEXT">text</field> </shadow> <block type="text_join" id="g6T^a.wa8?P,J:Tc9!?f"> <mutation items="8"></mutation> <value name="ADD0"> <block type="text" id="$8:`7n+J_Vsa}|0xe|y@"> <field name="TEXT">Waschmaschine fertig!</field> </block> </value> <value name="ADD1"> <block type="text_newline" id="?b5W?XFI+dc=U;0(f(Xc"> <field name="Type">\n</field> </block> </value> <value name="ADD2"> <block type="text" id="/.SetBxhnTbqA,G|;NWR"> <field name="TEXT">Verbraucht: </field> </block> </value> <value name="ADD3"> <block type="variables_get" id="m!rV~=2Ipsudk380;7.,"> <field name="VAR" id="eA{u}XqN{CDV`2PK[Nq1">VerbrauchWamaWaschgang</field> </block> </value> <value name="ADD4"> <block type="text" id="iv}sI{J1)qU%F@O*z*v2"> <field name="TEXT"> kWh</field> </block> </value> <value name="ADD5"> <block type="text" id="L~q9ENDc:%|@:onB?p+d"> <field name="TEXT"> (</field> </block> </value> <value name="ADD6"> <block type="variables_get" id="SkHhIZBJpeiWU~UU[Rrb"> <field name="VAR" id="~t+}AK#yTr@*1wcGpV{(">KostenWama</field> </block> </value> <value name="ADD7"> <block type="text" id="Qq-#WQ_bi6vJCRB+_~8w"> <field name="TEXT">€)</field> </block> </value> </block> </value> <next> <block type="update" id="HkP_o62%*?4TdP!S@-RZ"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.EigeneDatenpunkte.Tasmota.WaschmaschineLaeuft</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="x$rp[}~;1d1n`MDaiQ`$"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="update" id="n@!I^bST[y{s]}^HNv{p"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.EigeneDatenpunkte.Tasmota.WaschmaschineInfoGesendet</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="LpXaIV^Q@|_$G/4S*6aI"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> <block type="comment" id="Abi0_;Ru-bq06wY)K.8L" x="713" y="-162"> <field name="COMMENT">Trockner</field> <next> <block type="on" id="s+,CC,hwa4(khqPjw2FV"> <field name="OID">sonoff.0.TasmotaSteckTrockner.ENERGY_Power</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="variables_set" id="PxMu]M~]2G{bzhaKmrmq"> <field name="VAR" id="@kZ)tH3Fj^+mr1t-0#Pj">TasmotaVerbrauchTrockner</field> <value name="VALUE"> <block type="on_source" id="!^B$2VUW-owR8?l{,/4I"> <field name="ATTR">state.val</field> </block> </value> <next> <block type="variables_set" id="Hy@Y:6o}rzbPA63si.,d"> <field name="VAR" id="e8!i=b8Zrqce/dpv-,8W">TelegramTrocknerInfoSchonGesendet</field> <value name="VALUE"> <block type="get_value" id="{qr6YE*}FkUf3?8%QQ/v"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.EigeneDatenpunkte.Tasmota.TrocknerInfoGesendet</field> </block> </value> <next> <block type="controls_if" id="NuUftQ;){Ug%7mZw,1L@"> <value name="IF0"> <block type="logic_operation" id="#v.EkRr7o0XeZ731iXN{"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="?0$b-`WrN#-llLwj.D[."> <field name="OP">GTE</field> <value name="A"> <block type="variables_get" id="4qW{OyH`JEJQQ{;8?JD|"> <field name="VAR" id="@kZ)tH3Fj^+mr1t-0#Pj">TasmotaVerbrauchTrockner</field> </block> </value> <value name="B"> <block type="math_number" id="y{Sl0nVQ[pUlA6^J1k98"> <field name="NUM">10</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="EU`:Uz9r;noO|#z$)CEO"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="5}_VtNeR~Dk#PM;y0z2Y"> <field name="VAR" id="e8!i=b8Zrqce/dpv-,8W">TelegramTrocknerInfoSchonGesendet</field> </block> </value> <value name="B"> <block type="logic_boolean" id="Qv-n@;Nb[;3IFzM/yHDz"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="update" id=":(=e?BbhWJ[9Ii?G/R-{"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.EigeneDatenpunkte.Tasmota.TrocknerLaeuft</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id=":=I7.a[q?VbTH3_D7$q,"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="update" id="s.13DDwDzTDoyw~x^.93"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.EigeneDatenpunkte.Tasmota.TrocknerInfoGesendet</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="T,v!Nq]5h*TenN51~#MB"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="variables_set" id="ozUh)(ylp{u{*2K!99/["> <field name="VAR" id="^pelg_cKgQ9q/UYoLXLI">VerbrauchTrocknerVorFertig</field> <value name="VALUE"> <block type="get_value" id="d/LPIF+gL5F#otH[6lU["> <field name="ATTR">val</field> <field name="OID">sonoff.0.TasmotaSteckTrockner.ENERGY_Total</field> </block> </value> <next> <block type="update" id="Eq0:sU^L@SbxnV..%},+"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.EigeneDatenpunkte.Tasmota.VerbrauchTrockner</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="Nyzm@sz-={Oy-^w(0PGT"> <field name="VAR" id="^pelg_cKgQ9q/UYoLXLI">VerbrauchTrocknerVorFertig</field> </block> </value> <next> <block type="telegram" id="!~J!+1O=nz?{44x.rRJ!"> <field name="INSTANCE"></field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">HTML</field> <value name="MESSAGE"> <shadow type="text" id=",S[uQ5a0?tBB,8Y}.q^`"> <field name="TEXT">text</field> </shadow> <block type="text" id="j0CL~]/NHeKU-C1xtPX;"> <field name="TEXT">Trockner läuft</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </statement> <next> <block type="comment" id="^YqP/)VAW%g0`p2Tf=vm"> <field name="COMMENT">falls Trockner fertig</field> <next> <block type="on" id="{rif2szhjNl+AR%_SczM"> <field name="OID">sonoff.0.TasmotaSteckTrockner.ENERGY_Power</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="variables_set" id="q1q6R+J$yYM7u*vE~g;7"> <field name="VAR" id="@kZ)tH3Fj^+mr1t-0#Pj">TasmotaVerbrauchTrockner</field> <value name="VALUE"> <block type="on_source" id="*K67{fW;$^kl:/aIr+]u"> <field name="ATTR">state.val</field> </block> </value> <next> <block type="variables_set" id="j|[*M;?vfSHFpvicnZ.a"> <field name="VAR" id="_ItQ7REn;[E9~+[Z@~TD">TasmotaTrocknerLaeuft</field> <value name="VALUE"> <block type="get_value" id="T{N5F;jqe;KCe{9gq^c0"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.EigeneDatenpunkte.Tasmota.TrocknerLaeuft</field> </block> </value> <next> <block type="controls_if" id="[o4p]=NMnB(HVB(nWJ/_"> <value name="IF0"> <block type="logic_operation" id="!WSHn64g|DqtyRY){J^y"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="Kv7%Fpwog}#A^Fwy1^@*"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="m:RcgTW)fIW_u7l;f~mq"> <field name="VAR" id="_ItQ7REn;[E9~+[Z@~TD">TasmotaTrocknerLaeuft</field> </block> </value> <value name="B"> <block type="logic_boolean" id="]SM`;GUk)Tn%#FWTVW^d"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="j40MT5@a+jQlKe-}*cn#"> <field name="OP">LTE</field> <value name="A"> <block type="variables_get" id="!m[gEp]BMG0E03;W:z!}"> <field name="VAR" id="@kZ)tH3Fj^+mr1t-0#Pj">TasmotaVerbrauchTrockner</field> </block> </value> <value name="B"> <block type="math_number" id="DlX.UMpkbZBVPX[(#^$m"> <field name="NUM">5</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="iMjgpsYe]xfkQuDda8VW"> <field name="VAR" id="[nWW?62o9y]^2/]mA}@A">VerbrauchTrocknerNachFertig</field> <value name="VALUE"> <block type="get_value" id="|1V;6t8BfWW/0{9H~4YT"> <field name="ATTR">val</field> <field name="OID">sonoff.0.TasmotaSteckTrockner.ENERGY_Total</field> </block> </value> <next> <block type="variables_set" id="_ok%2C;YrE]3CqZ-u2Qd"> <field name="VAR" id="J:ul.4D5S.}j2#EfN@Px">VerbrauchTrocknerTrocknen</field> <value name="VALUE"> <block type="math_arithmetic" id="og9$~-HtPgt_IAYY73LK"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="EmTJ}f!Y*Qp(0vQHjNTn"> <field name="VAR" id="[nWW?62o9y]^2/]mA}@A">VerbrauchTrocknerNachFertig</field> </block> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="hzt?m`%4i_n,kO*gf?41"> <field name="VAR" id="^pelg_cKgQ9q/UYoLXLI">VerbrauchTrocknerVorFertig</field> </block> </value> </block> </value> <next> <block type="variables_set" id=".Jxv]KUDZG2JbtYGl9Mj"> <field name="VAR" id="J:ul.4D5S.}j2#EfN@Px">VerbrauchTrocknerTrocknen</field> <value name="VALUE"> <block type="math_rndfixed" id="{,D@7MiF;HdXrlkkwf#0"> <field name="n">2</field> <value name="x"> <shadow type="math_number"> <field name="NUM">3.1234</field> </shadow> <block type="variables_get" id="jJ@XAKX/)Lwxd?#erSwP"> <field name="VAR" id="J:ul.4D5S.}j2#EfN@Px">VerbrauchTrocknerTrocknen</field> </block> </value> </block> </value> <next> <block type="variables_set" id="0I]VRqiv#/aTV*VteO~("> <field name="VAR" id="P^QaN{j9}{2z8+MzY8Cd">KostenTrockner</field> <value name="VALUE"> <block type="math_arithmetic" id="~4cve:EP_V3HYgI:z$~~"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="[:/{p9ZM+$EU%+3{4Ty~"> <field name="VAR" id="J:ul.4D5S.}j2#EfN@Px">VerbrauchTrocknerTrocknen</field> </block> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="math_number" id="VsK^s.oltjDOjg8gEfJ,"> <field name="NUM">0.3</field> </block> </value> </block> </value> <next> <block type="variables_set" id="hO5s9PoMm1FyMh@|8U)p"> <field name="VAR" id="P^QaN{j9}{2z8+MzY8Cd">KostenTrockner</field> <value name="VALUE"> <block type="math_rndfixed" id="eA(*EfrunlTzgANMXIa{"> <field name="n">2</field> <value name="x"> <shadow type="math_number"> <field name="NUM">3.1234</field> </shadow> <block type="variables_get" id="-upRkZeOb;X3Tj{tReWH"> <field name="VAR" id="P^QaN{j9}{2z8+MzY8Cd">KostenTrockner</field> </block> </value> </block> </value> <next> <block type="telegram" id="5?:d~]S]Usfm5R)EOlne"> <field name="INSTANCE"></field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <value name="MESSAGE"> <shadow type="text" id="gJ}2Q|n?!wFoOGweK4:G"> <field name="TEXT">text</field> </shadow> <block type="text_join" id=";|QXkJcJ*#fXfe^njTXh"> <mutation items="8"></mutation> <value name="ADD0"> <block type="text" id="U71.?g6]MF``j,X(;?1/"> <field name="TEXT">Trockner fertig!</field> </block> </value> <value name="ADD1"> <block type="text_newline" id="4utx[D`[Y|D#N3L;pB5-"> <field name="Type">\n</field> </block> </value> <value name="ADD2"> <block type="text" id="c`IfDp]dw^@P~Pd+wC5H"> <field name="TEXT">Verbraucht: </field> </block> </value> <value name="ADD3"> <block type="variables_get" id="e.AX!.)]7:5!QVlY}.!Q"> <field name="VAR" id="J:ul.4D5S.}j2#EfN@Px">VerbrauchTrocknerTrocknen</field> </block> </value> <value name="ADD4"> <block type="text" id="Teg|YN?_@HiPzv(]q)@F"> <field name="TEXT"> kWh</field> </block> </value> <value name="ADD5"> <block type="text" id="$Y7|oy=QRf!b+DNAbd%a"> <field name="TEXT"> (</field> </block> </value> <value name="ADD6"> <block type="variables_get" id="A(q4EcQu/KD:brTFvOb0"> <field name="VAR" id="P^QaN{j9}{2z8+MzY8Cd">KostenTrockner</field> </block> </value> <value name="ADD7"> <block type="text" id="L0!7BEK(}xAxuy`usXg2"> <field name="TEXT">€)</field> </block> </value> </block> </value> <next> <block type="update" id="1p3=-lzu{wPvu|JVALU]"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.EigeneDatenpunkte.Tasmota.TrocknerLaeuft</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="uaz@s8DP@Hb2rWJse#CN"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="update" id="Z_cK/Jqi$qy2jY{+@B!9"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.EigeneDatenpunkte.Tasmota.TrocknerInfoGesendet</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="g^~O#vR3S89ZgyY/ry`k"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </xml>
Datenpunkte zum Import:
{ "sonoff.0.TasmotaSteckTrockner.POWER": { "_id": "sonoff.0.TasmotaSteckTrockner.POWER", "common": { "type": "boolean", "role": "switch", "read": true, "write": true, "storeMap": true, "name": "TasmotaSteckTrockner POWER", "enums": [ { "_id": "enum.rooms.UG Waschraum", "common": { "name": "UG Waschraum", "desc": "" }, "native": { "Name": "UG Waschraum", "TypeName": "ENUM", "EnumInfo": "" }, "type": "enum" } ] }, "native": {}, "type": "state", "from": "system.adapter.sonoff.0", "user": "system.user.admin", "ts": 1627533891629, "acl": { "object": 1636, "state": 1636, "owner": "system.user.admin", "ownerGroup": "system.group.administrator" } } }
Nach dem Ende schickt das Blockly eine Telegram Info mit dem verbrauchten Strom.
-
@mading und wieso erstellst du den Datenpunkt nicht automatisch direkt per Skript damit?
-
@xenon bin ich nicht auf die Idee gekommen.
Du meinst das Blockly zur Verfügung stellen und damit die Datenpunkte erstellen zu lassen? Ich müsste ja ggf prüfen ob die schon existieren. Hast du mal ein Beispiel?habs gefunden, danke für den Tipp!