Hi Zusammen,
nach den letzten Tagen ist mir nur ein Punkt aufgefallen, der nicht ganz funktioniert und den ich nicht erklären kann. Hier erst das Blockly:
<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable type="timeout" id="timeout">timeout</variable>
<variable id="}]|=gtFre;w9yY,[=7lI">Tageszeit</variable>
<variable id=":qT#5s~-UWG+Vt31HBM7">CT</variable>
<variable id="`^9LHKa4;9|YkBzURxJl">Level</variable>
</variables>
<block type="on_ext" id="m,bhWHIX*3N}PZQ]TojO" x="74238" y="70663">
<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="f:]OZ.7PSXZ6((6zAZiu">
<field name="oid">deconz.0.Sensors.2.presence</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="GiOl);b~Um~@]akV+i,L">
<mutation else="1"></mutation>
<value name="IF0">
<block type="on_source" id="YN,E)i`%2WZ)or%2y9u8">
<field name="ATTR">state.val</field>
</block>
</value>
<statement name="DO0">
<block type="debug" id="a^g7YMK]S;eZKpS_/E9R">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="Dg`GhoXN;hmJd1Ck;Re;">
<field name="TEXT">SPEIS: Bewegung erkannt!</field>
</shadow>
</value>
<next>
<block type="timeouts_cleartimeout" id="5N8Tm;.bC]67ft3$~VO~">
<field name="NAME">timeout</field>
<next>
<block type="variables_set" id="D|)(!:5FafC+Jg,F9LPM">
<field name="VAR" id="}]|=gtFre;w9yY,[=7lI">Tageszeit</field>
<value name="VALUE">
<block type="get_value" id="iKo5y:4IDwY_(3cUXX^K">
<field name="ATTR">val</field>
<field name="OID">javascript.1.Astro.tageszeitAstro</field>
</block>
</value>
<next>
<block type="logic_switch_case" id="JT$duBS_p7y$8+(0M_z{">
<mutation xmlns="http://www.w3.org/1999/xhtml" case="12"></mutation>
<value name="CONDITION">
<block type="variables_get" id="!dg2[Z!W!4R#u*Q.i7`5">
<field name="VAR" id="}]|=gtFre;w9yY,[=7lI">Tageszeit</field>
</block>
</value>
<value name="CASECONDITION0">
<block type="text" id="N6d$R9t[?]3@@bP+68hw">
<field name="TEXT">Ende der Nacht</field>
</block>
</value>
<statement name="CASE0">
<block type="variables_set" id="|yqLkR:?uLiTj.vNEwUD">
<field name="VAR" id=":qT#5s~-UWG+Vt31HBM7">CT</field>
<value name="VALUE">
<block type="math_number" id="Yw`ZYA2K8X**YEtOa.(9">
<field name="NUM">340</field>
</block>
</value>
<next>
<block type="variables_set" id="f-`9BfO/i#RLX!*{cT[F">
<field name="VAR" id="`^9LHKa4;9|YkBzURxJl">Level</field>
<value name="VALUE">
<block type="math_number" id="1`_V)Fy`!qD#^d(XsRrK">
<field name="NUM">180</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<value name="CASECONDITION1">
<block type="text" id="ie^Y6Xq!MSe`FJGl`6%y">
<field name="TEXT">nautische Morgendämmerung</field>
</block>
</value>
<statement name="CASE1">
<block type="variables_set" id="S3|*dGRT%0rJ;PLbI.o~">
<field name="VAR" id=":qT#5s~-UWG+Vt31HBM7">CT</field>
<value name="VALUE">
<block type="math_number" id="Eftw~-_aJDSS`-d5m!yI">
<field name="NUM">330</field>
</block>
</value>
<next>
<block type="variables_set" id="s.q,fQ*JDf{}~klM^MR!">
<field name="VAR" id="`^9LHKa4;9|YkBzURxJl">Level</field>
<value name="VALUE">
<block type="math_number" id="rt{Fa3ZM-03O/2nP+nQ(">
<field name="NUM">190</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<value name="CASECONDITION2">
<block type="text" id="ShNmBHB,:YtEsIPdD5a-">
<field name="TEXT">Sonnenaufgang</field>
</block>
</value>
<statement name="CASE2">
<block type="variables_set" id="6f8?{E}j;P4Roo+,|.74">
<field name="VAR" id=":qT#5s~-UWG+Vt31HBM7">CT</field>
<value name="VALUE">
<block type="math_number" id="FLF#=z+c4dlyT=eG{$D-">
<field name="NUM">320</field>
</block>
</value>
<next>
<block type="variables_set" id="|oaW7uP3ej|G(#-9nr[U">
<field name="VAR" id="`^9LHKa4;9|YkBzURxJl">Level</field>
<value name="VALUE">
<block type="math_number" id="oAv7eOl3UQk(L2@1+5jp">
<field name="NUM">200</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<value name="CASECONDITION3">
<block type="text" id="p!zuW3Rd)*4Hw*Md2.b,">
<field name="TEXT">Ende des Sonnenaufgangs</field>
</block>
</value>
<statement name="CASE3">
<block type="variables_set" id="0u*TPKmt7FUAFYw1[7lu">
<field name="VAR" id=":qT#5s~-UWG+Vt31HBM7">CT</field>
<value name="VALUE">
<block type="math_number" id="6#!tL2OOYmfw%Sr}Kcb*">
<field name="NUM">310</field>
</block>
</value>
<next>
<block type="variables_set" id="kk+Ri!Q3FL;^+-oP(r,%">
<field name="VAR" id="`^9LHKa4;9|YkBzURxJl">Level</field>
<value name="VALUE">
<block type="math_number" id="~jE-0ypU|MmuY3,i5^]h">
<field name="NUM">230</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<value name="CASECONDITION4">
<block type="text" id="#=?CI_(vgnO)1|Mz!$u8">
<field name="TEXT">Ende der goldenen Stunde VM</field>
</block>
</value>
<statement name="CASE4">
<block type="variables_set" id="K@T;yQ{;KKv1!K)|~ld_">
<field name="VAR" id=":qT#5s~-UWG+Vt31HBM7">CT</field>
<value name="VALUE">
<block type="math_number" id="CHbycc5Y]}TX@;POAi)c">
<field name="NUM">300</field>
</block>
</value>
<next>
<block type="variables_set" id="`wi8zQAy3HhE2$4jzD3,">
<field name="VAR" id="`^9LHKa4;9|YkBzURxJl">Level</field>
<value name="VALUE">
<block type="math_number" id="%:@P:LMqx-LQx]~h#xLI">
<field name="NUM">230</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<value name="CASECONDITION5">
<block type="text" id="F(/%r:5LHNe+#SD-8c#P">
<field name="TEXT">Mittag</field>
</block>
</value>
<statement name="CASE5">
<block type="variables_set" id="TUu_p{vz`3xyh5|[z(BI">
<field name="VAR" id=":qT#5s~-UWG+Vt31HBM7">CT</field>
<value name="VALUE">
<block type="math_number" id="(6IHk_a=vKh(TL$RWYHr">
<field name="NUM">290</field>
</block>
</value>
<next>
<block type="variables_set" id="+o-tK%Rts:99MDH_1ih0">
<field name="VAR" id="`^9LHKa4;9|YkBzURxJl">Level</field>
<value name="VALUE">
<block type="math_number" id="xhM-+l5i,;bOn^0c),=+">
<field name="NUM">250</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<value name="CASECONDITION6">
<block type="text" id="{xa0Sz?N~*i#l3IS)mFp">
<field name="TEXT">goldene Abendstunde</field>
</block>
</value>
<statement name="CASE6">
<block type="variables_set" id="8V85l(d^p*(*:X*rB0-q">
<field name="VAR" id=":qT#5s~-UWG+Vt31HBM7">CT</field>
<value name="VALUE">
<block type="math_number" id="C|ekuRNip]4[cuop:aTU">
<field name="NUM">300</field>
</block>
</value>
<next>
<block type="variables_set" id="+8dtP!~DoiU}16.di?NY">
<field name="VAR" id="`^9LHKa4;9|YkBzURxJl">Level</field>
<value name="VALUE">
<block type="math_number" id="F{zgoF=7Jt!C,01HixUr">
<field name="NUM">230</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<value name="CASECONDITION7">
<block type="text" id="R6`0fj=+[l;X=+#e9UGQ">
<field name="TEXT">Start des Sonnenuntergangs</field>
</block>
</value>
<statement name="CASE7">
<block type="variables_set" id="?M-RQHsg|:9e%8)TQn|M">
<field name="VAR" id=":qT#5s~-UWG+Vt31HBM7">CT</field>
<value name="VALUE">
<block type="math_number" id="/%U,3Nvm]~$U1m%oqROn">
<field name="NUM">310</field>
</block>
</value>
<next>
<block type="variables_set" id="TTNlh`LKXpYPCjD%Eb-]">
<field name="VAR" id="`^9LHKa4;9|YkBzURxJl">Level</field>
<value name="VALUE">
<block type="math_number" id="M}Q|dn?Wf]q;@Uj2HBCw">
<field name="NUM">210</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<value name="CASECONDITION8">
<block type="text" id=":Y(YDo,GZOz{v,Gllg5!">
<field name="TEXT">Sonnenuntergang</field>
</block>
</value>
<statement name="CASE8">
<block type="variables_set" id="Ik5v*(H[tPq6hK5IjEPy">
<field name="VAR" id=":qT#5s~-UWG+Vt31HBM7">CT</field>
<value name="VALUE">
<block type="math_number" id="IHGGi%w4=`u4ovYaz_iv">
<field name="NUM">320</field>
</block>
</value>
<next>
<block type="variables_set" id="@z/[j/=+,gwHx=ZnQ?G*">
<field name="VAR" id="`^9LHKa4;9|YkBzURxJl">Level</field>
<value name="VALUE">
<block type="math_number" id="SR4$YcXzv.]r`c]77UlS">
<field name="NUM">200</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<value name="CASECONDITION9">
<block type="text" id="e*gqALcmsNLq1IwknVC`">
<field name="TEXT">Dämmerung Abends</field>
</block>
</value>
<statement name="CASE9">
<block type="variables_set" id="T4Z=v!p{xGaMT()R/hRG">
<field name="VAR" id=":qT#5s~-UWG+Vt31HBM7">CT</field>
<value name="VALUE">
<block type="math_number" id="a=1#wHkT!NlU@Y2Y+KaC">
<field name="NUM">330</field>
</block>
</value>
<next>
<block type="variables_set" id=":lA)VO4!(]W-ntQGy{S}">
<field name="VAR" id="`^9LHKa4;9|YkBzURxJl">Level</field>
<value name="VALUE">
<block type="math_number" id="^UB=ja*%1ck1)ly;xg~)">
<field name="NUM">190</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<value name="CASECONDITION10">
<block type="text" id="AYiV*l!Gfh`OMXf_,%1Z">
<field name="TEXT">nautische Dämmerung abends</field>
</block>
</value>
<statement name="CASE10">
<block type="variables_set" id="99JhfXb.@pxtr{AIEC/H">
<field name="VAR" id=":qT#5s~-UWG+Vt31HBM7">CT</field>
<value name="VALUE">
<block type="math_number" id="7y(p(uFigUl)?qZK.yN#">
<field name="NUM">340</field>
</block>
</value>
<next>
<block type="variables_set" id="n5Oy~R^~;q9NquJYV;+b">
<field name="VAR" id="`^9LHKa4;9|YkBzURxJl">Level</field>
<value name="VALUE">
<block type="math_number" id="t$e@!7%N/)/jSuB6siP_">
<field name="NUM">180</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<value name="CASECONDITION11">
<block type="text" id="m6QPIE,ehJu}oRZKtna0">
<field name="TEXT">Start der Nacht</field>
</block>
</value>
<statement name="CASE11">
<block type="variables_set" id="3t;fuXZOnco%pQ_*(hvV">
<field name="VAR" id=":qT#5s~-UWG+Vt31HBM7">CT</field>
<value name="VALUE">
<block type="math_number" id="q/[qf;ZZAQ11+0_jn|bQ">
<field name="NUM">350</field>
</block>
</value>
<next>
<block type="variables_set" id="L3El+jgHi2suzNX5Hkge">
<field name="VAR" id="`^9LHKa4;9|YkBzURxJl">Level</field>
<value name="VALUE">
<block type="math_number" id="FbrwT!s@`g,_~O3Ba3@s">
<field name="NUM">170</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<value name="CASECONDITION12">
<block type="text" id="JuhA#5|VJ*b2n)v+Tq#.">
<field name="TEXT">Mitternachtacht</field>
</block>
</value>
<statement name="CASE12">
<block type="variables_set" id="UG(E~TMq?)U2;Anda|~U">
<field name="VAR" id=":qT#5s~-UWG+Vt31HBM7">CT</field>
<value name="VALUE">
<block type="math_number" id="I-[%udEu?/,3c*y=lr2}">
<field name="NUM">360</field>
</block>
</value>
<next>
<block type="variables_set" id="/ga+oNh*f{qY:pfw%`Pc">
<field name="VAR" id="`^9LHKa4;9|YkBzURxJl">Level</field>
<value name="VALUE">
<block type="math_number" id="{k01:Gvq,Y!P~M|i:naE">
<field name="NUM">170</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<next>
<block type="control" id="pv1aFE=%+^hdnp;uJo~+">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">deconz.0.Lights.5.on</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="U0fqUC[DQvS!,c!EcKvW">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="control" id="wi)V?o:[!VKAGEJewh[G">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">deconz.0.Lights.5.ct</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="variables_get" id=".v:M!-M^]ezW,7tEfRG3">
<field name="VAR" id=":qT#5s~-UWG+Vt31HBM7">CT</field>
</block>
</value>
<next>
<block type="control" id="`K^GiDVpx++1{VP|,l.$">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">deconz.0.Lights.5.bri</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="variables_get" id="HrLmxCH6aH.jb4Xf!O.h">
<field name="VAR" id="`^9LHKa4;9|YkBzURxJl">Level</field>
</block>
</value>
<next>
<block type="debug" id="oi$_QZAx?,oRU!.egBAO">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="#OzXJEc_88)IFB8Pj:;{">
<field name="TEXT">SPEIS: Licht an!</field>
</shadow>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
<statement name="ELSE">
<block type="timeouts_settimeout" id="#~gUyN%mURb)e)h)edP9">
<field name="NAME">timeout</field>
<field name="DELAY">20</field>
<field name="UNIT">sec</field>
<statement name="STATEMENT">
<block type="control" id="q5*f]30bEtth@V8ynMa}">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">deconz.0.Lights.5.on</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="To^jQ)w/w|]jOa1t3[qZ">
<field name="BOOL">FALSE</field>
</block>
</value>
<next>
<block type="debug" id="u|Qb`8n;:z;yA-_%c*E2">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="lyEHI72Hk:{{w{K-E/bU">
<field name="TEXT">SPEIS: Licht aus!</field>
</shadow>
</value>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
</statement>
</block>
</xml>
Problem: Das Licht wird in ca. 1 von 15 Fällen nicht angeschalten.
Die verschiedenen Debug Ausgaben zeigen mir (soweit ich das glaube), dass der BWM eine Bewegung erkennt ("Bewegung erkannt"), trotzdem folgt im Protokoll kein "Licht an", oder eine "light not reachable" Meldung. Also wird wohl das Steuersignal nicht geschickt.
Liege ich hier richtig? Was ist der Fehler?