Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Remote für Rollo: starten/stoppen mit einem Schalter

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Remote für Rollo: starten/stoppen mit einem Schalter

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

      @io_laurent sagte:

      hast du vielleicht noch ne andere Idee?

      Das Script setzt voraus, dass der Datenpunkt "position" während der Rollo-Bewegung seine gerade erreichte Position liefert. Ist das der Fall ? Wenn nicht, dann funktioniert es so nicht.

      Passiert etwas mit dem Datenpunkt "position", wenn während der Rollo-Bewegung der Button "stop" betätigt wird ?

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

        @paul53

        1. Ja, während der Fahrt ändert sich die %-Angabe unter Position von 100 in ca. 4er Schritten runter , 96,92,88,83,...

        2. Prozent in Position zählt wie oben beschrieben von 100 in 4er Schritten runter, wenn ich dann stop button drücke, zählt % Position einfach wieder in 4er Schritten hoch bis 100 (da das Rollo kurz stoppt und wieder ein fährt).

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

          @io_laurent sagte:

          während der Fahrt ändert sich die %-Angabe unter Position von 100 in ca. 4er Schritten runter , 96,92,88,83,...

          Wenn Du während der Fahrt manuell im Reiter Objekte z.B. den Wert 50 eingibst und absendest, wie verhält sich dann das Rollo ?

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

            @paul53
            Fährt los,

            1. ist der eingegebene Wert unterhalb der Position fährt es weiter bis zur eingegebenen Position.
            2. ist der eingegebene Wert oberhalb der Position stop es ganz kurz und fährt dann wieder zurück zu der eingegebene Position.
            paul53 1 Reply Last reply Reply Quote 0
            • paul53
              paul53 @io_laurent last edited by paul53

              @io_laurent sagte:

              Fährt los,

              welche Richtung ? 0 --> 100 % ?

              @io_laurent
              Nicht umgekehrt ? Eingabe > Position: fährt weiter zum Eingabewert; Eingabe < Position: fährt zurück zum Eingabewert ?

              Wenn es so reagiert, sollte das Script eigentlich funktionieren: Bei Tastendruck während Bewegung wird die letzte Position ausgegeben, sollte also dort bleiben bzw. ein kleines Stück zurück fahren.

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

                @paul53
                Das Rollo ist eingefahren: Wert Position=100%

                Rollo fährt aus in Richtung Wert=0%.
                Ich gebe während dessen den Wert 50 manuell ein, Rollo fährt bis 50% und bleibt stehen.
                Ist es schon über 50 hinaus (z.B. 20%) stoppt es kurz (also direkt nach Eingabe des Wertes 50) und fährt dann zurück auf 50%.

                Also eigentlich reagiert alles richtig, wenn ich es richtig verstanden hab...?!

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

                  @io_laurent sagte:

                  Also eigentlich reagiert alles richtig, wenn ich es richtig verstanden hab...?!

                  Ja, Du hattest die Richtung (100 --> 0) nicht angegeben.
                  Dann wundert es mich, dass das Script das Rollo nicht stoppt, wenn während Bewegung die Taste betätigt wird.

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

                    @io_laurent
                    Versuche es mal mit einem Offset von 5 %:

                    Blockly_temp.JPG

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

                      @io_laurent
                      Versuche es mal hiermit:

                      Blockly_temp.JPG

                      <xml xmlns="https://developers.google.com/blockly/xml">
                       <variables>
                         <variable id="o3^%-QYD{oO5e3Do3`4~">bewegung</variable>
                         <variable id="b=`EQVpX+qZ[O1A|,y8#">position</variable>
                       </variables>
                       <block type="on_ext" id="eOK~M@#sw5_*QNeso*,V" x="113" y="38">
                         <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="Q0/FU:A$y5,wTm:p,1/0">
                             <field name="oid">default</field>
                           </shadow>
                         </value>
                         <statement name="STATEMENT">
                           <block type="controls_if" id="Be7V`|,R?v[9Z~l#@=3o">
                             <mutation else="1"></mutation>
                             <value name="IF0">
                               <block type="variables_get" id="Ru_Qm%]eGLuGN{;z63`J">
                                 <field name="VAR" id="o3^%-QYD{oO5e3Do3`4~">bewegung</field>
                               </block>
                             </value>
                             <statement name="DO0">
                               <block type="control" id="xB+;[v%4UZ0_uyhPK-{)">
                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                 <field name="OID">Object ID</field>
                                 <field name="WITH_DELAY">FALSE</field>
                                 <value name="VALUE">
                                   <block type="variables_get" id="XQP{JFNKtT2Z,nMqXvPS">
                                     <field name="VAR" id="b=`EQVpX+qZ[O1A|,y8#">position</field>
                                   </block>
                                 </value>
                                 <next>
                                   <block type="variables_set" id=":oN~$Cg5:C9t=ixR@bW+">
                                     <field name="VAR" id="o3^%-QYD{oO5e3Do3`4~">bewegung</field>
                                     <value name="VALUE">
                                       <block type="logic_boolean" id="M?X5n+w`nWsK%QoC[]$A">
                                         <field name="BOOL">FALSE</field>
                                       </block>
                                     </value>
                                   </block>
                                 </next>
                               </block>
                             </statement>
                             <statement name="ELSE">
                               <block type="controls_if" id="Lq1_@%(jC4J-K)Fcz+CS">
                                 <value name="IF0">
                                   <block type="logic_compare" id="z^*[}4!`:xoqpUZ+KA,/">
                                     <field name="OP">LT</field>
                                     <value name="A">
                                       <block type="variables_get" id="ld(-4XmG1|Mz/d$:,:({">
                                         <field name="VAR" id="b=`EQVpX+qZ[O1A|,y8#">position</field>
                                       </block>
                                     </value>
                                     <value name="B">
                                       <block type="math_number" id="R$wWNIqo`I3fcAM$2^lk">
                                         <field name="NUM">100</field>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <statement name="DO0">
                                   <block type="control" id="Wt=d/-@:,6_;uQ=EKsrN">
                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                     <field name="OID">Object ID</field>
                                     <field name="WITH_DELAY">FALSE</field>
                                     <value name="VALUE">
                                       <block type="math_number" id="{!p{`cYDw1Ij@?xycilX">
                                         <field name="NUM">100</field>
                                       </block>
                                     </value>
                                     <next>
                                       <block type="variables_set" id="/.D}0v}T93%k6hZipAYU">
                                         <field name="VAR" id="o3^%-QYD{oO5e3Do3`4~">bewegung</field>
                                         <value name="VALUE">
                                           <block type="logic_boolean" id="E9DZ6e!pC|s$]S[7X*pG">
                                             <field name="BOOL">TRUE</field>
                                           </block>
                                         </value>
                                       </block>
                                     </next>
                                   </block>
                                 </statement>
                               </block>
                             </statement>
                           </block>
                         </statement>
                         <next>
                           <block type="on_ext" id="yH4l%rNnS75v{GLM.^/,">
                             <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="M:X8`~c!j-|wA$z$8PtI">
                                 <field name="oid">default</field>
                               </shadow>
                             </value>
                             <statement name="STATEMENT">
                               <block type="controls_if" id="sMK:SPL-4~UNuIQT{0nW">
                                 <mutation else="1"></mutation>
                                 <value name="IF0">
                                   <block type="variables_get" id="dV4p!ZX:pUCr-euIRhXI">
                                     <field name="VAR" id="o3^%-QYD{oO5e3Do3`4~">bewegung</field>
                                   </block>
                                 </value>
                                 <statement name="DO0">
                                   <block type="control" id="xigjNO~[ob]:_8*Vn!A8">
                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                     <field name="OID">Object ID</field>
                                     <field name="WITH_DELAY">FALSE</field>
                                     <value name="VALUE">
                                       <block type="variables_get" id="Lbe|4c|0K0(bHH836$Lb">
                                         <field name="VAR" id="b=`EQVpX+qZ[O1A|,y8#">position</field>
                                       </block>
                                     </value>
                                     <next>
                                       <block type="variables_set" id="1{chR+}hg]GM:Do;195H">
                                         <field name="VAR" id="o3^%-QYD{oO5e3Do3`4~">bewegung</field>
                                         <value name="VALUE">
                                           <block type="logic_boolean" id="Yof2z%!2r|`DlTyIyXIY">
                                             <field name="BOOL">FALSE</field>
                                           </block>
                                         </value>
                                       </block>
                                     </next>
                                   </block>
                                 </statement>
                                 <statement name="ELSE">
                                   <block type="controls_if" id=";@XgkX`!@aS3LvrGVO6O">
                                     <value name="IF0">
                                       <block type="logic_compare" id=",bHXQpXt*dpR)^q_T5Ne">
                                         <field name="OP">GT</field>
                                         <value name="A">
                                           <block type="variables_get" id="3j1*dBS_k^}l21$LK?xS">
                                             <field name="VAR" id="b=`EQVpX+qZ[O1A|,y8#">position</field>
                                           </block>
                                         </value>
                                         <value name="B">
                                           <block type="math_number" id="*jVy2KzA{DOMzpD+AocB">
                                             <field name="NUM">0</field>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                     <statement name="DO0">
                                       <block type="control" id="b8+=)O1#@icz,HOqw+uo">
                                         <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                         <field name="OID">Object ID</field>
                                         <field name="WITH_DELAY">FALSE</field>
                                         <value name="VALUE">
                                           <block type="math_number" id="zUf*LJ}Gcg4]%]T?tdOk">
                                             <field name="NUM">0</field>
                                           </block>
                                         </value>
                                         <next>
                                           <block type="variables_set" id="j#~xZ1gqTMd7sSH79Te!">
                                             <field name="VAR" id="o3^%-QYD{oO5e3Do3`4~">bewegung</field>
                                             <value name="VALUE">
                                               <block type="logic_boolean" id="hcLx]{(fD*-+_KM/oiUt">
                                                 <field name="BOOL">TRUE</field>
                                               </block>
                                             </value>
                                           </block>
                                         </next>
                                       </block>
                                     </statement>
                                   </block>
                                 </statement>
                               </block>
                             </statement>
                             <next>
                               <block type="on_ext" id="?up1oU{E#=uG|6a)L`CF">
                                 <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="Qf:T1#~:dlqsYfY[{uAh">
                                     <field name="oid">default</field>
                                   </shadow>
                                 </value>
                                 <statement name="STATEMENT">
                                   <block type="variables_set" id="zQAPhOExyZMa9O{#O%$[">
                                     <field name="VAR" id="b=`EQVpX+qZ[O1A|,y8#">position</field>
                                     <value name="VALUE">
                                       <block type="on_source" id="%Q3P#IioDtJZwJfwo=yM">
                                         <field name="ATTR">state.val</field>
                                       </block>
                                     </value>
                                     <next>
                                       <block type="controls_if" id=",,{YTc$GivE?A#5g_F:-">
                                         <value name="IF0">
                                           <block type="logic_operation" id="Bq{.1K`KB]=vx*)Zs9uY" inline="false">
                                             <field name="OP">OR</field>
                                             <value name="A">
                                               <block type="logic_compare" id="Mj{AHA^9l.y+qp^twgl(">
                                                 <field name="OP">EQ</field>
                                                 <value name="A">
                                                   <block type="variables_get" id="g`4R$F[G,z.NNO[K@.@H">
                                                     <field name="VAR" id="b=`EQVpX+qZ[O1A|,y8#">position</field>
                                                   </block>
                                                 </value>
                                                 <value name="B">
                                                   <block type="math_number" id="nt1xB|Hq?R9)Uqc/+1jt">
                                                     <field name="NUM">0</field>
                                                   </block>
                                                 </value>
                                               </block>
                                             </value>
                                             <value name="B">
                                               <block type="logic_compare" id=":/ZMPfWL^xjob/2jC06i">
                                                 <field name="OP">EQ</field>
                                                 <value name="A">
                                                   <block type="variables_get" id="(7N@1blW.IM/9$5[ua9n">
                                                     <field name="VAR" id="b=`EQVpX+qZ[O1A|,y8#">position</field>
                                                   </block>
                                                 </value>
                                                 <value name="B">
                                                   <block type="math_number" id="KZ+Mhn$_q=[9F!lYQY_`">
                                                     <field name="NUM">100</field>
                                                   </block>
                                                 </value>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                         <statement name="DO0">
                                           <block type="variables_set" id="E:v(,}aS2YIb]q[wR@9[">
                                             <field name="VAR" id="o3^%-QYD{oO5e3Do3`4~">bewegung</field>
                                             <value name="VALUE">
                                               <block type="logic_boolean" id=":6u0=NR8#a:}GA*rW2?H">
                                                 <field name="BOOL">FALSE</field>
                                               </block>
                                             </value>
                                           </block>
                                         </statement>
                                       </block>
                                     </next>
                                   </block>
                                 </statement>
                               </block>
                             </next>
                           </block>
                         </next>
                       </block>
                      </xml>
                      

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

                        @paul53
                        Leider nein. Gleiches Verhalten wie bei dem anderen Script (auch das mit 5% Offset).

                        Zur Sicherheit ein Screenshot, ob ich alles richtig eingetragen hab (ich weiß, zumindest das sollte ich hinbekommen, aber guck bitte nochmal kurz drüber:)
                        Bildschirmfoto 2020-06-15 um 18.58.49.png

                        Falls dir noch was einfällt, gerne her damit.

                        Bis hier hin danke ich schon mal sehr herzlich für deine Mühe und deinen Ehrgeiz! Vielen Dank!

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

                          @io_laurent sagte:

                          Falls dir noch was einfällt,

                          Leider nein, außer per Log zu verfolgen, was passiert.

                          Blockly_temp.JPG

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

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          919
                          Online

                          32.0k
                          Users

                          80.4k
                          Topics

                          1.3m
                          Posts

                          blockly scenes
                          2
                          14
                          710
                          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