@paul53
vielen Dank! Habs grad geändert 🙂 War leider die letzten Tage ein wenig verhindert.
Kannst du mir kurz erklären warum man besser level und ct nehmen sollte?
Den rest versteh ich soweit
<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable type="timeout" id="timeout3">timeout3</variable>
<variable id="(pro]CKMoLpSb7/3|n%-">command</variable>
<variable id="bHQLWEj7b5wzBSJsHcD^">msg</variable>
</variables>
<block type="on_ext" id="YM.#/9w.1y~Z9?XJhnN5" x="-13" y="-263">
<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="%jTnyCDn%PgYB{8*.0lt">
<field name="oid">0_userdata.0.Shelly_Motion.Flur.Bewegung</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="f`]_ZnrJPO+/s2gj8/sr">
<mutation elseif="1"></mutation>
<value name="IF0">
<block type="on_source" id="TF(6%k,*T6r`8DVWoQ*F">
<field name="ATTR">state.val</field>
</block>
</value>
<statement name="DO0">
<block type="timeouts_cleartimeout" id="7rw,zduV-62(pcZLAR4;">
<field name="NAME">timeout3</field>
<next>
<block type="controls_if" id="NUrZmo8PtbZ%]ZmM}Ay[">
<value name="IF0">
<block type="logic_compare" id="%YGQ;ENgMFDy/{+4))4`">
<field name="OP">LT</field>
<value name="A">
<block type="get_value" id="wIdF:8b9kA*~F/qff=5Z">
<field name="ATTR">val</field>
<field name="OID">0_userdata.0.Shelly_Motion.Flur.Helligkeit</field>
</block>
</value>
<value name="B">
<block type="math_number" id="r@hhmCSZfyq;E~yWe[7[">
<field name="NUM">120</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="controls_if" id="h7@ZL~Ds[mUY-swP:E8w">
<mutation else="1"></mutation>
<value name="IF0">
<block type="time_compare_ex" id="IinX78=g^rHF1*}#0X9U">
<mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
<field name="USE_ACTUAL_TIME">TRUE</field>
<field name="OPTION">between</field>
<value name="START_TIME">
<shadow type="text" id="%E$W)O5]gL;7}2[;IKc(">
<field name="TEXT">12:00</field>
</shadow>
<block type="time_astro" id="em/$7v)/9yHe81BHSEzM">
<field name="TYPE">sunrise</field>
<field name="OFFSET">0</field>
</block>
</value>
<value name="END_TIME">
<shadow type="text" id="K$;.Fl*IiM.:6;T?E[kJ">
<field name="TEXT">18:00</field>
</shadow>
<block type="time_astro" id=":feDppezB6nmRmcbbjiO">
<field name="TYPE">sunset</field>
<field name="OFFSET">0</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="k}tCh4hW?u0.4fF2d1Z6">
<field name="VAR" id="(pro]CKMoLpSb7/3|n%-">command</field>
<value name="VALUE">
<block type="text" id="eo}9-n?!/.NI4%.|b6a^">
<field name="TEXT">{"level":100,"r":255,"g":255,"b":255}</field>
</block>
</value>
<next>
<block type="variables_set" id="JBc7f.IWh|jauHVD8E;d">
<field name="VAR" id="bHQLWEj7b5wzBSJsHcD^">msg</field>
<value name="VALUE">
<block type="text" id="u9WGrWY.`4xThx}d;=K/">
<field name="TEXT">Bewegung erkannt</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<statement name="ELSE">
<block type="variables_set" id="P7Klh^l%xIse%~hX4ko5">
<field name="VAR" id="(pro]CKMoLpSb7/3|n%-">command</field>
<value name="VALUE">
<block type="text" id="+S+/(x*$3a:m+-H$OV!e">
<field name="TEXT">{"r":30,"g":30,"b":30}</field>
</block>
</value>
<next>
<block type="variables_set" id="6yui|!]/hgW?RpyXm{Qf">
<field name="VAR" id="bHQLWEj7b5wzBSJsHcD^">msg</field>
<value name="VALUE">
<block type="text" id="hxf:u_Ab;3SD79fQwcd!">
<field name="TEXT">Bewegung erkannt, Licht wird gedimmt eingeschaltet da es Nacht ist</field>
</block>
</value>
</block>
</next>
</block>
</statement>
<next>
<block type="control" id="SoSfgq}EUBT)jjq6yp_P">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">hue.0.Flurlampe.command</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="variables_get" id="wBxNw|F7,DVF)lm7f|OW">
<field name="VAR" id="(pro]CKMoLpSb7/3|n%-">command</field>
</block>
</value>
<next>
<block type="telegram" id="BgU8(v6~qRa}ekN^#Yge">
<field name="INSTANCE"></field>
<field name="LOG"></field>
<field name="SILENT">FALSE</field>
<field name="PARSEMODE">default</field>
<field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field>
<value name="MESSAGE">
<shadow type="text" id="`9|sdj2.Xk+EdX8mB;DL">
<field name="TEXT">Bewegung erkannt, Licht wird gedimmt eingeschaltet da es Nacht ist</field>
</shadow>
<block type="variables_get" id="J%Iii3XJHx[1ZrcOBV99">
<field name="VAR" id="bHQLWEj7b5wzBSJsHcD^">msg</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</statement>
<value name="IF1">
<block type="logic_compare" id="!h_WGeZ,Z/E._Rij{Sv}">
<field name="OP">EQ</field>
<comment pinned="false" h="45" w="156">Hier nog den wert Bewegung rein</comment>
<value name="A">
<block type="get_value" id="dDCwv{=hri4$v1fFv-{n">
<field name="ATTR">val</field>
<field name="OID">hue.0.Flurlampe.on</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="(^/@91AbU*Q[Lm;I(sQ1">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="timeouts_settimeout" id="EWUG;n=f.[20rin0,hE9">
<field name="NAME">timeout3</field>
<field name="DELAY">1</field>
<field name="UNIT">min</field>
<statement name="STATEMENT">
<block type="control" id="0HYE3_4n37UW,~$P0nMM">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">hue.0.Flurlampe.on</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="Z`%+G6%8}mo(Oz+5Q|0R">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
</block>
</statement>
</block>
</xml>