NEWS
falls wert länger als 2 minuten immer <x, dann...?
-
Hallo, ich möchte eine "Trockner fertig"-Meldung aus blockly bekommen. Als hardware nutze ich eine gosund SP111 mit tasmota, die tele period ist auf 10sek. Das Problem bei meinem Trockner ist, dass der nachdem Ende der Heizphase noch ca. 20 Minuten (ggf. bei versch. Programmen unterschiedlich, daher wird ein einfacher timer 20 Minuten nicht helfen) nachdreht. Er verbraucht dann kurzzeitig fuer einige sekunden nochmal ca 70 watt und fährt dann wieder auf 3 watt runter.
Wie kann ich einen Wert beobachten, sodass ich eine Aktion ausführen kann, wenn er 2 Minuten im Schnitt unter bspw. 5 Watt bleibt? Dann müsste er ja fertig sein...
Danke und VG
-
Hallo @chrbo80 ich denke du hast noch nicht wirklich im Forum nach einer Lösung gesucht oder ?
Es hatten einige schon das Problem und es wurden auch Lösungen dafür gefunden. Naja egal, hier meine Lösung wie ich es gemacht habe
vielleicht hilft es dir ja.
<xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="" id="Hhe!Hg(xh7gHuy(6hLlx">Trock_EinAus</variable> <variable type="undefined" id="FertigmeldungVerzoegerung">FertigmeldungVerzoegerung</variable> <variable type="undefined" id="StartVerzoegerung">StartVerzoegerung</variable> <variable type="undefined" id="NachrichtenVerzoegerung">NachrichtenVerzoegerung</variable> </variables> <block type="variables_set" id="i@;~wXOo)(5+=$*9v:QF" x="13" y="13"> <field name="VAR" id="Hhe!Hg(xh7gHuy(6hLlx" variabletype="">Trock_EinAus</field> <value name="VALUE"> <block type="logic_boolean" id="stD7DD67D[4(YSQ3dCvR"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="on_ext" id="%l??Ns0%ZOhlZQJn)RIY"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="8p+iN2CjzC1M$2o|Xq=m"> <field name="oid">sonoff.0.Trockner_ELW.ENERGY_Power</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="-4y,4m5H6`8[U,UjJH(0"> <mutation elseif="2"></mutation> <value name="IF0"> <block type="logic_operation" id="-^U__L=#GGG_LD~6o~hg" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="-%Kg)H+S;{}Yyd@cqe=l"> <field name="OP">GTE</field> <value name="A"> <block type="on_source" id="QS5)==Ahwtfe.nNTl`R@"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="OT1x**T)z3hCtGxhqDDI"> <field name="NUM">20</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id=",LW+*+gUB/lbO[yiNJdv"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="[$/1md}o9xogfLp*!}WA"> <field name="VAR" id="Hhe!Hg(xh7gHuy(6hLlx" variabletype="">Trock_EinAus</field> </block> </value> <value name="B"> <block type="logic_boolean" id="V}KP*,b;J,.3q802Q0l^"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_cleartimeout" id="laUF=|SGs2?}FUM0j;0)"> <field name="NAME">FertigmeldungVerzoegerung</field> <next> <block type="timeouts_cleartimeout" id="bO:wacDo{]WC5((f7}9D"> <field name="NAME">NachrichtenVerzoegerung</field> <next> <block type="timeouts_settimeout" id="6^;4`*T*|r$/Y16(c9%$"> <field name="NAME">StartVerzoegerung</field> <field name="DELAY">5</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="variables_set" id="HHIFm}6:*U#VVrIRv7e|"> <field name="VAR" id="Hhe!Hg(xh7gHuy(6hLlx" variabletype="">Trock_EinAus</field> <value name="VALUE"> <block type="logic_boolean" id="%.`!o$LmcZOm0##5WWoJ"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="debug" id="r!Pj9gzogWR.Y-vO^U?J"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="3K0c5WSS9VmMq/XFB(e9"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="{~8C=QHMEVjkXMso6aag"> <mutation items="5"></mutation> <value name="ADD0"> <block type="text" id="oTwylbN3YN?w8d}_EN+s"> <field name="TEXT">Status Trockner Ein/Aus ist: </field> </block> </value> <value name="ADD1"> <block type="variables_get" id="eVLlAQJbf-Yl)q9s7P@2"> <field name="VAR" id="Hhe!Hg(xh7gHuy(6hLlx" variabletype="">Trock_EinAus</field> </block> </value> <value name="ADD2"> <block type="variables_get" id="=-X|maU#n;SIbMbK+pL)"> <field name="VAR" id="StartVerzoegerung" variabletype="undefined">StartVerzoegerung</field> </block> </value> <value name="ADD3"> <block type="variables_get" id="ez%AMPkIhabN$4FRJJCi"> <field name="VAR" id="NachrichtenVerzoegerung" variabletype="undefined">NachrichtenVerzoegerung</field> </block> </value> <value name="ADD4"> <block type="variables_get" id="b[rxt,m[k6Eqe}@BsB#{"> <field name="VAR" id="FertigmeldungVerzoegerung" variabletype="undefined">FertigmeldungVerzoegerung</field> </block> </value> </block> </value> <next> <block type="timeouts_cleartimeout" id="5(V/I$Ac}V5+/soMneAi"> <field name="NAME">StartVerzoegerung</field> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_operation" id="[:7QWv4Op8S6o@lG45(y" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="igy_8vlVI|k$sL-O!_Ya"> <field name="OP">LTE</field> <value name="A"> <block type="on_source" id="oKi^o%$Qa%i0^MVE?s)Y"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="*bx}yjZ_C7J2#/$NzLoS"> <field name="NUM">5</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="}A,!m2TVXL.^LQWg%!e|"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="r/rnzWL?1!/.2!+pr@5("> <field name="VAR" id="Hhe!Hg(xh7gHuy(6hLlx" variabletype="">Trock_EinAus</field> </block> </value> <value name="B"> <block type="logic_boolean" id="S,c^%F*KOd(.(Q(BL!=g"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="variables_set" id="I^]%!o8SXT@:E(mSiAwS"> <field name="VAR" id="Hhe!Hg(xh7gHuy(6hLlx" variabletype="">Trock_EinAus</field> <value name="VALUE"> <block type="logic_boolean" id="Da#M^58;afHwC$myW+M5"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="timeouts_settimeout" id="hO_]^k:tP^`=U(Ocl6DX"> <field name="NAME">FertigmeldungVerzoegerung</field> <field name="DELAY">10</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="debug" id="S`::q*9h5w-tCSEd6|lq"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="3K0c5WSS9VmMq/XFB(e9"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="6.nO*aizF9W03IA~;5T5"> <mutation items="5"></mutation> <value name="ADD0"> <block type="text" id="X4A.{,%QmektR63+7PN("> <field name="TEXT">Status Trockner Ein/Aus ist: </field> </block> </value> <value name="ADD1"> <block type="variables_get" id="or2??nJ#v6OU%jffbG*B"> <field name="VAR" id="Hhe!Hg(xh7gHuy(6hLlx" variabletype="">Trock_EinAus</field> </block> </value> <value name="ADD2"> <block type="variables_get" id="|si`**{rtqJkg3]EK1Lz"> <field name="VAR" id="StartVerzoegerung" variabletype="undefined">StartVerzoegerung</field> </block> </value> <value name="ADD3"> <block type="variables_get" id=".s+8hbl|Jx$i!NxzkjsQ"> <field name="VAR" id="NachrichtenVerzoegerung" variabletype="undefined">NachrichtenVerzoegerung</field> </block> </value> <value name="ADD4"> <block type="variables_get" id="%JhiwcOV.qREkCx)#;CR"> <field name="VAR" id="FertigmeldungVerzoegerung" variabletype="undefined">FertigmeldungVerzoegerung</field> </block> </value> </block> </value> <next> <block type="timeouts_settimeout" id=",NjGW@Wtt+n7RKNkcxK!"> <field name="NAME">NachrichtenVerzoegerung</field> <field name="DELAY">5</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="telegram" id=":)Sqh|eio_J%+h7Q@6nJ"> <field name="INSTANCE">.1</field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <value name="MESSAGE"> <shadow type="text" id="zaE.r=+WylppU_4Nmdx~"> <field name="TEXT">Waschmaschine ist fertig</field> </shadow> <block type="text_join" id="3,~.TJZeugM.!B%S1^X}"> <mutation items="11"></mutation> <value name="ADD0"> <block type="text" id="|9?4%ic*sy2}Q088ry:q"> <field name="TEXT">Der Trockner ist Fertig.</field> </block> </value> <value name="ADD1"> <block type="text_newline" id="EO[|#KkG(UZ_Q@0Ux+$f"> <field name="Type">\n</field> </block> </value> <value name="ADD2"> <block type="text" id="sP^`O9u1ZxRqSGmf!Noo"> <field name="TEXT">Kosten für das heutige Trocknen: </field> </block> </value> <value name="ADD3"> <block type="text_newline" id="N99Ago-UZV/oxXtt}|x#"> <field name="Type">\n</field> </block> </value> <value name="ADD4"> <block type="get_value" id="HItAts3rY1}0W)95zk/."> <field name="ATTR">val</field> <field name="OID">sourceanalytix.0.sonoff__0__Trockner_ELW__ENERGY_Power.cost.01_current_day</field> </block> </value> <value name="ADD5"> <block type="text" id="=NF,ko`;}M,}:!gw$SGe"> <field name="TEXT"> €</field> </block> </value> <value name="ADD6"> <block type="text_newline" id="QY+M;t#W:DA):b|j5hgM"> <field name="Type">\n</field> </block> </value> <value name="ADD7"> <block type="text" id="tg2ber`862l~^ZY.sxF^"> <field name="TEXT">Kosten gesamt: </field> </block> </value> <value name="ADD8"> <block type="text_newline" id="u2{wooqX:R9tP@wjB!(w"> <field name="Type">\n</field> </block> </value> <value name="ADD9"> <block type="get_value" id="a7aF)`D9Rnd7LuqgakD("> <field name="ATTR">val</field> <field name="OID">sourceanalytix.0.sonoff__0__Trockner_ELW__ENERGY_Power.cost.05_current_year</field> </block> </value> <value name="ADD10"> <block type="text" id="o|$!O_9qTL;9]!75#RiV"> <field name="TEXT"> €</field> </block> </value> </block> </value> </block> </statement> </block> </next> </block> </statement> </block> </next> </block> </statement> <value name="IF2"> <block type="logic_operation" id="nkKhH]g|*pH8?4o`dk:{" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="7Mqp;)C||OP5PQUd:a$h"> <field name="OP">LT</field> <value name="A"> <block type="on_source" id="fsPDye-)^WZnO={;hINt"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="$fo/s(rSIS:N9w)a|8H|"> <field name="NUM">4</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="|6/uha3eJO-roN7i}[~,"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="@W4eT4d@3@T:3n]i4za*"> <field name="VAR" id="Hhe!Hg(xh7gHuy(6hLlx" variabletype="">Trock_EinAus</field> </block> </value> <value name="B"> <block type="logic_boolean" id="pX*n`nZNU_^]e-n6kQMl"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <statement name="DO2"> <block type="timeouts_cleartimeout" id="KdA;j0kX,Ws@luiz)4_f"> <field name="NAME">StartVerzoegerung</field> </block> </statement> </block> </statement> </block> </next> </block> </xml>
-
@Amnesia1211 Hi, ich hatte schon gesucht und sogar ein Script für meine Waschmaschine gefunden, wo nur die Einschaltverzögerung und die Fertigmeldungsverzögerung gefehlt hat. Mein Fehler, dass ich nicht nochmal weitergesucht habe.
Dank Dir für das Script - ich stelle gleich mal den Trockner an
-
@chrbo80
Hoffe es hat geklappt, kein Problem.