Hallo zusammen,
ich frage mittels Zwischenstecker über die Wattzahl den Status der Waschmaschine ab.
Habe von @Kuddel die Vorlage genommen.
Unsere Waschmaschine macht folgendes.
Sie wäscht (schon mal gut) und wenn sie fertig ist, geht die Wattzahl unter 6W, wodurch Waschmaschine FERTIG gemeldet wird (Visulaisierung und Pushover). Nach weiteren ca. 5 Minuten geht die Maschine ganz aus und die Wattzahl auf 0W. Dadurch wird der Status auf AUS.
Dadurch wird in der Visualisierung nun nicht mehr fertig angezeigt, sondern AUS..... das ist ja nicht das was ich will.
Zudem möchte ich, dass Alexa mir in einer Schleife sagt, dass die Waschmaschine fertig ist, was sie aber ja auch nur macht solange der Status auf FERTIG steht. Da sie mich alle 20 Minuten erinnern soll, dass die Waschmaschine fertig ist, diese aber nach ca. 5 Minuten auf aus geht, klappt das auch nicht so wie ich möchte.
Habt ihr eine Lösungsmöglichkeit?
Folgende Skripte benutze ich.
Status der Waschmaschine erfassen
Spoiler
<xml xmlns="http://www.w3.org/1999/xhtml">
<variables>
<variable type="undefined" id="timeout5">timeout5</variable>
<variable type="undefined" id="timeout6">timeout6</variable>
<variable type="undefined" id="timeout8">timeout8</variable>
</variables>
<block type="comment" id="%/fO?o54s*ymA7Km#%)F" x="-162" y="0">
<field name="COMMENT">Waschmaschine</field>
<next>
<block type="on_ext" id="t?p*S^V.|_U%bu4nzg#b">
<mutation items="1"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="r=%`d)8J#`~F=d)D)It%">
<field name="oid">hm-rpc.2.0001D3C99C8A2F.6.POWER</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="comment" id="edo!;wzHwXS:?*l9#1!E">
<field name="COMMENT">Aus</field>
<next>
<block type="controls_if" id="#/T@V=cj:CM605*?P-=-">
<value name="IF0">
<block type="logic_operation" id="Ip+|o~.1NXh^-V~Cb/7i" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="-AT%-NTz+lsm@69f%tO,">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="6@i0D_1_sd71/@LL.^ux">
<field name="ATTR">val</field>
<field name="OID">javascript.0.haushalt.waschmaschine</field>
</block>
</value>
<value name="B">
<block type="math_number" id="jE=kAPXlX04TKX*v~{5:">
<field name="NUM">2</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="Z8eoLx4FkxgRUw%BU`)O">
<field name="OP">LT</field>
<value name="A">
<block type="get_value" id="]6fY81tDvx@[F2-DhMNK">
<field name="ATTR">val</field>
<field name="OID">hm-rpc.2.0001D3C99C8A2F.6.POWER</field>
</block>
</value>
<value name="B">
<block type="math_number" id="i?#s;+49:_Ir|Gw^]7Qi">
<field name="NUM">1</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="timeouts_settimeout" id="Sn3);x,^|h81;[noJvx*">
<field name="NAME">timeout5</field>
<field name="DELAY">1</field>
<field name="UNIT">min</field>
<statement name="STATEMENT">
<block type="controls_if" id="P^o+drD_6:;(AW[J~G?v">
<value name="IF0">
<block type="logic_operation" id="BCcYNZ*[U+D3T-0y+H*W" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id=".+OM1n##1dXg7zGJn}SG">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="9}|?eBH%Xp@j1DQgsRRR">
<field name="ATTR">val</field>
<field name="OID">javascript.0.haushalt.waschmaschine</field>
</block>
</value>
<value name="B">
<block type="math_number" id="Dr0B5Pd26q:){0Q`!x?j">
<field name="NUM">2</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="USk=iaavx:.x!?JlJEj[">
<field name="OP">LT</field>
<value name="A">
<block type="get_value" id="5nzJxy}hS+kY)fU=^7fr">
<field name="ATTR">val</field>
<field name="OID">hm-rpc.2.0001D3C99C8A2F.6.POWER</field>
</block>
</value>
<value name="B">
<block type="math_number" id="@s,BiJBuSxO9dFn8YZyv">
<field name="NUM">1</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="%%L=n^2{0:7/)z}.C2u=">
<mutation delay_input="false"></mutation>
<field name="OID">javascript.0.haushalt.waschmaschine</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="Cf@[aq`3ZYV?ODqBJ2k~">
<field name="NUM">0</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
</block>
</statement>
<next>
<block type="comment" id="NpnkG:/#7/i)asdNCq=i">
<field name="COMMENT">Läuft</field>
<next>
<block type="controls_if" id="`HeKvz0QIgn^4M1u?|d=">
<value name="IF0">
<block type="logic_operation" id="#mEA}iIl8fW/uBJFJ5#H" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="2xJ^ug]lL)tK6V5``O?A">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="ltxJ#fqX0zPy:2#@ylZk">
<field name="ATTR">val</field>
<field name="OID">javascript.0.haushalt.waschmaschine</field>
</block>
</value>
<value name="B">
<block type="math_number" id="J7R9bAgjbbLoHg,x@I,,">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_operation" id="nZ9!05+:V3;)*sA.rfnb" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="C=H+%e%Xuym@1[6N7cdo">
<field name="OP">NEQ</field>
<value name="A">
<block type="get_value" id="#MQ+%vzWz2n*pwKQ7zjG">
<field name="ATTR">val</field>
<field name="OID">javascript.0.haushalt.waschmaschine</field>
</block>
</value>
<value name="B">
<block type="math_number" id="w%^W}{.Vd_CMbiTfsTxT">
<field name="NUM">1</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="tMwGgSkCVzi[jWsjonH}">
<field name="OP">GT</field>
<value name="A">
<block type="get_value" id="r{iwjV48h#@=xSv2nM]$">
<field name="ATTR">val</field>
<field name="OID">hm-rpc.2.0001D3C99C8A2F.6.POWER</field>
</block>
</value>
<value name="B">
<block type="math_number" id="C}LJwLite!tS8bh8b5I{">
<field name="NUM">40</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="timeouts_settimeout" id="hs7YC!6,4?GO_ZXo[zpV">
<field name="NAME">timeout6</field>
<field name="DELAY">1</field>
<field name="UNIT">min</field>
<statement name="STATEMENT">
<block type="controls_if" id="d!Jaex]!%mM^iX3MiK`M">
<value name="IF0">
<block type="logic_operation" id="z:f3Y/L/({Wtz7.xNy::" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="KE#6?Kd[{~LS9DhLmg~G">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="x3ZbO,eVujt64m}Wbo(C">
<field name="ATTR">val</field>
<field name="OID">javascript.0.haushalt.waschmaschine</field>
</block>
</value>
<value name="B">
<block type="math_number" id="am-159|cC8Or4bS-ovrZ">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_operation" id="j=PPicl02Y2,9J9+=_ot" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="bde.7[aLSM8TnAV;lR:6">
<field name="OP">NEQ</field>
<value name="A">
<block type="get_value" id="8t/0`3SICFy.hXr`v+PA">
<field name="ATTR">val</field>
<field name="OID">javascript.0.haushalt.waschmaschine</field>
</block>
</value>
<value name="B">
<block type="math_number" id="W64]sOk`vi]i3[6;ivA|">
<field name="NUM">1</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="(v4h)bcO+M)hs)svF@G-">
<field name="OP">GT</field>
<value name="A">
<block type="get_value" id="uaN;;0t@7_K|F;n%K)R2">
<field name="ATTR">val</field>
<field name="OID">hm-rpc.2.0001D3C99C8A2F.6.POWER</field>
</block>
</value>
<value name="B">
<block type="math_number" id="od/W]xloH_YI6)QBwHZR">
<field name="NUM">40</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="^SoUcDAIkRA6H_))0t[M">
<mutation delay_input="false"></mutation>
<field name="OID">javascript.0.haushalt.waschmaschine</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="hLK.Mi+D(|3~zVmev0r,">
<field name="NUM">1</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
</block>
</statement>
<next>
<block type="comment" id="e}PXn[vl(5M^^zeA5;[f">
<field name="COMMENT">Fertig</field>
<next>
<block type="controls_if" id="[qM;3j7sS(RQ(i2~ky6o">
<value name="IF0">
<block type="logic_operation" id=";Zm@qj)`O@3%e(6D6rr]" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="2V-Ryl,RFGK#_~p?T-+n">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="gpj=jWdY@Xy+ruYYR4T%">
<field name="ATTR">val</field>
<field name="OID">javascript.0.haushalt.waschmaschine</field>
</block>
</value>
<value name="B">
<block type="math_number" id="O,-7md7*(0[OSVj;R5XB">
<field name="NUM">1</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_operation" id="SS^TtttBy2j{w,P@bKQ_" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="8~4,6j!kJzOB.Q8_(Tlg">
<field name="OP">LT</field>
<value name="A">
<block type="get_value" id="*a;_l.M!PePbr(TD/O|.">
<field name="ATTR">val</field>
<field name="OID">hm-rpc.2.0001D3C99C8A2F.6.POWER</field>
</block>
</value>
<value name="B">
<block type="math_number" id="be3K)6oc,w.MM[=,g[a{">
<field name="NUM">6</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="m92DN,y4KNg|M,(:*QY%">
<field name="OP">GT</field>
<value name="A">
<block type="get_value" id="sw[rRdJuE)MXWGE6hFYw">
<field name="ATTR">val</field>
<field name="OID">hm-rpc.2.0001D3C99C8A2F.6.POWER</field>
</block>
</value>
<value name="B">
<block type="math_number" id="ue;Q)ROkIoaQf:P%,YcM">
<field name="NUM">0.5</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="timeouts_settimeout" id="gzUCEu)F6eowIv3T2F:_">
<field name="NAME">timeout8</field>
<field name="DELAY">10</field>
<field name="UNIT">sec</field>
<statement name="STATEMENT">
<block type="controls_if" id="F1E~(}AQoBDMS_#Dn?Rz">
<value name="IF0">
<block type="logic_operation" id="_k{D]]Ni2/Y@,B;`sq^M" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="{4l%e]diJ0zuE#req-r6">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="T5J}ZIaW1~22AWd[!8D#">
<field name="ATTR">val</field>
<field name="OID">javascript.0.haushalt.waschmaschine</field>
</block>
</value>
<value name="B">
<block type="math_number" id="OB7|JbMc!.!:=aj[zaW3">
<field name="NUM">1</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_operation" id="Ry-TCn;}vXy+7c#w/NBL" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="nV:uVB8TqyvHS:#oYUp(">
<field name="OP">LT</field>
<value name="A">
<block type="get_value" id="-3f!~xu3_tGJ:$2R,8[E">
<field name="ATTR">val</field>
<field name="OID">hm-rpc.2.0001D3C99C8A2F.6.POWER</field>
</block>
</value>
<value name="B">
<block type="math_number" id="RFK+FUzpGkg[`%{cA|/^">
<field name="NUM">6</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="!(RC[,vCtLIx/J0DEuNr">
<field name="OP">GT</field>
<value name="A">
<block type="get_value" id="FCyMYiK;eOvcGmVr=2~G">
<field name="ATTR">val</field>
<field name="OID">hm-rpc.2.0001D3C99C8A2F.6.POWER</field>
</block>
</value>
<value name="B">
<block type="math_number" id="WRq@kdIxireRQhdV3(S3">
<field name="NUM">0.5</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="#bdEfk1:S1tK5e6UbSs)">
<mutation delay_input="false"></mutation>
<field name="OID">javascript.0.haushalt.waschmaschine</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id="[}h.p3Hr/I|Q/TO@c=p[">
<field name="NUM">2</field>
</block>
</value>
<next>
<block type="pushover" id="=nw{9d3f/=zKQ-P,/NCU">
<field name="INSTANCE"></field>
<field name="SOUND"></field>
<field name="PRIORITY">0</field>
<field name="LOG"></field>
<value name="MESSAGE">
<shadow type="text" id="fe`$(z3s$.tw5xsDjYb6">
<field name="TEXT">Die Waschmaschine ist fertig</field>
</shadow>
</value>
<value name="TITLE">
<block type="text_join" id="}4]4zrJ@f2IRnm2ozW0`">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="text_join" id="t@^TZ%qf=7;Ln6p}4C-;">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="text" id="v6u]XC^.*QJt5pgv}n*9">
<field name="TEXT">+++ </field>
</block>
</value>
<value name="ADD1">
<block type="time_get" id="NLqi/.F|NNzxN#%tY[WZ">
<mutation format="false" language="false"></mutation>
<field name="OPTION">hh:mm</field>
</block>
</value>
</block>
</value>
<value name="ADD1">
<block type="text" id="piGpM7W+Y!Go~9ZQhOgb">
<field name="TEXT"> Uhr - Die Waschmaschine ist fertig +++</field>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</xml>
Alexa Ansage dass die Waschmaschine fertig ist.
Spoiler
<xml xmlns="http://www.w3.org/1999/xhtml">
<variables>
<variable type="undefined" id="Schleife2">Schleife2</variable>
</variables>
<block type="on_ext" id="3]!c5h%~pd}hpzGNfd-X" x="-463" y="2275">
<mutation items="1"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="[)`P=P|aY7pQ):z*#)vW">
<field name="oid">javascript.0.haushalt.waschmaschine</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="NuD6zstq,(S0~FhjA}}~">
<value name="IF0">
<block type="logic_compare" id=".C5TF8FIiHxoe~U2[1gP">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="HvpA+E.rM9y]3d=JCQ95">
<field name="ATTR">val</field>
<field name="OID">javascript.0.haushalt.waschmaschine</field>
</block>
</value>
<value name="B">
<block type="math_number" id="p-K~xD7FH6D]Mw@dF2;h">
<field name="NUM">2</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="U5XBG(|WYDQ(xh;Ch:h1">
<mutation delay_input="false"></mutation>
<field name="OID">javascript.0.echo.sprachausgabe_alle_geraete</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="#coNP@GvuQPVh@Koi{pU">
<field name="TEXT">Die Waschmaschine ist fertig</field>
</block>
</value>
</block>
</statement>
<next>
<block type="comment" id="Lyp17td,hE3S[O*1lvlC">
<field name="COMMENT">Benachrichtigung alle 10 Minuten</field>
<next>
<block type="timeouts_setinterval" id="Pu|P%/jx[Y=/tPby5)z^">
<field name="NAME">Schleife2</field>
<field name="INTERVAL">15</field>
<field name="UNIT">sec</field>
<statement name="STATEMENT">
<block type="controls_if" id="=1)BQ+#tv5L7rX/E#}=P">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="qi%)lm~ttl|Am-(1L{xW">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="EU~r*wUJZv%1u^+HMdUf">
<field name="ATTR">val</field>
<field name="OID">javascript.0.haushalt.waschmaschine</field>
</block>
</value>
<value name="B">
<block type="math_number" id="@nK`)k3tK%U}.QIXs*R_">
<field name="NUM">2</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="g[`J:svS@s{:-c]IdR=#">
<mutation delay_input="false"></mutation>
<field name="OID">javascript.0.echo.sprachausgabe_alle_geraete</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="oWE+bVlvt4b(}12P.l;u">
<field name="TEXT">Die Waschmaschine ist fertig</field>
</block>
</value>
</block>
</statement>
<statement name="ELSE">
<block type="timeouts_clearinterval" id="c4z,RxcE8xBYxw]oVwgv">
<field name="NAME">Schleife2</field>
</block>
</statement>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</xml>