Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. [Gelöst] Rolladen mit Blockly Script steuern

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    [Gelöst] Rolladen mit Blockly Script steuern

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

      @paul53 sagte:

      Du musst noch Astro-Trigger (SA und SU) einsetzen.

      <xml xmlns="https://developers.google.com/blockly/xml">
       <variables>
         <variable id="*@#O`4um.(3hbA:(zHv7">rollos</variable>
         <variable id="/!l]R_6qje~AC4QCtkJt">Tuer_geschlossen</variable>
         <variable id=")z%f,tXn?!GbC|5$y{mm">rollo</variable>
       </variables>
       <block type="procedures_defnoreturn" id=",yKUl=3lGi+KjS5=;_Y#" x="187" y="-137">
         <mutation>
           <arg name="rollos" varid="*@#O`4um.(3hbA:(zHv7"></arg>
         </mutation>
         <field name="NAME">Fenster</field>
         <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
         <statement name="STACK">
           <block type="control" id="(3@GeX5GEZz|lAd.m$4{">
             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
             <field name="OID">hm-rpc.0.OEQ0892796.1.LEVEL</field>
             <field name="WITH_DELAY">TRUE</field>
             <field name="DELAY_MS">5</field>
             <field name="UNIT">sec</field>
             <field name="CLEAR_RUNNING">FALSE</field>
             <value name="VALUE">
               <block type="variables_get" id="UxT/HO0c!o{kB*(q!Ro4">
                 <field name="VAR" id="*@#O`4um.(3hbA:(zHv7">rollos</field>
               </block>
             </value>
             <next>
               <block type="control" id="?e[?w5,ltw.N-`2SC?s4">
                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                 <field name="OID">hm-rpc.0.OEQ0984789.1.LEVEL</field>
                 <field name="WITH_DELAY">TRUE</field>
                 <field name="DELAY_MS">10</field>
                 <field name="UNIT">sec</field>
                 <field name="CLEAR_RUNNING">FALSE</field>
                 <value name="VALUE">
                   <block type="variables_get" id="bSWRp{e8.#7C|qx$3u$o">
                     <field name="VAR" id="*@#O`4um.(3hbA:(zHv7">rollos</field>
                   </block>
                 </value>
               </block>
             </next>
           </block>
         </statement>
       </block>
       <block type="comment" id="-/:MDED2QW:auM;grBXD" x="63" y="-13">
         <field name="COMMENT">Terassentür</field>
         <next>
           <block type="variables_set" id="D}sjfjpWsoRYQO]|WP!I">
             <field name="VAR" id="/!l]R_6qje~AC4QCtkJt">Tuer_geschlossen</field>
             <value name="VALUE">
               <block type="logic_negate" id="A[dLLmlj+p6?TQGiZ~(4">
                 <value name="BOOL">
                   <block type="get_value" id="3HS,N8V{-|s6ijN]Rn{C">
                     <field name="ATTR">val</field>
                     <field name="OID">zigbee.0.00158d0002394252.opened</field>
                   </block>
                 </value>
               </block>
             </value>
             <next>
               <block type="on_ext" id="Fie!sxd/K|0_HFnhBbYh">
                 <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="/Iv)*899]Z6.,:_bpq1:">
                     <field name="oid">zigbee.0.00158d0002394252.opened</field>
                   </shadow>
                 </value>
                 <statement name="STATEMENT">
                   <block type="variables_set" id="U7C~jo=R(O.Q]EHu_|uu">
                     <field name="VAR" id="/!l]R_6qje~AC4QCtkJt">Tuer_geschlossen</field>
                     <value name="VALUE">
                       <block type="logic_negate" id="qJ=6#~`c#a}$R55TP[h{">
                         <value name="BOOL">
                           <block type="on_source" id="VG[E-RtgZu*JIL|4|){-">
                             <field name="ATTR">state.val</field>
                           </block>
                         </value>
                       </block>
                     </value>
                     <next>
                       <block type="procedures_callnoreturn" id="a=6aT_B7e^4fjS*BrfSr">
                         <mutation name="Terasse"></mutation>
                       </block>
                     </next>
                   </block>
                 </statement>
                 <next>
                   <block type="schedule" id="7qaQ}i:{``qvajje5=iB">
                     <field name="SCHEDULE">0 0 * * *</field>
                     <statement name="STATEMENT">
                       <block type="procedures_callnoreturn" id=")|YAW$Q@6?I9^3N+*[K-">
                         <mutation name="Terasse"></mutation>
                       </block>
                     </statement>
                     <next>
                       <block type="astro" id="$4Hlxa1h2e%RB3300)SG">
                         <field name="TYPE">sunrise</field>
                         <field name="OFFSET">0</field>
                         <statement name="STATEMENT">
                           <block type="procedures_callnoreturn" id="/)KMjI==#):Ad8M)xO(+">
                             <mutation name="Terasse"></mutation>
                             <next>
                               <block type="procedures_callnoreturn" id="0xSwd=wq5)R)5{*X^w_W">
                                 <mutation name="Fenster">
                                   <arg name="rollos"></arg>
                                 </mutation>
                                 <value name="ARG0">
                                   <block type="math_number" id="G3=%sL8e$TU2X{LMl+R@">
                                     <field name="NUM">100</field>
                                   </block>
                                 </value>
                               </block>
                             </next>
                           </block>
                         </statement>
                         <next>
                           <block type="astro" id="hr!AEW}qu`Jml+2ZvLk.">
                             <field name="TYPE">sunset</field>
                             <field name="OFFSET">0</field>
                             <statement name="STATEMENT">
                               <block type="controls_if" id="=?wrUl;5J?$mkZiA8yQ2">
                                 <value name="IF0">
                                   <block type="variables_get" id="W6mJ%^$5A3]AhtY_PHa=">
                                     <field name="VAR" id="/!l]R_6qje~AC4QCtkJt">Tuer_geschlossen</field>
                                   </block>
                                 </value>
                                 <statement name="DO0">
                                   <block type="control" id="SsQHo]fQo/QSLc%#-7X,">
                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                     <field name="OID">hm-rpc.0.OEQ0890233.1.LEVEL</field>
                                     <field name="WITH_DELAY">FALSE</field>
                                     <value name="VALUE">
                                       <block type="math_number" id="-J0OO$VB^v.,fu-gZ|W,">
                                         <field name="NUM">50</field>
                                       </block>
                                     </value>
                                   </block>
                                 </statement>
                                 <next>
                                   <block type="procedures_callnoreturn" id="?(e@N)=e]I](Ye)C)E3k">
                                     <mutation name="Fenster">
                                       <arg name="rollos"></arg>
                                     </mutation>
                                     <value name="ARG0">
                                       <block type="math_number" id="(o3sBX/eF)7k=$gUuUId">
                                         <field name="NUM">0</field>
                                       </block>
                                     </value>
                                   </block>
                                 </next>
                               </block>
                             </statement>
                           </block>
                         </next>
                       </block>
                     </next>
                   </block>
                 </next>
               </block>
             </next>
           </block>
         </next>
       </block>
       <block type="procedures_defnoreturn" id="wo(Y;N%mzX+yCkH]((4j" x="563" y="37">
         <field name="NAME">Terasse</field>
         <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
         <statement name="STACK">
           <block type="controls_if" id="lye}(Uf^OOlR.q_wqODd">
             <mutation else="1"></mutation>
             <value name="IF0">
               <block type="variables_get" id=")wt~2gD21p,,(r)3b/p/">
                 <field name="VAR" id="/!l]R_6qje~AC4QCtkJt">Tuer_geschlossen</field>
               </block>
             </value>
             <statement name="DO0">
               <block type="controls_if" id="apbCYld@f*hNkG!K!9B/">
                 <mutation elseif="1" else="1"></mutation>
                 <value name="IF0">
                   <block type="time_compare_ex" id="+T^/t5E@+miHRsP%5(0C">
                     <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                     <field name="USE_ACTUAL_TIME">TRUE</field>
                     <field name="OPTION">between</field>
                     <value name="START_TIME">
                       <shadow type="text" id="cmp`:7nDHp#SkiQS9~Vo">
                         <field name="TEXT">00:00</field>
                       </shadow>
                     </value>
                     <value name="END_TIME">
                       <shadow type="text" id="eYiS:sH(tR$9:zp:7.xk">
                         <field name="TEXT">18:00</field>
                       </shadow>
                       <block type="time_astro" id="9|X]D;PEAk}pKE[C^*1k">
                         <field name="TYPE">sunrise</field>
                         <field name="OFFSET">0</field>
                       </block>
                     </value>
                   </block>
                 </value>
                 <statement name="DO0">
                   <block type="variables_set" id="cw^sWVV`j/u9-*=%}%g9">
                     <field name="VAR" id=")z%f,tXn?!GbC|5$y{mm">rollo</field>
                     <value name="VALUE">
                       <block type="math_number" id="@mDqzU4[BZ_F/%V6TgT;">
                         <field name="NUM">0</field>
                       </block>
                     </value>
                   </block>
                 </statement>
                 <value name="IF1">
                   <block type="time_compare_ex" id="-#nKTwO-I/o;7y6`Q%j#">
                     <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                     <field name="USE_ACTUAL_TIME">TRUE</field>
                     <field name="OPTION">between</field>
                     <value name="START_TIME">
                       <shadow type="text" id=".3t^vi/WEW7X?9qc.%_p">
                         <field name="TEXT">12:00</field>
                       </shadow>
                       <block type="time_astro" id="_tKh1:X/:U34[)!|f-}y">
                         <field name="TYPE">sunset</field>
                         <field name="OFFSET">0</field>
                       </block>
                     </value>
                     <value name="END_TIME">
                       <shadow type="text" id="Xs}+?ybgrq,t5Kzf+fi@">
                         <field name="TEXT">23:59</field>
                       </shadow>
                     </value>
                   </block>
                 </value>
                 <statement name="DO1">
                   <block type="variables_set" id="+%SZpEO4]z-[rKTPn%qJ">
                     <field name="VAR" id=")z%f,tXn?!GbC|5$y{mm">rollo</field>
                     <value name="VALUE">
                       <block type="math_number" id="vCitva3e^LqNap_e$,_J">
                         <field name="NUM">50</field>
                       </block>
                     </value>
                   </block>
                 </statement>
                 <statement name="ELSE">
                   <block type="variables_set" id="O)#e{L+{Xxn)0jxLaLJC">
                     <field name="VAR" id=")z%f,tXn?!GbC|5$y{mm">rollo</field>
                     <value name="VALUE">
                       <block type="math_number" id="tbRPn]EoyUx]6s8PVZKn">
                         <field name="NUM">100</field>
                       </block>
                     </value>
                   </block>
                 </statement>
               </block>
             </statement>
             <statement name="ELSE">
               <block type="variables_set" id="!s`9SPBMy,E$T5UQ%ntN">
                 <field name="VAR" id=")z%f,tXn?!GbC|5$y{mm">rollo</field>
                 <value name="VALUE">
                   <block type="math_number" id="s0rvX,5[7O~77.CLaxjX">
                     <field name="NUM">100</field>
                   </block>
                 </value>
               </block>
             </statement>
             <next>
               <block type="controls_if" id="UaT2d8c+20#@j(l-n*m6">
                 <value name="IF0">
                   <block type="logic_compare" id="gl_8cIu(2q`4JSC(:^M=">
                     <field name="OP">NEQ</field>
                     <value name="A">
                       <block type="variables_get" id="-QktzY|DANqS52y2rp[]">
                         <field name="VAR" id=")z%f,tXn?!GbC|5$y{mm">rollo</field>
                       </block>
                     </value>
                     <value name="B">
                       <block type="get_value" id="w%P1z,02~]Z|gtJfw7Eq">
                         <field name="ATTR">val</field>
                         <field name="OID">hm-rpc.0.OEQ0890233.1.LEVEL</field>
                       </block>
                     </value>
                   </block>
                 </value>
                 <statement name="DO0">
                   <block type="control" id="0yB4wra11;C:BMU+[}_^">
                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                     <field name="OID">hm-rpc.0.OEQ0890233.1.LEVEL</field>
                     <field name="WITH_DELAY">FALSE</field>
                     <value name="VALUE">
                       <block type="variables_get" id="m]umWgjv;77bN{ls?3Y~">
                         <field name="VAR" id=")z%f,tXn?!GbC|5$y{mm">rollo</field>
                       </block>
                     </value>
                   </block>
                 </statement>
               </block>
             </next>
           </block>
         </statement>
       </block>
      </xml>
      

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

        @paul53 Javascript-Instanz sieht so aus was trage ich hier ein?

        Jawa.png

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

          @acem sagte:

          Javascript-Instanz sieht so aus was trage ich hier ein?

          Nimm den Haken bei "Systemeinstellungen" raus und trage dann die Ortskoordinaten ein.

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

            @paul53 Ich habe den Haken rausgenommen und die koordinaten Breite, Länge eingetragen!

            Muß ich hier die Tageszeiteinstellungen auch anpassen?

            Tageszeiteinstellungen.png

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

              @acem sagte:

              Muß ich hier die Tageszeiteinstellungen auch anpassen?

              Nein, die Einstellungen haben nur Einfluss auf den Datenpunkt "javascript.0.variables.isDayTime".

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

                @paul53 habe es soeben nochmals getestet, Dank deiner Hilfe Funktioniert es mit der Astrofunktion.

                Vielen Herzlichen Dank👍 🙂
                Acem

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

                  @paul53

                  Seit der Umstellung auf die Astro-Funktion fährt der Terrassen-Rollo morgens nicht hoch!

                  Abend fahren Alle Rollos runter, morgens fahren nur 2 Rollos hoch ausser Terrassentür-Rollo.

                  Muß man hier noch etwas ändern?
                  Blockly.png

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

                    @acem sagte:

                    morgens fahren nur 2 Rollos hoch ausser Terrassentür-Rollo.

                    Dann trage mal beim Vergleich einen Offset von -1 Minute zum Sonnenaufgang ein.

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

                      @paul53 welche ist das Vergleich? habe ich es an die richtige stelle eingetragen?

                      Offset.png

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

                        @acem sagte:

                        habe ich es an die richtige stelle eingetragen?

                        Ja.

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

                          @paul53

                          Alles klar.

                          Vielen Dank

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

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          630
                          Online

                          31.9k
                          Users

                          80.1k
                          Topics

                          1.3m
                          Posts

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