Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Blockly für Rollladen +Sperre

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Blockly für Rollladen +Sperre

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

      @mono990 ich würde es mit zwei Triggern versuchen, dann läuft das Skript nicht alle 5 Minuten.

      1. Trigger: 21 Uhr
      2. Trigger: Status Terassentür
      • Dann jeweils den Status der Tür überprüfen
      • In Trigger 2 noch die aktuelle Zeit prüfen (21 bis 7 Uhr)
      • das Rollo herunterfahren
      Mono990 1 Reply Last reply Reply Quote 0
      • Mono990
        Mono990 @Kuddel last edited by Mono990

        @kuddel könntest du mir das in einem Beispiel zeigen?

        hier ist meins


        <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
        <variable id="W[~p(rzjRofohEAF2v7o">position</variable>
        <variable id="pv(p0MFmpT1lVnbLheY6">status</variable>
        </variables>
        <block type="schedule" id="k^.}M;23Ff]a#]utS#(" x="88" y="138"> <field name="SCHEDULE">*/5 * * * *</field> <statement name="STATEMENT"> <block type="variables_set" id="}2xgQK3cl~Y#SxT4Tyj">
        <field name="VAR" id="W[~p(rzjRofohEAF2v7o">position</field>
        <value name="VALUE">
        <block type="get_value" id="trm_e8Lu{pYoAO~/wV?">
        <field name="ATTR">val</field>
        <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
        </block>
        </value>
        <next>
        <block type="variables_set" id="l=r?sZRqG-jyYCmiLq4"> <field name="VAR" id="pv(p0MFmpT1lVnbLheY6">status</field> <value name="VALUE"> <block type="get_value" id="|]5IOX5Y7,X9XsQP-cP">
        <field name="ATTR">val</field>
        <field name="OID">0_userdata.0.Fenster.Kuche_Tur</field>
        </block>
        </value>
        <next>
        <block type="controls_if" id="SQjoUjU
        |]rkeg65pIg7">
        <mutation elseif="1"></mutation>
        <value name="IF0">
        <block type="logic_operation" id="Zj5a8W}d${x|zb;}|w[">
        <field name="OP">AND</field>
        <value name="A">
        <block type="logic_operation" id="?1b-;_F#%%+E$ZJ#hd1e">
        <field name="OP">AND</field>
        <value name="A">
        <block type="logic_operation" id="kKGARpx4qGqGWRk5f,C,">
        <field name="OP">OR</field>
        <value name="A">
        <block type="logic_compare" id="Vo(;lUGB-QZN=58BZF!R">
        <field name="OP">EQ</field>
        <value name="A">
        <block type="variables_get" id="^o4YL4G:%o}?[?#T;X|.">
        <field name="VAR" id="pv(p0MFmpT1lVnbLheY6">status</field>
        </block>
        </value>
        <value name="B">
        <block type="math_number" id="vYS1pWDgoC
        !n),vnAE"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="KDDZuX8Gitq}W8*j|oaa"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="v^8Lvi.M@@1pPR~TVEyR"> <field name="VAR" id="pv(p0MFmpT1lVnbLheY6">status</field> </block> </value> <value name="B"> <block type="math_number" id="Kv8aB(yvDE[;@|9Mlkna"> <field name="NUM">1</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="vVWJC)%xr!ZZzJUs.6_Q"> <field name="OP">LT</field> <value name="A"> <block type="variables_get" id="b;c4Q;F#6w3G35p5Tp%C"> <field name="VAR" id="W[~p(rzjRofohEAF2v7o">position</field> </block> </value> <value name="B"> <block type="math_number" id="7TeaJv1[Ecnh]1;/3p*">
        <field name="NUM">100</field>
        </block>
        </value>
        </block>
        </value>
        </block>
        </value>
        <value name="B">
        <block type="time_compare" id="S@^x62l!ez,:wMPinI)E">
        <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation>
        <field name="OPTION">between</field>
        <field name="START_TIME">21:00</field>
        <field name="END_TIME">7:59</field>
        </block>
        </value>
        </block>
        </value>
        <statement name="DO0">
        <block type="control" id="a0WQEB$![21Wv26rxO,"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="JGjP}F{flmWbJV+g~^kP"> <field name="NUM">0</field> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_operation" id=",,MDUfQm,vx@|74Vf|c["> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="U$kD,BSqr+h!HXU:4{r%"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="YR5^jWdk]d5nby66RsW">
        <field name="OP">OR</field>
        <value name="A">
        <block type="logic_compare" id="%$OurK#0nm-Suw/n@I}O">
        <field name="OP">EQ</field>
        <value name="A">
        <block type="variables_get" id="j]w;wI#O/wmC,C=hCqk">
        <field name="VAR" id="pv(p0MFmpT1lVnbLheY6">status</field>
        </block>
        </value>
        <value name="B">
        <block type="math_number" id="dfO]jqI{@Xo6dBunc|E"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="O(OJn=6#%?{QLY*Ib8|#"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="G7EJ)e3N!l?fPR*Peic2"> <field name="VAR" id="pv(p0MFmpT1lVnbLheY6">status</field> </block> </value> <value name="B"> <block type="math_number" id="3ZjDoPbSlDtJB9+yZ2q4"> <field name="NUM">1</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="OH~M24XmmK9K|E;d
        ti">
        <field name="OP">LT</field>
        <value name="A">
        <block type="variables_get" id="4mRs]aClX{jA2MNS1(?">
        <field name="VAR" id="W[~p(rzjRofohEAF2v7o">position</field>
        </block>
        </value>
        <value name="B">
        <block type="math_number" id="dN1*WVJ^puu@9``?HI_S">
        <field name="NUM">0</field>
        </block>
        </value>
        </block>
        </value>
        </block>
        </value>
        <value name="B">
        <block type="time_compare" id="pZ.wWBS/Q_SE6A3Oc)."> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">8:00</field> <field name="END_TIME">9:00</field> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id="Spa~|KK9tj@~OMB!}H2">
        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
        <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
        <field name="WITH_DELAY">FALSE</field>
        <value name="VALUE">
        <block type="math_number" id="6tsok9$[He1Ncv~!7Lb
        ">
        <field name="NUM">100</field>
        </block>
        </value>
        </block>
        </statement>
        </block>
        </next>
        </block>
        </next>
        </block>
        </statement>
        </block>
        </xml>

        Cinimod 1 Reply Last reply Reply Quote 0
        • Cinimod
          Cinimod Most Active @Mono990 last edited by Cinimod

          @mono990

          Sowas etwa:

          Bildschirmfoto 2021-10-16 um 09.13.13.png

          Hier der Code:

          <xml xmlns="https://developers.google.com/blockly/xml">
           <variables>
             <variable id="W[~p(rzjRofohEAF2v7o">position</variable>
             <variable id="pv(p0MFmpT1lVnbLheY6">status</variable>
           </variables>
           <block type="variables_set" id="}2xgQK3cl~Y#SxT4Tyj" x="38" y="187">
             <field name="VAR" id="W[~p(rzjRofohEAF2v7o">position</field>
             <value name="VALUE">
               <block type="get_value" id="trm_e8Lu{pYoAO~/wV?">
                 <field name="ATTR">val</field>
                 <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
               </block>
             </value>
             <next>
               <block type="variables_set" id="l=r?sZRqG-jyYCmiLq4">
                 <field name="VAR" id="pv(p0MFmpT1lVnbLheY6">status</field>
                 <value name="VALUE">
                   <block type="get_value" id="|]5IOX5Y7,X9XsQP-cP">
                     <field name="ATTR">val</field>
                     <field name="OID">0_userdata.0.Fenster.Kuche_Tur</field>
                   </block>
                 </value>
                 <next>
                   <block type="schedule" id="a,a}fcfqe`*vEvi_qJ61">
                     <field name="SCHEDULE">0 21 * * *</field>
                     <statement name="STATEMENT">
                       <block type="controls_if" id="7vnu[;m^AdaTag:CpwUa">
                         <value name="IF0">
                           <block type="logic_operation" id="?evm+)t@K#JO8z_WmUfm" inline="false">
                             <field name="OP">AND</field>
                             <value name="A">
                               <block type="logic_compare" id="vVWJC)%xr!ZZzJUs.6_Q">
                                 <field name="OP">NEQ</field>
                                 <value name="A">
                                   <block type="variables_get" id="b;c4Q;F#6w3G35p5Tp%C">
                                     <field name="VAR" id="W[~p(rzjRofohEAF2v7o">position</field>
                                   </block>
                                 </value>
                                 <value name="B">
                                   <block type="math_number" id="7TeaJv1[Ecnh]1;/3p*">
                                     <field name="NUM">0</field>
                                   </block>
                                 </value>
                               </block>
                             </value>
                             <value name="B">
                               <block type="logic_compare" id="Vo(;lUGB-QZN=58BZF!R">
                                 <field name="OP">NEQ</field>
                                 <value name="A">
                                   <block type="variables_get" id="^o4YL4G:%o}?[?#T;X|.">
                                     <field name="VAR" id="pv(p0MFmpT1lVnbLheY6">status</field>
                                   </block>
                                 </value>
                                 <value name="B">
                                   <block type="math_number" id="vYS1pWDgoC!n),vnAE">
                                     <field name="NUM">2</field>
                                   </block>
                                 </value>
                               </block>
                             </value>
                           </block>
                         </value>
                         <statement name="DO0">
                           <block type="control" id="a0WQEB$![21Wv26rxO,">
                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                             <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
                             <field name="WITH_DELAY">FALSE</field>
                             <value name="VALUE">
                               <block type="math_number" id="JGjP}F{flmWbJV+g~^kP">
                                 <field name="NUM">0</field>
                               </block>
                             </value>
                           </block>
                         </statement>
                       </block>
                     </statement>
                     <next>
                       <block type="schedule" id="^8M(|n|ayd4hKam|IYk|">
                         <field name="SCHEDULE">0 8 * * *</field>
                         <statement name="STATEMENT">
                           <block type="controls_if" id="Zt|Z95wmZv?/fkTFt||7">
                             <value name="IF0">
                               <block type="logic_operation" id="-fzXwLzXNpZR8JOD:C{Y" inline="false">
                                 <field name="OP">AND</field>
                                 <value name="A">
                                   <block type="logic_compare" id=",}Q!hs_J_/#C1]K6VodI">
                                     <field name="OP">NEQ</field>
                                     <value name="A">
                                       <block type="variables_get" id="RA@?VHWjZtKNn1,Q@.}V">
                                         <field name="VAR" id="W[~p(rzjRofohEAF2v7o">position</field>
                                       </block>
                                     </value>
                                     <value name="B">
                                       <block type="math_number" id="MwvnB5if;Ht?y|yN@3-x">
                                         <field name="NUM">100</field>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <value name="B">
                                   <block type="logic_compare" id="bUNRlGl`*m{u?FUA1zwI">
                                     <field name="OP">NEQ</field>
                                     <value name="A">
                                       <block type="variables_get" id="o7=1pBa?V1P,{[W#APbm">
                                         <field name="VAR" id="pv(p0MFmpT1lVnbLheY6">status</field>
                                       </block>
                                     </value>
                                     <value name="B">
                                       <block type="math_number" id="HQve/P]r^h*3tg?,).Xt">
                                         <field name="NUM">2</field>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                               </block>
                             </value>
                             <statement name="DO0">
                               <block type="control" id="$O#iV.f]s{9R9KfuI0a!">
                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                 <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
                                 <field name="WITH_DELAY">FALSE</field>
                                 <value name="VALUE">
                                   <block type="math_number" id="t*|O3bI@hXcF|]$d@?n}">
                                     <field name="NUM">100</field>
                                   </block>
                                 </value>
                               </block>
                             </statement>
                           </block>
                         </statement>
                         <next>
                           <block type="on_ext" id="*S-*-?Kmj=azHSy?ONjv">
                             <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="ig%Y@m34^U)S,u/a.}vJ">
                                 <field name="oid">default</field>
                               </shadow>
                               <block type="field_oid" id="p2Mts=2:q|fqfG4+vV7x">
                                 <field name="oid">default</field>
                               </block>
                             </value>
                             <statement name="STATEMENT">
                               <block type="controls_if" id="V=v~wkUN?0MtS8{Z}MU;">
                                 <value name="IF0">
                                   <block type="logic_operation" id=",57UBvJH*0n48c$2oa{@" inline="false">
                                     <field name="OP">AND</field>
                                     <value name="A">
                                       <block type="time_compare" id="M33;_l5@kPT.n8}H:}Mj">
                                         <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation>
                                         <field name="OPTION">not between</field>
                                         <field name="START_TIME">08:00</field>
                                         <field name="END_TIME">21:00</field>
                                       </block>
                                     </value>
                                     <value name="B">
                                       <block type="logic_operation" id="%K9}*5[i%D,^nIyR!f3d" inline="false">
                                         <field name="OP">AND</field>
                                         <value name="A">
                                           <block type="logic_compare" id="!cwo7SnF%X]M:HRQgM[j">
                                             <field name="OP">NEQ</field>
                                             <value name="A">
                                               <block type="variables_get" id="$X-c*.H$Pc_S+_CO5r6C">
                                                 <field name="VAR" id="W[~p(rzjRofohEAF2v7o">position</field>
                                               </block>
                                             </value>
                                             <value name="B">
                                               <block type="math_number" id="P7yW;nmQ9C$DQ,$z5OE$">
                                                 <field name="NUM">0</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                         <value name="B">
                                           <block type="logic_compare" id="fL`QA]6C?5?(wJB~?AX2">
                                             <field name="OP">EQ</field>
                                             <value name="A">
                                               <block type="on_source" id="i[gNu_+^m[._+(I|)iVg">
                                                 <field name="ATTR">state.val</field>
                                               </block>
                                             </value>
                                             <value name="B">
                                               <block type="math_number" id="LW[wCFC,VP?CAWio~f61">
                                                 <field name="NUM">0</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <statement name="DO0">
                                   <block type="control" id="!-%XT3uBo~rwxR0sg,^@">
                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                     <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
                                     <field name="WITH_DELAY">FALSE</field>
                                     <value name="VALUE">
                                       <block type="math_number" id="^WpfM,@ABGl=Wow-]1(P">
                                         <field name="NUM">0</field>
                                       </block>
                                     </value>
                                   </block>
                                 </statement>
                               </block>
                             </statement>
                           </block>
                         </next>
                       </block>
                     </next>
                   </block>
                 </next>
               </block>
             </next>
           </block>
           <block type="comment" id="}2FkDn!D$!KcUI3Q|w:[" x="338" y="637">
             <field name="COMMENT">hier Tür status objekt</field>
           </block>
          </xml>
          

          K 1 Reply Last reply Reply Quote 0
          • K
            Kuddel @Cinimod last edited by

            @cinimod bist du sicher, dass das so geht?

            Werden Status und die Position so nicht nur in die Variablen geschrieben, wenn Skript oder die Instanz gestartet werden?

            Wenn die Trigger auslösen werden Status und Position aber nicht erneut geprüft würde ich sagen

            Cinimod 2 Replies Last reply Reply Quote 0
            • Cinimod
              Cinimod Most Active @Kuddel last edited by

              @kuddel

              oh ja da hast du vollkommen recht ... muss ich noch mal überarbeiten

              1 Reply Last reply Reply Quote 0
              • Cinimod
                Cinimod Most Active @Kuddel last edited by Cinimod

                @Mono990

                hier dann noch mal überarbeietet:

                Bildschirmfoto 2021-10-16 um 09.21.44.png

                hier der Code:

                <block xmlns="https://developers.google.com/blockly/xml" type="comment" id="}2FkDn!D$!KcUI3Q|w:[" x="337.1552001953123" y="612.0615478515625">
                 <field name="COMMENT">hier Tür status objekt</field>
                </block>
                

                Mir stellt sich gerade noch die frage ob das Rollo denn nur hoch gehen darf wenn die Tür zu oder gekippt ist ? das würde ich ggf. raus nehmen.

                Cinimod 1 Reply Last reply Reply Quote 0
                • Cinimod
                  Cinimod Most Active @Cinimod last edited by Cinimod

                  @cinimod

                  hier dann noch mal: Rollo darf immer hoch gehen, unabhängig vom zustand der Tür.

                  Bildschirmfoto 2021-10-16 um 09.26.22.png

                  Code:

                  <xml xmlns="https://developers.google.com/blockly/xml">
                   <block type="schedule" id="a,a}fcfqe`*vEvi_qJ61" x="37" y="213">
                     <field name="SCHEDULE">0 21 * * *</field>
                     <statement name="STATEMENT">
                       <block type="controls_if" id="7vnu[;m^AdaTag:CpwUa">
                         <value name="IF0">
                           <block type="logic_operation" id="?evm+)t@K#JO8z_WmUfm" inline="false">
                             <field name="OP">AND</field>
                             <value name="A">
                               <block type="logic_compare" id="vVWJC)%xr!ZZzJUs.6_Q">
                                 <field name="OP">NEQ</field>
                                 <value name="A">
                                   <block type="get_value" id="cX?l8j|lnl1q1)j,wXa0">
                                     <field name="ATTR">val</field>
                                     <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
                                   </block>
                                 </value>
                                 <value name="B">
                                   <block type="math_number" id="7TeaJv1[Ecnh]1;/3p*">
                                     <field name="NUM">0</field>
                                   </block>
                                 </value>
                               </block>
                             </value>
                             <value name="B">
                               <block type="logic_compare" id="Vo(;lUGB-QZN=58BZF!R">
                                 <field name="OP">NEQ</field>
                                 <value name="A">
                                   <block type="get_value" id="#{wbxG1/Q:tBM502:Oel">
                                     <field name="ATTR">val</field>
                                     <field name="OID">0_userdata.0.Fenster.Kuche_Tur</field>
                                   </block>
                                 </value>
                                 <value name="B">
                                   <block type="math_number" id="vYS1pWDgoC!n),vnAE">
                                     <field name="NUM">2</field>
                                   </block>
                                 </value>
                               </block>
                             </value>
                           </block>
                         </value>
                         <statement name="DO0">
                           <block type="control" id="a0WQEB$![21Wv26rxO,">
                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                             <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
                             <field name="WITH_DELAY">FALSE</field>
                             <value name="VALUE">
                               <block type="math_number" id="JGjP}F{flmWbJV+g~^kP">
                                 <field name="NUM">0</field>
                               </block>
                             </value>
                           </block>
                         </statement>
                       </block>
                     </statement>
                     <next>
                       <block type="schedule" id="^8M(|n|ayd4hKam|IYk|">
                         <field name="SCHEDULE">0 8 * * *</field>
                         <statement name="STATEMENT">
                           <block type="controls_if" id="Zt|Z95wmZv?/fkTFt||7">
                             <value name="IF0">
                               <block type="logic_compare" id=",}Q!hs_J_/#C1]K6VodI">
                                 <field name="OP">NEQ</field>
                                 <value name="A">
                                   <block type="get_value" id="uZs_UpLP.:#Dp7Agq8zQ">
                                     <field name="ATTR">val</field>
                                     <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
                                   </block>
                                 </value>
                                 <value name="B">
                                   <block type="math_number" id="MwvnB5if;Ht?y|yN@3-x">
                                     <field name="NUM">100</field>
                                   </block>
                                 </value>
                               </block>
                             </value>
                             <statement name="DO0">
                               <block type="control" id="$O#iV.f]s{9R9KfuI0a!">
                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                 <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
                                 <field name="WITH_DELAY">FALSE</field>
                                 <value name="VALUE">
                                   <block type="math_number" id="t*|O3bI@hXcF|]$d@?n}">
                                     <field name="NUM">100</field>
                                   </block>
                                 </value>
                               </block>
                             </statement>
                           </block>
                         </statement>
                         <next>
                           <block type="on_ext" id="*S-*-?Kmj=azHSy?ONjv">
                             <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="ig%Y@m34^U)S,u/a.}vJ">
                                 <field name="oid">default</field>
                               </shadow>
                               <block type="field_oid" id="p2Mts=2:q|fqfG4+vV7x">
                                 <field name="oid">default</field>
                               </block>
                             </value>
                             <statement name="STATEMENT">
                               <block type="controls_if" id="V=v~wkUN?0MtS8{Z}MU;">
                                 <value name="IF0">
                                   <block type="logic_operation" id=",57UBvJH*0n48c$2oa{@" inline="false">
                                     <field name="OP">AND</field>
                                     <value name="A">
                                       <block type="time_compare" id="M33;_l5@kPT.n8}H:}Mj">
                                         <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation>
                                         <field name="OPTION">not between</field>
                                         <field name="START_TIME">08:00</field>
                                         <field name="END_TIME">21:00</field>
                                       </block>
                                     </value>
                                     <value name="B">
                                       <block type="logic_operation" id="%K9}*5[i%D,^nIyR!f3d" inline="false">
                                         <field name="OP">AND</field>
                                         <value name="A">
                                           <block type="logic_compare" id="!cwo7SnF%X]M:HRQgM[j">
                                             <field name="OP">NEQ</field>
                                             <value name="A">
                                               <block type="get_value" id="X3F8;D+e#Ia}vjQ?ocWd">
                                                 <field name="ATTR">val</field>
                                                 <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
                                               </block>
                                             </value>
                                             <value name="B">
                                               <block type="math_number" id="P7yW;nmQ9C$DQ,$z5OE$">
                                                 <field name="NUM">0</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                         <value name="B">
                                           <block type="logic_compare" id="fL`QA]6C?5?(wJB~?AX2">
                                             <field name="OP">EQ</field>
                                             <value name="A">
                                               <block type="on_source" id="i[gNu_+^m[._+(I|)iVg">
                                                 <field name="ATTR">state.val</field>
                                               </block>
                                             </value>
                                             <value name="B">
                                               <block type="math_number" id="LW[wCFC,VP?CAWio~f61">
                                                 <field name="NUM">0</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <statement name="DO0">
                                   <block type="control" id="!-%XT3uBo~rwxR0sg,^@">
                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                     <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
                                     <field name="WITH_DELAY">FALSE</field>
                                     <value name="VALUE">
                                       <block type="math_number" id="^WpfM,@ABGl=Wow-]1(P">
                                         <field name="NUM">0</field>
                                       </block>
                                     </value>
                                   </block>
                                 </statement>
                               </block>
                             </statement>
                           </block>
                         </next>
                       </block>
                     </next>
                   </block>
                   <block type="comment" id="}2FkDn!D$!KcUI3Q|w:[" x="337" y="563">
                     <field name="COMMENT">hier Tür status objekt</field>
                   </block>
                  </xml>
                  

                  Mono990 1 Reply Last reply Reply Quote 0
                  • Mono990
                    Mono990 @Cinimod last edited by

                    @cinimod
                    Das sieht ja super aus👍 werde es die tage Testen und dann bescheid geben. vielen Dank schon mal

                    Cinimod 1 Reply Last reply Reply Quote 0
                    • Cinimod
                      Cinimod Most Active @Mono990 last edited by

                      @mono990

                      gern, viel Erfolg. Wenn das noch nicht klappt einfach melden

                      Mono990 1 Reply Last reply Reply Quote 0
                      • Mono990
                        Mono990 @Cinimod last edited by

                        @cinimod

                        Das Rollo ging heute abend nicht runter obwohl die Tür zu war.
                        Die ausgewählten objekte sind die richtigen. daran kann es nicht liegen.

                        Cinimod 2 Replies Last reply Reply Quote 0
                        • Cinimod
                          Cinimod Most Active @Mono990 last edited by

                          @mono990

                          ich kann keinen Fehler sehen, magst du deins noch mal her zeigen ?

                          Mono990 1 Reply Last reply Reply Quote 0
                          • Mono990
                            Mono990 @Cinimod last edited by

                            @cinimod

                            hier das script


                            <xml xmlns="https://developers.google.com/blockly/xml">
                            <block type="schedule" id="a,a}fcfqe*vEvi_qJ61" x="37" y="213"> <field name="SCHEDULE">0 21 * * *</field> <statement name="STATEMENT"> <block type="controls_if" id="7vnu[;m^AdaTag:CpwUa"> <value name="IF0"> <block type="logic_operation" id="?evm+)t@K#JO8z_WmUfm" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="vVWJC)%xr!ZZzJUs.6_Q"> <field name="OP">NEQ</field> <value name="A"> <block type="get_value" id="cX?l8j|lnl1q1)j,wXa0"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Fenster.Kuche_Tur</field> </block> </value> <value name="B"> <block type="math_number" id="7TeaJv1[Ecnh]1;/3p*"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="Vo(;lUGB-QZN=58BZF!R"> <field name="OP">NEQ</field> <value name="A"> <block type="get_value" id="#{wbxG1/Q:tBM502:Oel"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Fenster.Kuche_Tur</field> </block> </value> <value name="B"> <block type="math_number" id="vYS1pWDgoC!n),vnAE"> <field name="NUM">2</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="a0WQEB$![21Wv26rxO,"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="JGjP}F{flmWbJV+g~^kP"> <field name="NUM">0</field> </block> </value> </block> </statement> </block> </statement> <next> <block type="schedule" id="^8M(|n|ayd4hKam|IYk|"> <field name="SCHEDULE">0 8 * * *</field> <statement name="STATEMENT"> <block type="controls_if" id="Zt|Z95wmZv?/fkTFt||7"> <value name="IF0"> <block type="logic_compare" id=",}Q!hs_J_/#C1]K6VodI"> <field name="OP">NEQ</field> <value name="A"> <block type="get_value" id="uZs_UpLP.:#Dp7Agq8zQ"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field> </block> </value> <value name="B"> <block type="math_number" id="MwvnB5if;Ht?y|yN@3-x"> <field name="NUM">100</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="$O#iV.f]s{9R9KfuI0a!"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="t*|O3bI@hXcF|]$d@?n}"> <field name="NUM">100</field> </block> </value> </block> </statement> </block> </statement> <next> <block type="on_ext" id="*S-*-?Kmj=azHSy?ONjv"> <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="ig%Y@m34^U)S,u/a.}vJ"> <field name="oid">default</field> </shadow> <block type="field_oid" id="p2Mts=2:q|fqfG4+vV7x"> <field name="oid">0_userdata.0.Fenster.Kuche_Tur</field> </block> </value> <statement name="STATEMENT"> <block type="controls_if" id="V=v~wkUN?0MtS8{Z}MU;"> <value name="IF0"> <block type="logic_operation" id=",57UBvJH*0n48c$2oa{@" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="time_compare" id="M33;_l5@kPT.n8}H:}Mj"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation> <field name="OPTION">not between</field> <field name="START_TIME">08:00</field> <field name="END_TIME">21:00</field> </block> </value> <value name="B"> <block type="logic_operation" id="%K9}*5[i%D,^nIyR!f3d" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="!cwo7SnF%X]M:HRQgM[j"> <field name="OP">NEQ</field> <value name="A"> <block type="get_value" id="X3F8;D+e#Ia}vjQ?ocWd"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field> </block> </value> <value name="B"> <block type="math_number" id="P7yW;nmQ9C$DQ,$z5OE$"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="fLQA]6C?5?(wJB~?AX2">
                            <field name="OP">EQ</field>
                            <value name="A">
                            <block type="on_source" id="i[gNu_+^m[._+(I|)iVg">
                            <field name="ATTR">state.val</field>
                            </block>
                            </value>
                            <value name="B">
                            <block type="math_number" id="LW[wCFC,VP?CAWio~f61">
                            <field name="NUM">0</field>
                            </block>
                            </value>
                            </block>
                            </value>
                            </block>
                            </value>
                            </block>
                            </value>
                            <statement name="DO0">
                            <block type="control" id="!-%XT3uBo~rwxR0sg,^@">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">shelly.0.SHSW-25#483FDA827F5E#1.Shutter.Position</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                            <block type="math_number" id="^WpfM,@ABGl=Wow-]1(P">
                            <field name="NUM">0</field>
                            </block>
                            </value>
                            </block>
                            </statement>
                            </block>
                            </statement>
                            </block>
                            </next>
                            </block>
                            </next>
                            </block>
                            <block type="comment" id="}2FkDn!D$!KcUI3Q|w:[" x="388" y="563">
                            <field name="COMMENT">hier Tür status objekt</field>
                            </block>
                            </xml>

                            1 Reply Last reply Reply Quote 0
                            • Cinimod
                              Cinimod Most Active @Mono990 last edited by Cinimod

                              @mono990 sagte in Blockly für Rollladen +Sperre:

                              @cinimod

                              Das Rollo ging heute abend nicht runter obwohl die Tür zu war.
                              Die ausgewählten objekte sind die richtigen. daran kann es nicht liegen.

                              Ganz oben muss "wert von ObjektID Shutter Position" rein

                              Screenshot 2021-10-18 085805.png

                              Cinimod 1 Reply Last reply Reply Quote 0
                              • Cinimod
                                Cinimod Most Active @Cinimod last edited by Cinimod

                                @cinimod

                                oben soll er nur einmal prüfen ob das Rollo nicht schon auf 0 ist, so wie du es hattest wollte er nur schließen wenn die Tür gekippt ist.

                                Mono990 1 Reply Last reply Reply Quote 0
                                • Mono990
                                  Mono990 @Cinimod last edited by

                                  @cinimod Aso ok habe ich jetzt geändert. mal sehen ob er heute runter geht 😁

                                  Cinimod 1 Reply Last reply Reply Quote 0
                                  • Cinimod
                                    Cinimod Most Active @Mono990 last edited by

                                    @mono990

                                    Heute gehts ! 😉

                                    Mono990 1 Reply Last reply Reply Quote 0
                                    • Mono990
                                      Mono990 @Cinimod last edited by

                                      @cinimod ist leider nicht runtergegangen. Brauche ich noch ein Adapter oder so der die aktuelle zeit angibt wonach sich der Zeitplan trigger richten kann?

                                      Cinimod 1 Reply Last reply Reply Quote 0
                                      • Cinimod
                                        Cinimod Most Active @Mono990 last edited by Cinimod

                                        @mono990

                                        Vielleicht stimmt deine Systemzeit nicht 🤔
                                        Hast du die Koordinaten richtig ?

                                        Ist das Rollo denn bei 0 unten und bei 100 oben?

                                        Teste doch mal ein neues Script mit dem Zeitplan trigger und nem debug baustein … oder lass dir ne Nachricht schicken zum testen …

                                        Mono990 1 Reply Last reply Reply Quote 0
                                        • Mono990
                                          Mono990 @Cinimod last edited by

                                          @cinimod die Zeit im iobroker hatte die richtige Zeit angezeigt aber die systemzeit des Raspian hat eine ganz andere zeit angezeigt. ich lasse die systemzeit jetzt mit einem NTP server syncronisieren.
                                          Die ersten Tests waren gut, habe mir nachrichten auf mein Handy schicken lassen über Blockly und Zeitplan.

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

                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          758
                                          Online

                                          32.0k
                                          Users

                                          80.5k
                                          Topics

                                          1.3m
                                          Posts

                                          3
                                          20
                                          614
                                          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