Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. In Blockly Wert grösser 10'000 auf True Konvertieren

    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

    In Blockly Wert grösser 10'000 auf True Konvertieren

    This topic has been deleted. Only users with topic management privileges can see it.
    • dslraser
      dslraser Forum Testing Most Active @smarty15 last edited by

      @smarty15

      so ungefähr ...? (Probiere mal)

      Bildschirmfoto 2020-04-02 um 17.19.38.png

      <xml xmlns="http://www.w3.org/1999/xhtml">
       <block type="on_ext" id="G/Q$9]oMu9XG0szrO*E5" x="188" y="63">
         <mutation items="1"></mutation>
         <field name="CONDITION">ne</field>
         <field name="ACK_CONDITION"></field>
         <value name="OID0">
           <shadow type="field_oid" id="Iw@{h]xY?6E!w8DlZFn7">
             <field name="oid">default</field>
           </shadow>
         </value>
         <statement name="STATEMENT">
           <block type="controls_if" id="ImuXcqoH!A-g+yjk:uh-">
             <value name="IF0">
               <block type="logic_operation" id="37uhoQB.q$/h;]p`;U0S" inline="false">
                 <field name="OP">AND</field>
                 <value name="A">
                   <block type="logic_compare" id="6MTQK5u65ak@|E|if.@f">
                     <field name="OP">GT</field>
                     <value name="A">
                       <block type="on_source" id="=$|H-Y]QYq$Pd(j7~9jU">
                         <field name="ATTR">state.val</field>
                       </block>
                     </value>
                     <value name="B">
                       <block type="math_number" id="x0+mm25vhDB0)|V0RFow">
                         <field name="NUM">10000</field>
                       </block>
                     </value>
                   </block>
                 </value>
                 <value name="B">
                   <block type="logic_compare" id="|Ah{!$ydPD*SCa.$Ze/1">
                     <field name="OP">LT</field>
                     <value name="A">
                       <block type="on_source" id="`EE.9jc!QHJYD#=S`T[O">
                         <field name="ATTR">oldState.val</field>
                       </block>
                     </value>
                     <value name="B">
                       <block type="math_number" id="!fTH]e^NyTYb_):U3pDA">
                         <field name="NUM">10000</field>
                       </block>
                     </value>
                   </block>
                 </value>
               </block>
             </value>
             <statement name="DO0">
               <block type="comment" id="O4z9aQ=]Oi`=Gq/-igKh">
                 <field name="COMMENT">Rollo runter</field>
               </block>
             </statement>
             <next>
               <block type="controls_if" id="/=TN~Q_4LczMB%mXooF?">
                 <value name="IF0">
                   <block type="logic_operation" id="5z:oj}%Y)fQS{)ooea2X" inline="false">
                     <field name="OP">AND</field>
                     <value name="A">
                       <block type="logic_compare" id="F,afih5et#h@8b|VvXXm">
                         <field name="OP">LT</field>
                         <value name="A">
                           <block type="on_source" id="a`4gMh]~rg`,[+[6Y~yL">
                             <field name="ATTR">state.val</field>
                           </block>
                         </value>
                         <value name="B">
                           <block type="math_number" id="#@uiq}/jEJKZqFTi,1Tx">
                             <field name="NUM">10000</field>
                           </block>
                         </value>
                       </block>
                     </value>
                     <value name="B">
                       <block type="logic_compare" id="h~(5f0Y:?HX7/JqZA$ju">
                         <field name="OP">GT</field>
                         <value name="A">
                           <block type="on_source" id="Q-moA,RNuy]$su5$IrM2">
                             <field name="ATTR">oldState.val</field>
                           </block>
                         </value>
                         <value name="B">
                           <block type="math_number" id="N;#?rP*iFg_xR?:pcWbY">
                             <field name="NUM">10000</field>
                           </block>
                         </value>
                       </block>
                     </value>
                   </block>
                 </value>
                 <statement name="DO0">
                   <block type="comment" id="2sYYgM$K/}t[-$~IRLyM">
                     <field name="COMMENT">Rollo hoch</field>
                   </block>
                 </statement>
               </block>
             </next>
           </block>
         </statement>
       </block>
      </xml>
      

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

        @dslraser sagte:

        so ungefähr ...?

        Nicht ganz. Was passiert, wenn der Wert sich von 10000 auf > 10000 ändert und anschließend über 10000 bleibt ?

        dslraser 1 Reply Last reply Reply Quote 0
        • dslraser
          dslraser Forum Testing Most Active @paul53 last edited by dslraser

          @paul53
          also größer gleich auswählen und anders herum ?

          so ?

          Bildschirmfoto 2020-04-02 um 17.40.48.png

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

            @dslraser

            Ich habe es jetzt mal nach deiner ersten Variante gemacht und es scheint zu funktionieren.
            Lasse es jetzt mal eine Zeit aktiv damit ich sehe ob der Befehl an die Storen nur einmal raus geht.

            Sonst werde ich das zweit mal probieren.

            Aber schon mal recht herzlichen dank für eure Hilfe 🙂
            Eigentlich so simpel aber ich wäre nie darauf gekommen.

            Noch einen schönen Abend, und bleibt Gesund

            Werde dann noch kurz schreiben in den nächsten Tagen ob es so funktioniert wie es soll 🙂

            Gruss

            dslraser 1 Reply Last reply Reply Quote 0
            • dslraser
              dslraser Forum Testing Most Active @smarty15 last edited by

              @smarty15
              ich denke @paul53 meint, wenn der Fall mit genau 10.000 eintritt , was ja auch sein kann.

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

                @dslraser sagte:

                so ?

                Ja, einer der beiden Vergleiche muss auch "gleich" enthalten.

                1 Reply Last reply Reply Quote 1
                • S
                  smarty15 last edited by

                  @paul53

                  Ah so meinst du das

                  Ja ich werde es mal beobachten

                  Vielen dank dir auch an @dslraser

                  1 Reply Last reply Reply Quote 0
                  • S
                    smarty15 last edited by

                    @dslraser

                    Ich habe noch eine Frage da ich nun einen Türkontakt integrieren will.
                    In Blockly fand ich das nicht das ich noch eine weiter Und Bedienung eingeben kann.
                    In deinem Skript das du mir gesendet hast sind ja zwei drin.
                    In Blockly finde ich aber nur einen Block mit einer Und Bedingung.
                    Ist dies über Blockly möglich oder geht das nur mit Java Skript?

                    Gruss

                    T 1 Reply Last reply Reply Quote 0
                    • T
                      ticaki Developer @smarty15 last edited by

                      @smarty15
                      Verschachtele die Und-Bedinungen du kannst in jedes UND Feld ein neues UND Element einstecken.

                      1 Reply Last reply Reply Quote 1
                      • DAN78
                        DAN78 last edited by DAN78

                        @smarty15 ich würde das so machen....

                        Blockly.jpg

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

                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        793
                        Online

                        32.1k
                        Users

                        80.7k
                        Topics

                        1.3m
                        Posts

                        5
                        13
                        625
                        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