Skip to content
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Logo
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. Kombination Timeout und separater Trigger...

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.1k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    1.8k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    15
    1
    2.1k

Kombination Timeout und separater Trigger...

Scheduled Pinned Locked Moved Blockly
6 Posts 3 Posters 45 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    WOOD_Byte
    wrote last edited by
    #1

    Ich habe ein kleines Script geschrieben, welches eine Außenleuchte mit single-tap anschalten und nach 3 min automatisch oder mittels dubble-tap abschalten soll. Beide Varianten funktionieren für sich gut, jedoch in Kombination scheint das Timeout vor Ablauf ein Wiedereinschalten zu verhindern.
    Das liegt sicher an meiner nachgeordneten Anordnung. Wie mache ich das aber richtig, dass ich die Wahl habe wie ich es ausschalte?

    <xml xmlns="https://developers.google.com/blockly/xml">
      <variables>
        <variable type="timeout" id="timeout">timeout</variable>
      </variables>
      <block type="on" id="/DxM!mVUY#r`OHm1FC{l" x="113" y="-462">
        <field name="OID">zigbee.0.048727fffed22c84.single</field>
        <field name="CONDITION">true</field>
        <field name="ACK_CONDITION"></field>
        <statement name="STATEMENT">
          <block type="controls_if" id="a=ZDm,@UO}MDjnD_(1`E">
            <value name="IF0">
              <block type="logic_negate" id="{mv,Dp`2iNb1)-5-oG}I">
                <value name="BOOL">
                  <block type="timeouts_gettimeout" id="+o-Tp:Q{9(m5j@1[=C#K">
                    <field name="NAME">timeout</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="control" id="YE.nJTMVrzK20c9W!6?^">
                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                <field name="OID">zigbee.0.5c0272fffe88e69d.state</field>
                <field name="WITH_DELAY">FALSE</field>
                <value name="VALUE">
                  <block type="logic_boolean" id="%d*;f.x-`^3nf:uqIZD|">
                    <field name="BOOL">TRUE</field>
                  </block>
                </value>
                <next>
                  <block type="debug" id="Mh,F0T0$P,^^8pS=wXTa">
                    <field name="Severity">info</field>
                    <value name="TEXT">
                      <shadow type="text" id="mU+5FDhwH(l2Qg$cRrKP">
                        <field name="TEXT">test_an</field>
                      </shadow>
                    </value>
                    <next>
                      <block type="timeouts_settimeout" id="Ba6fJ3yhq:/;r7d23dN@">
                        <field name="NAME">timeout</field>
                        <field name="DELAY">3</field>
                        <field name="UNIT">min</field>
                        <statement name="STATEMENT">
                          <block type="control" id="[`D#4gG_LgL%*TeBDtbC">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">zigbee.0.5c0272fffe88e69d.state</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="(^~m]o~sRpg@%}$GR4ro">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block type="debug" id="nY~+at61RWPBL9xFEPe}">
                                <field name="Severity">info</field>
                                <value name="TEXT">
                                  <shadow type="text" id="s~x@`raX7pBT^SNHYgLc">
                                    <field name="TEXT">test_aus durch time</field>
                                  </shadow>
                                </value>
                              </block>
                            </next>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </statement>
          </block>
        </statement>
        <next>
          <block type="on" id="]x}cfW:d-LK[/W1LjZPo">
            <field name="OID">zigbee.0.048727fffed22c84.double</field>
            <field name="CONDITION">true</field>
            <field name="ACK_CONDITION"></field>
            <statement name="STATEMENT">
              <block type="control" id="hGqg|_j}1Iwo~MDwC7!8">
                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                <field name="OID">zigbee.0.5c0272fffe88e69d.state</field>
                <field name="WITH_DELAY">FALSE</field>
                <value name="VALUE">
                  <block type="logic_boolean" id="@y-EAK2)PyPgE|so$0zG">
                    <field name="BOOL">FALSE</field>
                  </block>
                </value>
                <next>
                  <block type="debug" id="3?``JT+l3EIDjzfty*!o">
                    <field name="Severity">info</field>
                    <value name="TEXT">
                      <shadow type="text" id="ctfJN=$z/odv.m%WR6:Y">
                        <field name="TEXT">test_aus durch doppel</field>
                      </shadow>
                    </value>
                  </block>
                </next>
              </block>
            </statement>
          </block>
        </next>
      </block>
    </xml>
    
    paul53P 1 Reply Last reply
    0
    • Meister MopperM Away
      Meister MopperM Away
      Meister Mopper
      wrote last edited by
      #2

      Es ist nicht zielführend, den Blockly-Code ohne eine Blockly-Grafik hier einzustellen.
      Den werden die wenigsten Helfer in ihr System laden.

      Besser die Grafik zeigen.

      Proxmox und HA

      W 1 Reply Last reply
      0
      • W WOOD_Byte

        Ich habe ein kleines Script geschrieben, welches eine Außenleuchte mit single-tap anschalten und nach 3 min automatisch oder mittels dubble-tap abschalten soll. Beide Varianten funktionieren für sich gut, jedoch in Kombination scheint das Timeout vor Ablauf ein Wiedereinschalten zu verhindern.
        Das liegt sicher an meiner nachgeordneten Anordnung. Wie mache ich das aber richtig, dass ich die Wahl habe wie ich es ausschalte?

        <xml xmlns="https://developers.google.com/blockly/xml">
          <variables>
            <variable type="timeout" id="timeout">timeout</variable>
          </variables>
          <block type="on" id="/DxM!mVUY#r`OHm1FC{l" x="113" y="-462">
            <field name="OID">zigbee.0.048727fffed22c84.single</field>
            <field name="CONDITION">true</field>
            <field name="ACK_CONDITION"></field>
            <statement name="STATEMENT">
              <block type="controls_if" id="a=ZDm,@UO}MDjnD_(1`E">
                <value name="IF0">
                  <block type="logic_negate" id="{mv,Dp`2iNb1)-5-oG}I">
                    <value name="BOOL">
                      <block type="timeouts_gettimeout" id="+o-Tp:Q{9(m5j@1[=C#K">
                        <field name="NAME">timeout</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="control" id="YE.nJTMVrzK20c9W!6?^">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">zigbee.0.5c0272fffe88e69d.state</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="%d*;f.x-`^3nf:uqIZD|">
                        <field name="BOOL">TRUE</field>
                      </block>
                    </value>
                    <next>
                      <block type="debug" id="Mh,F0T0$P,^^8pS=wXTa">
                        <field name="Severity">info</field>
                        <value name="TEXT">
                          <shadow type="text" id="mU+5FDhwH(l2Qg$cRrKP">
                            <field name="TEXT">test_an</field>
                          </shadow>
                        </value>
                        <next>
                          <block type="timeouts_settimeout" id="Ba6fJ3yhq:/;r7d23dN@">
                            <field name="NAME">timeout</field>
                            <field name="DELAY">3</field>
                            <field name="UNIT">min</field>
                            <statement name="STATEMENT">
                              <block type="control" id="[`D#4gG_LgL%*TeBDtbC">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">zigbee.0.5c0272fffe88e69d.state</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="(^~m]o~sRpg@%}$GR4ro">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="debug" id="nY~+at61RWPBL9xFEPe}">
                                    <field name="Severity">info</field>
                                    <value name="TEXT">
                                      <shadow type="text" id="s~x@`raX7pBT^SNHYgLc">
                                        <field name="TEXT">test_aus durch time</field>
                                      </shadow>
                                    </value>
                                  </block>
                                </next>
                              </block>
                            </statement>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </statement>
              </block>
            </statement>
            <next>
              <block type="on" id="]x}cfW:d-LK[/W1LjZPo">
                <field name="OID">zigbee.0.048727fffed22c84.double</field>
                <field name="CONDITION">true</field>
                <field name="ACK_CONDITION"></field>
                <statement name="STATEMENT">
                  <block type="control" id="hGqg|_j}1Iwo~MDwC7!8">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">zigbee.0.5c0272fffe88e69d.state</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="@y-EAK2)PyPgE|so$0zG">
                        <field name="BOOL">FALSE</field>
                      </block>
                    </value>
                    <next>
                      <block type="debug" id="3?``JT+l3EIDjzfty*!o">
                        <field name="Severity">info</field>
                        <value name="TEXT">
                          <shadow type="text" id="ctfJN=$z/odv.m%WR6:Y">
                            <field name="TEXT">test_aus durch doppel</field>
                          </shadow>
                        </value>
                      </block>
                    </next>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </xml>
        
        paul53P Offline
        paul53P Offline
        paul53
        wrote last edited by
        #3

        @WOOD_Byte said: in Kombination scheint das Timeout vor Ablauf ein Wiedereinschalten zu verhindern.

        Ergänze "stop timeout" bei "double":

        Blockly_temp.JPG

        Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
        Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

        W 1 Reply Last reply
        0
        • Meister MopperM Meister Mopper

          Es ist nicht zielführend, den Blockly-Code ohne eine Blockly-Grafik hier einzustellen.
          Den werden die wenigsten Helfer in ihr System laden.

          Besser die Grafik zeigen.

          W Offline
          W Offline
          WOOD_Byte
          wrote last edited by
          #4

          @Meister-Mopper said in Kombination Timeout und separater Trigger...:

          Es ist nicht zielführend, den Blockly-Code ohne eine Blockly-Grafik hier einzustellen.
          Den werden die wenigsten Helfer in ihr System laden.

          Besser die Grafik zeigen.

          Danke für den Hinweis!

          1 Reply Last reply
          0
          • paul53P paul53

            @WOOD_Byte said: in Kombination scheint das Timeout vor Ablauf ein Wiedereinschalten zu verhindern.

            Ergänze "stop timeout" bei "double":

            Blockly_temp.JPG

            W Offline
            W Offline
            WOOD_Byte
            wrote last edited by
            #5

            @paul53 said in Kombination Timeout und separater Trigger...:

            Ergänze "stop timeout" bei "double":

            Danke, das probiere ich gleich aus.

            1 Reply Last reply
            0
            • W Offline
              W Offline
              WOOD_Byte
              wrote last edited by
              #6

              Danke, funktioniert blendend! 😉

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              Support us

              ioBroker
              Community Adapters
              Donate

              693

              Online

              32.4k

              Users

              81.4k

              Topics

              1.3m

              Posts
              Community
              Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
              ioBroker Community 2014-2025
              logo
              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Recent
              • Tags
              • Unread 0
              • Categories
              • Unreplied
              • Popular
              • GitHub
              • Docu
              • Hilfe