NEWS
Ausnahme für automatische Rollladenschließung mit Astro
-
Ich habe ein einfaches Blockly Script für die Rollladenschließung am Abend.

Jedoch habe ich immer wieder das Problem, dass z.B. nach dem Duschen gelüftet wird und während dieser Zeit das Rollo nach dem Script geschlossen wird.
Wie könnte ich es umsetzten, dass eine Verzögerung für diesen Fall eingebaut wird und erst wenn die Tür wieder geschlossen wird auch direkt das Rollo geschlossen wird.
Auch im Sommer könnte dies hilfreich sein wenn ich auf dem Balkon sitze um nicht ausgesperrt zu werden.Danke im Voraus!
-
@labamba sagt: erst wenn die Tür wieder geschlossen wird auch direkt das Rollo geschlossen wird.
Vorschlag:

@paul53
Ein kleiner Korrekturvorschlag, wenn du mit NACHT als Zeit schalten möchtest.
Eine gute Erklärung dazu findest du in dem Video von verdrahtet.info: https://www.youtube.com/watch?v=1PeOCroecMk
-
@paul53
Ein kleiner Korrekturvorschlag, wenn du mit NACHT als Zeit schalten möchtest.
Eine gute Erklärung dazu findest du in dem Video von verdrahtet.info: https://www.youtube.com/watch?v=1PeOCroecMk
-
@burg_io sagte: Ein kleiner Korrekturvorschlag
Ich bin davon ausgegangen, dass nach Mitternacht nicht mehr gelüftet wird.
-
@labamba sagt: erst wenn die Tür wieder geschlossen wird auch direkt das Rollo geschlossen wird.
Vorschlag:

