Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. Bewegungsmelder blockly nach Zeit

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    786

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    18
    1
    6.2k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.5k

Bewegungsmelder blockly nach Zeit

Scheduled Pinned Locked Moved Blockly
blockly
94 Posts 3 Posters 9.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • paul53P paul53

    @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 Offline
    S Offline
    sandro_gera
    wrote on last edited by
    #63

    @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

    Master RPI4 8GB, Slave RPI3 1GB
    Node.js v18.17.1, npm: 9.6.7,
    JS-Controller: 5.0.16

    paul53P 1 Reply Last reply
    0
    • paul53P paul53

      @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 Offline
      S Offline
      sandro_gera
      wrote on last edited by
      #64

      @paul53

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

      Master RPI4 8GB, Slave RPI3 1GB
      Node.js v18.17.1, npm: 9.6.7,
      JS-Controller: 5.0.16

      1 Reply Last reply
      0
      • S sandro_gera

        @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

        paul53P Offline
        paul53P Offline
        paul53
        wrote on last edited by
        #65

        @sandro_gera sagte:

        ich hatte 2 Skripte erstellt.

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

        Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
        Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

        S 1 Reply Last reply
        0
        • paul53P paul53

          @sandro_gera sagte:

          ich hatte 2 Skripte erstellt.

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

          S Offline
          S Offline
          sandro_gera
          wrote on last edited by
          #66

          @paul53

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

          Master RPI4 8GB, Slave RPI3 1GB
          Node.js v18.17.1, npm: 9.6.7,
          JS-Controller: 5.0.16

          paul53P 1 Reply Last reply
          0
          • S sandro_gera

            @paul53

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

            paul53P Offline
            paul53P Offline
            paul53
            wrote on last edited by
            #67

            @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 ?

            Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
            Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

            S 1 Reply Last reply
            0
            • paul53P paul53

              @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 Offline
              S Offline
              sandro_gera
              wrote on last edited by
              #68

              @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

              Master RPI4 8GB, Slave RPI3 1GB
              Node.js v18.17.1, npm: 9.6.7,
              JS-Controller: 5.0.16

              paul53P 1 Reply Last reply
              0
              • S sandro_gera

                @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

                paul53P Offline
                paul53P Offline
                paul53
                wrote on last edited by paul53
                #69

                @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>
                

                Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                S 2 Replies Last reply
                0
                • paul53P 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 Offline
                  S Offline
                  sandro_gera
                  wrote on last edited by
                  #70

                  @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.

                  Master RPI4 8GB, Slave RPI3 1GB
                  Node.js v18.17.1, npm: 9.6.7,
                  JS-Controller: 5.0.16

                  1 Reply Last reply
                  0
                  • paul53P 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 Offline
                    S Offline
                    sandro_gera
                    wrote on last edited by sandro_gera
                    #71

                    @paul53 said in Bewegungsmelder blockly nach Zeit:

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

                    Master RPI4 8GB, Slave RPI3 1GB
                    Node.js v18.17.1, npm: 9.6.7,
                    JS-Controller: 5.0.16

                    paul53P 1 Reply Last reply
                    0
                    • S 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?

                      paul53P Offline
                      paul53P Offline
                      paul53
                      wrote on last edited by paul53
                      #72

                      @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

                      Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                      Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                      S 3 Replies Last reply
                      0
                      • paul53P 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 Offline
                        S Offline
                        sandro_gera
                        wrote on last edited by
                        #73

                        @paul53

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

                        Master RPI4 8GB, Slave RPI3 1GB
                        Node.js v18.17.1, npm: 9.6.7,
                        JS-Controller: 5.0.16

                        1 Reply Last reply
                        0
                        • paul53P 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 Offline
                          S Offline
                          sandro_gera
                          wrote on last edited by sandro_gera
                          #74

                          @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.

                          Master RPI4 8GB, Slave RPI3 1GB
                          Node.js v18.17.1, npm: 9.6.7,
                          JS-Controller: 5.0.16

                          1 Reply Last reply
                          0
                          • paul53P 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 Offline
                            S Offline
                            sandro_gera
                            wrote on last edited by
                            #75

                            @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?

                            Master RPI4 8GB, Slave RPI3 1GB
                            Node.js v18.17.1, npm: 9.6.7,
                            JS-Controller: 5.0.16

                            paul53P 1 Reply Last reply
                            0
                            • S sandro_gera

                              @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?

                              paul53P Offline
                              paul53P Offline
                              paul53
                              wrote on last edited by
                              #76

                              @sandro_gera sagte:

                              Leider funktioniert es nicht, dass 60 Minuten vor Sonnenuntergang

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

                              Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                              Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                              S 2 Replies Last reply
                              1
                              • paul53P paul53

                                @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 Offline
                                S Offline
                                sandro_gera
                                wrote on last edited by
                                #77

                                @paul53

                                ok Danke dir virher hatte ich die -60 Min. nur bei Asto da hat es natürlich auch nicht funktiniert. Jetzt hab ich es an beiden Stellen. Dann erd eich morgen sehen obs klapt.
                                Danke dir

                                Master RPI4 8GB, Slave RPI3 1GB
                                Node.js v18.17.1, npm: 9.6.7,
                                JS-Controller: 5.0.16

                                haselchenH 1 Reply Last reply
                                0
                                • S sandro_gera

                                  @paul53

                                  ok Danke dir virher hatte ich die -60 Min. nur bei Asto da hat es natürlich auch nicht funktiniert. Jetzt hab ich es an beiden Stellen. Dann erd eich morgen sehen obs klapt.
                                  Danke dir

                                  haselchenH Offline
                                  haselchenH Offline
                                  haselchen
                                  Most Active
                                  wrote on last edited by haselchen
                                  #78

                                  @sandro_gera

                                  Deswegen hatte ich dir, glaube ich damals, zum Lichtsensor geraten.
                                  Da musste kein Offset Versatz oder sonst was einstellen. Kostet 10 Euro.
                                  Dunkel ist dunkel und hell ist hell.

                                  Synology DS218+ & 2 x Fujitsu Esprimo (VM/Container) + FritzBox7590 + 2 AVM 3000 Repeater & Homematic & HUE & Osram & Xiaomi, NPM 10.9.4, Nodejs 22.21.0 ,JS Controller 7.0.7 ,Admin 7.7.19

                                  S 1 Reply Last reply
                                  0
                                  • haselchenH haselchen

                                    @sandro_gera

                                    Deswegen hatte ich dir, glaube ich damals, zum Lichtsensor geraten.
                                    Da musste kein Offset Versatz oder sonst was einstellen. Kostet 10 Euro.
                                    Dunkel ist dunkel und hell ist hell.

                                    S Offline
                                    S Offline
                                    sandro_gera
                                    wrote on last edited by
                                    #79

                                    @haselchen

                                    Ja danke das ist schon klar aber den Bewegungsmelder hab ich noch da und bevor ich ihn entsorge oder was zusätzliches kaufe nutz ich es eben so. Irgendwann werde ich mir sowieso noch die Aqra Präsenzmeler holen.

                                    Master RPI4 8GB, Slave RPI3 1GB
                                    Node.js v18.17.1, npm: 9.6.7,
                                    JS-Controller: 5.0.16

                                    haselchenH 1 Reply Last reply
                                    0
                                    • S sandro_gera

                                      @haselchen

                                      Ja danke das ist schon klar aber den Bewegungsmelder hab ich noch da und bevor ich ihn entsorge oder was zusätzliches kaufe nutz ich es eben so. Irgendwann werde ich mir sowieso noch die Aqra Präsenzmeler holen.

                                      haselchenH Offline
                                      haselchenH Offline
                                      haselchen
                                      Most Active
                                      wrote on last edited by
                                      #80

                                      @sandro_gera
                                      Die Investition von 10 Euro machen sich ja für das ganze Haus bezahlt.
                                      Wenn der Sensor draussen Dunkelheit registriert kann er die Lampen oder sonst was im Haus steuern und nicht nur einen Bereich.
                                      Bevor ich mir x-fach einen abbreche mit nem Blockly, dass Andere für mich erstellen müssen 😉 habe ich längst 10 Euro ausgegeben.

                                      Synology DS218+ & 2 x Fujitsu Esprimo (VM/Container) + FritzBox7590 + 2 AVM 3000 Repeater & Homematic & HUE & Osram & Xiaomi, NPM 10.9.4, Nodejs 22.21.0 ,JS Controller 7.0.7 ,Admin 7.7.19

                                      S 1 Reply Last reply
                                      0
                                      • haselchenH haselchen

                                        @sandro_gera
                                        Die Investition von 10 Euro machen sich ja für das ganze Haus bezahlt.
                                        Wenn der Sensor draussen Dunkelheit registriert kann er die Lampen oder sonst was im Haus steuern und nicht nur einen Bereich.
                                        Bevor ich mir x-fach einen abbreche mit nem Blockly, dass Andere für mich erstellen müssen 😉 habe ich längst 10 Euro ausgegeben.

                                        S Offline
                                        S Offline
                                        sandro_gera
                                        wrote on last edited by
                                        #81

                                        @haselchen

                                        Du hast prinzipell schon recht, aber ich möchte ja garnicht das alle Lampen im Haus gleichzeitig an gehen wenn es Dunkel wird sondern nur die in den Räumen in denen ich mich gerade aufhalte.

                                        Master RPI4 8GB, Slave RPI3 1GB
                                        Node.js v18.17.1, npm: 9.6.7,
                                        JS-Controller: 5.0.16

                                        haselchenH 1 Reply Last reply
                                        0
                                        • S sandro_gera

                                          @haselchen

                                          Du hast prinzipell schon recht, aber ich möchte ja garnicht das alle Lampen im Haus gleichzeitig an gehen wenn es Dunkel wird sondern nur die in den Räumen in denen ich mich gerade aufhalte.

                                          haselchenH Offline
                                          haselchenH Offline
                                          haselchen
                                          Most Active
                                          wrote on last edited by
                                          #82

                                          @sandro_gera

                                          Und das ist leider der Punkt, den ich bei Dir anprangern muss. Du liest nicht, was man dir schreibt.
                                          Dadurch, sorry wenn es so hart klingt, lernst du natürlich auch nichts.
                                          Ich hatte dir eben geschrieben, dass , wenn der Lichtsensor Dunkelheit registriert , du völlig frei bist mit dieser Information zu arbeiten.
                                          Entweder steuerst du das Licht im ganzen Haus oder Teile des Hauses oder nur ein Licht oder andere Geräte.

                                          Synology DS218+ & 2 x Fujitsu Esprimo (VM/Container) + FritzBox7590 + 2 AVM 3000 Repeater & Homematic & HUE & Osram & Xiaomi, NPM 10.9.4, Nodejs 22.21.0 ,JS Controller 7.0.7 ,Admin 7.7.19

                                          S 1 Reply Last reply
                                          0

                                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                          With your input, this post could be even better 💗

                                          Register Login
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          587

                                          Online

                                          32.8k

                                          Users

                                          82.7k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Home
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe