Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Solved: Blockly Script für erweiterten Zeitplan

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Solved: Blockly Script für erweiterten Zeitplan

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

      Hallo Gemeinde,

      Bin am basteln eines Blocklys für einen Zeitplan, allerdings komme ich nich weiter u. brauche einen Tip.
      Das Blockly ohne den zeitich begrenzten Plan (18-22 Uhr) funktioniert prima.
      Das um die Zeitbegrenzung erweiterte funktioniert irgendwie überhaupt nicht.
      Habe ich einen Denkfehler oder wie?!

      Vielleicht könnt ihr Euch das mal anschauen...

      
      <block xmlns="https://developers.google.com/blockly/xml" type="schedule" id="?JkF4@d0qyuN8[@#z^{l" x="152.0014190673828" y="-146">
        <field name="SCHEDULE">*/10 * * * *</field>
        <statement name="STATEMENT">
          <block type="control" id="M9LaUIsTA4EQE]C+uM,l">
            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
            <field name="OID">sonoff.0.sonoffmini1.POWER</field>
            <field name="WITH_DELAY">FALSE</field>
            <value name="VALUE">
              <block type="logic_boolean" id="i+(n?o.bc.B0z|%9)feT">
                <field name="BOOL">TRUE</field>
              </block>
            </value>
            <next>
              <block type="debug" id="~/JU`...F+f5?DO=DN_B">
                <field name="Severity">log</field>
                <value name="TEXT">
                  <shadow type="text" id="-CQN5[w/8CP(qr|]l2IC">
                    <field name="TEXT">***sonoffmini1 ein</field>
                  </shadow>
                </value>
                <next>
                  <block type="timeouts_settimeout" id="%?YX2J)iGt#;:Hg3@9!(">
                    <field name="NAME">timeout</field>
                    <field name="DELAY">1</field>
                    <field name="UNIT">min</field>
                    <statement name="STATEMENT">
                      <block type="control" id="mQA?SO)[3D)z[ap{}jY-">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">sonoff.0.sonoffmini1.POWER</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="8Jx[;jFWFMo?:u,9+WIz">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </statement>
      </block>
      <block xmlns="https://developers.google.com/blockly/xml" type="schedule" id="?JkF4@d0qyuN8[@#z^{l" x="152.0014190673828" y="-146">
        <field name="SCHEDULE">*/10 * * * *</field>
        <statement name="STATEMENT">
          <block type="control" id="M9LaUIsTA4EQE]C+uM,l">
            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
            <field name="OID">sonoff.0.sonoffmini1.POWER</field>
            <field name="WITH_DELAY">FALSE</field>
            <value name="VALUE">
              <block type="logic_boolean" id="i+(n?o.bc.B0z|%9)feT">
                <field name="BOOL">TRUE</field>
              </block>
            </value>
            <next>
              <block type="debug" id="~/JU`...F+f5?DO=DN_B">
                <field name="Severity">log</field>
                <value name="TEXT">
                  <shadow type="text" id="-CQN5[w/8CP(qr|]l2IC">
                    <field name="TEXT">***sonoffmini1 ein</field>
                  </shadow>
                </value>
                <next>
                  <block type="timeouts_settimeout" id="%?YX2J)iGt#;:Hg3@9!(">
                    <field name="NAME">timeout</field>
                    <field name="DELAY">1</field>
                    <field name="UNIT">min</field>
                    <statement name="STATEMENT">
                      <block type="control" id="mQA?SO)[3D)z[ap{}jY-">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">sonoff.0.sonoffmini1.POWER</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="8Jx[;jFWFMo?:u,9+WIz">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </statement>
      </block>
      
      
      paul53 1 Reply Last reply Reply Quote 0
      • paul53
        paul53 @crepp1967 last edited by

        @crepp1967 sagte: mal anschauen...

        Das sind zwei gleiche Zeitpläne, die auf den selben Datenpunkt wirken. Ein zeitliche Begrenzung ist nicht enthalten.

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

          @paul53

          Ich wollte ihn verschachteln, zwischen 18:00 u. 22:00 soll er alle 10min für eine Minute den sonoff schalten - soweit der Plan.
          Wie würdest Du das umsetzen?

          Gruß
          Torsten

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

            @crepp1967 sagte: zwischen 18:00 u. 22:00 soll er alle 10min für eine Minute den sonoff schalten

            Als CRON:

            Blockly_temp.JPG

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

              @paul53
              Vielen Dank für Deinen Denkanstoss - es klappt jetzt.
              Ich bin mit der Cronfunktion noch nicht so vertraut, aber ich habe wieder was dazugelernt...

              Gruß Torsten

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

              Support us

              ioBroker
              Community Adapters
              Donate

              877
              Online

              32.0k
              Users

              80.5k
              Topics

              1.3m
              Posts

              2
              5
              223
              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