NEWS
IKEA Starkvind Luftreiniger über deconz-Adapter steuern?
Hardware
21
Beiträge
6
Kommentatoren
2.5k
Aufrufe
6
Watching
-
Ich kann ein Zwischenfazit ziehen.
Der Luftfilter wurde an die Wand montiert.

Nun habe ich aktuell folgendes Script am testen. Es schaut bei voller und halber Stunde nach, ob jemand schon 30 Minuten die Wohnung verlassen hat.
Falls ja, so wird der Luftfilter aktiviert.
Beim betreuten der Wohnung, wird dieser sofort deaktiviert und es soll noch angezeigt werden, wie lange dieser an war. Aber das funktioniert noch nicht richtig.


-
Was ich noch will, ist das der am Tag nur 3 Std läuft und dann für den tag nicht wieder angeht. Somit hat er seine Aufgabe am Tag erledigt. (Sonst würde der im Urlaub Tage durchlaufen)
-
Ich will noch die genaue Laufzeit des Luftfilters richtig ermitteln.
Und hier der aktuelle (noch fehlerhafte und unvollständige) Code:
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="cs9rYt6z(VqNeQw/iQbF">Ist30MinutenAbwesend</variable> </variables> <block type="comment" id="`=Ad?,n{L^]K0L)gRtWo" x="362" y="213"> <field name="COMMENT">Alle 30 Minuten schauen ob jemand 30 Minuten weg ist und dann den Luftfilter aktivieren</field> <next> <block type="variables_set" id="g3)3vQkT(t3X-iE/=/vQ"> <field name="VAR" id="cs9rYt6z(VqNeQw/iQbF">Ist30MinutenAbwesend</field> <value name="VALUE"> <block type="logic_boolean" id="wCri-X,;2+cCY?lrp:a3"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="schedule" id="9/xG3*?L6wBkI6EP31-o"> <field name="SCHEDULE">*/30 * * * *</field> <statement name="STATEMENT"> <block type="controls_if" id="(k|2q~=!E_gxfQRIHn8H"> <value name="IF0"> <block type="logic_negate" id="?9Wna)lvq/}|RI##zjSF"> <value name="BOOL"> <block type="get_value" id="MSC8XJ*,c#$E+,uPV/_j"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.AnwesenheitPaul</field> </block> </value> </block> </value> <statement name="DO0"> <block type="controls_if" id="nKK+yQ9..6qBF32^63W0"> <value name="IF0"> <block type="procedures_callreturn" id="kPL|mZ0z#ZxTWb,1f{@2"> <mutation name="Ist30MinAbwesend"></mutation> </block> </value> <statement name="DO0"> <block type="control" id="j*L1gx(;3G,H:}VT%)-t"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">deconz.0.Sensors.21.mode</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="Yb5QQ-{s/bGEFot!Z69J"> <field name="TEXT">"speed_1"</field> </block> </value> </block> </statement> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> <block type="procedures_defreturn" id="m/3x*_pkW0WN!+z_$CTK" x="763" y="438"> <field name="NAME">Ist30MinAbwesend</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> <statement name="STACK"> <block type="controls_if" id="}cS-qHDmHZYd@C`K?m9_"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="eIdm([K#E1p}-iqd?3Tz"> <field name="OP">LT</field> <value name="A"> <block type="math_arithmetic" id="%1WO6BQ5KtDV@/iK)t@."> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id=";`v#%ptipW9T|bw.7GU4"> <field name="NUM">1</field> </shadow> <block type="time_get" id="RteQAj08ZceYbdiXY5%W"> <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="/KB7q3:op+Gnjj/O-69w"> <field name="NUM">30</field> </shadow> <block type="math_arithmetic" id="imQC?T!n$:$`h$._|cqg"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number"> <field name="NUM">30</field> </shadow> <block type="math_number" id="ECr(|Ou?-%DMt_KI6R}6"> <field name="NUM">1800</field> </block> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="math_number" id="}dr_ct[CyjyDA=x]2SM7"> <field name="NUM">1000</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="get_value" id="9Zi*9-LCVGU75l?@Ia*T"> <field name="ATTR">lc</field> <field name="OID">0_userdata.0.AnwesenheitPaul</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="YIrQ?OO1ACeJRKg|h-_K"> <field name="VAR" id="cs9rYt6z(VqNeQw/iQbF">Ist30MinutenAbwesend</field> <value name="VALUE"> <block type="logic_boolean" id=";4]Ig0r0wJe?[~jr@!1T"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <statement name="ELSE"> <block type="variables_set" id="V~$Wme^nj;Bz/6vpd@!}"> <field name="VAR" id="cs9rYt6z(VqNeQw/iQbF">Ist30MinutenAbwesend</field> <value name="VALUE"> <block type="logic_boolean" id="9XaPVmw)$(wl#x):*hhy"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </statement> <value name="RETURN"> <block type="variables_get" id="yp5Zx?@+3of]N#skEA+."> <field name="VAR" id="cs9rYt6z(VqNeQw/iQbF">Ist30MinutenAbwesend</field> </block> </value> </block> <block type="comment" id="mIRnn~WSxg/Zu1zZZpm|" x="363" y="487"> <field name="COMMENT">Wenn jemand kommt, sofort den Luftfilter deaktivieren und sagen wie lange er lief</field> <next> <block type="on" id="q5V`#?8_-+@!6{+2J?x~"> <field name="OID">0_userdata.0.AnwesenheitPaul</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="controls_if" id="=l,?M62.ZGy=cBs3.eP|"> <value name="IF0"> <block type="on_source" id="$z:oGOv@O=D?9zV!UM7:"> <field name="ATTR">state.val</field> </block> </value> <statement name="DO0"> <block type="telegram" id="O3HmN,AT0]8]g`}t})bW"> <field name="INSTANCE"></field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field> <value name="MESSAGE"> <shadow type="text" id="YyWG;US,:QP:iE#h2rgV"> <field name="TEXT">Der LuftFilter lief XX Minuten</field> </shadow> <block type="text_join" id="]^E/{fW#1HKmjd^GHW=O"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="u-?[S^^CC]|^7akz/p$O"> <field name="TEXT">Der LuftFilter lief XX Minuten</field> </block> </value> <value name="ADD1"> <block type="convert_from_date" id=",d@0vg$ghcOZCVz)C!+~"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">m</field> <value name="VALUE"> <block type="math_arithmetic" id="YEy^GjT+zc{?p;MWvL2%"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="time_get" id="R-h!u^,5Ui~@_7}Qr=vD"> <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"> <field name="NUM">1</field> </shadow> <block type="get_value" id="^6}emcid/rIAy4SWxk?,"> <field name="ATTR">lc</field> <field name="OID">deconz.0.Sensors.21.mode</field> </block> </value> </block> </value> </block> </value> </block> </value> <next> <block type="control" id="UzifK3eqmQ:w0e=9w-zJ"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">deconz.0.Sensors.21.mode</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="-3GDPytY]oZwt*EDaa$f"> <field name="TEXT">"off"</field> </block> </value> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </xml> -