NEWS
mehrere Bewegungsmelder und LED Strips in einem Flur
-
Hallo und eine schönes Neues Jahr,
ich habe folgendes Problem, ein längerer Flur mit zwei Bewegungsmelder und drei Schaltstellen.
Die Bewegungsmelder überlappen sich ein wenig, so dass eine Prüfung der Schaltstellen nötig ist.
ich hänge euch mein Blockly in vier Teilen an, da ich keine Möglichkeit gefunden habe das komplett in ein Bild zu bringen.
Ich hätte das Ganze natürlich etwas simpler gestaltet, nur finde ich keine Auswahl " Falls Objektx oder Objekty". Irgendwie habe ich auch das Gefühl die Zeit setzt sich nicht zurück. Habe ich sonst noch etwas übersehen oder kann man das so lösen?

<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable type="timeout" id="timeout3">timeout3</variable> <variable type="timeout" id="timeout">timeout</variable> <variable type="timeout" id="timeout4">timeout4</variable> <variable type="timeout" id="timeout2">timeout2</variable> </variables> <block type="comment" id="r_-.~Xq8BX~8td{7R:ck" x="-287" y="-362"> <field name="COMMENT">Bewegungsmelder Skript läuft bei jeder Bewegung</field> <next> <block type="on_ext" id="+xV(OKLHwMluQonn6J]l"> <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="(z)w)Yok^D$0tc^-w;bs"> <field name="oid">hm-rpc.1.0014DBE9978332.3.MOTION</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="I!C,Q$B-Fh,q,*zh5]t("> <value name="IF0"> <block type="logic_operation" id="YFTDjTO*8uhl,)SOP36h"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="{YLZgI|3h2dhM_h$Qf!|"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="e6t_E,XFLYI`}kH=R^T."> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="`x#*=QOML51xew)`IbOi"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="|gSV*M,2QuOvl1h.e/*Z"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="yIJPM@r=R/D2vu4@iM$*"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="D8B^.AG0:g]IHE74HAUK"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="HXlYy}c@b:-AA!b`+kR9"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="D^7=a8O@*1Agef/-sPIj"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="JfX$YUp{.BT[y@30,[_1"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id=";Rnp[V~u4EPELKno(#o]"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="II!{Q!L-[*LS-]T3eiwL"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="time_compare" id="WKK4g1wWvHTlj$c:60qo"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">07:00</field> <field name="END_TIME">23:00</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="10![~mDFNj==hw;`{`Up"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="/`g-D)7W0)_~E2wq~7{#"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="^xe87|!xwl7X9WF5n+;-"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="]]b`[`a/E$(k~5I}`p`~"> <field name="NUM">75</field> </block> </value> <next> <block type="control" id="uS_-oJd}A^ggVe_58/K+"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="C^50xt7VtzDOn{{3^8.f"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id=";JwU*-Mz6f_sW0c26!=f"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="!rX9Q~pXtTNqZ1$k`r)-"> <field name="NUM">50</field> </block> </value> <next> <block type="control" id="b:+PO*#W6eetymYwJWp+"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="2n*:)$,3z(j;#?:j#`MB"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="E=-ME$`aEjXHG$.SS$F5"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="YQ%447ybwoDN|Rm~o8X9"> <field name="NUM">50</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="timeouts_cleartimeout" id="m(u]G(|.2d=V-Q)g/:,5"> <field name="NAME">timeout</field> <next> <block type="timeouts_settimeout" id="O}Vq](lhl`F8%u/!^gVK"> <field name="NAME">timeout</field> <field name="DELAY">2</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="controls_if" id="9XJY3-x1A8qhyvsqn]`l"> <value name="IF0"> <block type="logic_operation" id="m)T9F(Yi,vC=`VU8EC_)"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="EeWeaR26`aJQkTP4h1s]"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="GF3)vDu+OF2#hHW+UT@w"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="|Qq@rOM8T@p`s!+BG](y"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="Z)p0R,4Fb)w!$Xt],p{$"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="bt-2G9v7cK5cvJJ%/-k="> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="/q!A|8+`#B-gr)eq|Sx("> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="g/W8GIy4(^Lf;RFCQDsD"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="YO=D+57,r9m-2BqS/*SI"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="^jRu#LZ:#Ws3lp@64sT;"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="X{Z*nC75O#7RUXVv6lNC"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="Tf8a0dC41+jiWn!u~++i"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Pz[2z!D5qMB!ddZl$vhk"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="-U-X$AsY#=fW]*LOJmbI"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Bzl;5L,TJYi7-G=ajwc9"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="R^=NA$5YTS2fGb=uz$8t"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="OW[dC]V_!!12eN9Xzt^z"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </statement> <next> <block type="on_ext" id="KAbwLP0NsiVzp{l6QWso"> <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="@di%zVs%^H0+=Y/0cOD$"> <field name="oid">hm-rpc.1.0014DBE9978332.3.MOTION</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="-5sk!w@TXpF(o7Zt}6X8"> <value name="IF0"> <block type="logic_operation" id="5dr5~s{Yi:HjsEf2[@-q"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="I#0op%IRxce5i1WZ9a:/"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="}c2v/P`,([D5EFERr##M"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="gMuJe~c{pqLvl-ORjGg5"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="time_compare" id="8~6;M-!;d[J9h/sFh-sE"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">23:00</field> <field name="END_TIME">7:00</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="47ce4*f8u@8NHmB(KwQg"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Q-D9X6.r2ED@a3Yar4$~"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="9|w?Z%2rHT=0RL)$Oc}*"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="4Zx#d1aGfLClJ.[nuQ9G"> <field name="NUM">20</field> </block> </value> </block> </next> </block> </statement> <next> <block type="timeouts_cleartimeout" id="^nVso6J=?1eZ5I~JFaqD"> <field name="NAME">timeout</field> <next> <block type="timeouts_settimeout" id="0QDD!Rx{a0=xj:@AP#ho"> <field name="NAME">timeout2</field> <field name="DELAY">2</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="controls_if" id="92Nzr}5aeTLFk~cMFt*P"> <value name="IF0"> <block type="logic_compare" id="=%1f^cLWxZCCGPu`J*4,"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="H9z{KrL1{4CcMx(m1e_Q"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="5T2`8|lZpaA}|:!1!eD/"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="}4PzOar,-+#Np$zMh~OP"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="B4~DnLr+k!fjyW0^PD:9"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> <block type="on_ext" id="hs,L(r+3ybs5%8?tq?CW" x="-287" y="763"> <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="HxK,Qd:V=0y.[|)K`t`8"> <field name="oid">hm-rpc.1.00319D8997434F.3.MOTION</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="hw)8,U:wp5%$]_vpY:zq"> <value name="IF0"> <block type="logic_operation" id="NMg/g1;mAw+#{%eon.ke"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="Mk7)75MIF/V,c4J7@Wa2"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="_ilPo%!IqG7:C*R6s{NV"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="6$I!wQ*IDHAJ?=X6p`o;"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="4n[eumFt8;.yG4!y$74x"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="Vh[JnW)NK:D,wzrd_OxB"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="_ZdJBE,*5vbCw)3bnbD0"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="/yQGDv~=jNaG_f3B[XKa"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="YfhDO!yB]~(aA`$m%i.y"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="EWdL*jJLo5(Hft0E#CQr"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="/*zMd8EcA3KoMp4d|^58"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="(~|V6to,6|}n#[),FGBw"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="time_compare" id="-%$D1{KeQXhP0%);1fPs"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">07:00</field> <field name="END_TIME">23:00</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="=]Wx3m4s[!Z^V/h~3.Ye"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="-Agq#y]CJcGaZ;1L$IBO"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="U=N[;%Sgj-(kt.e]O:(6"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="k/;fWe#GR8d03K?^d;xu"> <field name="NUM">75</field> </block> </value> <next> <block type="control" id="xNg@wg)Y^mP13igNm_{+"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Q8p~BMr^Y_QaCPOQ|NFf"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="Yraq]Laz.SC:G^F1i=)2"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="W#~bQf^p(abx:X5mV|Zi"> <field name="NUM">50</field> </block> </value> <next> <block type="control" id="sRURvZJJ((ra(O/c19nE"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="w(6byV!fQQz]+a+BaZw8"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="vyQ01991l@[G(F|:?25e"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="GcFb3voKDEXq,h;(=m20"> <field name="NUM">50</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="timeouts_cleartimeout" id="uE0+?c4MRr%}#v;hXUf]"> <field name="NAME">timeout</field> <next> <block type="timeouts_settimeout" id="rjbx0|t?v+8fMCkStUOb"> <field name="NAME">timeout3</field> <field name="DELAY">2</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="controls_if" id="TT;k=rE+TFf.^PwV`K,b"> <value name="IF0"> <block type="logic_operation" id="080;RzXKuG:;uNPO95qW"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="xw9^KUBSqAEdMP7UEGx{"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="uN,D#2RVE.(42?~fLhCp"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="K?iyLSYJ`M|o$NB.C-0T"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="keXPKdBK[QnlETwM7~8{"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="[=bOkbhIis+Ye}a-l5*S"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="X[lBEf:f:JyFH)W$w(9c"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id=";fC1[b2wM2N!ZH[aKzG}"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="Z+nZTEyfeY.N2qQC`5dr"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="3KIBtU!;mi1)W(/-bM3{"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="V)~pYDh0^X.LmZ(7T/t7"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="Ls]1%KWK1+kg?(y@*#CD"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="?,~M}Y0B0Ltd3A7R(-%4"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="@I=ecTny?zSeBOvlx2z."> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="En|25pypX_K2F_`JV;Hj"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="t])6vG)^:~AM21Jg=uPZ"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="VLkvsp%!j,9%Wcyb_nu#"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </statement> <next> <block type="on_ext" id="#B,[|#8poUz8CX,10USU"> <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="tUfTw_*I./]=pVr/zsq+"> <field name="oid">hm-rpc.1.00319D8997434F.3.MOTION</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="Qmx=kkU7gn$V7AI.!i|1"> <value name="IF0"> <block type="logic_operation" id="d;cY8t5Ra6SYKR4_Wo9I"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="X=,1T)j9Ea7y;qf)xU3v"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="7vNNVYmQ~*QRdC=cS|G="> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id=".~(clKQz)1MmnYDhG__D"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="time_compare" id="%4qCUzf2!Wvn}|I~Ai,Y"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">23:00</field> <field name="END_TIME">7:00</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="4g:)bmML2:S1BW9K71Y6"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="n.fjjrZ(~.Y1QHC=Jw}L"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id=")DTs_rx[K+y2*I$`EC]z"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="Xx+-~dUm8lJ)VJjJ-2`5"> <field name="NUM">20</field> </block> </value> </block> </next> </block> </statement> <next> <block type="timeouts_cleartimeout" id="`5Cv,g{Lr,~uqFB%(*Il"> <field name="NAME">timeout</field> <next> <block type="timeouts_settimeout" id="o#_;x)T|$5_}S,3i4lMU"> <field name="NAME">timeout4</field> <field name="DELAY">2</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="controls_if" id="x|Ds/;J{yak]-_w?Pcud"> <value name="IF0"> <block type="logic_compare" id="QYFOqE{P3vx,!1TcnBL%"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="AeMl:O4{XT9GBRj}BxP0"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="wW)q^#34j1ACgHghf*V-"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="(3fDb?Adp|4`Tpi48FZg"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="`V`..eI0s:X7~2zoe~}3"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </xml>Viele Grüße
Peter -
Hallo und eine schönes Neues Jahr,
ich habe folgendes Problem, ein längerer Flur mit zwei Bewegungsmelder und drei Schaltstellen.
Die Bewegungsmelder überlappen sich ein wenig, so dass eine Prüfung der Schaltstellen nötig ist.
ich hänge euch mein Blockly in vier Teilen an, da ich keine Möglichkeit gefunden habe das komplett in ein Bild zu bringen.
Ich hätte das Ganze natürlich etwas simpler gestaltet, nur finde ich keine Auswahl " Falls Objektx oder Objekty". Irgendwie habe ich auch das Gefühl die Zeit setzt sich nicht zurück. Habe ich sonst noch etwas übersehen oder kann man das so lösen?

<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable type="timeout" id="timeout3">timeout3</variable> <variable type="timeout" id="timeout">timeout</variable> <variable type="timeout" id="timeout4">timeout4</variable> <variable type="timeout" id="timeout2">timeout2</variable> </variables> <block type="comment" id="r_-.~Xq8BX~8td{7R:ck" x="-287" y="-362"> <field name="COMMENT">Bewegungsmelder Skript läuft bei jeder Bewegung</field> <next> <block type="on_ext" id="+xV(OKLHwMluQonn6J]l"> <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="(z)w)Yok^D$0tc^-w;bs"> <field name="oid">hm-rpc.1.0014DBE9978332.3.MOTION</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="I!C,Q$B-Fh,q,*zh5]t("> <value name="IF0"> <block type="logic_operation" id="YFTDjTO*8uhl,)SOP36h"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="{YLZgI|3h2dhM_h$Qf!|"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="e6t_E,XFLYI`}kH=R^T."> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="`x#*=QOML51xew)`IbOi"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="|gSV*M,2QuOvl1h.e/*Z"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="yIJPM@r=R/D2vu4@iM$*"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="D8B^.AG0:g]IHE74HAUK"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="HXlYy}c@b:-AA!b`+kR9"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="D^7=a8O@*1Agef/-sPIj"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="JfX$YUp{.BT[y@30,[_1"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id=";Rnp[V~u4EPELKno(#o]"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="II!{Q!L-[*LS-]T3eiwL"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="time_compare" id="WKK4g1wWvHTlj$c:60qo"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">07:00</field> <field name="END_TIME">23:00</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="10![~mDFNj==hw;`{`Up"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="/`g-D)7W0)_~E2wq~7{#"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="^xe87|!xwl7X9WF5n+;-"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="]]b`[`a/E$(k~5I}`p`~"> <field name="NUM">75</field> </block> </value> <next> <block type="control" id="uS_-oJd}A^ggVe_58/K+"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="C^50xt7VtzDOn{{3^8.f"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id=";JwU*-Mz6f_sW0c26!=f"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="!rX9Q~pXtTNqZ1$k`r)-"> <field name="NUM">50</field> </block> </value> <next> <block type="control" id="b:+PO*#W6eetymYwJWp+"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="2n*:)$,3z(j;#?:j#`MB"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="E=-ME$`aEjXHG$.SS$F5"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="YQ%447ybwoDN|Rm~o8X9"> <field name="NUM">50</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="timeouts_cleartimeout" id="m(u]G(|.2d=V-Q)g/:,5"> <field name="NAME">timeout</field> <next> <block type="timeouts_settimeout" id="O}Vq](lhl`F8%u/!^gVK"> <field name="NAME">timeout</field> <field name="DELAY">2</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="controls_if" id="9XJY3-x1A8qhyvsqn]`l"> <value name="IF0"> <block type="logic_operation" id="m)T9F(Yi,vC=`VU8EC_)"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="EeWeaR26`aJQkTP4h1s]"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="GF3)vDu+OF2#hHW+UT@w"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="|Qq@rOM8T@p`s!+BG](y"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="Z)p0R,4Fb)w!$Xt],p{$"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="bt-2G9v7cK5cvJJ%/-k="> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="/q!A|8+`#B-gr)eq|Sx("> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="g/W8GIy4(^Lf;RFCQDsD"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="YO=D+57,r9m-2BqS/*SI"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="^jRu#LZ:#Ws3lp@64sT;"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="X{Z*nC75O#7RUXVv6lNC"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="Tf8a0dC41+jiWn!u~++i"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Pz[2z!D5qMB!ddZl$vhk"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="-U-X$AsY#=fW]*LOJmbI"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Bzl;5L,TJYi7-G=ajwc9"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="R^=NA$5YTS2fGb=uz$8t"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="OW[dC]V_!!12eN9Xzt^z"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </statement> <next> <block type="on_ext" id="KAbwLP0NsiVzp{l6QWso"> <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="@di%zVs%^H0+=Y/0cOD$"> <field name="oid">hm-rpc.1.0014DBE9978332.3.MOTION</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="-5sk!w@TXpF(o7Zt}6X8"> <value name="IF0"> <block type="logic_operation" id="5dr5~s{Yi:HjsEf2[@-q"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="I#0op%IRxce5i1WZ9a:/"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="}c2v/P`,([D5EFERr##M"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="gMuJe~c{pqLvl-ORjGg5"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="time_compare" id="8~6;M-!;d[J9h/sFh-sE"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">23:00</field> <field name="END_TIME">7:00</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="47ce4*f8u@8NHmB(KwQg"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Q-D9X6.r2ED@a3Yar4$~"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="9|w?Z%2rHT=0RL)$Oc}*"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="4Zx#d1aGfLClJ.[nuQ9G"> <field name="NUM">20</field> </block> </value> </block> </next> </block> </statement> <next> <block type="timeouts_cleartimeout" id="^nVso6J=?1eZ5I~JFaqD"> <field name="NAME">timeout</field> <next> <block type="timeouts_settimeout" id="0QDD!Rx{a0=xj:@AP#ho"> <field name="NAME">timeout2</field> <field name="DELAY">2</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="controls_if" id="92Nzr}5aeTLFk~cMFt*P"> <value name="IF0"> <block type="logic_compare" id="=%1f^cLWxZCCGPu`J*4,"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="H9z{KrL1{4CcMx(m1e_Q"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="5T2`8|lZpaA}|:!1!eD/"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="}4PzOar,-+#Np$zMh~OP"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="B4~DnLr+k!fjyW0^PD:9"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> <block type="on_ext" id="hs,L(r+3ybs5%8?tq?CW" x="-287" y="763"> <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="HxK,Qd:V=0y.[|)K`t`8"> <field name="oid">hm-rpc.1.00319D8997434F.3.MOTION</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="hw)8,U:wp5%$]_vpY:zq"> <value name="IF0"> <block type="logic_operation" id="NMg/g1;mAw+#{%eon.ke"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="Mk7)75MIF/V,c4J7@Wa2"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="_ilPo%!IqG7:C*R6s{NV"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="6$I!wQ*IDHAJ?=X6p`o;"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="4n[eumFt8;.yG4!y$74x"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="Vh[JnW)NK:D,wzrd_OxB"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="_ZdJBE,*5vbCw)3bnbD0"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="/yQGDv~=jNaG_f3B[XKa"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="YfhDO!yB]~(aA`$m%i.y"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="EWdL*jJLo5(Hft0E#CQr"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="/*zMd8EcA3KoMp4d|^58"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="(~|V6to,6|}n#[),FGBw"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="time_compare" id="-%$D1{KeQXhP0%);1fPs"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">07:00</field> <field name="END_TIME">23:00</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="=]Wx3m4s[!Z^V/h~3.Ye"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="-Agq#y]CJcGaZ;1L$IBO"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="U=N[;%Sgj-(kt.e]O:(6"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="k/;fWe#GR8d03K?^d;xu"> <field name="NUM">75</field> </block> </value> <next> <block type="control" id="xNg@wg)Y^mP13igNm_{+"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Q8p~BMr^Y_QaCPOQ|NFf"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="Yraq]Laz.SC:G^F1i=)2"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="W#~bQf^p(abx:X5mV|Zi"> <field name="NUM">50</field> </block> </value> <next> <block type="control" id="sRURvZJJ((ra(O/c19nE"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="w(6byV!fQQz]+a+BaZw8"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="vyQ01991l@[G(F|:?25e"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="GcFb3voKDEXq,h;(=m20"> <field name="NUM">50</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="timeouts_cleartimeout" id="uE0+?c4MRr%}#v;hXUf]"> <field name="NAME">timeout</field> <next> <block type="timeouts_settimeout" id="rjbx0|t?v+8fMCkStUOb"> <field name="NAME">timeout3</field> <field name="DELAY">2</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="controls_if" id="TT;k=rE+TFf.^PwV`K,b"> <value name="IF0"> <block type="logic_operation" id="080;RzXKuG:;uNPO95qW"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="xw9^KUBSqAEdMP7UEGx{"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="uN,D#2RVE.(42?~fLhCp"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="K?iyLSYJ`M|o$NB.C-0T"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="keXPKdBK[QnlETwM7~8{"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="[=bOkbhIis+Ye}a-l5*S"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="X[lBEf:f:JyFH)W$w(9c"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id=";fC1[b2wM2N!ZH[aKzG}"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="Z+nZTEyfeY.N2qQC`5dr"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="3KIBtU!;mi1)W(/-bM3{"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="V)~pYDh0^X.LmZ(7T/t7"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="Ls]1%KWK1+kg?(y@*#CD"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="?,~M}Y0B0Ltd3A7R(-%4"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="@I=ecTny?zSeBOvlx2z."> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="En|25pypX_K2F_`JV;Hj"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="t])6vG)^:~AM21Jg=uPZ"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="VLkvsp%!j,9%Wcyb_nu#"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </statement> <next> <block type="on_ext" id="#B,[|#8poUz8CX,10USU"> <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="tUfTw_*I./]=pVr/zsq+"> <field name="oid">hm-rpc.1.00319D8997434F.3.MOTION</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="Qmx=kkU7gn$V7AI.!i|1"> <value name="IF0"> <block type="logic_operation" id="d;cY8t5Ra6SYKR4_Wo9I"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="X=,1T)j9Ea7y;qf)xU3v"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="7vNNVYmQ~*QRdC=cS|G="> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id=".~(clKQz)1MmnYDhG__D"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="time_compare" id="%4qCUzf2!Wvn}|I~Ai,Y"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">23:00</field> <field name="END_TIME">7:00</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="4g:)bmML2:S1BW9K71Y6"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="n.fjjrZ(~.Y1QHC=Jw}L"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id=")DTs_rx[K+y2*I$`EC]z"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="Xx+-~dUm8lJ)VJjJ-2`5"> <field name="NUM">20</field> </block> </value> </block> </next> </block> </statement> <next> <block type="timeouts_cleartimeout" id="`5Cv,g{Lr,~uqFB%(*Il"> <field name="NAME">timeout</field> <next> <block type="timeouts_settimeout" id="o#_;x)T|$5_}S,3i4lMU"> <field name="NAME">timeout4</field> <field name="DELAY">2</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="controls_if" id="x|Ds/;J{yak]-_w?Pcud"> <value name="IF0"> <block type="logic_compare" id="QYFOqE{P3vx,!1TcnBL%"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="AeMl:O4{XT9GBRj}BxP0"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="wW)q^#34j1ACgHghf*V-"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="(3fDb?Adp|4`Tpi48FZg"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="`V`..eI0s:X7~2zoe~}3"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </xml>Viele Grüße
Peter@rabe01 sagte in mehrere Bewegungsmelder und LED Strips in einem Flur:
nur finde ich keine Auswahl " Falls Objektx oder Objekty"
dann müssen zum einen beide in einem Trigger

und dann brauchst du in der falls Abfrage unter Logik den Baustein, den kannst du auf "oder" umschalten
-
Hallo und eine schönes Neues Jahr,
ich habe folgendes Problem, ein längerer Flur mit zwei Bewegungsmelder und drei Schaltstellen.
Die Bewegungsmelder überlappen sich ein wenig, so dass eine Prüfung der Schaltstellen nötig ist.
ich hänge euch mein Blockly in vier Teilen an, da ich keine Möglichkeit gefunden habe das komplett in ein Bild zu bringen.
Ich hätte das Ganze natürlich etwas simpler gestaltet, nur finde ich keine Auswahl " Falls Objektx oder Objekty". Irgendwie habe ich auch das Gefühl die Zeit setzt sich nicht zurück. Habe ich sonst noch etwas übersehen oder kann man das so lösen?

<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable type="timeout" id="timeout3">timeout3</variable> <variable type="timeout" id="timeout">timeout</variable> <variable type="timeout" id="timeout4">timeout4</variable> <variable type="timeout" id="timeout2">timeout2</variable> </variables> <block type="comment" id="r_-.~Xq8BX~8td{7R:ck" x="-287" y="-362"> <field name="COMMENT">Bewegungsmelder Skript läuft bei jeder Bewegung</field> <next> <block type="on_ext" id="+xV(OKLHwMluQonn6J]l"> <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="(z)w)Yok^D$0tc^-w;bs"> <field name="oid">hm-rpc.1.0014DBE9978332.3.MOTION</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="I!C,Q$B-Fh,q,*zh5]t("> <value name="IF0"> <block type="logic_operation" id="YFTDjTO*8uhl,)SOP36h"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="{YLZgI|3h2dhM_h$Qf!|"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="e6t_E,XFLYI`}kH=R^T."> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="`x#*=QOML51xew)`IbOi"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="|gSV*M,2QuOvl1h.e/*Z"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="yIJPM@r=R/D2vu4@iM$*"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="D8B^.AG0:g]IHE74HAUK"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="HXlYy}c@b:-AA!b`+kR9"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="D^7=a8O@*1Agef/-sPIj"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="JfX$YUp{.BT[y@30,[_1"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id=";Rnp[V~u4EPELKno(#o]"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="II!{Q!L-[*LS-]T3eiwL"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="time_compare" id="WKK4g1wWvHTlj$c:60qo"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">07:00</field> <field name="END_TIME">23:00</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="10![~mDFNj==hw;`{`Up"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="/`g-D)7W0)_~E2wq~7{#"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="^xe87|!xwl7X9WF5n+;-"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="]]b`[`a/E$(k~5I}`p`~"> <field name="NUM">75</field> </block> </value> <next> <block type="control" id="uS_-oJd}A^ggVe_58/K+"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="C^50xt7VtzDOn{{3^8.f"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id=";JwU*-Mz6f_sW0c26!=f"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="!rX9Q~pXtTNqZ1$k`r)-"> <field name="NUM">50</field> </block> </value> <next> <block type="control" id="b:+PO*#W6eetymYwJWp+"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="2n*:)$,3z(j;#?:j#`MB"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="E=-ME$`aEjXHG$.SS$F5"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="YQ%447ybwoDN|Rm~o8X9"> <field name="NUM">50</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="timeouts_cleartimeout" id="m(u]G(|.2d=V-Q)g/:,5"> <field name="NAME">timeout</field> <next> <block type="timeouts_settimeout" id="O}Vq](lhl`F8%u/!^gVK"> <field name="NAME">timeout</field> <field name="DELAY">2</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="controls_if" id="9XJY3-x1A8qhyvsqn]`l"> <value name="IF0"> <block type="logic_operation" id="m)T9F(Yi,vC=`VU8EC_)"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="EeWeaR26`aJQkTP4h1s]"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="GF3)vDu+OF2#hHW+UT@w"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="|Qq@rOM8T@p`s!+BG](y"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="Z)p0R,4Fb)w!$Xt],p{$"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="bt-2G9v7cK5cvJJ%/-k="> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="/q!A|8+`#B-gr)eq|Sx("> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="g/W8GIy4(^Lf;RFCQDsD"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="YO=D+57,r9m-2BqS/*SI"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="^jRu#LZ:#Ws3lp@64sT;"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="X{Z*nC75O#7RUXVv6lNC"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="Tf8a0dC41+jiWn!u~++i"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Pz[2z!D5qMB!ddZl$vhk"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="-U-X$AsY#=fW]*LOJmbI"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Bzl;5L,TJYi7-G=ajwc9"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="R^=NA$5YTS2fGb=uz$8t"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="OW[dC]V_!!12eN9Xzt^z"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </statement> <next> <block type="on_ext" id="KAbwLP0NsiVzp{l6QWso"> <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="@di%zVs%^H0+=Y/0cOD$"> <field name="oid">hm-rpc.1.0014DBE9978332.3.MOTION</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="-5sk!w@TXpF(o7Zt}6X8"> <value name="IF0"> <block type="logic_operation" id="5dr5~s{Yi:HjsEf2[@-q"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="I#0op%IRxce5i1WZ9a:/"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="}c2v/P`,([D5EFERr##M"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="gMuJe~c{pqLvl-ORjGg5"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="time_compare" id="8~6;M-!;d[J9h/sFh-sE"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">23:00</field> <field name="END_TIME">7:00</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="47ce4*f8u@8NHmB(KwQg"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Q-D9X6.r2ED@a3Yar4$~"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="9|w?Z%2rHT=0RL)$Oc}*"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="4Zx#d1aGfLClJ.[nuQ9G"> <field name="NUM">20</field> </block> </value> </block> </next> </block> </statement> <next> <block type="timeouts_cleartimeout" id="^nVso6J=?1eZ5I~JFaqD"> <field name="NAME">timeout</field> <next> <block type="timeouts_settimeout" id="0QDD!Rx{a0=xj:@AP#ho"> <field name="NAME">timeout2</field> <field name="DELAY">2</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="controls_if" id="92Nzr}5aeTLFk~cMFt*P"> <value name="IF0"> <block type="logic_compare" id="=%1f^cLWxZCCGPu`J*4,"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="H9z{KrL1{4CcMx(m1e_Q"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="5T2`8|lZpaA}|:!1!eD/"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="}4PzOar,-+#Np$zMh~OP"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="B4~DnLr+k!fjyW0^PD:9"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> <block type="on_ext" id="hs,L(r+3ybs5%8?tq?CW" x="-287" y="763"> <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="HxK,Qd:V=0y.[|)K`t`8"> <field name="oid">hm-rpc.1.00319D8997434F.3.MOTION</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="hw)8,U:wp5%$]_vpY:zq"> <value name="IF0"> <block type="logic_operation" id="NMg/g1;mAw+#{%eon.ke"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="Mk7)75MIF/V,c4J7@Wa2"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="_ilPo%!IqG7:C*R6s{NV"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="6$I!wQ*IDHAJ?=X6p`o;"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="4n[eumFt8;.yG4!y$74x"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="Vh[JnW)NK:D,wzrd_OxB"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="_ZdJBE,*5vbCw)3bnbD0"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="/yQGDv~=jNaG_f3B[XKa"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="YfhDO!yB]~(aA`$m%i.y"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="EWdL*jJLo5(Hft0E#CQr"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="/*zMd8EcA3KoMp4d|^58"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="(~|V6to,6|}n#[),FGBw"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="time_compare" id="-%$D1{KeQXhP0%);1fPs"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">07:00</field> <field name="END_TIME">23:00</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="=]Wx3m4s[!Z^V/h~3.Ye"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="-Agq#y]CJcGaZ;1L$IBO"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="U=N[;%Sgj-(kt.e]O:(6"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="k/;fWe#GR8d03K?^d;xu"> <field name="NUM">75</field> </block> </value> <next> <block type="control" id="xNg@wg)Y^mP13igNm_{+"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Q8p~BMr^Y_QaCPOQ|NFf"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="Yraq]Laz.SC:G^F1i=)2"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="W#~bQf^p(abx:X5mV|Zi"> <field name="NUM">50</field> </block> </value> <next> <block type="control" id="sRURvZJJ((ra(O/c19nE"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="w(6byV!fQQz]+a+BaZw8"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="vyQ01991l@[G(F|:?25e"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="GcFb3voKDEXq,h;(=m20"> <field name="NUM">50</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="timeouts_cleartimeout" id="uE0+?c4MRr%}#v;hXUf]"> <field name="NAME">timeout</field> <next> <block type="timeouts_settimeout" id="rjbx0|t?v+8fMCkStUOb"> <field name="NAME">timeout3</field> <field name="DELAY">2</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="controls_if" id="TT;k=rE+TFf.^PwV`K,b"> <value name="IF0"> <block type="logic_operation" id="080;RzXKuG:;uNPO95qW"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="xw9^KUBSqAEdMP7UEGx{"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="uN,D#2RVE.(42?~fLhCp"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="K?iyLSYJ`M|o$NB.C-0T"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="keXPKdBK[QnlETwM7~8{"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="[=bOkbhIis+Ye}a-l5*S"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="X[lBEf:f:JyFH)W$w(9c"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id=";fC1[b2wM2N!ZH[aKzG}"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="Z+nZTEyfeY.N2qQC`5dr"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="3KIBtU!;mi1)W(/-bM3{"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="V)~pYDh0^X.LmZ(7T/t7"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="Ls]1%KWK1+kg?(y@*#CD"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="?,~M}Y0B0Ltd3A7R(-%4"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="@I=ecTny?zSeBOvlx2z."> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="En|25pypX_K2F_`JV;Hj"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="t])6vG)^:~AM21Jg=uPZ"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="VLkvsp%!j,9%Wcyb_nu#"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </statement> <next> <block type="on_ext" id="#B,[|#8poUz8CX,10USU"> <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="tUfTw_*I./]=pVr/zsq+"> <field name="oid">hm-rpc.1.00319D8997434F.3.MOTION</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="Qmx=kkU7gn$V7AI.!i|1"> <value name="IF0"> <block type="logic_operation" id="d;cY8t5Ra6SYKR4_Wo9I"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="X=,1T)j9Ea7y;qf)xU3v"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="7vNNVYmQ~*QRdC=cS|G="> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id=".~(clKQz)1MmnYDhG__D"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="time_compare" id="%4qCUzf2!Wvn}|I~Ai,Y"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">23:00</field> <field name="END_TIME">7:00</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="4g:)bmML2:S1BW9K71Y6"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="n.fjjrZ(~.Y1QHC=Jw}L"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id=")DTs_rx[K+y2*I$`EC]z"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="Xx+-~dUm8lJ)VJjJ-2`5"> <field name="NUM">20</field> </block> </value> </block> </next> </block> </statement> <next> <block type="timeouts_cleartimeout" id="`5Cv,g{Lr,~uqFB%(*Il"> <field name="NAME">timeout</field> <next> <block type="timeouts_settimeout" id="o#_;x)T|$5_}S,3i4lMU"> <field name="NAME">timeout4</field> <field name="DELAY">2</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="controls_if" id="x|Ds/;J{yak]-_w?Pcud"> <value name="IF0"> <block type="logic_compare" id="QYFOqE{P3vx,!1TcnBL%"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="AeMl:O4{XT9GBRj}BxP0"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="wW)q^#34j1ACgHghf*V-"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="(3fDb?Adp|4`Tpi48FZg"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="`V`..eI0s:X7~2zoe~}3"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </xml>Viele Grüße
Peter -
@rabe01
Solltest du nicht den Timout stoppen, den du danach auch startest? Du stoppst immer nur den timout in Bild 4. -
@rabe01 sagte in mehrere Bewegungsmelder und LED Strips in einem Flur:
nur finde ich keine Auswahl " Falls Objektx oder Objekty"
dann müssen zum einen beide in einem Trigger

und dann brauchst du in der falls Abfrage unter Logik den Baustein, den kannst du auf "oder" umschalten
-
Hallo, @tom_w den Timeout stoppe ich doch in jedem Bild ? oder hab ich so einen Bug dass der sich nur zum Schluss stopt?
@rabe01
Ja, aber zum Beispiel im Bild 1, da stoppst du timeout und startest dann timeout4, wenn ich das skript richtig verstanden habe, solltest du doch da timeout4 stoppen?
Ausserdem habe ich mal gelesen, dass es Probleme gibt, wenn du Zeit zwischen mit einem Tageswechsel verwendest. Besser soll es da wohl sein, zu prüfen ob Zeit ist NICHT zwischen 7:00 und 23:00. -
@rabe01
Ja, aber zum Beispiel im Bild 1, da stoppst du timeout und startest dann timeout4, wenn ich das skript richtig verstanden habe, solltest du doch da timeout4 stoppen?
Ausserdem habe ich mal gelesen, dass es Probleme gibt, wenn du Zeit zwischen mit einem Tageswechsel verwendest. Besser soll es da wohl sein, zu prüfen ob Zeit ist NICHT zwischen 7:00 und 23:00.@tom_w ich sollte so etwas nicht um 2 Uhr nachts schreiben. Das mit den verschiedenen timeouts ist mir gar nicht aufgefallen. Ich bin davon ausgegangen, ich benutze immer den selben und hab nicht mehr geschaut.
Das mit dem Tageswechsel kannte ich noch nicht, werd ich bei Gelegenheit auch anpassen.
Danke -
Hallo und eine schönes Neues Jahr,
ich habe folgendes Problem, ein längerer Flur mit zwei Bewegungsmelder und drei Schaltstellen.
Die Bewegungsmelder überlappen sich ein wenig, so dass eine Prüfung der Schaltstellen nötig ist.
ich hänge euch mein Blockly in vier Teilen an, da ich keine Möglichkeit gefunden habe das komplett in ein Bild zu bringen.
Ich hätte das Ganze natürlich etwas simpler gestaltet, nur finde ich keine Auswahl " Falls Objektx oder Objekty". Irgendwie habe ich auch das Gefühl die Zeit setzt sich nicht zurück. Habe ich sonst noch etwas übersehen oder kann man das so lösen?

<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable type="timeout" id="timeout3">timeout3</variable> <variable type="timeout" id="timeout">timeout</variable> <variable type="timeout" id="timeout4">timeout4</variable> <variable type="timeout" id="timeout2">timeout2</variable> </variables> <block type="comment" id="r_-.~Xq8BX~8td{7R:ck" x="-287" y="-362"> <field name="COMMENT">Bewegungsmelder Skript läuft bei jeder Bewegung</field> <next> <block type="on_ext" id="+xV(OKLHwMluQonn6J]l"> <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="(z)w)Yok^D$0tc^-w;bs"> <field name="oid">hm-rpc.1.0014DBE9978332.3.MOTION</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="I!C,Q$B-Fh,q,*zh5]t("> <value name="IF0"> <block type="logic_operation" id="YFTDjTO*8uhl,)SOP36h"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="{YLZgI|3h2dhM_h$Qf!|"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="e6t_E,XFLYI`}kH=R^T."> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="`x#*=QOML51xew)`IbOi"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="|gSV*M,2QuOvl1h.e/*Z"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="yIJPM@r=R/D2vu4@iM$*"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="D8B^.AG0:g]IHE74HAUK"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="HXlYy}c@b:-AA!b`+kR9"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="D^7=a8O@*1Agef/-sPIj"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="JfX$YUp{.BT[y@30,[_1"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id=";Rnp[V~u4EPELKno(#o]"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="II!{Q!L-[*LS-]T3eiwL"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="time_compare" id="WKK4g1wWvHTlj$c:60qo"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">07:00</field> <field name="END_TIME">23:00</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="10![~mDFNj==hw;`{`Up"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="/`g-D)7W0)_~E2wq~7{#"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="^xe87|!xwl7X9WF5n+;-"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="]]b`[`a/E$(k~5I}`p`~"> <field name="NUM">75</field> </block> </value> <next> <block type="control" id="uS_-oJd}A^ggVe_58/K+"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="C^50xt7VtzDOn{{3^8.f"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id=";JwU*-Mz6f_sW0c26!=f"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="!rX9Q~pXtTNqZ1$k`r)-"> <field name="NUM">50</field> </block> </value> <next> <block type="control" id="b:+PO*#W6eetymYwJWp+"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="2n*:)$,3z(j;#?:j#`MB"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="E=-ME$`aEjXHG$.SS$F5"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="YQ%447ybwoDN|Rm~o8X9"> <field name="NUM">50</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="timeouts_cleartimeout" id="m(u]G(|.2d=V-Q)g/:,5"> <field name="NAME">timeout</field> <next> <block type="timeouts_settimeout" id="O}Vq](lhl`F8%u/!^gVK"> <field name="NAME">timeout</field> <field name="DELAY">2</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="controls_if" id="9XJY3-x1A8qhyvsqn]`l"> <value name="IF0"> <block type="logic_operation" id="m)T9F(Yi,vC=`VU8EC_)"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="EeWeaR26`aJQkTP4h1s]"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="GF3)vDu+OF2#hHW+UT@w"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="|Qq@rOM8T@p`s!+BG](y"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="Z)p0R,4Fb)w!$Xt],p{$"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="bt-2G9v7cK5cvJJ%/-k="> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="/q!A|8+`#B-gr)eq|Sx("> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="g/W8GIy4(^Lf;RFCQDsD"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="YO=D+57,r9m-2BqS/*SI"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="^jRu#LZ:#Ws3lp@64sT;"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="X{Z*nC75O#7RUXVv6lNC"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="Tf8a0dC41+jiWn!u~++i"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Pz[2z!D5qMB!ddZl$vhk"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="-U-X$AsY#=fW]*LOJmbI"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Bzl;5L,TJYi7-G=ajwc9"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="R^=NA$5YTS2fGb=uz$8t"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="OW[dC]V_!!12eN9Xzt^z"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </statement> <next> <block type="on_ext" id="KAbwLP0NsiVzp{l6QWso"> <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="@di%zVs%^H0+=Y/0cOD$"> <field name="oid">hm-rpc.1.0014DBE9978332.3.MOTION</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="-5sk!w@TXpF(o7Zt}6X8"> <value name="IF0"> <block type="logic_operation" id="5dr5~s{Yi:HjsEf2[@-q"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="I#0op%IRxce5i1WZ9a:/"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="}c2v/P`,([D5EFERr##M"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="gMuJe~c{pqLvl-ORjGg5"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="time_compare" id="8~6;M-!;d[J9h/sFh-sE"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">23:00</field> <field name="END_TIME">7:00</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="47ce4*f8u@8NHmB(KwQg"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Q-D9X6.r2ED@a3Yar4$~"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="9|w?Z%2rHT=0RL)$Oc}*"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="4Zx#d1aGfLClJ.[nuQ9G"> <field name="NUM">20</field> </block> </value> </block> </next> </block> </statement> <next> <block type="timeouts_cleartimeout" id="^nVso6J=?1eZ5I~JFaqD"> <field name="NAME">timeout</field> <next> <block type="timeouts_settimeout" id="0QDD!Rx{a0=xj:@AP#ho"> <field name="NAME">timeout2</field> <field name="DELAY">2</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="controls_if" id="92Nzr}5aeTLFk~cMFt*P"> <value name="IF0"> <block type="logic_compare" id="=%1f^cLWxZCCGPu`J*4,"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="H9z{KrL1{4CcMx(m1e_Q"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="5T2`8|lZpaA}|:!1!eD/"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="}4PzOar,-+#Np$zMh~OP"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="B4~DnLr+k!fjyW0^PD:9"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> <block type="on_ext" id="hs,L(r+3ybs5%8?tq?CW" x="-287" y="763"> <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="HxK,Qd:V=0y.[|)K`t`8"> <field name="oid">hm-rpc.1.00319D8997434F.3.MOTION</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="hw)8,U:wp5%$]_vpY:zq"> <value name="IF0"> <block type="logic_operation" id="NMg/g1;mAw+#{%eon.ke"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="Mk7)75MIF/V,c4J7@Wa2"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="_ilPo%!IqG7:C*R6s{NV"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="6$I!wQ*IDHAJ?=X6p`o;"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="4n[eumFt8;.yG4!y$74x"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="Vh[JnW)NK:D,wzrd_OxB"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="_ZdJBE,*5vbCw)3bnbD0"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="/yQGDv~=jNaG_f3B[XKa"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="YfhDO!yB]~(aA`$m%i.y"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="EWdL*jJLo5(Hft0E#CQr"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="/*zMd8EcA3KoMp4d|^58"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="(~|V6to,6|}n#[),FGBw"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="time_compare" id="-%$D1{KeQXhP0%);1fPs"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">07:00</field> <field name="END_TIME">23:00</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="=]Wx3m4s[!Z^V/h~3.Ye"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="-Agq#y]CJcGaZ;1L$IBO"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="U=N[;%Sgj-(kt.e]O:(6"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="k/;fWe#GR8d03K?^d;xu"> <field name="NUM">75</field> </block> </value> <next> <block type="control" id="xNg@wg)Y^mP13igNm_{+"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Q8p~BMr^Y_QaCPOQ|NFf"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="Yraq]Laz.SC:G^F1i=)2"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="W#~bQf^p(abx:X5mV|Zi"> <field name="NUM">50</field> </block> </value> <next> <block type="control" id="sRURvZJJ((ra(O/c19nE"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="w(6byV!fQQz]+a+BaZw8"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="vyQ01991l@[G(F|:?25e"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="GcFb3voKDEXq,h;(=m20"> <field name="NUM">50</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="timeouts_cleartimeout" id="uE0+?c4MRr%}#v;hXUf]"> <field name="NAME">timeout</field> <next> <block type="timeouts_settimeout" id="rjbx0|t?v+8fMCkStUOb"> <field name="NAME">timeout3</field> <field name="DELAY">2</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="controls_if" id="TT;k=rE+TFf.^PwV`K,b"> <value name="IF0"> <block type="logic_operation" id="080;RzXKuG:;uNPO95qW"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="xw9^KUBSqAEdMP7UEGx{"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="uN,D#2RVE.(42?~fLhCp"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="K?iyLSYJ`M|o$NB.C-0T"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="keXPKdBK[QnlETwM7~8{"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="[=bOkbhIis+Ye}a-l5*S"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="X[lBEf:f:JyFH)W$w(9c"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id=";fC1[b2wM2N!ZH[aKzG}"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="Z+nZTEyfeY.N2qQC`5dr"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="3KIBtU!;mi1)W(/-bM3{"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="V)~pYDh0^X.LmZ(7T/t7"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="Ls]1%KWK1+kg?(y@*#CD"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white0.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="?,~M}Y0B0Ltd3A7R(-%4"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="@I=ecTny?zSeBOvlx2z."> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white1.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="En|25pypX_K2F_`JV;Hj"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="t])6vG)^:~AM21Jg=uPZ"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="VLkvsp%!j,9%Wcyb_nu#"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </statement> <next> <block type="on_ext" id="#B,[|#8poUz8CX,10USU"> <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="tUfTw_*I./]=pVr/zsq+"> <field name="oid">hm-rpc.1.00319D8997434F.3.MOTION</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="Qmx=kkU7gn$V7AI.!i|1"> <value name="IF0"> <block type="logic_operation" id="d;cY8t5Ra6SYKR4_Wo9I"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="X=,1T)j9Ea7y;qf)xU3v"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="7vNNVYmQ~*QRdC=cS|G="> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id=".~(clKQz)1MmnYDhG__D"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="time_compare" id="%4qCUzf2!Wvn}|I~Ai,Y"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">23:00</field> <field name="END_TIME">7:00</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="4g:)bmML2:S1BW9K71Y6"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="n.fjjrZ(~.Y1QHC=Jw}L"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id=")DTs_rx[K+y2*I$`EC]z"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="Xx+-~dUm8lJ)VJjJ-2`5"> <field name="NUM">20</field> </block> </value> </block> </next> </block> </statement> <next> <block type="timeouts_cleartimeout" id="`5Cv,g{Lr,~uqFB%(*Il"> <field name="NAME">timeout</field> <next> <block type="timeouts_settimeout" id="o#_;x)T|$5_}S,3i4lMU"> <field name="NAME">timeout4</field> <field name="DELAY">2</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="controls_if" id="x|Ds/;J{yak]-_w?Pcud"> <value name="IF0"> <block type="logic_compare" id="QYFOqE{P3vx,!1TcnBL%"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="AeMl:O4{XT9GBRj}BxP0"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="wW)q^#34j1ACgHghf*V-"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="(3fDb?Adp|4`Tpi48FZg"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#DEBA46#1.white2.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="`V`..eI0s:X7~2zoe~}3"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </xml>Viele Grüße
Peter -
@rabe01
Ja, aber zum Beispiel im Bild 1, da stoppst du timeout und startest dann timeout4, wenn ich das skript richtig verstanden habe, solltest du doch da timeout4 stoppen?
Ausserdem habe ich mal gelesen, dass es Probleme gibt, wenn du Zeit zwischen mit einem Tageswechsel verwendest. Besser soll es da wohl sein, zu prüfen ob Zeit ist NICHT zwischen 7:00 und 23:00. -
@tom_w sagte: Probleme gibt, wenn du Zeit zwischen mit einem Tageswechsel verwendest.
Das trifft nur bei Verwendung von Astrozeiten zu.
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