NEWS
Badlicht geht kurz nach dem Verlassen wieder an (Gelöst)
-
Hallo,
das ist das Skript von unserem Badlicht Ledstreifen. Es soll beim betreten durch einen Bewegungsmelder ausgelöst werden und beim verlassen durch einen Türkontakt ausgeschaltet werden. Das funktioniert auch eigentlich ganz gut.
Nur leider geht das Licht kurz nach dem verlassen wieder an. Ich weiß nicht wo der Fehler liegt.
-
Hallo,
das ist das Skript von unserem Badlicht Ledstreifen. Es soll beim betreten durch einen Bewegungsmelder ausgelöst werden und beim verlassen durch einen Türkontakt ausgeschaltet werden. Das funktioniert auch eigentlich ganz gut.
Nur leider geht das Licht kurz nach dem verlassen wieder an. Ich weiß nicht wo der Fehler liegt.
@lustig29
Das ist etwas ungeschickt gelöst, Da Du ein PD des BWM über das Script änderst. Was ist, wen der BWM das Schließen der Tür erfasst? Genau, das Licht geht wieder an ;)
Erst mal das ganz =wahr raus, weil unnötig (Grundfunktion des FALLS Block, dann würde ich das Licht einfach etwas verzögert ausschalten und den und den BWM DP gar nicht manuell ändern, da der eh wieder auf FALSE springt, wenn keine Bewegung erkannt wird. -
Hallo,
das ist das Skript von unserem Badlicht Ledstreifen. Es soll beim betreten durch einen Bewegungsmelder ausgelöst werden und beim verlassen durch einen Türkontakt ausgeschaltet werden. Das funktioniert auch eigentlich ganz gut.
Nur leider geht das Licht kurz nach dem verlassen wieder an. Ich weiß nicht wo der Fehler liegt.
@lustig29 sagte: Es soll beim betreten durch einen Bewegungsmelder ausgelöst werden und beim verlassen durch einen Türkontakt ausgeschaltet werden.
Damit während des Schließens der Tür der BWM nicht dazwischen funkt, sollte das Licht besser erst bei "Tür geschlossen" ausgeschaltet werden; aber nur dann, wenn es beim Öffnen der Tür eingeschaltet war. Vorschlag:

-
@lustig29 sagte: Es soll beim betreten durch einen Bewegungsmelder ausgelöst werden und beim verlassen durch einen Türkontakt ausgeschaltet werden.
Damit während des Schließens der Tür der BWM nicht dazwischen funkt, sollte das Licht besser erst bei "Tür geschlossen" ausgeschaltet werden; aber nur dann, wenn es beim Öffnen der Tür eingeschaltet war. Vorschlag:

-
@paul53
Hab es jetzt so gemacht, aber das Badlicht bleibt aus. Habe ich einen Fehler gemacht?
-
@lustig29 sagte: das Badlicht bleibt aus.
Der obere Trigger, der das Licht einschaltet, macht das gleiche wie Dein BWM-Trigger: Bei Wechsel von falsch nach wahr sollte zwischen 20:00 Uhr und 4:29 Uhr das Licht eingeschaltet werden.
-
@lustig29 sagte: geht aber leider immer noch nicht
Poste bitte den erzeugten Javascript-Code ohne die letzte Zeile in Code tags.
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="8MAF.csR[(52pI#qwi;?">Licht_war_ein</variable> </variables> <block type="on_ext" id="=nE#LR?z0:UzlZKC/5Ug" x="-1037" y="-312"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">gt</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="Zc9nOfd#Fs+m1z1d@20s"> <field name="oid">deconz.0.Sensors.22.presence</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="#hwdGCHz(H??F9Y}~t[5"> <value name="IF0"> <block type="time_compare_ex" id="3T!R]d3|vGCT9,}H3vV1"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation> <field name="USE_ACTUAL_TIME">TRUE</field> <field name="OPTION">not between</field> <value name="START_TIME"> <shadow type="text" id="k$Po3v6n@Wy[z6.,)o}R"> <field name="TEXT">04:29</field> </shadow> </value> <value name="END_TIME"> <shadow type="text" id="):z1J,|3xLL,sm-8cL3."> <field name="TEXT">20:00</field> </shadow> </value> </block> </value> <statement name="DO0"> <block type="control" id="b$_8eW^uoCp[wzvbK@Z|"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">tuya.0.874142072cf4321d6403.20</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="^4kZ)%I$9Q5d`4.8]78}"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </statement> <next> <block type="on_ext" id="O[[TUf8YZ-]Lrr4sVQRX"> <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="Qn,oN#g}t;H@AFVS?QlL"> <field name="oid">deconz.0.Sensors.9.open</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="4JN=MX]Q`X{.ub|W[Jt#"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="on_source" id="X?;z}=)3K]Zm5MsS~!,6"> <field name="ATTR">state.val</field> </block> </value> <statement name="DO0"> <block type="variables_set" id="{:pC$tlSnpUD``D.aVIy"> <field name="VAR" id="8MAF.csR[(52pI#qwi;?">Licht_war_ein</field> <value name="VALUE"> <block type="get_value" id="vf6e56ttbuhH({/]5ikV"> <field name="ATTR">val</field> <field name="OID">tuya.0.874142072cf4321d6403.20</field> </block> </value> </block> </statement> <value name="IF1"> <block type="variables_get" id="LXO4YblF-l_%!n6!]ylf"> <field name="VAR" id="8MAF.csR[(52pI#qwi;?">Licht_war_ein</field> </block> </value> <statement name="DO1"> <block type="control" id="hpHn7Sr^w$9SuJk+Fm)y"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">tuya.0.874142072cf4321d6403.20</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="R+q[t`=Yl#G6xyDoeiRD"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </statement> </block> </next> </block> <block type="on_ext" id="i{jd{V.-z+h6y.(nlH!n" disabled="true" x="313" y="-112"> <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="^HBV`n$_ef6|?B+RC2%w"> <field name="oid">deconz.0.Sensors.22.presence</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="F$@31zC[tDPP-Xlx3;WP"> <value name="IF0"> <block type="logic_operation" id="6N?S^%%PR,0SVYRTD@Bx" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="on_source" id="7VNmA)kB.aGnQJ5R7ii%"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="time_compare_ex" id="C.1.DJDdk%KF/)Ky^)GF"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation> <field name="USE_ACTUAL_TIME">TRUE</field> <field name="OPTION">not between</field> <value name="START_TIME"> <shadow type="text" id="UpRn]kA!s2-P/skVLMMd"> <field name="TEXT">04:29</field> </shadow> </value> <value name="END_TIME"> <shadow type="text" id="O!;[Y]vc8DTjxJPQDL|_"> <field name="TEXT">17:00</field> </shadow> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="X,Yz`Fq2b7otAW*|iv/R"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">tuya.0.874142072cf4321d6403.20</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="G[.UPk-gJ#)0l;dpJq}m"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </statement> <next> <block type="on_ext" id="q|U6*z.*e]|:]gSGFDw/" disabled="true"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">true</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="[8/]]Fek5Yj3M_Hva|JY"> <field name="oid">deconz.0.Sensors.9.open</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="sQs_!c258UK=#@`E-KF^"> <value name="IF0"> <block type="logic_operation" id="sul3BfDAr_Z6!xA5n2m!"> <field name="OP">AND</field> <value name="A"> <block type="on_source" id="LivL,vrQnLYL.BkjNJZS"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="logic_compare" id="(N67u;VC(f_X/nAziqfU"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="8$xx+]^0IQ{|[M!-L[%g"> <field name="ATTR">val</field> <field name="OID">tuya.0.874142072cf4321d6403.20</field> </block> </value> <value name="B"> <block type="logic_boolean" id="V`m}j#oC!ExZGa8y6xO-"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id=".Otz2nuG-@pk-Y.]~M.0"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">tuya.0.874142072cf4321d6403.20</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">2</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="[:}udH%-ECHCgh_oV^$V"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </statement> </block> </next> </block> </xml> -
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="8MAF.csR[(52pI#qwi;?">Licht_war_ein</variable> </variables> <block type="on_ext" id="=nE#LR?z0:UzlZKC/5Ug" x="-1037" y="-312"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">gt</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="Zc9nOfd#Fs+m1z1d@20s"> <field name="oid">deconz.0.Sensors.22.presence</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="#hwdGCHz(H??F9Y}~t[5"> <value name="IF0"> <block type="time_compare_ex" id="3T!R]d3|vGCT9,}H3vV1"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation> <field name="USE_ACTUAL_TIME">TRUE</field> <field name="OPTION">not between</field> <value name="START_TIME"> <shadow type="text" id="k$Po3v6n@Wy[z6.,)o}R"> <field name="TEXT">04:29</field> </shadow> </value> <value name="END_TIME"> <shadow type="text" id="):z1J,|3xLL,sm-8cL3."> <field name="TEXT">20:00</field> </shadow> </value> </block> </value> <statement name="DO0"> <block type="control" id="b$_8eW^uoCp[wzvbK@Z|"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">tuya.0.874142072cf4321d6403.20</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="^4kZ)%I$9Q5d`4.8]78}"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </statement> <next> <block type="on_ext" id="O[[TUf8YZ-]Lrr4sVQRX"> <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="Qn,oN#g}t;H@AFVS?QlL"> <field name="oid">deconz.0.Sensors.9.open</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="4JN=MX]Q`X{.ub|W[Jt#"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="on_source" id="X?;z}=)3K]Zm5MsS~!,6"> <field name="ATTR">state.val</field> </block> </value> <statement name="DO0"> <block type="variables_set" id="{:pC$tlSnpUD``D.aVIy"> <field name="VAR" id="8MAF.csR[(52pI#qwi;?">Licht_war_ein</field> <value name="VALUE"> <block type="get_value" id="vf6e56ttbuhH({/]5ikV"> <field name="ATTR">val</field> <field name="OID">tuya.0.874142072cf4321d6403.20</field> </block> </value> </block> </statement> <value name="IF1"> <block type="variables_get" id="LXO4YblF-l_%!n6!]ylf"> <field name="VAR" id="8MAF.csR[(52pI#qwi;?">Licht_war_ein</field> </block> </value> <statement name="DO1"> <block type="control" id="hpHn7Sr^w$9SuJk+Fm)y"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">tuya.0.874142072cf4321d6403.20</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="R+q[t`=Yl#G6xyDoeiRD"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </statement> </block> </next> </block> <block type="on_ext" id="i{jd{V.-z+h6y.(nlH!n" disabled="true" x="313" y="-112"> <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="^HBV`n$_ef6|?B+RC2%w"> <field name="oid">deconz.0.Sensors.22.presence</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="F$@31zC[tDPP-Xlx3;WP"> <value name="IF0"> <block type="logic_operation" id="6N?S^%%PR,0SVYRTD@Bx" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="on_source" id="7VNmA)kB.aGnQJ5R7ii%"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="time_compare_ex" id="C.1.DJDdk%KF/)Ky^)GF"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation> <field name="USE_ACTUAL_TIME">TRUE</field> <field name="OPTION">not between</field> <value name="START_TIME"> <shadow type="text" id="UpRn]kA!s2-P/skVLMMd"> <field name="TEXT">04:29</field> </shadow> </value> <value name="END_TIME"> <shadow type="text" id="O!;[Y]vc8DTjxJPQDL|_"> <field name="TEXT">17:00</field> </shadow> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="X,Yz`Fq2b7otAW*|iv/R"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">tuya.0.874142072cf4321d6403.20</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="G[.UPk-gJ#)0l;dpJq}m"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </statement> <next> <block type="on_ext" id="q|U6*z.*e]|:]gSGFDw/" disabled="true"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">true</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="[8/]]Fek5Yj3M_Hva|JY"> <field name="oid">deconz.0.Sensors.9.open</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="sQs_!c258UK=#@`E-KF^"> <value name="IF0"> <block type="logic_operation" id="sul3BfDAr_Z6!xA5n2m!"> <field name="OP">AND</field> <value name="A"> <block type="on_source" id="LivL,vrQnLYL.BkjNJZS"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="logic_compare" id="(N67u;VC(f_X/nAziqfU"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="8$xx+]^0IQ{|[M!-L[%g"> <field name="ATTR">val</field> <field name="OID">tuya.0.874142072cf4321d6403.20</field> </block> </value> <value name="B"> <block type="logic_boolean" id="V`m}j#oC!ExZGa8y6xO-"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id=".Otz2nuG-@pk-Y.]~M.0"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">tuya.0.874142072cf4321d6403.20</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">2</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="[:}udH%-ECHCgh_oV^$V"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </statement> </block> </next> </block> </xml> -
@lustig29 sagte: Es funktioniert leider nicht
Das Licht schaltet nicht ein? Um die Ursache zu finden, ergänze mal um Debug-Ausgaben:

Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login


