Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. komplettes Script zB. von November bis Januar aktivieren

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    komplettes Script zB. von November bis Januar aktivieren

    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Hicki last edited by Hicki

      Ich danke Dir.
      Hier mal meine Lösung. Würde es funktionieren?

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable id="aL_X)*sBl03%NEW0`$16">licht</variable>
        </variables>
        <block type="variables_set" id="nAb*8A.{e9B7yRo7Vp4$" x="-255" y="7">
          <field name="VAR" id="aL_X)*sBl03%NEW0`$16">licht</field>
          <value name="VALUE">
            <block type="get_value" id="5osR!02k6g`HA4bCFFc3">
              <field name="ATTR">val</field>
              <field name="OID">meross.0.2103167712159190845648e1e962ef89.2</field>
            </block>
          </value>
          <next>
            <block type="on_ext" id="{C!-q#5L0R;9f?kYAsry">
              <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="E`(8h#e|S}7v|r5d0.Mc">
                  <field name="oid">hm-rpc.0.PEQ1447187.1.LUX</field>
                </shadow>
              </value>
              <statement name="STATEMENT">
                <block type="controls_if" id="G^5|WqVzjvmK,U%fMdMq">
                  <value name="IF0">
                    <block type="logic_operation" id="0!U[bEw56oGuFc_yfZqy" inline="false">
                      <field name="OP">OR</field>
                      <value name="A">
                        <block type="logic_compare" id="47YF}hPY)Nx(JS!4Y~td">
                          <field name="OP">GTE</field>
                          <value name="A">
                            <block type="time_get" id="z}:J)6`L7;6o}JW~sJ`u">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                              <field name="OPTION">MM.DD</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="text" id="kPaw)1bj?}#e*j7(+OuX">
                              <field name="TEXT">12/01</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_compare" id="dWU^lD%(7ac*e$PKNrhF">
                          <field name="OP">LTE</field>
                          <value name="A">
                            <block type="time_get" id="d(3^$vsg3DKf@7wn(_9s">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                              <field name="OPTION">MM.DD</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="text" id="=L^_)Og/Pb#z58x$Ks0;">
                              <field name="TEXT">01/31</field>
                            </block>
                          </value>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="controls_if" id=";}+3f,3x_YBFZFD~i@.Y">
                      <mutation elseif="1"></mutation>
                      <value name="IF0">
                        <block type="time_compare" id="b^e@Rw{#Wsk;K#:VY3;#">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation>
                          <field name="OPTION">between</field>
                          <field name="START_TIME">6:00</field>
                          <field name="END_TIME">23:00</field>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="variables_set" id="VbB+lbG|FS58Fk3H5vcH">
                          <field name="VAR" id="aL_X)*sBl03%NEW0`$16">licht</field>
                          <value name="VALUE">
                            <block type="logic_compare" id="_#buL5doh#t/okTN*!a6">
                              <field name="OP">LT</field>
                              <value name="A">
                                <block type="on_source" id="VEtoDSob:sF14%jmnXr[">
                                  <field name="ATTR">state.val</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="math_number" id="V!?+lG#2|7VQ-dgnn?4|">
                                  <field name="NUM">300</field>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </statement>
                      <value name="IF1">
                        <block type="logic_operation" id="IC)`}jgNen5F1N#Qjb:~" inline="false">
                          <field name="OP">AND</field>
                          <value name="A">
                            <block type="time_compare" id="qhQ*DY~ZoD9U*WJiSE.8">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="false"></mutation>
                              <field name="OPTION">&gt;</field>
                              <field name="START_TIME">23:00</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_compare" id="FeHt$8yMCXvUq$5ye-RE">
                              <field name="OP">LT</field>
                              <value name="A">
                                <block type="on_source" id="wr/psQ*vKTIf+8y}gg4R">
                                  <field name="ATTR">state.val</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="math_number" id="lIx1BP/VE)`}t!k!U4r|">
                                  <field name="NUM">300</field>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO1">
                        <block type="variables_set" id="L+4Ku-/v|69KE0nD7Pb7">
                          <field name="VAR" id="aL_X)*sBl03%NEW0`$16">licht</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="W,a2FN}d^%PaI]hyCYkK">
                              <field name="BOOL">TRUE</field>
                            </block>
                          </value>
                        </block>
                      </statement>
                      <next>
                        <block type="controls_if" id="_qgWF*jdZ/QKfr9POs0L">
                          <value name="IF0">
                            <block type="logic_compare" id="X7KYR)Q6|-QL@=*ZWTBD">
                              <field name="OP">NEQ</field>
                              <value name="A">
                                <block type="variables_get" id="[-Bv!#,hV:Yz8I53N2Y~">
                                  <field name="VAR" id="aL_X)*sBl03%NEW0`$16">licht</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="get_value" id="kD~ukn|f|d@uo5#GX.y}">
                                  <field name="ATTR">val</field>
                                  <field name="OID">meross.0.2103167712159190845648e1e962ef89.2</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="control" id="fT~xYZ|F)+1p)_rAB}a,">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">meross.0.2103167712159190845648e1e962ef89.2</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="variables_get" id="y8rYr_L_eWEvAR[d$pG_">
                                  <field name="VAR" id="aL_X)*sBl03%NEW0`$16">licht</field>
                                </block>
                              </value>
                            </block>
                          </statement>
                          <next>
                            <block type="debug" id=":;07tr72fVw{?`HNic(q">
                              <field name="Severity">log</field>
                              <value name="TEXT">
                                <shadow type="text" id="3P6x:CGgrB2V^fsr0hn0">
                                  <field name="TEXT">test</field>
                                </shadow>
                                <block type="text_join" id="!E[?o{_K5c3tfHgAa+6O">
                                  <mutation items="4"></mutation>
                                  <value name="ADD0">
                                    <block type="text" id=":,psL={k/UsAtc1$,U=1">
                                      <field name="TEXT">Außenbeleuchtung:</field>
                                    </block>
                                  </value>
                                  <value name="ADD1">
                                    <block type="variables_get" id="(ybtL.qIEg()hW:uHkyH">
                                      <field name="VAR" id="aL_X)*sBl03%NEW0`$16">licht</field>
                                    </block>
                                  </value>
                                  <value name="ADD2">
                                    <block type="text" id="gmO[[Owfys^]w}t]IQTL">
                                      <field name="TEXT"> und Helligkeit:</field>
                                    </block>
                                  </value>
                                  <value name="ADD3">
                                    <block type="get_value" id="~7fMP8j.GBv_e,jA{XD[">
                                      <field name="ATTR">val</field>
                                      <field name="OID">hm-rpc.0.PEQ1447187.1.LUX</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </statement>
              <next>
                <block type="schedule" id="ak~y9Iwu#Cup^J),=;v@">
                  <field name="SCHEDULE">0 3 * * *</field>
                  <statement name="STATEMENT">
                    <block type="control" id="oZj+MJkM;{]VnsEg.;A^">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">meross.0.2103167712159190845648e1e962ef89.2</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="cV3]LAPIrt2tIOX-)d|t">
                          <field name="BOOL">FALSE</field>
                        </block>
                      </value>
                      <next>
                        <block type="debug" id="7^r40|R30Z}3Kv)r|f8f">
                          <field name="Severity">log</field>
                          <value name="TEXT">
                            <shadow type="text" id="3P6x:CGgrB2V^fsr0hn0">
                              <field name="TEXT">test</field>
                            </shadow>
                            <block type="text_join" id="y/kf?#2~+Z[c#pQjx#Z)">
                              <mutation items="4"></mutation>
                              <value name="ADD0">
                                <block type="text" id="]u=J_0w=vHN{zR/[yPoZ">
                                  <field name="TEXT">Außenbeleuchtung:</field>
                                </block>
                              </value>
                              <value name="ADD1">
                                <block type="variables_get" id="W^;Ww~TaenQB+RO$hkHN">
                                  <field name="VAR" id="aL_X)*sBl03%NEW0`$16">licht</field>
                                </block>
                              </value>
                              <value name="ADD2">
                                <block type="text" id="h6f=xZOU[Zo.](Qcl+v)">
                                  <field name="TEXT"> und Helligkeit:</field>
                                </block>
                              </value>
                              <value name="ADD3">
                                <block type="get_value" id=",=-.E{00d*V[KQse*.GF">
                                  <field name="ATTR">val</field>
                                  <field name="OID">hm-rpc.0.PEQ1447187.1.LUX</field>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </next>
                    </block>
                  </statement>
                  <next>
                    <block type="schedule" id=",ECUIntEI0QA|h_h+kct">
                      <field name="SCHEDULE">0 6 * * *</field>
                      <statement name="STATEMENT">
                        <block type="controls_if" id=",}pMxq4a7bGFzlZ^GWVf">
                          <value name="IF0">
                            <block type="logic_compare" id="uqgMXHv#IWDH6P9bzJ7w">
                              <field name="OP">LT</field>
                              <value name="A">
                                <block type="get_value" id="U;u.tz;2xslL9g4SO8qx">
                                  <field name="ATTR">val</field>
                                  <field name="OID">hm-rpc.0.PEQ1447187.1.LUX</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="math_number" id="}NM^dhdqr7^?*`h`R4t0">
                                  <field name="NUM">300</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="control" id="fBR6ceNE|aLkv?~u_*sn">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">meross.0.2103167712159190845648e1e962ef89.2</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="~9g-D.r!~]S;KRZ10Z6,">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                            </block>
                          </statement>
                          <next>
                            <block type="debug" id="[k9j)X3_5#kaEq`l,o]*">
                              <field name="Severity">log</field>
                              <value name="TEXT">
                                <shadow type="text" id="3P6x:CGgrB2V^fsr0hn0">
                                  <field name="TEXT">test</field>
                                </shadow>
                                <block type="text_join" id="l--#7]:HfKX$u94:lwEl">
                                  <mutation items="4"></mutation>
                                  <value name="ADD0">
                                    <block type="text" id="yD*h{N`o+]^xO|xUX^ZC">
                                      <field name="TEXT">Außenbeleuchtung:</field>
                                    </block>
                                  </value>
                                  <value name="ADD1">
                                    <block type="variables_get" id="TN-#Gu]hUM+${?$|}Z7r">
                                      <field name="VAR" id="aL_X)*sBl03%NEW0`$16">licht</field>
                                    </block>
                                  </value>
                                  <value name="ADD2">
                                    <block type="text" id="(.q3YL3bmfx4IpU$_z4r">
                                      <field name="TEXT"> und Helligkeit:</field>
                                    </block>
                                  </value>
                                  <value name="ADD3">
                                    <block type="get_value" id="KR/ZhBngvcuN5{7fcU{;">
                                      <field name="ATTR">val</field>
                                      <field name="OID">hm-rpc.0.PEQ1447187.1.LUX</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </next>
        </block>
      </xml>
      
      1 Reply Last reply Reply Quote 0
      • H
        Hicki @paul53 last edited by Hicki

        @paul53 sagte in komplettes Script zB. von November bis Januar aktivieren:

        @hicki sagte: von November bis Januar aktivieren.

        Im Datenpunkt-Trigger:

        Blockly_temp.JPG

        In den Zeitplänen mit CRON:

        Blockly_temp.JPG

        Hallo,
        ich habe es geändert, so wie es Paul53 geschrieben hat. Es funktioniert aber nicht.

        <xml xmlns="https://developers.google.com/blockly/xml">
          <variables>
            <variable id="aL_X)*sBl03%NEW0`$16">licht</variable>
            <variable id="h9D`_bjnh7+zfds1apYJ">monat</variable>
          </variables>
          <block type="variables_set" id="nAb*8A.{e9B7yRo7Vp4$" x="-312" y="-13">
            <field name="VAR" id="aL_X)*sBl03%NEW0`$16">licht</field>
            <value name="VALUE">
              <block type="get_value" id="5osR!02k6g`HA4bCFFc3">
                <field name="ATTR">val</field>
                <field name="OID">meross.0.2103167712159190845648e1e962ef89.2</field>
              </block>
            </value>
            <next>
              <block type="on_ext" id="{C!-q#5L0R;9f?kYAsry">
                <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="E`(8h#e|S}7v|r5d0.Mc">
                    <field name="oid">hm-rpc.0.PEQ1447187.1.LUX</field>
                  </shadow>
                </value>
                <statement name="STATEMENT">
                  <block type="variables_set" id="+C=!uRkGaZV+@fwXn(^-">
                    <field name="VAR" id="h9D`_bjnh7+zfds1apYJ">monat</field>
                    <value name="VALUE">
                      <block type="time_get" id="SP54U[1N:+(T*JZQ35wy">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                        <field name="OPTION">M</field>
                      </block>
                    </value>
                    <next>
                      <block type="controls_if" id=";}+3f,3x_YBFZFD~i@.Y">
                        <mutation elseif="1"></mutation>
                        <value name="IF0">
                          <block type="logic_operation" id="2+e?:^M.*R-ZIHgD];C,">
                            <field name="OP">OR</field>
                            <value name="A">
                              <block type="logic_compare" id="i.rk`1TXp!JYA42Sew%U">
                                <field name="OP">GTE</field>
                                <value name="A">
                                  <block type="variables_get" id="vMq!pTewS+y1_IO8Bk6B">
                                    <field name="VAR" id="h9D`_bjnh7+zfds1apYJ">monat</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="math_number" id="$#|ns76)0ik=DuJX^0zN">
                                    <field name="NUM">11</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_compare" id="th?,9uz!uBdsFyN|jn:5">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="variables_get" id="@K=3Ujd]%!-{yW{Btq9S">
                                    <field name="VAR" id="h9D`_bjnh7+zfds1apYJ">monat</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="math_number" id="6u%uJ.L,f[{xNNP88$9n">
                                    <field name="NUM">1</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="controls_if" id="ah9bdqk^?`(F?iRu9K0E">
                            <value name="IF0">
                              <block type="time_compare" id="b^e@Rw{#Wsk;K#:VY3;#">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation>
                                <field name="OPTION">between</field>
                                <field name="START_TIME">6:00</field>
                                <field name="END_TIME">23:00</field>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="variables_set" id="VbB+lbG|FS58Fk3H5vcH">
                                <field name="VAR" id="aL_X)*sBl03%NEW0`$16">licht</field>
                                <value name="VALUE">
                                  <block type="logic_compare" id="_#buL5doh#t/okTN*!a6">
                                    <field name="OP">LT</field>
                                    <value name="A">
                                      <block type="on_source" id="VEtoDSob:sF14%jmnXr[">
                                        <field name="ATTR">state.val</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="math_number" id="V!?+lG#2|7VQ-dgnn?4|">
                                        <field name="NUM">350</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </statement>
                          </block>
                        </statement>
                        <value name="IF1">
                          <block type="logic_operation" id="IC)`}jgNen5F1N#Qjb:~" inline="false">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="time_compare" id="qhQ*DY~ZoD9U*WJiSE.8">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="false"></mutation>
                                <field name="OPTION">&gt;</field>
                                <field name="START_TIME">23:30</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_compare" id="FeHt$8yMCXvUq$5ye-RE">
                                <field name="OP">LT</field>
                                <value name="A">
                                  <block type="on_source" id="wr/psQ*vKTIf+8y}gg4R">
                                    <field name="ATTR">state.val</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="math_number" id="lIx1BP/VE)`}t!k!U4r|">
                                    <field name="NUM">350</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO1">
                          <block type="variables_set" id="L+4Ku-/v|69KE0nD7Pb7">
                            <field name="VAR" id="aL_X)*sBl03%NEW0`$16">licht</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="W,a2FN}d^%PaI]hyCYkK">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <next>
                          <block type="controls_if" id="_qgWF*jdZ/QKfr9POs0L">
                            <value name="IF0">
                              <block type="logic_compare" id="X7KYR)Q6|-QL@=*ZWTBD">
                                <field name="OP">NEQ</field>
                                <value name="A">
                                  <block type="variables_get" id="[-Bv!#,hV:Yz8I53N2Y~">
                                    <field name="VAR" id="aL_X)*sBl03%NEW0`$16">licht</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="get_value" id="kD~ukn|f|d@uo5#GX.y}">
                                    <field name="ATTR">val</field>
                                    <field name="OID">meross.0.2103167712159190845648e1e962ef89.2</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="control" id="w.%$^mNIRkE/BvQ_kibz">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">meross.0.2103167712159190845648e1e962ef89.2</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="variables_get" id="_b]p1k!)%d}f%ykWXd=4">
                                    <field name="VAR" id="aL_X)*sBl03%NEW0`$16">licht</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                            <next>
                              <block type="debug" id=":;07tr72fVw{?`HNic(q">
                                <field name="Severity">log</field>
                                <value name="TEXT">
                                  <shadow type="text" id="3P6x:CGgrB2V^fsr0hn0">
                                    <field name="TEXT">test</field>
                                  </shadow>
                                  <block type="text_join" id="!E[?o{_K5c3tfHgAa+6O">
                                    <mutation items="4"></mutation>
                                    <value name="ADD0">
                                      <block type="text" id=":,psL={k/UsAtc1$,U=1">
                                        <field name="TEXT">Außenbeleuchtung:</field>
                                      </block>
                                    </value>
                                    <value name="ADD1">
                                      <block type="variables_get" id="(ybtL.qIEg()hW:uHkyH">
                                        <field name="VAR" id="aL_X)*sBl03%NEW0`$16">licht</field>
                                      </block>
                                    </value>
                                    <value name="ADD2">
                                      <block type="text" id="gmO[[Owfys^]w}t]IQTL">
                                        <field name="TEXT"> und Helligkeit:</field>
                                      </block>
                                    </value>
                                    <value name="ADD3">
                                      <block type="get_value" id="~7fMP8j.GBv_e,jA{XD[">
                                        <field name="ATTR">val</field>
                                        <field name="OID">hm-rpc.0.PEQ1447187.1.LUX</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </statement>
                <next>
                  <block type="schedule" id="EF?3)TIqPV%Jq)SG/g|P">
                    <field name="SCHEDULE">0 2 * 1,11,12 *</field>
                    <statement name="STATEMENT">
                      <block type="control" id="e$Hyu9Sa.Sz9/5=Ma4TE">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">meross.0.2103167712159190845648e1e962ef89.2</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="Y9SG.fNG@^=%Y+$@ow|)">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                        <next>
                          <block type="debug" id="=e7HUvXBE%fz)WI8HLUD">
                            <field name="Severity">log</field>
                            <value name="TEXT">
                              <shadow type="text" id="3P6x:CGgrB2V^fsr0hn0">
                                <field name="TEXT">test</field>
                              </shadow>
                              <block type="text_join" id="3q=r},YXe!pv`V[ma!,4">
                                <mutation items="4"></mutation>
                                <value name="ADD0">
                                  <block type="text" id="q`mw%gyq)T$lgE)rqzm5">
                                    <field name="TEXT">Außenbeleuchtung:</field>
                                  </block>
                                </value>
                                <value name="ADD1">
                                  <block type="variables_get" id="p2svWA!S`R4*pV0%9e0?">
                                    <field name="VAR" id="aL_X)*sBl03%NEW0`$16">licht</field>
                                  </block>
                                </value>
                                <value name="ADD2">
                                  <block type="text" id="8GP6#MJ5^K`b?`g~f2*9">
                                    <field name="TEXT"> und Helligkeit:</field>
                                  </block>
                                </value>
                                <value name="ADD3">
                                  <block type="get_value" id="NAU_RnF6{6U?#-{_rOqv">
                                    <field name="ATTR">val</field>
                                    <field name="OID">hm-rpc.0.PEQ1447187.1.LUX</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </next>
                      </block>
                    </statement>
                    <next>
                      <block type="schedule" id="=1HK,tlY!FMQ?IZ%RF0,">
                        <field name="SCHEDULE">0 6 * 1,11,12 *</field>
                        <statement name="STATEMENT">
                          <block type="controls_if" id="U`8u9o:Am{Eun=MmoPK_">
                            <value name="IF0">
                              <block type="logic_compare" id="i)kldwDoimFLu5k8ox0_">
                                <field name="OP">LT</field>
                                <value name="A">
                                  <block type="get_value" id="_-:}|R08h~[Uj:eeFG#K">
                                    <field name="ATTR">val</field>
                                    <field name="OID">hm-rpc.0.PEQ1447187.1.LUX</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="math_number" id="0k|EA=5[YYT5]j0{|g^.">
                                    <field name="NUM">350</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="control" id="KXd3@lXse#4s[gt=zm@Z">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">meross.0.2103167712159190845648e1e962ef89.2</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="BN-5gr7sNQ?R^8E|3*m+">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                            <next>
                              <block type="debug" id="Vx}Nv%]Bt_k9]N^RakQS">
                                <field name="Severity">log</field>
                                <value name="TEXT">
                                  <shadow type="text" id="3P6x:CGgrB2V^fsr0hn0">
                                    <field name="TEXT">test</field>
                                  </shadow>
                                  <block type="text_join" id="p8.wQe+)UP~?43;ljchF">
                                    <mutation items="4"></mutation>
                                    <value name="ADD0">
                                      <block type="text" id="F7*Cv|^vdR#Ii(6B#S|o">
                                        <field name="TEXT">Außenbeleuchtung:</field>
                                      </block>
                                    </value>
                                    <value name="ADD1">
                                      <block type="variables_get" id="H~:(r8Vn#tJIH5kFM|u=">
                                        <field name="VAR" id="aL_X)*sBl03%NEW0`$16">licht</field>
                                      </block>
                                    </value>
                                    <value name="ADD2">
                                      <block type="text" id="*+C:ANSOjYY~O8=l?U0=">
                                        <field name="TEXT"> und Helligkeit:</field>
                                      </block>
                                    </value>
                                    <value name="ADD3">
                                      <block type="get_value" id="C,R}00?Q0*-VlVaY([+[">
                                        <field name="ATTR">val</field>
                                        <field name="OID">hm-rpc.0.PEQ1447187.1.LUX</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </next>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </xml>
        

        Was habe ich falsch gemacht?

        besser dargestellt

        zui.jpg

        2.jpg

        Homoran 1 Reply Last reply Reply Quote 0
        • Homoran
          Homoran Global Moderator Administrators @Hicki last edited by

          @hicki sagte in komplettes Script zB. von November bis Januar aktivieren:

          besser dargestellt

          dein falls mit den Zeitabfragen umschliesst nicht alles!
          ist das gewollt?

          @hicki sagte in komplettes Script zB. von November bis Januar aktivieren:

          Es funktioniert aber nicht.

          ...ist keine Fehlerbeschreibung!

          was passiert?
          was erwartest du?

          H 1 Reply Last reply Reply Quote 0
          • H
            Hicki @Homoran last edited by

            @homoran Hallo,
            ich erkläre noch einmal was ich genau mit dem Script erreichen will.

            Lichtsensor - Terrasse.LUX ist der Lichtsensor
            Objekt ID Switch2 ist schaltbare Steckdose

            Von November bis Januar soll das Script aktiv sein, dass heißt,
            von 6 - 23Uhr soll bei weniger als 350Lux die Steckdose an gehen
            ab 23.30Uhr Steckdose aus
            ab 6Uhr Steckdose wieder an bei weniger als 350Lux
            bei allen Uhrzeiten bei mehr als 350Lux Steckdose aus

            Ich hoffe es verständlich erklärt zu haben.

            Gruß Hicki

            paul53 Homoran 3 Replies Last reply Reply Quote 0
            • paul53
              paul53 @Hicki last edited by paul53

              @hicki sagte: ab 23.30Uhr Steckdose aus

              Weshalb dann per Zeitplan erst um 2:00 Uhr? Der Lux-Wert wird sich nach 23:00 Uhr nicht mehr ändern.

              Versuche es mal einfacher:

              Blockly_temp.JPG

              H 1 Reply Last reply Reply Quote 0
              • paul53
                paul53 @Hicki last edited by paul53

                @hicki sagte: bei allen Uhrzeiten bei mehr als 350Lux Steckdose aus

                Wenn der Wert um 350 Lux schwankt, geht das Licht ein und aus. Besser ist es, am Vormittag das Licht bei erster Überschreitung nur auszuschalten und abends bei erster Unterschreitung nur einzuschalten.

                Blockly_temp.JPG

                H 1 Reply Last reply Reply Quote 0
                • Homoran
                  Homoran Global Moderator Administrators @Hicki last edited by

                  @hicki sagte in komplettes Script zB. von November bis Januar aktivieren:

                  Ich hoffe es verständlich erklärt zu haben.

                  nicht wirklich!

                  also nochmal:

                  @hicki sagte in komplettes Script zB. von November bis Januar aktivieren:

                  Es funktioniert aber nicht.

                  heisst was?

                  1 Reply Last reply Reply Quote 0
                  • H
                    Hicki @paul53 last edited by

                    @paul53 sagte in komplettes Script zB. von November bis Januar aktivieren:

                    @hicki sagte: ab 23.30Uhr Steckdose aus

                    Weshalb dann per Zeitplan erst um 2:00 Uhr? Der Lux-Wert wird sich nach 23:00 Uhr nicht mehr ändern.

                    Versuche es mal einfacher:

                    Blockly_temp.JPG

                    Hallo,
                    weil 2Uhr das Licht ausgeschalten werden soll.

                    Homoran 1 Reply Last reply Reply Quote 0
                    • Homoran
                      Homoran Global Moderator Administrators @Hicki last edited by

                      @hicki sagte in komplettes Script zB. von November bis Januar aktivieren:

                      weil 2Uhr das Licht ausgeschalten werden soll.

                      und nicht wird?

                      aber die Systemzeit ist richtig?
                      Screenshot_20230303-095828_Firefox.jpg

                      1 Reply Last reply Reply Quote 0
                      • H
                        Hicki @paul53 last edited by Hicki

                        @paul53 sagte in komplettes Script zB. von November bis Januar aktivieren:

                        @hicki sagte: bei allen Uhrzeiten bei mehr als 350Lux Steckdose aus

                        Wenn der Wert um 350 Lux schwankt, geht das Licht ein und aus. Besser ist es, am Vormittag das Licht bei erster Überschreitung nur auszuschalten und abends bei erster Unterschreitung nur einzuschalten.

                        Blockly_temp.JPG

                        Hallo,
                        Abend geht das Licht nicht an.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post

                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        684
                        Online

                        31.8k
                        Users

                        80.0k
                        Topics

                        1.3m
                        Posts

                        4
                        14
                        596
                        Loading More Posts
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes
                        Reply
                        • Reply as topic
                        Log in to reply
                        Community
                        Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                        The ioBroker Community 2014-2023
                        logo