Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Bewegungsmelder blockly nach Zeit

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Bewegungsmelder blockly nach Zeit

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

      @sandro_gera sagte:

      dann werd ich morgen mal sehen obs klappt

      Damit es bei Skriptstart klappt erweitere es um 2 Befehle:

      Blockly_temp.JPG

      S 1 Reply Last reply Reply Quote 1
      • S
        sandro_gera @paul53 last edited by

        @paul53

        Danke nochmal hat super geklappt

        1 Reply Last reply Reply Quote 0
        • S
          sandro_gera @paul53 last edited by

          @paul53 said in Bewegungsmelder blockly nach Zeit:

          @sandro_gera sagte in Bewegungsmelder blockly nach Zeit:

          Das Licht soll so lange an bleiben bis ich das Zimmer länger Zeit verlasse.

          Hat der BWM eine eigene Ausschaltverzögerung ? Dann sollte es so funktionieren:

          Blockly_temp.JPG

          <xml xmlns="https://developers.google.com/blockly/xml">
           <variables>
             <variable id="Ik?`;_^3$2,9W6VQSQ~3">manuell</variable>
           </variables>
           <block type="on_ext" id="m^ctya_*xjD8-KQUH,61" x="-387" y="-312">
             <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="_T7NQNq|6_KL]8~#AmPL">
                 <field name="oid">alias.0.Bewegungsmelder.Küche.OSRAM_Smart_plus_Motion_presence</field>
               </shadow>
             </value>
             <statement name="STATEMENT">
               <block type="controls_if" id="AjIawNtDhM8SXPVhw{e`">
                 <value name="IF0">
                   <block type="logic_operation" id="np6DF~Z57YL_4:oC@ot6" inline="false">
                     <field name="OP">AND</field>
                     <value name="A">
                       <block type="logic_negate" id="Hjw[|jxFGlaK+tB[Xzic">
                         <value name="BOOL">
                           <block type="variables_get" id="}CE3k{LCn40h(vIrYV=x">
                             <field name="VAR" id="Ik?`;_^3$2,9W6VQSQ~3">manuell</field>
                           </block>
                         </value>
                       </block>
                     </value>
                     <value name="B">
                       <block type="time_compare_ex" id="ey-,zU=|GQ~-lu2{d?05">
                         <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="CW1)M1p;$JsM:Cj5%}.p">
                             <field name="TEXT">12:00</field>
                           </shadow>
                           <block type="time_astro" id="Q?9@xZ*n9t/b-X?z:FKX">
                             <field name="TYPE">sunrise</field>
                             <field name="OFFSET">0</field>
                           </block>
                         </value>
                         <value name="END_TIME">
                           <shadow type="text" id="Lrv[#^v+EiYT/RyF-38]">
                             <field name="TEXT">18:00</field>
                           </shadow>
                           <block type="time_astro" id="?M!.Ij2q~S:14)nF3-B5">
                             <field name="TYPE">sunset</field>
                             <field name="OFFSET">0</field>
                           </block>
                         </value>
                       </block>
                     </value>
                   </block>
                 </value>
                 <statement name="DO0">
                   <block type="control" id="j{iYD3~l*zpr@KNEtMr[">
                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                     <field name="OID">alias.0.Licht.Kueche.Sitzecke_Küche</field>
                     <field name="WITH_DELAY">FALSE</field>
                     <value name="VALUE">
                       <block type="on_source" id="c(.$0bbY@%eg$Ft*!+(3">
                         <field name="ATTR">state.val</field>
                       </block>
                     </value>
                     <next>
                       <block type="control" id="`={{)Zg80|j]CRJ(JS]]">
                         <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                         <field name="OID">alias.0.Licht.Kueche.Spuele_Kueche</field>
                         <field name="WITH_DELAY">FALSE</field>
                         <value name="VALUE">
                           <block type="on_source" id="}|}r{Tsv9nSt4uM.8TcG">
                             <field name="ATTR">state.val</field>
                           </block>
                         </value>
                       </block>
                     </next>
                   </block>
                 </statement>
               </block>
             </statement>
             <next>
               <block type="on_ext" id="bC{yAAD)cQ4#p29#C@#_">
                 <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                 <field name="CONDITION">ne</field>
                 <field name="ACK_CONDITION"></field>
                 <value name="OID0">
                   <shadow type="field_oid" id=";n6#=sBC`|uZj*^.+N3j">
                     <field name="oid">default</field>
                   </shadow>
                   <block type="text" id="X0_^|HM$QaYHn,*+W%`h">
                     <field name="TEXT">alias.0.Licht.Kueche.Sitzecke_Küche</field>
                   </block>
                 </value>
                 <value name="OID1">
                   <shadow type="field_oid" id="cCX-Z1VJNG9*RN;paA1M">
                     <field name="oid">default</field>
                   </shadow>
                   <block type="text" id="aXD=w(l=78}W$Q!7%g/0">
                     <field name="TEXT">alias.0.Licht.Kueche.Spuele_Kueche</field>
                   </block>
                 </value>
                 <statement name="STATEMENT">
                   <block type="variables_set" id="H.X]pVt-[.SG*mSo2%;G">
                     <field name="VAR" id="Ik?`;_^3$2,9W6VQSQ~3">manuell</field>
                     <value name="VALUE">
                       <block type="logic_operation" id="5X;VDBZ5|G0)6[t;_Ill" inline="false">
                         <field name="OP">AND</field>
                         <value name="A">
                           <block type="logic_operation" id="w02V0-,Xdr^{n-JYU{ia" inline="false">
                             <field name="OP">OR</field>
                             <value name="A">
                               <block type="get_value_var" id="#3!yRfmWIjb^~=F87f}J">
                                 <field name="ATTR">val</field>
                                 <value name="OID">
                                   <shadow type="text" id="g)?W76,0dY|I8sIuL~(h">
                                     <field name="TEXT">alias.0.Licht.Kueche.Sitzecke_Küche</field>
                                   </shadow>
                                 </value>
                               </block>
                             </value>
                             <value name="B">
                               <block type="get_value_var" id="m%{V/b4yi]7q$9z-#CB7">
                                 <field name="ATTR">val</field>
                                 <value name="OID">
                                   <shadow type="text" id="[Od,*@MTq]#Uy9Jh+K%)">
                                     <field name="TEXT">alias.0.Licht.Kueche.Spuele_Kueche</field>
                                   </shadow>
                                 </value>
                               </block>
                             </value>
                           </block>
                         </value>
                         <value name="B">
                           <block type="logic_compare" id="g,4XFQ{VIRAB~u$kAFec">
                             <field name="OP">NEQ</field>
                             <value name="A">
                               <block type="on_source" id="avL^M)Ct_sI32]4a1]X.">
                                 <field name="ATTR">state.from</field>
                               </block>
                             </value>
                             <value name="B">
                               <block type="text" id="g%jGCj+)5XnCikl8P}Ni">
                                 <field name="TEXT">system.adapter.javascript.0</field>
                               </block>
                             </value>
                           </block>
                         </value>
                       </block>
                     </value>
                   </block>
                 </statement>
               </block>
             </next>
           </block>
          </xml>
          

          Dann muß ich das hier aber auch noch anpassen oder?

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

            @sandro_gera sagte:

            Dann muß ich das hier aber auch noch anpassen oder?

            Nur, wenn der BWM dauerhaft Bewegung meldet, was in der Küche sicherlich nicht der Fall ist.

            S 1 Reply Last reply Reply Quote 0
            • S
              sandro_gera @paul53 last edited by sandro_gera

              @paul53

              also das hat gerade nicht funktioniert. Ich bin in die Küche und hatte vorher den Fernsehr angeschaltet aber die Lampen gingen nicht an. Ich glaube nicht das der Bewegunsmelder ein Ausschaltverzögerung hat.

              Ich glaube es wäre besser, das in der Küche unanhäging von Fernseher zu steunern. Also das nach Sonnenuntergang und auslösen einer Bewegung die beiden Lampen in der Küche an gehen. Genau so vor Sonnenaufgang, Wenn ich dauerhaft aus der Küche gehe muß ich sie dann eben per Sprachbefehl ausschalten.

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

                @sandro_gera sagte:

                Ich glaube es wäre besser, das in der Küche unanhäging von Fernseher zu steunern.

                Wo spielt der Fernseher rein (sehe ich nicht) ?

                S 2 Replies Last reply Reply Quote 0
                • S
                  sandro_gera @paul53 last edited by

                  @paul53

                  Nein sorry, das war mein Fehler ich hatte 2 Skripte erstellt.
                  Eins das bei eingeschltetem Fernseher und wenn der Sonnenuntergang erreicht wird die Lampen angehen aber noch nicht mit dem richtigen Trigger. Das muß ich noch so änders wie im Arbeitszimmer.

                  Zusätzlich möchte ich aber ich das die beiden Lampen an gehen wenn der Bewegungsmelder ein Bewegung erkennt und es nach Sonnenuntegang bzw vor Sonnenaufgang ist

                  paul53 1 Reply Last reply Reply Quote 0
                  • S
                    sandro_gera @paul53 last edited by

                    @paul53

                    Im Arbeitzimmer fange ich ja oben mit Funktion Wandlampe and wie mache ich das wenn ich 2 Lampen steuern will?

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

                      @sandro_gera sagte:

                      ich hatte 2 Skripte erstellt.

                      Bitte nur ein Skript für die Steuerung von Aktoren verwenden !

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        sandro_gera @paul53 last edited by

                        @paul53

                        Also muß ich alles in ein skript bringen. Dann wirds ja noch komplexer.

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

                          @sandro_gera sagte:

                          Also muß ich alles in ein skript bringen.

                          Alles, was das Küchenlicht steuert.

                          Welche Wirkung hat der Fernseher auf das Licht ?

                          S 1 Reply Last reply Reply Quote 0
                          • S
                            sandro_gera @paul53 last edited by

                            @paul53

                            also, ich hab in alexa eine Routine "guten Morgen! angelegt nach der mir die Nachrichten vorgelesen werden sowie in der Küche die Kaffeemaschine sowie der Fernseher angehen.
                            Das wolle ich nutzen um die beiden Lampen mit einzuschalten. Allerdings nur vor Sonnenaufgang, weil ja im Sommer die Sonne früher auf geht. Des weiteren wollte ich, das wenn ich zum Beispiel koche und der Fernseh läuft und währen dessen der Sonnenuntegangszeitpunt erreicht wird die Lampen eingeschaltet werden.
                            Zusätzlich sollen die Lampen aber auch an gehen wenn ich die Küche nach Sonnenuntergang oder vor Sonnenaufgang betrete

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

                              @sandro_gera sagte in Bewegungsmelder blockly nach Zeit:

                              der Fernseh läuft und währen dessen der Sonnenuntegangszeitpunt erreicht wird die Lampen eingeschaltet werden.

                              Blockly_temp.JPG

                              <xml xmlns="https://developers.google.com/blockly/xml">
                               <variables>
                                 <variable id="axMt%fdpcxl0ZEo+-^HT">fernseher</variable>
                                 <variable id="L)cHX_fLlM2)1`,Cb?ZH">licht</variable>
                                 <variable id="Ik?`;_^3$2,9W6VQSQ~3">manuell</variable>
                                 <variable id=".VA02`Dw=+s=*(s%bZEX">bewegung</variable>
                               </variables>
                               <block type="procedures_defnoreturn" id="!?h]+p0}P#pP;6#IOY7#" x="-362" y="-588">
                                 <field name="NAME">kuechenlicht</field>
                                 <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                                 <statement name="STACK">
                                   <block type="controls_if" id="AjIawNtDhM8SXPVhw{e`">
                                     <value name="IF0">
                                       <block type="logic_operation" id="np6DF~Z57YL_4:oC@ot6" inline="false">
                                         <field name="OP">AND</field>
                                         <value name="A">
                                           <block type="logic_negate" id="Hjw[|jxFGlaK+tB[Xzic">
                                             <value name="BOOL">
                                               <block type="variables_get" id="}CE3k{LCn40h(vIrYV=x">
                                                 <field name="VAR" id="Ik?`;_^3$2,9W6VQSQ~3">manuell</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                         <value name="B">
                                           <block type="time_compare_ex" id="ey-,zU=|GQ~-lu2{d?05">
                                             <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="CW1)M1p;$JsM:Cj5%}.p">
                                                 <field name="TEXT">12:00</field>
                                               </shadow>
                                               <block type="time_astro" id="Q?9@xZ*n9t/b-X?z:FKX">
                                                 <field name="TYPE">sunrise</field>
                                                 <field name="OFFSET">0</field>
                                               </block>
                                             </value>
                                             <value name="END_TIME">
                                               <shadow type="text" id="Lrv[#^v+EiYT/RyF-38]">
                                                 <field name="TEXT">18:00</field>
                                               </shadow>
                                               <block type="time_astro" id="?M!.Ij2q~S:14)nF3-B5">
                                                 <field name="TYPE">sunset</field>
                                                 <field name="OFFSET">0</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                     <statement name="DO0">
                                       <block type="variables_set" id="Tn$c[{MmcwAH5wE8]P!O">
                                         <field name="VAR" id="L)cHX_fLlM2)1`,Cb?ZH">licht</field>
                                         <value name="VALUE">
                                           <block type="logic_operation" id="]K8pv,d!7wGC.YT-gbHq">
                                             <field name="OP">OR</field>
                                             <value name="A">
                                               <block type="variables_get" id="bMP|)z;2rtBSS8a;@D{2">
                                                 <field name="VAR" id=".VA02`Dw=+s=*(s%bZEX">bewegung</field>
                                               </block>
                                             </value>
                                             <value name="B">
                                               <block type="variables_get" id="b{VNtQwu8`MQ932vdUk8">
                                                 <field name="VAR" id="axMt%fdpcxl0ZEo+-^HT">fernseher</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                         <next>
                                           <block type="control" id="j{iYD3~l*zpr@KNEtMr[">
                                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                             <field name="OID">alias.0.Licht.Kueche.Sitzecke_Küche</field>
                                             <field name="WITH_DELAY">FALSE</field>
                                             <value name="VALUE">
                                               <block type="variables_get" id="e0m%|tA6J6/a}OCo-Ff^">
                                                 <field name="VAR" id="L)cHX_fLlM2)1`,Cb?ZH">licht</field>
                                               </block>
                                             </value>
                                             <next>
                                               <block type="control" id="`={{)Zg80|j]CRJ(JS]]">
                                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                 <field name="OID">alias.0.Licht.Kueche.Spuele_Kueche</field>
                                                 <field name="WITH_DELAY">FALSE</field>
                                                 <value name="VALUE">
                                                   <block type="variables_get" id="3I{3^0kG*Js|^qD5cKhJ">
                                                     <field name="VAR" id="L)cHX_fLlM2)1`,Cb?ZH">licht</field>
                                                   </block>
                                                 </value>
                                               </block>
                                             </next>
                                           </block>
                                         </next>
                                       </block>
                                     </statement>
                                   </block>
                                 </statement>
                               </block>
                               <block type="variables_set" id="T)Tl.(nxk9B=33_to2t," x="-362" y="-337">
                                 <field name="VAR" id="axMt%fdpcxl0ZEo+-^HT">fernseher</field>
                                 <value name="VALUE">
                                   <block type="get_value" id="?g7c$*k*X3YuCW{.M#w=">
                                     <field name="ATTR">val</field>
                                     <field name="OID">ID auswählen</field>
                                   </block>
                                 </value>
                                 <next>
                                   <block type="procedures_callnoreturn" id="Mo18#iZR0ri[q=)x(JU_">
                                     <mutation name="kuechenlicht"></mutation>
                                     <next>
                                       <block type="astro" id="26+g;)_^]K`o8.|$=]8Q">
                                         <field name="TYPE">sunrise</field>
                                         <field name="OFFSET">0</field>
                                         <statement name="STATEMENT">
                                           <block type="procedures_callnoreturn" id="gdZWlXzftnQa+d3GYH@X">
                                             <mutation name="kuechenlicht"></mutation>
                                           </block>
                                         </statement>
                                         <next>
                                           <block type="astro" id="sgYx[8F56y4DK;Ge;1uE">
                                             <field name="TYPE">sunset</field>
                                             <field name="OFFSET">0</field>
                                             <statement name="STATEMENT">
                                               <block type="procedures_callnoreturn" id="gek^ebTP[slOlzo~g;A5">
                                                 <mutation name="kuechenlicht"></mutation>
                                               </block>
                                             </statement>
                                             <next>
                                               <block type="on_ext" id="uSv(/$*c[/_7KFrx6c6V">
                                                 <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="Vi6D8so`ee[Uxz@S+Yh!">
                                                     <field name="oid">default</field>
                                                   </shadow>
                                                 </value>
                                                 <statement name="STATEMENT">
                                                   <block type="variables_set" id="IF=z=n7=E@;4?5bAFa1z">
                                                     <field name="VAR" id="axMt%fdpcxl0ZEo+-^HT">fernseher</field>
                                                     <value name="VALUE">
                                                       <block type="on_source" id="RIj;e,oFer^Eq:*wzk4H">
                                                         <field name="ATTR">state.val</field>
                                                       </block>
                                                     </value>
                                                     <next>
                                                       <block type="procedures_callnoreturn" id="TM,Kv;4*-=gt%:AO]y)P">
                                                         <mutation name="kuechenlicht"></mutation>
                                                       </block>
                                                     </next>
                                                   </block>
                                                 </statement>
                                                 <next>
                                                   <block type="on_ext" id="m^ctya_*xjD8-KQUH,61">
                                                     <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="_T7NQNq|6_KL]8~#AmPL">
                                                         <field name="oid">alias.0.Bewegungsmelder.Küche.OSRAM_Smart_plus_Motion_presence</field>
                                                       </shadow>
                                                     </value>
                                                     <statement name="STATEMENT">
                                                       <block type="variables_set" id="B8UvUuFlFaKLr4~{4|^|">
                                                         <field name="VAR" id=".VA02`Dw=+s=*(s%bZEX">bewegung</field>
                                                         <value name="VALUE">
                                                           <block type="on_source" id="c(.$0bbY@%eg$Ft*!+(3">
                                                             <field name="ATTR">state.val</field>
                                                           </block>
                                                         </value>
                                                         <next>
                                                           <block type="procedures_callnoreturn" id="TtX6er44A!AAZ]UE+EhT">
                                                             <mutation name="kuechenlicht"></mutation>
                                                           </block>
                                                         </next>
                                                       </block>
                                                     </statement>
                                                     <next>
                                                       <block type="on_ext" id="bC{yAAD)cQ4#p29#C@#_">
                                                         <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                                                         <field name="CONDITION">ne</field>
                                                         <field name="ACK_CONDITION"></field>
                                                         <value name="OID0">
                                                           <shadow type="field_oid" id=";n6#=sBC`|uZj*^.+N3j">
                                                             <field name="oid">default</field>
                                                           </shadow>
                                                           <block type="text" id="X0_^|HM$QaYHn,*+W%`h">
                                                             <field name="TEXT">alias.0.Licht.Kueche.Sitzecke_Küche</field>
                                                           </block>
                                                         </value>
                                                         <value name="OID1">
                                                           <shadow type="field_oid" id="cCX-Z1VJNG9*RN;paA1M">
                                                             <field name="oid">default</field>
                                                           </shadow>
                                                           <block type="text" id="aXD=w(l=78}W$Q!7%g/0">
                                                             <field name="TEXT">alias.0.Licht.Kueche.Spuele_Kueche</field>
                                                           </block>
                                                         </value>
                                                         <statement name="STATEMENT">
                                                           <block type="variables_set" id="H.X]pVt-[.SG*mSo2%;G">
                                                             <field name="VAR" id="Ik?`;_^3$2,9W6VQSQ~3">manuell</field>
                                                             <value name="VALUE">
                                                               <block type="logic_operation" id="5X;VDBZ5|G0)6[t;_Ill" inline="false">
                                                                 <field name="OP">AND</field>
                                                                 <value name="A">
                                                                   <block type="logic_operation" id="w02V0-,Xdr^{n-JYU{ia" inline="false">
                                                                     <field name="OP">OR</field>
                                                                     <value name="A">
                                                                       <block type="get_value_var" id="#3!yRfmWIjb^~=F87f}J">
                                                                         <field name="ATTR">val</field>
                                                                         <value name="OID">
                                                                           <shadow type="text" id="g)?W76,0dY|I8sIuL~(h">
                                                                             <field name="TEXT">alias.0.Licht.Kueche.Sitzecke_Küche</field>
                                                                           </shadow>
                                                                         </value>
                                                                       </block>
                                                                     </value>
                                                                     <value name="B">
                                                                       <block type="get_value_var" id="m%{V/b4yi]7q$9z-#CB7">
                                                                         <field name="ATTR">val</field>
                                                                         <value name="OID">
                                                                           <shadow type="text" id="[Od,*@MTq]#Uy9Jh+K%)">
                                                                             <field name="TEXT">alias.0.Licht.Kueche.Spuele_Kueche</field>
                                                                           </shadow>
                                                                         </value>
                                                                       </block>
                                                                     </value>
                                                                   </block>
                                                                 </value>
                                                                 <value name="B">
                                                                   <block type="logic_compare" id="g,4XFQ{VIRAB~u$kAFec">
                                                                     <field name="OP">NEQ</field>
                                                                     <value name="A">
                                                                       <block type="on_source" id="avL^M)Ct_sI32]4a1]X.">
                                                                         <field name="ATTR">state.from</field>
                                                                       </block>
                                                                     </value>
                                                                     <value name="B">
                                                                       <block type="text" id="g%jGCj+)5XnCikl8P}Ni">
                                                                         <field name="TEXT">system.adapter.javascript.0</field>
                                                                       </block>
                                                                     </value>
                                                                   </block>
                                                                 </value>
                                                               </block>
                                                             </value>
                                                           </block>
                                                         </statement>
                                                       </block>
                                                     </next>
                                                   </block>
                                                 </next>
                                               </block>
                                             </next>
                                           </block>
                                         </next>
                                       </block>
                                     </next>
                                   </block>
                                 </next>
                               </block>
                              </xml>
                              

                              S 2 Replies Last reply Reply Quote 0
                              • S
                                sandro_gera @paul53 last edited by

                                @paul53

                                Ich bin beeindruckt wie du das so schnell hin bekommst. Wie machst du das ? Es tut mir leid das ich dich mit meinen Wünschen ständig nerve, aber ich würd das so nicht hinbekommen.

                                1 Reply Last reply Reply Quote 0
                                • S
                                  sandro_gera @paul53 last edited by sandro_gera

                                  @paul53 said in Bewegungsmelder blockly nach Zeit:

                                  Eine Frage. bei Astro Sonnenaufgang beudetet das nicht das bei Sonnenaufgang etwas passiert und nicht vorher?

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

                                    @sandro_gera sagte:

                                    das bei Sonnenaufgang etwas passiert und nicht vorher?

                                    Soll zum Zeitpunkt "Sonnenaufgang" das Licht nicht ausgeschaltet werden ? Dann aber so:

                                    Blockly_temp.JPG

                                    S 3 Replies Last reply Reply Quote 0
                                    • S
                                      sandro_gera @paul53 last edited by

                                      @paul53

                                      Doch natürlich ich dachte das war der Einschaltzeitpunkt. Wiedrmal mein Fehler

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        sandro_gera @paul53 last edited by sandro_gera

                                        @paul53

                                        Hallo Paul. ich hab nochmal ne Frage kann ich das so einstellen das das Skript 1 Stunde vor Sonnenuntergang aktive wird, weil es jetzt schon recht dunkel ist. Ich hab versucht Versatz -60 Minuten einzustellen aber das funktioniert nicht.

                                        OK ich hab es gefunden ich mußte es bei der Zeit einstellen.

                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          sandro_gera @paul53 last edited by

                                          @paul53

                                          Hallo Paul, ich muß leider doch nochmal stören. Ich hatte das Skript so erstellt.
                                          3aace491-7127-437a-bad2-8c45863e1796-image.png

                                          <xml xmlns="https://developers.google.com/blockly/xml">
                                            <variables>
                                              <variable id="bgX:Wxxn%S[O^9f,wDcC">computer</variable>
                                              <variable id="Ik?`;_^3$2,9W6VQSQ~3">manuell</variable>
                                            </variables>
                                            <block type="procedures_defnoreturn" id="li@;?QwWuFbHVeb0uMoX" x="-813" y="-562">
                                              <field name="NAME">wandlampe</field>
                                              <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                                              <statement name="STACK">
                                                <block type="controls_if" id="vQFC4G#mtRRlX.VWnqrI">
                                                  <value name="IF0">
                                                    <block type="logic_operation" id="Yy~I1gw@#1s|eb*^QU]s" inline="false">
                                                      <field name="OP">AND</field>
                                                      <value name="A">
                                                        <block type="logic_negate" id="Hjw[|jxFGlaK+tB[Xzic">
                                                          <value name="BOOL">
                                                            <block type="variables_get" id="}CE3k{LCn40h(vIrYV=x">
                                                              <field name="VAR" id="Ik?`;_^3$2,9W6VQSQ~3">manuell</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="time_compare_ex" id="ey-,zU=|GQ~-lu2{d?05">
                                                          <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="CW1)M1p;$JsM:Cj5%}.p">
                                                              <field name="TEXT">12:00</field>
                                                            </shadow>
                                                            <block type="time_astro" id="Q?9@xZ*n9t/b-X?z:FKX">
                                                              <field name="TYPE">sunrise</field>
                                                              <field name="OFFSET">0</field>
                                                            </block>
                                                          </value>
                                                          <value name="END_TIME">
                                                            <shadow type="text" id="Lrv[#^v+EiYT/RyF-38]">
                                                              <field name="TEXT">18:00</field>
                                                            </shadow>
                                                            <block type="time_astro" id="?M!.Ij2q~S:14)nF3-B5">
                                                              <field name="TYPE">sunset</field>
                                                              <field name="OFFSET">-60</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <statement name="DO0">
                                                    <block type="control" id="j{iYD3~l*zpr@KNEtMr[">
                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                      <field name="OID">alias.0.Licht.Arbeitszimmer.Wandlampe_Arbeitszimmer</field>
                                                      <field name="WITH_DELAY">FALSE</field>
                                                      <value name="VALUE">
                                                        <block type="variables_get" id="Zeh(oy7gF`2K[w|gV%fs">
                                                          <field name="VAR" id="bgX:Wxxn%S[O^9f,wDcC">computer</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </statement>
                                                </block>
                                              </statement>
                                            </block>
                                            <block type="variables_set" id="hP;B^;KNge^,;;UQNkIO" x="-813" y="-387">
                                              <field name="VAR" id="bgX:Wxxn%S[O^9f,wDcC">computer</field>
                                              <value name="VALUE">
                                                <block type="get_value" id="lFgj?Q~fl8@x6QAW0Bp6">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">alias.0.Steckdosen.Arbeitszimmer.Computer_1_Arbeitszimmer</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="procedures_callnoreturn" id="a:8axNpu=t@6Dgm|z$eI">
                                                  <mutation name="wandlampe"></mutation>
                                                  <next>
                                                    <block type="astro" id=";As25$]xOo`YtG[bxc^R">
                                                      <field name="TYPE">sunset</field>
                                                      <field name="OFFSET">0</field>
                                                      <statement name="STATEMENT">
                                                        <block type="procedures_callnoreturn" id="Zedx!5eNEb4Piu^Zg*%;">
                                                          <mutation name="wandlampe"></mutation>
                                                        </block>
                                                      </statement>
                                                      <next>
                                                        <block type="on_ext" id="m^ctya_*xjD8-KQUH,61">
                                                          <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="_T7NQNq|6_KL]8~#AmPL">
                                                              <field name="oid">alias.0.Steckdosen.Arbeitszimmer.Computer_1_Arbeitszimmer</field>
                                                            </shadow>
                                                          </value>
                                                          <statement name="STATEMENT">
                                                            <block type="variables_set" id="0s5m=A-i`}%1M~;LoAg;">
                                                              <field name="VAR" id="bgX:Wxxn%S[O^9f,wDcC">computer</field>
                                                              <value name="VALUE">
                                                                <block type="on_source" id="7[bt@dS+Kz?Lxlo-dOGP">
                                                                  <field name="ATTR">state.val</field>
                                                                </block>
                                                              </value>
                                                              <next>
                                                                <block type="procedures_callnoreturn" id="vGo?PRoGS~,Qg8tE26#e">
                                                                  <mutation name="wandlampe"></mutation>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </statement>
                                                          <next>
                                                            <block type="on_ext" id="Cc5FGM]lHd;8*-vEl(87">
                                                              <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="J82_w$aysD(,n#TfjKi$">
                                                                  <field name="oid">alias.0.Licht.Arbeitszimmer.Wandlampe_Arbeitszimmer</field>
                                                                </shadow>
                                                              </value>
                                                              <statement name="STATEMENT">
                                                                <block type="variables_set" id="H.X]pVt-[.SG*mSo2%;G">
                                                                  <field name="VAR" id="Ik?`;_^3$2,9W6VQSQ~3">manuell</field>
                                                                  <value name="VALUE">
                                                                    <block type="logic_operation" id="5X;VDBZ5|G0)6[t;_Ill" inline="false">
                                                                      <field name="OP">AND</field>
                                                                      <value name="A">
                                                                        <block type="on_source" id=";,DoXcaNX$3MumBC`(t%">
                                                                          <field name="ATTR">state.val</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="B">
                                                                        <block type="logic_compare" id="g,4XFQ{VIRAB~u$kAFec">
                                                                          <field name="OP">NEQ</field>
                                                                          <value name="A">
                                                                            <block type="on_source" id="avL^M)Ct_sI32]4a1]X.">
                                                                              <field name="ATTR">state.from</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="B">
                                                                            <block type="text" id="g%jGCj+)5XnCikl8P}Ni">
                                                                              <field name="TEXT">system.adapter.javascript.0</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </statement>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </xml>
                                          

                                          Leider funktioniert es nicht, dass 60 Minuten vor Sonnenuntergang,bei eingeschaltetem Computer, die Wandlampe angeschaltet wird.
                                          Kannst du mit weiterhelfen wie ich das hin bekomme?

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

                                            @sandro_gera sagte:

                                            Leider funktioniert es nicht, dass 60 Minuten vor Sonnenuntergang

                                            Der Astro-Trigger "Sonnenuntergang" benötigt ebenfalls den Versatz von -60 Minuten.

                                            S 2 Replies Last reply Reply Quote 1
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            868
                                            Online

                                            32.0k
                                            Users

                                            80.4k
                                            Topics

                                            1.3m
                                            Posts

                                            blockly
                                            3
                                            94
                                            5129
                                            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