Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Wled per Blocklyscript für Garagentorzustände 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

    Wled per Blocklyscript für Garagentorzustände steuern

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

      @paul53

      ok ich kann leider nur die zwei zustände abrufen,

      muss ich jetzt noch die Kontakte verbauen?

      oder kann man da auch über Zeit steuern ?

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

        @spidermike sagte: muss ich jetzt noch die Kontakte verbauen?

        Wenn nur voll geöffnet und voll geschlossen werden soll, kann man auch mit der Laufzeit arbeiten.

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

          @paul53 sagte in Wled per Blocklyscript für Garagentorzustände steuern:

          @spidermike sagte: muss ich jetzt noch die Kontakte verbauen?

          Wenn nur voll geöffnet und voll geschlossen erreicht werden soll, kann man auch mit der Laufzeit arbeiten.

          ja das würde mir reichen

          habe mal gemessen das das Tor ca. 16 sek braucht um auf zu gehen

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

            @spidermike sagte: das Tor ca. 16 sek braucht um auf zu gehen

            Habe das Skript mal entsprechend angepasst.

            <xml xmlns="https://developers.google.com/blockly/xml">
             <variables>
               <variable type="timeout" id="timeout">timeout</variable>
             </variables>
             <block type="comment" id=")qY#5[Hs}8(,sF|14)Ii" x="-1363" y="-2063">
               <field name="COMMENT">Input</field>
               <next>
                 <block type="on_ext" id=",)p_H{cc[[o*elb8586g">
                   <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=";E(x6]id)3T*W1{1i^B7">
                       <field name="oid">default</field>
                     </shadow>
                   </value>
                   <statement name="STATEMENT">
                     <block type="comment" id="uB~.t3Sbi~Ez[|,)s3(V">
                       <field name="COMMENT">Wenn Status geändert: fährt gerade hoch/runter</field>
                       <next>
                         <block type="control" id="%^WT@hC_w+Hqm)Dp[0jQ">
                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                           <field name="OID">wled.0.c45bbe55574f.on</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="logic_boolean" id="jx?Qd;79TxpSFS.vPIL(">
                               <field name="BOOL">TRUE</field>
                             </block>
                           </value>
                           <next>
                             <block type="control" id="{7z:D,$oLi[pwmE01/h$">
                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                               <field name="OID">wled.0.c45bbe55574f.seg.0.bri</field>
                               <field name="WITH_DELAY">FALSE</field>
                               <value name="VALUE">
                                 <block type="math_number" id="hM2PKHRrSc*aIaJm@G{!">
                                   <field name="NUM">255</field>
                                 </block>
                               </value>
                               <next>
                                 <block type="control" id="ThspYz3H2vnlFjG;:5FU">
                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                   <field name="OID">wled.0.c45bbe55574f.seg.0.col.0_HEX</field>
                                   <field name="WITH_DELAY">FALSE</field>
                                   <value name="VALUE">
                                     <block type="colour_picker" id="d;C|Q@5x8ac5i{9`uZJx">
                                       <field name="COLOUR">#ff0000</field>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="control" id="t$jCxN76Wny]Kxdyf;*0">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                       <field name="OID">wled.0.c45bbe55574f.seg.0.sx</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <value name="VALUE">
                                         <block type="math_number" id="1}xAbUU-PD@sq]UhH,pl">
                                           <field name="NUM">89</field>
                                         </block>
                                       </value>
                                       <next>
                                         <block type="control" id="s^nzqS2R1@m8^Yj;e8rY">
                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                           <field name="OID">wled.0.c45bbe55574f.seg.0.ix</field>
                                           <field name="WITH_DELAY">FALSE</field>
                                           <value name="VALUE">
                                             <block type="math_number" id="pb.S2V:@sJ)7DUCW=Wdf">
                                               <field name="NUM">237</field>
                                             </block>
                                           </value>
                                           <next>
                                             <block type="control" id="Vsh%U,2rLePgyn.(3/a+">
                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                               <field name="OID">wled.0.c45bbe55574f.seg.0.fx</field>
                                               <field name="WITH_DELAY">FALSE</field>
                                               <value name="VALUE">
                                                 <block type="math_number" id="U$Iy:m/Ppv,PNJ4^@5-0">
                                                   <field name="NUM">60</field>
                                                 </block>
                                               </value>
                                               <next>
                                                 <block type="timeouts_cleartimeout" id="`0yFJc8Nvd,6$rov|B9f">
                                                   <field name="NAME">timeout</field>
                                                   <next>
                                                     <block type="timeouts_settimeout" id="aY!K93kAl!)!kB^m)K$?">
                                                       <field name="NAME">timeout</field>
                                                       <field name="DELAY">16</field>
                                                       <field name="UNIT">sec</field>
                                                       <statement name="STATEMENT">
                                                         <block type="controls_if" id="vuW9U0ZA/M)*CSE?E#c|">
                                                           <mutation else="1"></mutation>
                                                           <value name="IF0">
                                                             <block type="on_source" id="CN;]`a|!%Bl*T=5GpMT^">
                                                               <field name="ATTR">state.val</field>
                                                             </block>
                                                           </value>
                                                           <statement name="DO0">
                                                             <block type="comment" id="dC:L!m%XS%*nMOAO+:Zt">
                                                               <field name="COMMENT">Wenn Status closed</field>
                                                               <next>
                                                                 <block type="control" id="CgkaF[}hz`jUA0/H:VVp">
                                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                   <field name="OID">wled.0.c45bbe55574f.seg.0.col.0_HEX</field>
                                                                   <field name="WITH_DELAY">FALSE</field>
                                                                   <value name="VALUE">
                                                                     <block type="colour_picker" id="f5rUu1Muj$AwzPz|ZLV`">
                                                                       <field name="COLOUR">#ffffff</field>
                                                                     </block>
                                                                   </value>
                                                                   <next>
                                                                     <block type="control" id="tABOe)]Y/Ymm?I^DVS[T">
                                                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                       <field name="OID">wled.0.c45bbe55574f.seg.0.sx</field>
                                                                       <field name="WITH_DELAY">FALSE</field>
                                                                       <value name="VALUE">
                                                                         <block type="math_number" id="XpqG]~i(J7jlGxAU=46{">
                                                                           <field name="NUM">92</field>
                                                                         </block>
                                                                       </value>
                                                                       <next>
                                                                         <block type="control" id="%mfMhb{tO]KCu6QSL:f4">
                                                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                           <field name="OID">wled.0.c45bbe55574f.seg.0.ix</field>
                                                                           <field name="WITH_DELAY">FALSE</field>
                                                                           <value name="VALUE">
                                                                             <block type="math_number" id="f~Cp*i8uPZpU~-1`+{a@">
                                                                               <field name="NUM">85</field>
                                                                             </block>
                                                                           </value>
                                                                           <next>
                                                                             <block type="control" id="cBk%qxly%OdLEQvuTnZv">
                                                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                               <field name="OID">wled.0.c45bbe55574f.seg.0.fx</field>
                                                                               <field name="WITH_DELAY">FALSE</field>
                                                                               <value name="VALUE">
                                                                                 <block type="math_number" id="-3++B23}9UbS-$=bnbtr">
                                                                                   <field name="NUM">85</field>
                                                                                 </block>
                                                                               </value>
                                                                               <next>
                                                                                 <block type="control" id="O5vtDD:j=$y5B(KA@N[{">
                                                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                                                   <field name="OID">wled.0.c45bbe55574f.on</field>
                                                                                   <field name="WITH_DELAY">TRUE</field>
                                                                                   <field name="DELAY_MS">15</field>
                                                                                   <field name="UNIT">sec</field>
                                                                                   <field name="CLEAR_RUNNING">FALSE</field>
                                                                                   <value name="VALUE">
                                                                                     <block type="logic_boolean" id="fQ6C5uf3x$h[pr:vKBs|">
                                                                                       <field name="BOOL">FALSE</field>
                                                                                     </block>
                                                                                   </value>
                                                                                 </block>
                                                                               </next>
                                                                             </block>
                                                                           </next>
                                                                         </block>
                                                                       </next>
                                                                     </block>
                                                                   </next>
                                                                 </block>
                                                               </next>
                                                             </block>
                                                           </statement>
                                                           <statement name="ELSE">
                                                             <block type="comment" id="1vQn!L/ov54G!y#.b3+K">
                                                               <field name="COMMENT">Wenn Status open</field>
                                                               <next>
                                                                 <block type="control" id="QJmMA%:%T/hA*t8*h,s4">
                                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                   <field name="OID">wled.0.c45bbe55574f.seg.0.col.0_HEX</field>
                                                                   <field name="WITH_DELAY">FALSE</field>
                                                                   <value name="VALUE">
                                                                     <block type="colour_picker" id="Wr%t(.g5l4!_G}/es6kT">
                                                                       <field name="COLOUR">#33ff33</field>
                                                                     </block>
                                                                   </value>
                                                                   <next>
                                                                     <block type="control" id="C,R}A$EXQ`eJLU^th@qY">
                                                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                       <field name="OID">wled.0.c45bbe55574f.seg.0.fx</field>
                                                                       <field name="WITH_DELAY">FALSE</field>
                                                                       <value name="VALUE">
                                                                         <block type="math_number" id=")10HTwAd9@4+!L9$3J2o">
                                                                           <field name="NUM">0</field>
                                                                         </block>
                                                                       </value>
                                                                       <next>
                                                                         <block type="comment" id="*g8g~b2e7$d^VM_G13H9">
                                                                           <field name="COMMENT">Effekt 3: Spots</field>
                                                                           <next>
                                                                             <block type="control" id="O/K#^zKc{vIDh#8:sbKG">
                                                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                                               <field name="OID">wled.0.c45bbe55574f.seg.0.fx</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="math_number" id="${lbQq;;9]rgLt/9h{Ox">
                                                                                   <field name="NUM">85</field>
                                                                                 </block>
                                                                               </value>
                                                                               <next>
                                                                                 <block type="control" id="JM6`.#7zHdq06a6*!ms`">
                                                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                   <field name="OID">wled.0.c45bbe55574f.seg.0.col.0_HEX</field>
                                                                                   <field name="WITH_DELAY">FALSE</field>
                                                                                   <value name="VALUE">
                                                                                     <block type="colour_picker" id="wDc^g;fLGEHJ~OYQz1Eg">
                                                                                       <field name="COLOUR">#ffffff</field>
                                                                                     </block>
                                                                                   </value>
                                                                                   <next>
                                                                                     <block type="control" id="I80r~!qRj{LyDPMOngwC">
                                                                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                       <field name="OID">wled.0.c45bbe55574f.seg.0.sx</field>
                                                                                       <field name="WITH_DELAY">FALSE</field>
                                                                                       <value name="VALUE">
                                                                                         <block type="math_number" id="epg:m`J+IKs6f$iu8]@B">
                                                                                           <field name="NUM">92</field>
                                                                                         </block>
                                                                                       </value>
                                                                                       <next>
                                                                                         <block type="control" id="75w+h!71.|,Y|bMl@p2.">
                                                                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                           <field name="OID">wled.0.c45bbe55574f.seg.0.ix</field>
                                                                                           <field name="WITH_DELAY">FALSE</field>
                                                                                           <value name="VALUE">
                                                                                             <block type="math_number" id="B9I1b5uFXD[nWv_7;+JD">
                                                                                               <field name="NUM">85</field>
                                                                                             </block>
                                                                                           </value>
                                                                                           <next>
                                                                                             <block type="control" id="b2IJ1|?=ss!jw?VfyP)O">
                                                                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                                                               <field name="OID">wled.0.c45bbe55574f.on</field>
                                                                                               <field name="WITH_DELAY">TRUE</field>
                                                                                               <field name="DELAY_MS">15</field>
                                                                                               <field name="UNIT">sec</field>
                                                                                               <field name="CLEAR_RUNNING">FALSE</field>
                                                                                               <value name="VALUE">
                                                                                                 <block type="logic_boolean" id="T.AJB-BR_EjoD@GmC%ge">
                                                                                                   <field name="BOOL">FALSE</field>
                                                                                                 </block>
                                                                                               </value>
                                                                                             </block>
                                                                                           </next>
                                                                                         </block>
                                                                                       </next>
                                                                                     </block>
                                                                                   </next>
                                                                                 </block>
                                                                               </next>
                                                                             </block>
                                                                           </next>
                                                                         </block>
                                                                       </next>
                                                                     </block>
                                                                   </next>
                                                                 </block>
                                                               </next>
                                                             </block>
                                                           </statement>
                                                         </block>
                                                       </statement>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </next>
                                             </block>
                                           </next>
                                         </block>
                                       </next>
                                     </block>
                                   </next>
                                 </block>
                               </next>
                             </block>
                           </next>
                         </block>
                       </next>
                     </block>
                   </statement>
                 </block>
               </next>
             </block>
             <block type="math_number" id="]Lhv3-;^9zW:V::WZwZl" x="-1198" y="-1579">
               <field name="NUM">0</field>
             </block>
            </xml>
            

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

              @paul53

              ich habe jetzt nochmal gemessen

              Wenn das Garagentor aufgeht dauert jetzt vom start bis endlage ca. 22 sek
              und beim zugehen braucht es nur ca. 15 sek.

              und muss ich bei dem script "objekt iD" den "input" eintragen oder den "switch"?

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

                @spidermike sagte: "objekt iD" den "input" eintragen oder den "switch"?

                Das dürfte egal sein.

                @spidermike sagte in Wled per Blocklyscript für Garagentorzustände steuern:

                Wenn das Garagentor aufgeht dauert jetzt vom start bis endlage ca. 22 sek

                Dann nimm diesen Wert.

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

                  @paul53

                  Wenn das Garagentor aufgeht dauert jetzt vom start bis endlage ca. 22 sek

                  Dann nimm diesen Wert.

                  ok weil das der längere Zeitraum ist, richtig?

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

                    @spidermike sagte: weil das der längere Zeitraum ist, richtig?

                    Ja, Du kannst natürlich auch mit zwei Timeouts hantieren.

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

                      @paul53

                      können wir das noch so machen das das ganze erst funktioniert wenn es dunkel ist.

                      habe mal gesehen das man da auch sagen kann er soll erst das script ausführen wenn die Sonne untergegangen ist.

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

                        @spidermike sagte: wenn es dunkel ist.

                        Bild_2022-07-24_192854734.png

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

                          @paul53 sagte in Wled per Blocklyscript für Garagentorzustände steuern:

                          @spidermike sagte: wenn es dunkel ist.

                          Bild_2022-07-24_192854734.png

                          ok geändert

                          und wenn ich mit 2 Timeout arbeiten will

                          ich weiß ich nerve, sorry aber alleine bekomme ich das nie hin

                          Homoran paul53 2 Replies Last reply Reply Quote 0
                          • Homoran
                            Homoran Global Moderator Administrators @Spidermike last edited by

                            @spidermike sagte in Wled per Blocklyscript für Garagentorzustände steuern:

                            sorry aber alleine bekomme ich das nie hin

                            dann versuch es doch und zeige deine Idee.
                            Vom Abtippen lernst du es nie. Das willst du doch, oder?

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

                              @spidermike sagte: wenn ich mit 2 Timeout arbeiten will

                              Bild_2022-07-24_194226382.png

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

                              Support us

                              ioBroker
                              Community Adapters
                              Donate

                              830
                              Online

                              31.9k
                              Users

                              80.1k
                              Topics

                              1.3m
                              Posts

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