Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Taster mit Autoaus funktion

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Taster mit Autoaus funktion

    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Max-lex last edited by

      Hallo zusammen,

      ich bastele wieder an meiner Visualisierung..
      Ich wollte mehrere Taster in der Visu HQwidgets (als Taster) einbauen nun, habe ich keine Möglichkeit den auf Autoaus zu konfigurieren?
      Gibt es evtl. noch andre Varianten für einen Taster auser die On/Off Schieber?

      Vielen dank für euere Hilfe

      1 Reply Last reply Reply Quote 0
      • M
        Max-lex last edited by

        bin ich der Einzige der die Funktion vermisst?

        1 Reply Last reply Reply Quote 0
        • D
          dondaik last edited by

          was ist den mit der "glühlampe" ? - das ist ein taster .... den rest muss man selber machen

          1 Reply Last reply Reply Quote 0
          • M
            mameier1234 last edited by

            Selber machen heist, z.B. mit einem Blockly die Änderung des Datenpunktes auswerten, und dann mit einer Verzögerung (z.B.) 1 Sekunde den wieder auf 0 zu stellen.....

            1 Reply Last reply Reply Quote 0
            • W
              workoutseven last edited by workoutseven

              Guten Tag, ich mache das mit meinen Steckdosen und dem Wasserkocher. Nachdem die Steckdose aktiviert wurde (egal ob über Alexa, VIS oder den physischen Button) wird X Sekunden gewartet und wieder ausgeschalten.

              alt text

              Hier hast du mein Blockly dazu, vielleicht hilft dir das weiter:

              <xml xmlns="http://www.w3.org/1999/xhtml">
                <block type="comment" id="=%!!)an@;R+euOOc;5Yk" x="37" y="13">
                  <field name="COMMENT">Steckdose Wasserkocher - 2 Min nach einschalten wieder deaktivieren</field>
                  <next>
                    <block type="on_ext" id="8%Dj]Bg/5^yGycx`+iJo">
                      <mutation items="1"></mutation>
                      <field name="CONDITION">true</field>
                      <field name="ACK_CONDITION"></field>
                      <value name="OID0">
                        <shadow type="field_oid" id="hn-7kU/UHToVQgJsv}M?">
                          <field name="oid">zigbee.1.84182600000e63dd.state</field>
                        </shadow>
                      </value>
                      <statement name="STATEMENT">
                        <block type="controls_if" id="1%[r!MHT^lE#55]r6oBk">
                          <value name="IF0">
                            <block type="logic_compare" id="|eVcgRCnNij-+,t~y`2h">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="z0pJ;Zs6$NTmxc+Af#AW">
                                  <field name="ATTR">val</field>
                                  <field name="OID">zigbee.1.84182600000e63dd.available</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="}pxAq-aR];.Ygdkrw,l:">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="control" id="0E6{-0t!(V4!!Z[jAmCx">
                              <mutation delay_input="true"></mutation>
                              <field name="OID">zigbee.1.84182600000e63dd.state</field>
                              <field name="WITH_DELAY">TRUE</field>
                              <field name="DELAY_MS">10000</field>
                              <field name="UNIT">ms</field>
                              <field name="CLEAR_RUNNING">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="cHt%o!NeJ%a)@W|mAzCh">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                            </block>
                          </statement>
                          <next>
                            <block type="controls_if" id="}8LyP[5Pxxx9LQ-a.Urk">
                              <value name="IF0">
                                <block type="logic_compare" id="OW(0}*.;6?}isxkN:9?a">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                    <block type="get_value" id="#{O]lmkpftAU38_IrPS~">
                                      <field name="ATTR">val</field>
                                      <field name="OID">zigbee.1.84182600000e63dd.available</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_boolean" id="WH(Y5@14xoh{{8]seT4a">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="control" id="o9gY}dmV@]B?q[%y)~N1">
                                  <mutation delay_input="false"></mutation>
                                  <field name="OID">alexa2.0.Echo-Devices.G2A0U2048453057U.Commands.speak</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="text" id="$I}x}MlZ,i#9howc?jGc">
                                      <field name="TEXT">Steckdose Wasserkocher ist nicht erreichbar!</field>
                                    </block>
                                  </value>
                                </block>
                              </statement>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                  </next>
                </block>
                <block type="comment" id="nW5U]t9Bb0w.8pqJQ8Ub" x="38" y="437">
                  <field name="COMMENT">Steckdose Kaffeemaschine - 5 Min nach einschalten wieder deaktivieren</field>
                  <next>
                    <block type="on_ext" id="$8[DRWD)UEe~l3k:,c4{">
                      <mutation items="1"></mutation>
                      <field name="CONDITION">true</field>
                      <field name="ACK_CONDITION"></field>
                      <value name="OID0">
                        <shadow type="field_oid" id="JD?/{@rHwRl9+Ogak$hS">
                          <field name="oid">zigbee.1.84182600000e75b2.state</field>
                        </shadow>
                      </value>
                      <statement name="STATEMENT">
                        <block type="controls_if" id="~i+uOVs=l!wdT:vha,nW">
                          <value name="IF0">
                            <block type="logic_compare" id="6fc?(#y(pG=CdU78gIOf">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="GBsF[zPGO(ek8W9!~I8|">
                                  <field name="ATTR">val</field>
                                  <field name="OID">zigbee.1.84182600000e63dd.available</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="?@a8D8C~4|#6iYL#}0b+">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="control" id="k,%IgtXGx32hg5pe3;6.">
                              <mutation delay_input="true"></mutation>
                              <field name="OID">zigbee.1.84182600000e75b2.state</field>
                              <field name="WITH_DELAY">TRUE</field>
                              <field name="DELAY_MS">300000</field>
                              <field name="UNIT">ms</field>
                              <field name="CLEAR_RUNNING">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="cr[m7|$k14HF[VxJd4ES">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                            </block>
                          </statement>
                          <next>
                            <block type="controls_if" id="Wdf0u~L[o~:.Sz4J=6WJ">
                              <value name="IF0">
                                <block type="logic_compare" id=":gm~G`p~eB6p/Or3fz*q">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                    <block type="get_value" id="=zWH0Al%4k.9UNU1h`3E">
                                      <field name="ATTR">val</field>
                                      <field name="OID">zigbee.1.84182600000e63dd.available</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_boolean" id="[L5ii:T3:g2zPKee!Td}">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="control" id="|u08X9ZqBI$-x6T)f*|3">
                                  <mutation delay_input="false"></mutation>
                                  <field name="OID">alexa2.0.Echo-Devices.G2A0U2048453057U.Commands.speak</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="text" id="y8oowb32C:r@xX_p_snz">
                                      <field name="TEXT">Steckdose Kaffeemaschine ist nicht erreichbar!</field>
                                    </block>
                                  </value>
                                </block>
                              </statement>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                  </next>
                </block>
              </xml>
              
              1 Reply Last reply Reply Quote 0
              • P
                pix last edited by pix

                Hallo,

                kurzes Skript (für den Javascript Adapter, NICHT Skriptreiter im VIS-Editor!)

                let idDatenpunkt = "instanz.X.HierKommtDerDatenpunktRein"; // Datenpunkt festlegen, der geschaltet wird
                let dauer = 2; // Verzögerung bis AUS in Sekunden festlegen
                on(idDatenpunkt, function(obj) { // Datenpunkt überwachen auf Änderung (Standard)
                    if (obj.state.val) { // wenn neuer Zustand ist EIN
                        log(obj.name + " eingeschaltet"); // Logausgabe
                        clearStateDelayed(obj.state.val); // alte Verzögerungen löschen
                        setStateDelayed(false, dauer * 1000, function() { // verzögert ausschalten (in ms)
                            log(obj.name + " verzögert um "  + dauer + "s wieder ausgeschaltet"); // nach Ablauf Logeintrag
                        }
                    }
                });
                

                Gruß
                Pix

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

                Support us

                ioBroker
                Community Adapters
                Donate
                FAQ Cloud / IOT
                HowTo: Node.js-Update
                HowTo: Backup/Restore
                Downloads
                BLOG

                549
                Online

                31.9k
                Users

                80.2k
                Topics

                1.3m
                Posts

                visualisierung
                5
                6
                573
                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