Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. [gelöst] falls/ sonst erst nach x sek. ausführen

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    [gelöst] falls/ sonst erst nach x sek. ausführen

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

      Hi,

      ich habe folgendes kleines Blockly, mit dem eine Steckdose auf an oder aus geschaltet wird, wenn mein Verstärker an ist und ein bestimmter Eingang gewählt ist. Der Sky Receiver frisst mit im Standby zu viel Strom. Also soll er erst angehen, wenn der Verstäker es sagt.

      dc3039f6-46b5-4f9b-8eb3-7952ed5a33fd-image.png

      <xml xmlns="https://developers.google.com/blockly/xml">
        <block type="on_ext" id="ODSr!AJFh*{lioMdDpir" x="-87" y="-712">
          <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
          <field name="CONDITION">ne</field>
          <field name="ACK_CONDITION"></field>
          <value name="OID0">
            <shadow type="field_oid" id="~^fjQL|V5,U9(q19}cMu">
              <field name="oid">denon.0.settings.powerSystem</field>
            </shadow>
          </value>
          <value name="OID1">
            <shadow type="field_oid" id="4cWK9e~~p2MQ2O4;m:Ov">
              <field name="oid">denon.0.zoneMain.selectInput</field>
            </shadow>
          </value>
          <statement name="STATEMENT">
            <block type="controls_if" id="GTif:no$?7NkZM?7yjun">
              <mutation else="1"></mutation>
              <value name="IF0">
                <block type="logic_operation" id="C%#k4H/TTGk3xS3|0q$w" inline="false">
                  <field name="OP">AND</field>
                  <value name="A">
                    <block type="logic_compare" id="S[71y;CiTbX2lV.hd0r1">
                      <field name="OP">EQ</field>
                      <value name="A">
                        <block type="get_value" id="]u80)|TwVoB#HtiyPr,Q">
                          <field name="ATTR">val</field>
                          <field name="OID">denon.0.settings.powerSystem</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_boolean" id="wa(V/^!Kj4KcV#]J8L2,">
                          <field name="BOOL">TRUE</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <value name="B">
                    <block type="logic_operation" id="seL7Z8P6It+.`j7!=MOT" inline="false">
                      <field name="OP">AND</field>
                      <value name="A">
                        <block type="logic_compare" id="*ttalNM#4G6c8Eflr3R`">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id="m(?}In`YmL=NU8Y8n8Yx">
                              <field name="ATTR">val</field>
                              <field name="OID">denon.0.zoneMain.selectInput</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="text" id="S,4[3*}cIm$~@|8{@72@">
                              <field name="TEXT">DVD</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_compare" id="Riux!ki/::CJZs:niAIb">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id="2y^ab%X,~l]~e.GuF9q-">
                              <field name="ATTR">val</field>
                              <field name="OID">sonoff.0.DVES_TASMOTA-16.POWER</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_boolean" id="dx%~IpI?PQQJ5D;1]pKy">
                              <field name="BOOL">FALSE</field>
                            </block>
                          </value>
                        </block>
                      </value>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO0">
                <block type="control" id="T21{ocTdW?,sq-EDTTO]">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                  <field name="OID">sonoff.0.DVES_TASMOTA-16.POWER</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="logic_boolean" id="XOENyIr`zmSZ$S5.LG}P">
                      <field name="BOOL">TRUE</field>
                    </block>
                  </value>
                </block>
              </statement>
              <statement name="ELSE">
                <block type="control" id="bO!2`TqD]O4om!=oWrI/">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                  <field name="OID">sonoff.0.DVES_TASMOTA-16.POWER</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="logic_boolean" id="N65f(?q.%A[18h6PKW+q">
                      <field name="BOOL">FALSE</field>
                    </block>
                  </value>
                </block>
              </statement>
            </block>
          </statement>
        </block>
      </xml>
      

      Jetzt soll das Script erst nach z.B. 10 sek. die Dose einschalten. Denn wenn meine Frau was am Verstärtker hören will, dreht sie sich durch die Eingänge. Wenn sie nun kurz bei Sky anhält, und dann weiter dreht, dann geht die Dose an und wieder aus. So will ich verhindern dass das passiert. Aber bei den Timeout Blöcken stelle ich mich zu blöde an, und es funktioniert nicht.

      Daher hoffe ich hier auf einen Lösungsvorschlag.

      Danke

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

        @AxelF1977 sagte:

        Lösungsvorschlag.

        Blockly_temp.JPG

        AxelF1977 1 Reply Last reply Reply Quote 1
        • AxelF1977
          AxelF1977 @paul53 last edited by

          @paul53 sagte in falls/ sonst erst nach x sek. ausführen:

          @AxelF1977 sagte:

          Lösungsvorschlag.

          Blockly_temp.JPG

          Danke Dir.

          Funktioniert wie gehofft! Keine Ahnung warum ich mir da so die Karten gelegt habe... Wieder was gelernt

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

            @AxelF1977 sagte:

            Funktioniert wie gehofft!

            Dann bitte das Thema in der Überschrift des ersten Beitrags als [gelöst] markieren.

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

            Support us

            ioBroker
            Community Adapters
            Donate

            944
            Online

            32.0k
            Users

            80.4k
            Topics

            1.3m
            Posts

            2
            4
            259
            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