Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Ausführung für z.B. 1 Sekunde

    NEWS

    • Neues Video "KI im Smart Home" - ioBroker plus n8n

    • Neues Video über Aliase, virtuelle Geräte und Kategorien

    • Wir empfehlen: Node.js 22.x

    Ausführung für z.B. 1 Sekunde

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

      Hilft dir das hier?

      L 1 Reply Last reply Reply Quote 0
      • L
        LaBamba @Dragon last edited by

        @David-Froebus
        Ich bekomme es nur so hin aber jetzt habe ich noch eine Dauerschleife drin

        fe627670-b650-4d3b-a690-043bee60015d-image.png

        paul53 1 Reply Last reply Reply Quote 0
        • D
          Dragon last edited by Dragon

          Verzögerung.jpg

          Mit dem ersten Block machst du die Lamellen auf zu Pausenbeginn.
          Mit dem zweiten Block machst du die Lamellen bei Pausenende wieder zu. Falls nicht gewünscht einfach den zweiten block weglassen.

          1 Reply Last reply Reply Quote 0
          • D
            Dragon last edited by

            Verzögerung.jpg

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

              @LaBamba sagte:

              eine Dauerschleife drin

              Bau eine Sperre ein:

              Blockly_temp.JPG

              <xml xmlns="https://developers.google.com/blockly/xml">
               <variables>
                 <variable type="timeout" id="timeout">timeout</variable>
               </variables>
               <block type="on_ext" id="4kM/Se4?CGjUWC,o,I0f" x="62" y="63">
                 <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                 <field name="CONDITION">true</field>
                 <field name="ACK_CONDITION"></field>
                 <value name="OID0">
                   <shadow type="field_oid" id="/IcV_*l;[!B^q,YW1!,1">
                     <field name="oid">default</field>
                   </shadow>
                 </value>
                 <statement name="STATEMENT">
                   <block type="controls_if" id="UgO3]rus#o]{6C?[b#GN">
                     <value name="IF0">
                       <block type="logic_negate" id="l3`=Q[NGFm*masMYIP*G">
                         <value name="BOOL">
                           <block type="variables_get" id=")8;Cu)A{XG?Q{6M1Pu%%">
                             <field name="VAR" id="timeout" variabletype="timeout">timeout</field>
                           </block>
                         </value>
                       </block>
                     </value>
                     <statement name="DO0">
                       <block type="control" id="dtJnx$6.uB=^xBJrBE#_">
                         <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                         <field name="OID">Object ID</field>
                         <field name="WITH_DELAY">TRUE</field>
                         <field name="DELAY_MS">1000</field>
                         <field name="UNIT">ms</field>
                         <field name="CLEAR_RUNNING">FALSE</field>
                         <value name="VALUE">
                           <block type="logic_boolean" id="S]k|MsiG/m]RTXz?!^/6">
                             <field name="BOOL">TRUE</field>
                           </block>
                         </value>
                         <next>
                           <block type="control" id="OS|77%(+gG(Av_SVouQV">
                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                             <field name="OID">Object ID</field>
                             <field name="WITH_DELAY">TRUE</field>
                             <field name="DELAY_MS">3000</field>
                             <field name="UNIT">ms</field>
                             <field name="CLEAR_RUNNING">FALSE</field>
                             <value name="VALUE">
                               <block type="logic_boolean" id="Fq0dA%k.uxgGS6A*tBcX">
                                 <field name="BOOL">TRUE</field>
                               </block>
                             </value>
                             <next>
                               <block type="timeouts_settimeout" id="5~mI{uGr#kG*gt!XE-`u">
                                 <field name="NAME">timeout</field>
                                 <field name="DELAY">4000</field>
                                 <field name="UNIT">ms</field>
                                 <statement name="STATEMENT">
                                   <block type="variables_set" id="UKTqv%H57^q~.T.VB^b+">
                                     <field name="VAR" id="timeout" variabletype="timeout">timeout</field>
                                     <value name="VALUE">
                                       <block type="logic_null" id="dt{sd9rUYq5rrsVPn_mT"></block>
                                     </value>
                                   </block>
                                 </statement>
                               </block>
                             </next>
                           </block>
                         </next>
                       </block>
                     </statement>
                   </block>
                 </statement>
               </block>
              </xml>
              

              L 2 Replies Last reply Reply Quote 0
              • L
                LaBamba @paul53 last edited by

                @paul53
                Danke das funktioniert!

                D 1 Reply Last reply Reply Quote 0
                • D
                  Dragon @LaBamba last edited by

                  @LaBamba
                  welches funktioniert denn?

                  L 1 Reply Last reply Reply Quote 0
                  • L
                    LaBamba @Dragon last edited by

                    @David-Froebus
                    Das von Paul!

                    D 1 Reply Last reply Reply Quote 0
                    • D
                      Dragon @LaBamba last edited by

                      @LaBamba Oki

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

                        @paul53
                        ff83802c-a931-4a55-b4f8-c72795e69c08-image.png

                        Ich habe jetzt noch einen Fahrbefehl davor gehängt.
                        D.h. der Raffstore soll erst 50% (Halb) zugefahren werden und dann stellt sich der Winkel der Lamellen ein.
                        Die habe ich mit einem Jqui-icon toggle im VIS verbunden.

                        Leider funktioniert es nicht über den Button!

                        Die Vermutung ist, dass das skript nur ausgelöst wird wenn sich der Wert von ID Pause wieder auf Wahr ändert.
                        Jedoch wollte ich, dass das skript durch den Button ausgelöst wird wenn der Wert auf Wahr steht.

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

                          @LaBamba sagte:

                          der Raffstore soll erst 50% (Halb) zugefahren werden

                          Was ist zu ? 100 % oder 0 % ?
                          Fährt der Raffstore nicht auf 50 % ?

                          Sind beide Trigger identisch ?

                          L 2 Replies Last reply Reply Quote 0
                          • L
                            LaBamba @paul53 last edited by LaBamba

                            @paul53
                            100% ist auf!
                            Ja das ist eine Shelly 2.5.

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

                              @paul53
                              Jedoch habe ich immer das Problem, dass der Befehl nicht ausgelöst wird wenn wahr bei Pause drin steht.
                              Er wird erst ausgelöst wenn z.b. nach dem Tastendruck per Hand, die shelly wieder den Befehl auf wahr in der Pause zurücksetzt.

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

                                @LaBamba sagte:

                                Die habe ich mit einem Jqui-icon toggle im VIS verbunden.

                                Toggle ist sicherlich falsch. Ein "normaler" Button kann auf wahr bleiben und aktualisiert bei Betätigung nur den Zeitstempel zum Triggern.

                                @LaBamba sagte in Ausführung für z.B. 1 Sekunde:

                                Ja das ist eine Shelly 2.5.

                                Ich habe keine Shellys, benötige also die Informationen über das Verhalten von Dir. Liefern die Shellys die aktuelle Position während der Bewegung zurück ? Wenn ja, in welchem zeitlichen Abstand ?

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

                                  @paul53

                                  Grundsätzlich gibt es diese Datenpunkte

                                  10515a71-2898-4619-82a3-039b789f1a74-image.png

                                  Hierbei sind close, open, Position und Pause wichtig!

                                  Die Winkeleinstellung hat so
                                  6670a56a-1cc5-4cbc-80b2-0b04b70d691c-image.png

                                  funktioniert

                                  paul53 L 2 Replies Last reply Reply Quote 0
                                  • paul53
                                    paul53 @LaBamba last edited by

                                    @LaBamba
                                    Welche Werte liefert "Roller state" ? "stop", wenn die Sollposition erreicht ist ?

                                    L 1 Reply Last reply Reply Quote 0
                                    • L
                                      LaBamba @LaBamba last edited by

                                      @paul53
                                      Open auf unwahr zu setzen bringt nicht viel. Deshalb ist es über Pause besser!

                                      Wenn ein Skript gestartet wird, sollte es eigentlich einmal ausgeführt werden. Jedoch habe ich gemerkt, dass das Skript erst ausgeführt wird, wenn Pause wieder von falsch auf true springt.

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

                                        @paul53

                                        Der kennt close, stop, open!
                                        Also wenn die Position erreicht ist stop!

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

                                          @LaBamba sagte:

                                          Der kennt close, stop, open! Also wenn die Position erreicht ist stop!

                                          Der Raffstore soll nach Tastendruck auf 50 % fahren und dann den Winkel verstellen ? Dann versuche es mal so:

                                          Blockly_temp.JPG

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

                                            @paul53
                                            Wo bekommst du das und mit 2 Ausgängen her?

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            989
                                            Online

                                            32.1k
                                            Users

                                            80.7k
                                            Topics

                                            1.3m
                                            Posts

                                            5
                                            129
                                            6250
                                            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