Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. [gelöst] Lampe nach Zeit ein /ausschalten

    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

    [gelöst] Lampe nach Zeit ein /ausschalten

    This topic has been deleted. Only users with topic management privileges can see it.
    • DJMarc75
      DJMarc75 @Alero last edited by

      @alero sagte in Lampe nach Zeit ein /ausschalten:

      erst wenn der Fensterkontakt ausgelöst wird und der Bewegungsmelder anspricht

      Und gehen wir mal davon aus dass die Türe wegen Lüften offen ist und Du dann "irgendwann" in die Garage gehen willst dann hat das Skript keinerlei Funktion.

      Warum nicht den BWM als Trigger nehmen und die Bedingung "Terassentüre offen" nehmen ?

      A 1 Reply Last reply Reply Quote 0
      • A
        Alero @DJMarc75 last edited by

        @djmarc75

        das geht sicherlich auch mit dem bewegungsmelder.
        bei unssteht die Tür (Türgriff auf Offen) damit die rolladen nicht runterfahren. Den eigentlichen Impuls jkann er doch auch durch den Fensterkontakt bekommen da ich dann definitiv die tür aufmache und rausgehe.
        Beim jetztigen Script geht das licht zwar an aber nicht mehr von selber aus
        und da habe ich halt ein Probnlem mit dem Umsetzen. Bin kein Blockly spezi möchte aber gerne was dazu lernen und meine ccu3 scripte nach und nach durch blockly scripte ersetzen.

        DJMarc75 1 Reply Last reply Reply Quote 0
        • DJMarc75
          DJMarc75 @Alero last edited by

          @alero sagte in Lampe nach Zeit ein /ausschalten:

          Beim jetztigen Script geht das licht zwar an aber nicht mehr von selber aus

          Zeigen bitte 🙂

          A 1 Reply Last reply Reply Quote 0
          • A
            Alero @DJMarc75 last edited by

            @djmarc75


            15b61164-929b-4206-a23d-34c9d5429134-grafik.png

            DJMarc75 2 Replies Last reply Reply Quote 0
            • DJMarc75
              DJMarc75 @Alero last edited by

              @alero ok, moment 😉

              1 Reply Last reply Reply Quote 0
              • DJMarc75
                DJMarc75 @Alero last edited by

                @alero Probier mal so:

                Screenshot 2023-08-31 105820.png

                A 1 Reply Last reply Reply Quote 0
                • A
                  Alero @DJMarc75 last edited by Alero

                  @djmarc75
                  sorry
                  kann dir nicht ganz folgen. nutzt du hier nur den fenstergriff kontakt?

                  DJMarc75 2 Replies Last reply Reply Quote 0
                  • DJMarc75
                    DJMarc75 @Alero last edited by

                    @alero sagte in Lampe nach Zeit ein /ausschalten:

                    kann dir nicht ganz folgen

                    Woran hängts denn ?

                    Hier mal der Code zum Importieren:

                    <xml xmlns="https://developers.google.com/blockly/xml">
                     <variables>
                       <variable type="timeout" id="timeout">timeout</variable>
                       <variable type="timeout" id="ausschalten">ausschalten</variable>
                     </variables>
                     <block type="comment" id="+*IsMHAEB(ceUY:2oIZF" x="-188" y="12">
                       <field name="COMMENT">Türe</field>
                     </block>
                     <block type="on_ext" id="G{2=#b.4.gYd+S[_k|(y" x="-437" y="37">
                       <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="$XZ/Bjyx$#O1@9Gz](Qw">
                           <field name="oid">default</field>
                         </shadow>
                       </value>
                       <statement name="STATEMENT">
                         <block type="timeouts_cleartimeout" id="gv_.5t4VV8!DC_(y:Z)e">
                           <field name="NAME">timeout</field>
                           <next>
                             <block type="timeouts_settimeout" id="].7)hG4e.-1]JXRO?53g">
                               <field name="NAME">timeout</field>
                               <field name="DELAY">2000</field>
                               <field name="UNIT">ms</field>
                               <statement name="STATEMENT">
                                 <block type="controls_if" id="u,W0LKJK-Rh._V7Xez}*">
                                   <mutation elseif="1"></mutation>
                                   <value name="IF0">
                                     <block type="logic_operation" id="GciwD-niw{_$bqqVeOw0" inline="false">
                                       <field name="OP">AND</field>
                                       <value name="A">
                                         <block type="logic_compare" id="xvXfO3`rPHmLK[]vqPss">
                                           <field name="OP">EQ</field>
                                           <value name="A">
                                             <block type="on_source" id=";5RDlZDZ#ACpA-BPU-qU">
                                               <field name="ATTR">state.val</field>
                                             </block>
                                           </value>
                                           <value name="B">
                                             <block type="math_number" id="]^Cmm+`e{/21Hf~fMnj{">
                                               <field name="NUM">2</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="logic_operation" id="QH}hzY{GEjQS5^eE2}WL" inline="false">
                                           <field name="OP">AND</field>
                                           <value name="A">
                                             <block type="logic_negate" id="o;ClzSozQnz7a18$!{zX">
                                               <value name="BOOL">
                                                 <block type="get_value" id="Js5vD~K;E_zhhW`Y^!^=">
                                                   <field name="ATTR">val</field>
                                                   <field name="OID">ID auswählen</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                           <value name="B">
                                             <block type="time_compare_ex" id="GuqK_sz6Fi@VPQP^EXjg">
                                               <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                                               <field name="USE_ACTUAL_TIME">TRUE</field>
                                               <field name="OPTION">not between</field>
                                               <value name="START_TIME">
                                                 <shadow type="text" id="5`e2RLs?0;3M_)TNB!|^">
                                                   <field name="TEXT">12:00</field>
                                                 </shadow>
                                               </value>
                                               <value name="END_TIME">
                                                 <shadow type="text" id="0Yn2bGePq0LWm0fQFg)O">
                                                   <field name="TEXT">18:00</field>
                                                 </shadow>
                                               </value>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <statement name="DO0">
                                     <block type="control" id="m*ue8bd}{-Z!BAv(]pJ(">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                       <field name="OID">Object ID</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <value name="VALUE">
                                         <block type="logic_boolean" id="|^usU1{6^7GpFb55K/!z">
                                           <field name="BOOL">TRUE</field>
                                         </block>
                                       </value>
                                       <next>
                                         <block type="timeouts_settimeout" id=";ZcDj0C+KfIcQmviEDb1">
                                           <field name="NAME">ausschalten</field>
                                           <field name="DELAY">3</field>
                                           <field name="UNIT">min</field>
                                           <statement name="STATEMENT">
                                             <block type="control" id="zt_2D4k$[?@oC5S?ZhZM">
                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                               <field name="OID">Object ID</field>
                                               <field name="WITH_DELAY">FALSE</field>
                                               <value name="VALUE">
                                                 <block type="logic_boolean" id="UJ@iYQ_D$M)Q]$jL$L2l">
                                                   <field name="BOOL">FALSE</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </statement>
                                         </block>
                                       </next>
                                     </block>
                                   </statement>
                                   <value name="IF1">
                                     <block type="logic_operation" id="[UfA*lL~iGS=hC1QGzGp" inline="false">
                                       <field name="OP">OR</field>
                                       <value name="A">
                                         <block type="logic_compare" id="`!WQpeO42U.i`R~]-ScA">
                                           <field name="OP">EQ</field>
                                           <value name="A">
                                             <block type="on_source" id=":mHj=unlB9ISBrI[#kK]">
                                               <field name="ATTR">state.val</field>
                                             </block>
                                           </value>
                                           <value name="B">
                                             <block type="math_number" id="pUW^aC+(EPwDm]M320Vq">
                                               <field name="NUM">0</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="logic_compare" id="LPDn]p-+9cYC71prryN`">
                                           <field name="OP">EQ</field>
                                           <value name="A">
                                             <block type="on_source" id="T#3GLh/E^JLR%BKov^7Q">
                                               <field name="ATTR">state.val</field>
                                             </block>
                                           </value>
                                           <value name="B">
                                             <block type="math_number" id="%DU1-+fr@Y)p9]JJuH*3">
                                               <field name="NUM">1</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <statement name="DO1">
                                     <block type="control" id="f!7Z+(s~u65x$sOd4xsN">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                       <field name="OID">Object ID</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <value name="VALUE">
                                         <block type="logic_boolean" id="uNYc,Uo^KLUvn.ZXjwaq">
                                           <field name="BOOL">FALSE</field>
                                         </block>
                                       </value>
                                       <next>
                                         <block type="timeouts_cleartimeout" id=":xj.MU735LC)~a!kNiV0">
                                           <field name="NAME">ausschalten</field>
                                         </block>
                                       </next>
                                     </block>
                                   </statement>
                                 </block>
                               </statement>
                             </block>
                           </next>
                         </block>
                       </statement>
                     </block>
                     <block type="comment" id="zJ%`A+~A]gC@5g,GKxyo" x="87" y="187">
                       <field name="COMMENT">LichtDP</field>
                     </block>
                     <block type="comment" id="G8WZh5N6sUhz-h?I$b55" x="212" y="212">
                       <field name="COMMENT">anpassen</field>
                     </block>
                    </xml>
                    

                    A 1 Reply Last reply Reply Quote 0
                    • DJMarc75
                      DJMarc75 @Alero last edited by

                      @alero sagte in Lampe nach Zeit ein /ausschalten:

                      nutzt du hier nur den fenstergriff kontakt?

                      Als Trigger - so wie Du in Deinem Skript das auch machst.

                      A 1 Reply Last reply Reply Quote 0
                      • A
                        Alero @DJMarc75 last edited by

                        @djmarc75
                        ich denke du nutzt nur den fenstergriffkontakt, oder?

                        DJMarc75 1 Reply Last reply Reply Quote 0
                        • DJMarc75
                          DJMarc75 @Alero last edited by

                          @alero Setz mal den Blocklycode hier rein bitte (in Codetags !)

                          A 1 Reply Last reply Reply Quote 0
                          • A
                            Alero @DJMarc75 last edited by

                            @djmarc75

                            dann würde es doch auch angehen wenn der griff auf open (2) steht.
                            oder liege ich da falsch?

                            DJMarc75 1 Reply Last reply Reply Quote 0
                            • DJMarc75
                              DJMarc75 @Alero last edited by

                              @alero sagte in Lampe nach Zeit ein /ausschalten:

                              wenn der griff auf open (2) steht

                              Der Trigger ist ja der Griff.

                              A crunchip 2 Replies Last reply Reply Quote 0
                              • A
                                Alero @DJMarc75 last edited by

                                @djmarc75

                                BlocklyJavascriptTypeScriptRules
                                09:15:46.110	info	javascript.0 (387) Stop script script.js.common.Beleuchtung_Terrasse_bei_Dunkelheit
                                09:15:46.114	info	javascript.0 (387) Start javascript script.js.common.Beleuchtung_Terrasse_bei_Dunkelheit
                                09:15:46.116	info	javascript.0 (387) script.js.common.Beleuchtung_Terrasse_bei_Dunkelheit: registered 1 subscription, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
                                Ausgewählte Blöcke exportieren
                                
                                <xml xmlns="https://developers.google.com/blockly/xml">
                                  <variables>
                                    <variable type="timeout" id="timeout">timeout</variable>
                                  </variables>
                                  <block type="on" id="$8mK_S~;;.n+OVN/l*pT" x="-2587" y="-1037">
                                    <field name="OID">hm-rpc.1.0007DA4989ADED.1.STATE</field>
                                    <field name="CONDITION">ne</field>
                                    <field name="ACK_CONDITION"></field>
                                    <statement name="STATEMENT">
                                      <block type="timeouts_cleartimeout" id="{fMDjAPthwDd!$(h;Out">
                                        <field name="NAME">timeout</field>
                                        <next>
                                          <block type="timeouts_settimeout" id="*5W]N|^l*s17C7RjPQ@b">
                                            <field name="NAME">timeout</field>
                                            <field name="DELAY">2</field>
                                            <field name="UNIT">sec</field>
                                            <statement name="STATEMENT">
                                              <block type="controls_if" id=";P$ZuXjsa0pju+VGQ6zE">
                                                <mutation elseif="1"></mutation>
                                                <value name="IF0">
                                                  <block type="logic_operation" id="hdn09=,wjMGfhCmR=MUH" inline="false">
                                                    <field name="OP">AND</field>
                                                    <value name="A">
                                                      <block type="logic_negate" id="I|z;l8HNW-VAr^BiPsEa">
                                                        <value name="BOOL">
                                                          <block type="time_compare_ex" id="FyU~n,NxYnt!LMG{F[vl">
                                                            <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="QZO2@KmXY08z220b@:qT">
                                                                <field name="TEXT">12:00</field>
                                                              </shadow>
                                                              <block type="time_astro" id="v_?#s)k:c/yX|-Cggqzy">
                                                                <field name="TYPE">sunriseEnd</field>
                                                                <field name="OFFSET">-30</field>
                                                              </block>
                                                            </value>
                                                            <value name="END_TIME">
                                                              <shadow type="text" id="U0rQ5owVf;Ib@,3*O)BM">
                                                                <field name="TEXT">18:00</field>
                                                              </shadow>
                                                              <block type="time_astro" id="8e3P:).IV6S;65v55NqV">
                                                                <field name="TYPE">sunsetStart</field>
                                                                <field name="OFFSET">30</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="logic_operation" id="K@JC8t@hv5z9rjG#kUm(" inline="false">
                                                        <field name="OP">AND</field>
                                                        <value name="A">
                                                          <block type="logic_operation" id="N@z/~/a{S56VxM!AxGA!">
                                                            <field name="OP">AND</field>
                                                            <value name="A">
                                                              <block type="logic_compare" id="sb,u0q=s{IF8lHriGD#b">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="get_value" id="%tUT{1TVmM8DH^u11lqK">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">hm-rpc.0.IEQ0023606.1.STATE</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="logic_boolean" id="TR$Vc6O}GqRF~uhpNuCN">
                                                                    <field name="BOOL">FALSE</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="logic_compare" id="i~%W}{JE#i(]%g?H{aG=">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="get_value" id="}]t#7K,C_SB,H@JOy7BR">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">hm-rpc.1.0007DA4989ADED.1.STATE</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="math_number" id="*X(l22/j.R!Us!T;GoWo">
                                                                    <field name="NUM">2</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="logic_compare" id="d}8.NLBCiD(14qa^.td9">
                                                            <field name="OP">EQ</field>
                                                            <value name="A">
                                                              <block type="get_value" id="^a5H%Rw~2$KtVF6+x4q8">
                                                                <field name="ATTR">val</field>
                                                                <field name="OID">hm-rpc.1.000BDA499AEFB6.1.MOTION</field>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="logic_boolean" id="^VR(PB#ac#jQ$pnn4Rx9">
                                                                <field name="BOOL">TRUE</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <statement name="DO0">
                                                  <block type="control" id="?:kwasmBihapC9gm_@-@">
                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                    <field name="OID">hm-rpc.0.IEQ0023606.1.STATE</field>
                                                    <field name="WITH_DELAY">FALSE</field>
                                                    <value name="VALUE">
                                                      <block type="logic_boolean" id="gwxP/E2xby]_oUJ!jj)_">
                                                        <field name="BOOL">TRUE</field>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="debug" id="1P=);rXh2|w`:r#}kkNf">
                                                        <field name="Severity">log</field>
                                                        <value name="TEXT">
                                                          <shadow type="text" id="U^^j?l~KJAj(WdV|Bl)s">
                                                            <field name="TEXT">test</field>
                                                          </shadow>
                                                          <block type="text" id="q12nXDgWSB0*D[1Qrr0Y">
                                                            <field name="TEXT">Terrassentuer wurde geöffnet mit Licht an</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </statement>
                                                <value name="IF1">
                                                  <block type="logic_operation" id="-yh6MwkBtMO^DYm*;B,C">
                                                    <field name="OP">OR</field>
                                                    <value name="A">
                                                      <block type="logic_compare" id="T61}Z-X{@Wr0c9ed8{0$">
                                                        <field name="OP">EQ</field>
                                                        <value name="A">
                                                          <block type="get_value" id="8k[RQ.IfRAETOrAX9R-T">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">hm-rpc.1.0007DA4989ADED.1.STATE</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="math_number" id="=P*RC}Z-Gm@#W%PT,ToU">
                                                            <field name="NUM">0</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="logic_compare" id="uU:+n-#_N}_XM8SKMt:7">
                                                        <field name="OP">EQ</field>
                                                        <value name="A">
                                                          <block type="get_value" id="[/dat,l}`Uo*X#Bd6sml">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">hm-rpc.1.0007DA4989ADED.1.STATE</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="math_number" id="Lh?eB@|q#RJGnOq~7bVc">
                                                            <field name="NUM">1</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <statement name="DO1">
                                                  <block type="control" id="^Px+:y4QRL,1Wr@W}q_O">
                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                    <field name="OID">hm-rpc.0.IEQ0023606.1.STATE</field>
                                                    <field name="WITH_DELAY">FALSE</field>
                                                    <value name="VALUE">
                                                      <block type="logic_boolean" id="1.+dV/%jto:XYqfj4;q@">
                                                        <field name="BOOL">FALSE</field>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="debug" id="@GsNKj4;9w{EvxmvHv-Z">
                                                        <field name="Severity">log</field>
                                                        <value name="TEXT">
                                                          <shadow type="text" id="ycET$[i*MYq3GYrjok=u">
                                                            <field name="TEXT">test</field>
                                                          </shadow>
                                                          <block type="text" id="HS)$PHnT*}v6^Yn}79_m">
                                                            <field name="TEXT">Terrassentuer wurde gekippt oder geschlossen</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </statement>
                                              </block>
                                            </statement>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                  </block>
                                </xml>
                                
                                <xml xmlns="https://developers.google.com/blockly/xml">
                                  <variables>
                                    <variable type="timeout" id="timeout">timeout</variable>
                                  </variables>
                                  <block type="on" id="$8mK_S~;;.n+OVN/l*pT" x="-2587" y="-1037">
                                    <field name="OID">hm-rpc.1.0007DA4989ADED.1.STATE</field>
                                    <field name="CONDITION">ne</field>
                                    <field name="ACK_CONDITION"></field>
                                    <statement name="STATEMENT">
                                      <block type="timeouts_cleartimeout" id="{fMDjAPthwDd!$(h;Out">
                                        <field name="NAME">timeout</field>
                                        <next>
                                          <block type="timeouts_settimeout" id="*5W]N|^l*s17C7RjPQ@b">
                                            <field name="NAME">timeout</field>
                                            <field name="DELAY">2</field>
                                            <field name="UNIT">sec</field>
                                            <statement name="STATEMENT">
                                              <block type="controls_if" id=";P$ZuXjsa0pju+VGQ6zE">
                                                <mutation elseif="1"></mutation>
                                                <value name="IF0">
                                                  <block type="logic_operation" id="hdn09=,wjMGfhCmR=MUH" inline="false">
                                                    <field name="OP">AND</field>
                                                    <value name="A">
                                                      <block type="logic_negate" id="I|z;l8HNW-VAr^BiPsEa">
                                                        <value name="BOOL">
                                                          <block type="time_compare_ex" id="FyU~n,NxYnt!LMG{F[vl">
                                                            <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="QZO2@KmXY08z220b@:qT">
                                                                <field name="TEXT">12:00</field>
                                                              </shadow>
                                                              <block type="time_astro" id="v_?#s)k:c/yX|-Cggqzy">
                                                                <field name="TYPE">sunriseEnd</field>
                                                                <field name="OFFSET">-30</field>
                                                              </block>
                                                            </value>
                                                            <value name="END_TIME">
                                                              <shadow type="text" id="U0rQ5owVf;Ib@,3*O)BM">
                                                                <field name="TEXT">18:00</field>
                                                              </shadow>
                                                              <block type="time_astro" id="8e3P:).IV6S;65v55NqV">
                                                                <field name="TYPE">sunsetStart</field>
                                                                <field name="OFFSET">30</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="logic_operation" id="K@JC8t@hv5z9rjG#kUm(" inline="false">
                                                        <field name="OP">AND</field>
                                                        <value name="A">
                                                          <block type="logic_operation" id="N@z/~/a{S56VxM!AxGA!">
                                                            <field name="OP">AND</field>
                                                            <value name="A">
                                                              <block type="logic_compare" id="sb,u0q=s{IF8lHriGD#b">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="get_value" id="%tUT{1TVmM8DH^u11lqK">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">hm-rpc.0.IEQ0023606.1.STATE</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="logic_boolean" id="TR$Vc6O}GqRF~uhpNuCN">
                                                                    <field name="BOOL">FALSE</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="logic_compare" id="i~%W}{JE#i(]%g?H{aG=">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="get_value" id="}]t#7K,C_SB,H@JOy7BR">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">hm-rpc.1.0007DA4989ADED.1.STATE</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="math_number" id="*X(l22/j.R!Us!T;GoWo">
                                                                    <field name="NUM">2</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="logic_compare" id="d}8.NLBCiD(14qa^.td9">
                                                            <field name="OP">EQ</field>
                                                            <value name="A">
                                                              <block type="get_value" id="^a5H%Rw~2$KtVF6+x4q8">
                                                                <field name="ATTR">val</field>
                                                                <field name="OID">hm-rpc.1.000BDA499AEFB6.1.MOTION</field>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="logic_boolean" id="^VR(PB#ac#jQ$pnn4Rx9">
                                                                <field name="BOOL">TRUE</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <statement name="DO0">
                                                  <block type="control" id="?:kwasmBihapC9gm_@-@">
                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                    <field name="OID">hm-rpc.0.IEQ0023606.1.STATE</field>
                                                    <field name="WITH_DELAY">FALSE</field>
                                                    <value name="VALUE">
                                                      <block type="logic_boolean" id="gwxP/E2xby]_oUJ!jj)_">
                                                        <field name="BOOL">TRUE</field>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="debug" id="1P=);rXh2|w`:r#}kkNf">
                                                        <field name="Severity">log</field>
                                                        <value name="TEXT">
                                                          <shadow type="text" id="U^^j?l~KJAj(WdV|Bl)s">
                                                            <field name="TEXT">test</field>
                                                          </shadow>
                                                          <block type="text" id="q12nXDgWSB0*D[1Qrr0Y">
                                                            <field name="TEXT">Terrassentuer wurde geöffnet mit Licht an</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </statement>
                                                <value name="IF1">
                                                  <block type="logic_operation" id="-yh6MwkBtMO^DYm*;B,C">
                                                    <field name="OP">OR</field>
                                                    <value name="A">
                                                      <block type="logic_compare" id="T61}Z-X{@Wr0c9ed8{0$">
                                                        <field name="OP">EQ</field>
                                                        <value name="A">
                                                          <block type="get_value" id="8k[RQ.IfRAETOrAX9R-T">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">hm-rpc.1.0007DA4989ADED.1.STATE</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="math_number" id="=P*RC}Z-Gm@#W%PT,ToU">
                                                            <field name="NUM">0</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="logic_compare" id="uU:+n-#_N}_XM8SKMt:7">
                                                        <field name="OP">EQ</field>
                                                        <value name="A">
                                                          <block type="get_value" id="[/dat,l}`Uo*X#Bd6sml">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">hm-rpc.1.0007DA4989ADED.1.STATE</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="math_number" id="Lh?eB@|q#RJGnOq~7bVc">
                                                            <field name="NUM">1</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <statement name="DO1">
                                                  <block type="control" id="^Px+:y4QRL,1Wr@W}q_O">
                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                    <field name="OID">hm-rpc.0.IEQ0023606.1.STATE</field>
                                                    <field name="WITH_DELAY">FALSE</field>
                                                    <value name="VALUE">
                                                      <block type="logic_boolean" id="1.+dV/%jto:XYqfj4;q@">
                                                        <field name="BOOL">FALSE</field>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="debug" id="@GsNKj4;9w{EvxmvHv-Z">
                                                        <field name="Severity">log</field>
                                                        <value name="TEXT">
                                                          <shadow type="text" id="ycET$[i*MYq3GYrjok=u">
                                                            <field name="TEXT">test</field>
                                                          </shadow>
                                                          <block type="text" id="HS)$PHnT*}v6^Yn}79_m">
                                                            <field name="TEXT">Terrassentuer wurde gekippt oder geschlossen</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </statement>
                                              </block>
                                            </statement>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                  </block>
                                </xml>
                                
                                

                                das ist aber jetzt noch mit dem bewegungsmelder.

                                1 Reply Last reply Reply Quote 0
                                • A
                                  Alero @DJMarc75 last edited by

                                  @djmarc75

                                  es soll nur das Licht angehen wenn die Tür offen ist , es dunkel ist und in dem fall der Bm eine Bewegung erkannt hat.
                                  Der Tpüürgriff steht auch so schon mal auf offen obwohl keiner nach draussen geht.(wegen der Rollade)

                                  Codierknecht 1 Reply Last reply Reply Quote 0
                                  • crunchip
                                    crunchip Forum Testing Most Active @DJMarc75 last edited by

                                    @djmarc75 hab ich jetzt nen Denkfehler oder schaltet sich zu gegebener Uhrzeit das Licht ein und gleich wieder aus, wenn ich die Tür kippe?
                                    Griffbewegung
                                    zu=0
                                    offen=2
                                    kippen=1

                                    A DJMarc75 2 Replies Last reply Reply Quote 0
                                    • Codierknecht
                                      Codierknecht Developer Most Active @Alero last edited by

                                      @alero
                                      Dann ist der Trigger der BWM und der Griff nur eine Bedingung.

                                      1 Reply Last reply Reply Quote 1
                                      • A
                                        Alero @crunchip last edited by Alero

                                        @crunchip
                                        es sollte so sein dass wenn es dunkel ist und der fenstergriff auf 2 steht (offen) und der BM eine Bewegung erkannt hat , dann soll das Licht auf der terrasse angehen. so der plan.

                                        crunchip A Codierknecht 3 Replies Last reply Reply Quote 0
                                        • crunchip
                                          crunchip Forum Testing Most Active @Alero last edited by

                                          @alero ist mir schon klar, ich bezog mich auf @DJMarc75 script Beispiel

                                          Licht soll ja nur angehen, wenn BWM, also trigger BWM
                                          aber nur, wenn Tür = 2, schalte Licht

                                          1 Reply Last reply Reply Quote 0
                                          • A
                                            Alero @Alero last edited by

                                            und während des schreibens dachte ich es wäre vielleicht besser wenn ich das " fenster offen " über den Fensterkontakt mache. weil die Tür (der fenstergriff) auch schon mal auf offen steht obwohl keiner raus geht. dann soll das licht natürlich nicht angehen.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            549
                                            Online

                                            31.9k
                                            Users

                                            80.3k
                                            Topics

                                            1.3m
                                            Posts

                                            6
                                            93
                                            3049
                                            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