-
Ich habe ein seperates Blockly für die Erinnerung über Alexa zum schließen des Fensters. Das schaut ähnlich wie der Anfang von deinem Skript aus.
Ich wollte eigentlich nur irgendwie vermeiden, dass die Austrosteuerung genau das Fenster zufährt wenn ich lüfte.Könntest du trotzdem mal dein Blockly zur Verfügung stellen? Ich will es mir mal genauer anschauen.
In der Rollladenbehandlung steckt noch mehr hier ist der komplette Export.
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="F{J+C6xaNec$,z|Tt9}.">DuscheALT</variable> <variable type="timeout" id="timeout">timeout</variable> <variable id="u9`?VY/|%F2U=id4T-SB">Warnung</variable> <variable type="timeout" id="FensterOffenDusche">FensterOffenDusche</variable> <variable id="Os;2~eIWa!Q#(;Y7`pa?">Ziel</variable> <variable type="interval" id="LangDuscheOffen">LangDuscheOffen</variable> </variables> <block type="on_ext" id="z/a_vo%*^RMMM5cV,%t!" x="-337" y="-788"> <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="oEsrexV{wQiFvoz#(fAA"> <field name="oid">hm-rpc.4.001098A991690E.1.STATE</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="{Fv=EBlIkO7sKxkb[b6z"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="GkPf!_*axy8GJq020*ed"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="+DO9SZ]%;h6d#,pxOqg+"> <field name="ATTR">val</field> <field name="OID">hm-rpc.4.001098A991690E.1.STATE</field> </block> </value> <value name="B"> <block type="math_number" id="IS9-dXO6NLF1_l,MJjHX"> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id=",Tv~q)D]=h6Z%cbufj?w"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Rollladen.LüftenDusche</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id=".q6h43S8~0woM4LxP5r~"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="=0FoRDE7,s8F~.^aii`k"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Sprech_TAB_All</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="]x+d{g@8eM5L^ZaZQ35G"> <field name="TEXT">Fenster Dusche geschlossen!</field> </block> </value> <next> <block type="control" id="n}b|h9g`HA~,,#Pfgd^P"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Sprech_Alexa_Dusche</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="po%}fxFrs0-MK(a#{iMv"> <field name="TEXT">Fenster Dusche geschlossen!</field> </block> </value> </block> </next> </block> </next> </block> </statement> <statement name="ELSE"> <block type="control" id="fvQ0iSWp3EE9PLH~jcAG"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Rollladen.LüftenDusche</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="I6%J7xCHaZg|[hCYrH6!"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="KQ(PWyzaI`/KO6E[biy*"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Sprech_TAB_All</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="3#a[:r7C/:#[R6:5ylf/"> <field name="TEXT">Fenster Dusche geöffnet!</field> </block> </value> <next> <block type="control" id="qUA7S?K;-RJ4jm7U21EW"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Sprech_Alexa_Dusche</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="t!kLAI17}#wxMyJ=p,0x"> <field name="TEXT">Fenster Dusche geöffnet!</field> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </statement> <next> <block type="variables_set" id="{I[P)9}LWN|zr{;Z3K^n"> <field name="VAR" id="F{J+C6xaNec$,z|Tt9}.">DuscheALT</field> <value name="VALUE"> <block type="math_number" id="I8`^i_?CCd}WbT@3Z[U%"> <field name="NUM">-1</field> </block> </value> <next> <block type="on_ext" id="%/hImn%x823;Th/RuR,N"> <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="yO?0/tsWMFvQ5)T*?lT_"> <field name="oid">javascript.0.Rollladen.LüftenDusche</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="9{j?}B;DMss(q-@*Rv8%"> <mutation else="1"></mutation> <value name="IF0"> <block type="on_source" id="JDxdAUpWj9(19F;XKDZm"> <field name="ATTR">state.val</field> </block> </value> <statement name="DO0"> <block type="timeouts_cleartimeout" id="_eT5[apd,64WC%Kii3e3"> <field name="NAME">FensterOffenDusche</field> <next> <block type="timeouts_clearinterval" id="Wa+G9EW3,!:ZSN}DFEG#"> <field name="NAME">LangDuscheOffen</field> <next> <block type="timeouts_settimeout" id="0JFuoZQHkO,{/,vz=o7c"> <field name="NAME">FensterOffenDusche</field> <field name="DELAY">7</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="control" id="+gJu{*E6t}3x1AU5CwS8"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Rollladen.LüftenDuscheLang</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id=":P(/d5D4I%jAztxAe*[f"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </statement> <statement name="ELSE"> <block type="timeouts_clearinterval" id="h}E_[zeg*Q%.g_rxmB?G"> <field name="NAME">LangDuscheOffen</field> <next> <block type="timeouts_cleartimeout" id="VYh4zz4eV%gBIiBL[|qt"> <field name="NAME">FensterOffenDusche</field> <next> <block type="control" id="Q-UV]?B|Yi-YBJhch8YQ"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Rollladen.LüftenDuscheLang</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="AbxOmXdQt3s#BlPB[3Q~"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </statement> <next> <block type="controls_if" id="~rrugqr4Au[jXA;nhrtG"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="on_source" id="~ff_l/oQJ~$CGykH[$=^"> <field name="ATTR">state.val</field> </block> </value> <statement name="DO0"> <block type="variables_set" id="I4-{D7@K;tMck-)iRw?+"> <field name="VAR" id="F{J+C6xaNec$,z|Tt9}.">DuscheALT</field> <value name="VALUE"> <block type="get_value" id="7dY==@,vT,zpPau0w7Vz"> <field name="ATTR">val</field> <field name="OID">hm-rpc.4.001117099DBF1A.3.LEVEL</field> </block> </value> <next> <block type="controls_if" id="`}r;e+d03zo+(rUpF9QL"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="kUnSX`2BPRC#NbNsHri-"> <field name="OP">LT</field> <value name="A"> <block type="variables_get" id="%VG]}}!SYfBNz9vPsAjA"> <field name="VAR" id="F{J+C6xaNec$,z|Tt9}.">DuscheALT</field> </block> </value> <value name="B"> <block type="math_number" id="rO_1BIqTwn%0M,vyfkjq"> <field name="NUM">95</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="%[8SMv0(C[J$t.D$$_Ab"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">javascript.0.Sprech_TAB_All</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">3000</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="text" id="?K,.hyGc:j*-TirXeTJn"> <field name="TEXT">Fahre Rollladen hoch.</field> </block> </value> <next> <block type="control" id="wer9Mx9VHVKUE5iFLg4@"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">javascript.0.Sprech_Alexa_Dusche</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">3000</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="text" id="vVq$$v$ChFn~2mu9A4p6"> <field name="TEXT">Fahre Rollladen hoch.</field> </block> </value> <next> <block type="control" id="AzYd3HH(J[n^/a,dDd1("> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">hm-rpc.4.001117099DBF1A.4.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="@4u/OMfi4}TjdOmcr7YX"> <field name="NUM">100</field> </block> </value> </block> </next> </block> </next> </block> </statement> <statement name="ELSE"> <block type="variables_set" id="X;N!Q34IaAyKM4G{%NVi"> <field name="VAR" id="F{J+C6xaNec$,z|Tt9}.">DuscheALT</field> <value name="VALUE"> <block type="math_number" id="9?f5PeinnY|1(b@KP:9y"> <field name="NUM">-1</field> </block> </value> </block> </statement> <next> <block type="control" id=",A?Zue|,[yf1)=]6$m2S"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Rollladen.DuscheALT</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="PUSA{+~Jv8(UpMzn^Tji"> <field name="VAR" id="F{J+C6xaNec$,z|Tt9}.">DuscheALT</field> </block> </value> </block> </next> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_compare" id=",{+,f?bYZa`Ule=_(*/*"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="]9;H~X[tdts/;fzUZuy?"> <field name="ATTR">val</field> <field name="OID">javascript.0.Rollladen.DuscheALT</field> </block> </value> <value name="B"> <block type="math_number" id=")/!-Wd:lu8/}N6nnXv@w"> <field name="NUM">-1</field> </block> </value> </block> </value> <statement name="DO1"> <block type="variables_set" id="rX^XsPre`M~R)(xl3}R8"> <field name="VAR" id="F{J+C6xaNec$,z|Tt9}.">DuscheALT</field> <value name="VALUE"> <block type="get_value" id="EZC,{kt.ZR}BJdzQzg$C"> <field name="ATTR">val</field> <field name="OID">javascript.0.Rollladen.DuscheALT</field> </block> </value> <next> <block type="control" id="f;i@W5~(zVX:[?P8r4c@"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">javascript.0.Sprech_TAB_All</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">3000</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="text_join" id="%rH)780pNtUv0MeD}Oe2"> <mutation items="3"></mutation> <value name="ADD0"> <block type="text" id="k4|7aMitF5HGw_Q?5}Md"> <field name="TEXT">Fahre Rollladen auf </field> </block> </value> <value name="ADD1"> <block type="variables_get" id="Z(h$`S^cMb@Au/6,@Ka2"> <field name="VAR" id="F{J+C6xaNec$,z|Tt9}.">DuscheALT</field> </block> </value> <value name="ADD2"> <block type="text" id="ocEwJgi![I_aBZ!7)HL~"> <field name="TEXT"> Prozent.</field> </block> </value> </block> </value> <next> <block type="control" id="7z,9s?uz,=tyR/Exc5|1"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">javascript.0.Sprech_Alexa_Dusche</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">3000</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="text_join" id="5adSnT4;CNwa8F.odW($"> <mutation items="3"></mutation> <value name="ADD0"> <block type="text" id="N#;d6`7KsD_DhBzlU2M,"> <field name="TEXT">Fahre Rollladen auf </field> </block> </value> <value name="ADD1"> <block type="variables_get" id="gUt[.ui,cafszwF2bH.F"> <field name="VAR" id="F{J+C6xaNec$,z|Tt9}.">DuscheALT</field> </block> </value> <value name="ADD2"> <block type="text" id="ri.Yy#*Y^9iXDiVyDG%B"> <field name="TEXT"> Prozent.</field> </block> </value> </block> </value> <next> <block type="control" id="qH|+)dnYcJ?K_^tkMcVf"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">hm-rpc.4.001117099DBF1A.4.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id=";vZhr+wSiBkYe%R*^]?-"> <field name="VAR" id="F{J+C6xaNec$,z|Tt9}.">DuscheALT</field> </block> </value> <next> <block type="variables_set" id="YFgzDhl@D.nG6F}:E,oQ"> <field name="VAR" id="F{J+C6xaNec$,z|Tt9}.">DuscheALT</field> <value name="VALUE"> <block type="math_number" id="g}Gee/7Q%9=E8}k`t~CV"> <field name="NUM">-1</field> </block> </value> <next> <block type="control" id=".|FMUvDLjmQeL,Y@}{)_"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Rollladen.DuscheALT</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="VSz~:n-8m,2|4SLV2|^!"> <field name="VAR" id="F{J+C6xaNec$,z|Tt9}.">DuscheALT</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </statement> <next> <block type="on_ext" id="3,q~+cskw%gWJCz2VbPW"> <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="nOsg+ZPj2]XnpF#if`U0"> <field name="oid">javascript.0.Rollladen.LüftenDuscheLang</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="x{R+}?X0jF8.Uw.^ren~"> <value name="IF0"> <block type="get_value" id="QAJctCM{AqFBblel^Yj_"> <field name="ATTR">val</field> <field name="OID">javascript.0.Temp5Uhr</field> </block> </value> <statement name="DO0"> <block type="controls_if" id="z?|~)2![:Zi4H4j_)7Ff"> <mutation else="1"></mutation> <value name="IF0"> <block type="on_source" id="_-=ce;.H=e|W(,LKCze~"> <field name="ATTR">state.val</field> </block> </value> <statement name="DO0"> <block type="control" id="=Ha)0m9d[YV:~f45(a:U"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Sprech_TAB_All</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="`s=:||~llDtd[,6%R~b^"> <field name="TEXT">Fenster Dusche seid 7 Minuten offen, bitte schließen!</field> </block> </value> <next> <block type="control" id="h2Ry=P8AJ/d^DDl5YgvT"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Sprech_Alexa_Dusche</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="|RZZZ|,8F3=^v791L*,U"> <field name="TEXT">Fenster Dusche seid 7 Minuten offen, bitte schließen!</field> </block> </value> <next> <block type="timeouts_clearinterval" id="6sbgcSgH0x_ef{88l$$-"> <field name="NAME">LangDuscheOffen</field> <next> <block type="timeouts_setinterval" id="F;Il4kjrp?ffqG3RvJqU"> <field name="NAME">LangDuscheOffen</field> <field name="INTERVAL">60</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="control" id="c}Wj-TzL]jOuNf_ob~1V"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Sprech_TAB_All</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="s}pB26P9Z0HASI0+Z(@F"> <field name="TEXT">Fenster Dusche noch geöffnet, bitte schließen!</field> </block> </value> <next> <block type="control" id="8.uB4PigTt0U%;DR.qXe"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Sprech_Alexa_Dusche</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="i6a6cjia2N]r53BiUKI="> <field name="TEXT">Fenster Dusche noch geöffnet, bitte schließen!</field> </block> </value> </block> </next> </block> </statement> <next> <block type="pushover" id="kquHK.J*5:[hD5V[0-e2"> <field name="INSTANCE"></field> <field name="SOUND">echo</field> <field name="PRIORITY">0</field> <field name="LOG"></field> <value name="MESSAGE"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="W_/dLQzZ!H/R0,G-3Gj2"> <field name="TEXT">Fenster Abstellraum seid 7 Minuten offen, </field> </shadow> <block type="text_join" id="vY@HpY9gvoEr3jZ5F,CQ"> <mutation items="3"></mutation> <value name="ADD0"> <block type="text" id=";E:9~a)KF]!Wgor}6#MK"> <field name="TEXT">Fenster Dusche seid 7 Minuten offen, </field> </block> </value> <value name="ADD1"> <block type="time_get" id="?L,N-aJRt(h(7_f38[dm"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">hh:mm:ss</field> </block> </value> <value name="ADD2"> <block type="text" id=")Y+.x:%3V*D#3@l~s@Ce"> <field name="TEXT"> Uhr.</field> </block> </value> </block> </value> <value name="TITLE"> <block type="text" id="(vo]RBjoso9xaiUo|lk7"> <field name="TEXT">Fenster Dusche auf</field> </block> </value> <next> <block type="variables_set" id="nG]*~oid~f9Fx|;Speu^"> <field name="VAR" id="u9`?VY/|%F2U=id4T-SB">Warnung</field> <value name="VALUE"> <block type="math_number" id=";6#JdzhK;tB~ZFtONOs]"> <field name="NUM">1</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <statement name="ELSE"> <block type="controls_if" id="B}Ym4b8k+ktfX`QVb_4t"> <value name="IF0"> <block type="logic_compare" id="qG=Q@`g)J05*+e`LM[46"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id=";FkD}=lxO|eF[QxrUvDT"> <field name="VAR" id="u9`?VY/|%F2U=id4T-SB">Warnung</field> </block> </value> <value name="B"> <block type="math_number" id="nrj1VdRvxXnKScNjFL+2"> <field name="NUM">1</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_clearinterval" id="HWr}~{bfh~AE2|m-]X_f"> <field name="NAME">LangDuscheOffen</field> <next> <block type="variables_set" id="!#4lmC;b;uPHp@US+(EK"> <field name="VAR" id="u9`?VY/|%F2U=id4T-SB">Warnung</field> <value name="VALUE"> <block type="math_number" id=":B!SeERZ|vZ5QkI]:i0T"> <field name="NUM">0</field> </block> </value> <next> <block type="pushover" id="KDMq3eh3.dq,Ic-DD5ov"> <field name="INSTANCE"></field> <field name="SOUND">echo</field> <field name="PRIORITY">0</field> <field name="LOG"></field> <value name="MESSAGE"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="W_/dLQzZ!H/R0,G-3Gj2"> <field name="TEXT">Fenster Abstellraum seid 7 Minuten offen, </field> </shadow> <block type="text_join" id="ukLKn_6xo4V`HM.]iyD!"> <mutation items="3"></mutation> <value name="ADD0"> <block type="text" id="_[5E,{-)s8~32HXG+99i"> <field name="TEXT">Fenster Dusche wurde geschlossen, </field> </block> </value> <value name="ADD1"> <block type="time_get" id="WXtFU|i8#3COaUYU9TPc"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">hh:mm:ss</field> </block> </value> <value name="ADD2"> <block type="text" id="X;JN-q.RVj?)e%@x^~BE"> <field name="TEXT"> Uhr.</field> </block> </value> </block> </value> <value name="TITLE"> <block type="text" id="-IrvSk{1LuD,olL8Fh.6"> <field name="TEXT">Fenster Dusche zu</field> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </statement> </block> </statement> <next> <block type="control" id="!;;l.i#O2bCQ8LNuHY#I"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Rollladen.DuscheZiel</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_round" id="X[{]Go/JO4nQPbPBJP3e"> <field name="OP">ROUND</field> <value name="NUM"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id=")}bLOc~YF%ld]89s}%|Q"> <field name="NUM">3.1</field> </shadow> <block type="get_value" id="%?EY6F@YDY(Qmwxg=L-)"> <field name="ATTR">val</field> <field name="OID">hm-rpc.4.001117099DBF1A.3.LEVEL</field> </block> </value> </block> </value> <next> <block type="on_ext" id="x0BMmOL3^OO.`Ps#lNz7"> <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="3urBhiQK}%8ej/Q3z6O}"> <field name="oid">javascript.0.Rollladen.DuscheZiel</field> </shadow> </value> <statement name="STATEMENT"> <block type="variables_set" id="fmD-y2pBTlcEtvVRY|*#"> <field name="VAR" id="Os;2~eIWa!Q#(;Y7`pa?">Ziel</field> <value name="VALUE"> <block type="on_source" id="]lzOc;M@PDVar#6Wb9ob"> <field name="ATTR">state.val</field> </block> </value> <next> <block type="controls_if" id="ax.5vPmvez[IF}fGxRX]"> <mutation elseif="2" else="1"></mutation> <value name="IF0"> <block type="logic_operation" id="`gA/tb2/{Oi0YJ^V[;+:" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_negate" id="3Tm(e!m!{+8x;+)*wFR?"> <value name="BOOL"> <block type="get_value" id="#z,b]yebBq@R_k]-D.//"> <field name="ATTR">val</field> <field name="OID">javascript.0.Rollladen.LüftenDusche</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="@m0i(1nwgETqjRPUonD:"> <field name="OP">NEQ</field> <value name="A"> <block type="math_round" id=";,JeK6VgoN]M8zhXzB_Q"> <field name="OP">ROUND</field> <value name="NUM"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id=")}bLOc~YF%ld]89s}%|Q"> <field name="NUM">3.1</field> </shadow> <block type="get_value" id="ZsSfq8vs^,@Xg(Du,Uk3"> <field name="ATTR">val</field> <field name="OID">hm-rpc.4.001117099DBF1A.3.LEVEL</field> </block> </value> </block> </value> <value name="B"> <block type="variables_get" id="qpU#DDo.KItap*OoIY9T"> <field name="VAR" id="Os;2~eIWa!Q#(;Y7`pa?">Ziel</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="+!P|Z)Aja8=G%^Ts:v7m"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">hm-rpc.4.001117099DBF1A.4.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="h@q2#RXM2c#85vtk*EKd"> <field name="VAR" id="Os;2~eIWa!Q#(;Y7`pa?">Ziel</field> </block> </value> <next> <block type="variables_set" id="~yvMd+wJTrEqQO5xB*{c"> <field name="VAR" id="F{J+C6xaNec$,z|Tt9}.">DuscheALT</field> <value name="VALUE"> <block type="math_number" id="1d)=FMMG/G5.]Y2/{aHV"> <field name="NUM">-1</field> </block> </value> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_operation" id="_H,__K)XGtQq[I2x?Xw9" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="get_value" id="7:(6)QTWJkj$[W3_Dd3C"> <field name="ATTR">val</field> <field name="OID">javascript.0.Rollladen.LüftenDusche</field> </block> </value> <value name="B"> <block type="logic_compare" id="/4CV9EK77:}j`[z0nhSZ"> <field name="OP">NEQ</field> <value name="A"> <block type="math_round" id="{ic+1Yr*_MmFxwFow!7%"> <field name="OP">ROUND</field> <value name="NUM"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id=")}bLOc~YF%ld]89s}%|Q"> <field name="NUM">3.1</field> </shadow> <block type="get_value" id="hOg9ij4TvD{2Q+7YbA=U"> <field name="ATTR">val</field> <field name="OID">hm-rpc.4.001117099DBF1A.3.LEVEL</field> </block> </value> </block> </value> <value name="B"> <block type="variables_get" id="?h,0%N)70YlA)IG0^@Vd"> <field name="VAR" id="Os;2~eIWa!Q#(;Y7`pa?">Ziel</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id="i=5j;.b:[x-/,iN)mxWI"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Sprech_TAB_All</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="nMt;bwXpL/];f*Jdd[Ia"> <field name="TEXT">Fenster Dusche ist offen! Fahre Rollladen später.</field> </block> </value> <next> <block type="control" id="n/]@EFvHlwQd1fAO,[N`"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Sprech_Alexa_Dusche</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="u``5ZLf=+$I?/pSkx(d|"> <field name="TEXT">Fenster Dusche ist offen! Fahre Rollladen später.</field> </block> </value> <next> <block type="variables_set" id="R!(g6u`zU6bH}[9c2?B5"> <field name="VAR" id="F{J+C6xaNec$,z|Tt9}.">DuscheALT</field> <value name="VALUE"> <block type="variables_get" id="L5uqm2{?)L(vwPr01~yk"> <field name="VAR" id="Os;2~eIWa!Q#(;Y7`pa?">Ziel</field> </block> </value> </block> </next> </block> </next> </block> </statement> <value name="IF2"> <block type="logic_operation" id="MFGnYA:Vj!)IP31h*]oW" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="get_value" id="hjb=o~,g]JuXhq,Sfr*Q"> <field name="ATTR">val</field> <field name="OID">javascript.0.Rollladen.LüftenDusche</field> </block> </value> <value name="B"> <block type="logic_compare" id="c}KJUn4y]hr(]a7hY`V7"> <field name="OP">EQ</field> <value name="A"> <block type="math_round" id="I)H{YTvo)v9QiV-P.8?^"> <field name="OP">ROUND</field> <value name="NUM"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id=")}bLOc~YF%ld]89s}%|Q"> <field name="NUM">3.1</field> </shadow> <block type="get_value" id="M,Q|c%f)/z%MmQS67l(k"> <field name="ATTR">val</field> <field name="OID">hm-rpc.4.001117099DBF1A.3.LEVEL</field> </block> </value> </block> </value> <value name="B"> <block type="variables_get" id="icU#qYh1vVh9Ue;sQ:^f"> <field name="VAR" id="Os;2~eIWa!Q#(;Y7`pa?">Ziel</field> </block> </value> </block> </value> </block> </value> <statement name="DO2"> <block type="control" id="pJx`2{KA1#]+aMFGp8~,"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Sprech_TAB_All</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="y1za0UT{7XeLGC8|Fh3("> <field name="TEXT">Fenster Dusche ist offen! Neues Ziel und aktuell ist gleich.</field> </block> </value> <next> <block type="control" id="SSlzc.2E|6,rKdJLm|zH"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Sprech_Alexa_Dusche</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="jc}%cSa5RU@8ot9}q!qv"> <field name="TEXT">Fenster Dusche ist offen! Neues Ziel und aktuell ist gleich.</field> </block> </value> <next> <block type="variables_set" id="K[6x7;%3_kqMKON-Kj#,"> <field name="VAR" id="F{J+C6xaNec$,z|Tt9}.">DuscheALT</field> <value name="VALUE"> <block type="math_number" id="H@(~KZz+g2GeS,#Y9-l:"> <field name="NUM">-1</field> </block> </value> </block> </next> </block> </next> </block> </statement> <statement name="ELSE"> <block type="control" id="g%*GfoTpgD3rJkY=:WW0" disabled="true"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Sprech_TAB_All</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="2s6WBv{DbI3fBXyOZHTu"> <field name="TEXT">Fenster Dusche Fehler. Fenster Rollladen Dusche unbekannter Status.</field> </block> </value> <next> <block type="control" id="5#h~P-TLtCo_qkZzgh!A" disabled="true"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Sprech_Alexa_Dusche</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="%IcBi3ZLV#Stf[yv%!h."> <field name="TEXT">Fenster Dusche Fehler. Fenster Rollladen Dusche unbekannter Status.</field> </block> </value> <next> <block type="variables_set" id="/}C;4+(|F`ZXY.fi^HW."> <field name="VAR" id="F{J+C6xaNec$,z|Tt9}.">DuscheALT</field> <value name="VALUE"> <block type="math_number" id="1K@}L`F0#eP|Ux!{_-]r"> <field name="NUM">-1</field> </block> </value> </block> </next> </block> </next> </block> </statement> <next> <block type="control" id="ToeT5_QCEM?YEH.Q+_?|"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Rollladen.DuscheALT</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="X_@tTqy=`9nD;4qlSVS,"> <field name="VAR" id="F{J+C6xaNec$,z|Tt9}.">DuscheALT</field> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> <block type="control" id="ZTTp4+x6W#)RwHdz`H2G" x="462" y="-738"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Rollladen.LüftenDusche</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="b]M-qSomF}j;;j?}dSRY"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="]2Kx!IKIsk2$tg#$Ey1-"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Rollladen.LüftenDuscheLang</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="68isr7aTsjMA!5msQKk8"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="timeouts_settimeout" id="ldrBh1jqRr;WM4$J6KG2"> <field name="NAME">timeout</field> <field name="DELAY">2000</field> <field name="UNIT">ms</field> <statement name="STATEMENT"> <block type="controls_if" id="b.xo{n6]D^JQ^})?O=Vo"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id=":XpU^)rz(?X0B=OCy6,="> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="N=#!ua316|{Qe5HQ9;bJ"> <field name="ATTR">val</field> <field name="OID">hm-rpc.4.001098A991690E.1.STATE</field> </block> </value> <value name="B"> <block type="math_number" id="J0StxPUDuA9K2#EQ!!]~"> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="%#WzA#!@vayIWiPbqGCw"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Rollladen.LüftenDusche</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="2nbjl{_$bd1:p}4Wms!I"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="66YN~kBe9NX`k3yKO/J^" disabled="true"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Sprech_System_PC</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="qY4u9aiOJuiNo,j7O5L!"> <field name="TEXT">Fenster Dusche ist geschlossen!</field> </block> </value> </block> </next> </block> </statement> <statement name="ELSE"> <block type="control" id="6dyV!%Q/k,_XA.ITf(Y["> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Rollladen.LüftenDusche</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="hstJsQ?3OGp}U=pc2=J#"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="7NN8ZmU7;hksAy+(!x5B"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Sprech_TAB_All</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="8*w*Fm7F]=@sRum.*4jv"> <field name="TEXT">Fenster Dusche ist offen!</field> </block> </value> <next> <block type="control" id="ZKer,N,@Y5?mCxU=z+Qw"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Sprech_Alexa_Dusche</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="Yq)3/o^DaPW-9sE)s02q"> <field name="TEXT">Fenster Dusche ist offen!</field> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> <block type="on_ext" id="!s%()9n,sF^$7`OT6_i#" x="338" y="1138"> <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="(e0ts=auAmim7hkTN*@u"> <field name="oid">javascript.0.Temp5Uhr</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="XMR7*|z@p|64,Ny[}|S8"> <value name="IF0"> <block type="logic_operation" id="viRUz4Xf)#{8LAwrLpCb"> <field name="OP">AND</field> <value name="A"> <block type="logic_negate" id="fJ64RN`Z|37T40_gCd*;"> <value name="BOOL"> <block type="on_source" id="an`M!!LXJ|aOQLoCX/gq"> <field name="ATTR">state.val</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="[^eT:ORidnz5L_y`;37h"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="fL?-99[~i[+L6{@p2G1{"> <field name="VAR" id="u9`?VY/|%F2U=id4T-SB">Warnung</field> </block> </value> <value name="B"> <block type="math_number" id="Ioi_*Aql_2*K3`6|?OjF"> <field name="NUM">1</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_clearinterval" id="N9$EYyy+%/ZX,$~~%8N2"> <field name="NAME">LangDuscheOffen</field> <next> <block type="variables_set" id="#2eEsoD{Zp8MWYIVuK0$"> <field name="VAR" id="u9`?VY/|%F2U=id4T-SB">Warnung</field> <value name="VALUE"> <block type="math_number" id="C,Kv4{Lo|o}R+-isv^Kk"> <field name="NUM">0</field> </block> </value> <next> <block type="control" id="{:5E{fF*JJr]ezT:82oS"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Sprech_TAB_All</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id=".)XD~{2VR~7Hb6:!Ti^*"> <field name="TEXT">Warnung Fenster Dusche gestoppt.</field> </block> </value> <next> <block type="control" id="^hq8L%Ms[|}^0U?gU;Ph"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Sprech_Alexa_Dusche</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="ycJWbzC4-NNn0;FCmNJp"> <field name="TEXT">Warnung Fenster Dusche gestoppt.</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> <block type="control" id="3=h5#tnFHZ#BDMZ8)+oJ" disabled="true" x="462" y="2062"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Rollladen.DuscheALT</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="h9!u}SU)Ft[,:m^.Q7?^"> <field name="NUM">-1</field> </block> </value> </block> </xml>Ich hoffe, ich konnte damit helfen.
-
@labamba sagt: erst wenn die Tür wieder geschlossen wird auch direkt das Rollo geschlossen wird.
Vorschlag:

-
@paul53
Leider bekomme ich das Skript immer noch nicht richtig zum laufen.
Ich habe jetzt mal ein paar Kleinigkeiten geändert.
Könnte es so klappen?

-
@labamba sagte: Könnte es so klappen?
Ja, wenn bei "steuere" auch noch der Datenpunkt zugewiesen wird.
-
@labamba sagte: Du meinst so?
Im unteren Block steht immer noch "Object ID", es sollte aber "Position" sein.
Wozu im Tür-Trigger noch einmal die Abfrage, wenn schon auf "ist unwahr" getriggert wird?
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden
