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] Einschalten mit Zustandsabfrage

    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

    [gelöst] Einschalten mit Zustandsabfrage

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

      Hallo ich suche eine Möglichkeit mehrere Lampen auf einmal einzuschalten. Dies habe ich auch schon realisiert. Jetzt möchte ich aber diese wieder abschalten, das geht auch soweit. Wenn aber vorher Lampen schon an wahren, sollen diese auch weiterhin anbleiben. Ich hoffe mir kann hier jemand weiter helfen 🙂

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

        @horido sagte:

        Wenn aber vorher Lampen schon an wahren, sollen diese auch weiterhin anbleiben.

        Versuche es mal so:

        Blockly_temp.JPG

        1 Reply Last reply Reply Quote 0
        • H
          horido last edited by

          Aktuell sieht es so aus, ich hab noch nicht ganz verstanden, wie ich dein Skript dort anknüpfen kann, bzw. wie ich es verändern muss.6C717720-AA20-4A84-906B-1C795FA6E126.jpeg

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

            @horido sagte:

            wie ich dein Skript dort anknüpfen kann

            Du kannst es importieren und musst anschließend nur die Datenpunkte zuweisen (Trigger: "Notfalllicht").

            <xml xmlns="http://www.w3.org/1999/xhtml">
             <variables>
               <variable type="" id="#}pb.FN+`W1j[1cTQ1aw">lampe1</variable>
               <variable type="" id=".5d;w1P5[7n}Z;RtN7`5">lampe2</variable>
               <variable type="" id="/BEdflxBYnFIm_B#VVuK">lampe3</variable>
             </variables>
             <block type="on_ext" id="c*O0JN%}ZjtcXE6-z(aa" x="113" y="87">
               <mutation items="1"></mutation>
               <field name="CONDITION">ne</field>
               <field name="ACK_CONDITION"></field>
               <value name="OID0">
                 <shadow type="field_oid" id="O83mI9+S]/nV`)`=LTWF">
                   <field name="oid">default</field>
                 </shadow>
               </value>
               <statement name="STATEMENT">
                 <block type="controls_if" id="m^Hy5#5Y:i`7WA*c(ZMw">
                   <value name="IF0">
                     <block type="on_source" id="qD|f]Y#8F%P$aZn.XkN;">
                       <field name="ATTR">state.val</field>
                     </block>
                   </value>
                   <statement name="DO0">
                     <block type="variables_set" id="XYaK0L68#+R)`a%N{Ol*">
                       <field name="VAR" id="#}pb.FN+`W1j[1cTQ1aw" variabletype="">lampe1</field>
                       <value name="VALUE">
                         <block type="get_value" id="HJL`QU$dUKz]I(o]wL-z">
                           <field name="ATTR">val</field>
                           <field name="OID">ID auswählen</field>
                         </block>
                       </value>
                       <next>
                         <block type="variables_set" id="$Gu8RAcr#71KASzNXZ(n">
                           <field name="VAR" id=".5d;w1P5[7n}Z;RtN7`5" variabletype="">lampe2</field>
                           <value name="VALUE">
                             <block type="get_value" id="U]!Wp+WW(m(gU$p[IN/e">
                               <field name="ATTR">val</field>
                               <field name="OID">ID auswählen</field>
                             </block>
                           </value>
                           <next>
                             <block type="variables_set" id="n2*`u%IMOt:nmtA4I6Js">
                               <field name="VAR" id="/BEdflxBYnFIm_B#VVuK" variabletype="">lampe3</field>
                               <value name="VALUE">
                                 <block type="get_value" id="zChYv~1_Sy$s5qg0b-wx">
                                   <field name="ATTR">val</field>
                                   <field name="OID">ID auswählen</field>
                                 </block>
                               </value>
                             </block>
                           </next>
                         </block>
                       </next>
                     </block>
                   </statement>
                   <next>
                     <block type="controls_if" id="Ot1r*J+=7n{zVM]!ZN)#">
                       <value name="IF0">
                         <block type="logic_negate" id="[UC?XMNPF*%r0RU:iRU,">
                           <value name="BOOL">
                             <block type="variables_get" id="pR{)S@_Lsn^S%,I]^q/:">
                               <field name="VAR" id="#}pb.FN+`W1j[1cTQ1aw" variabletype="">lampe1</field>
                             </block>
                           </value>
                         </block>
                       </value>
                       <statement name="DO0">
                         <block type="control" id="NdBGW!eY/cLt3G*T)vyP">
                           <mutation delay_input="false"></mutation>
                           <field name="OID">Object ID</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="on_source" id=".5fju-O#louOOz;|AhnD">
                               <field name="ATTR">state.val</field>
                             </block>
                           </value>
                         </block>
                       </statement>
                       <next>
                         <block type="controls_if" id="QpwsYVhc@2uDs(Py|^hi">
                           <value name="IF0">
                             <block type="logic_negate" id="C*qAR4._#LD4^b[d9qYC">
                               <value name="BOOL">
                                 <block type="variables_get" id="W9*-`cv1L2/fsmOp$-r`">
                                   <field name="VAR" id=".5d;w1P5[7n}Z;RtN7`5" variabletype="">lampe2</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <statement name="DO0">
                             <block type="control" id="]]CTn:gt2.eJ6KbaR[v-">
                               <mutation delay_input="false"></mutation>
                               <field name="OID">Object ID</field>
                               <field name="WITH_DELAY">FALSE</field>
                               <value name="VALUE">
                                 <block type="on_source" id="{xAOFA2#/:RVVO+KfylN">
                                   <field name="ATTR">state.val</field>
                                 </block>
                               </value>
                             </block>
                           </statement>
                           <next>
                             <block type="controls_if" id="f9ga5yV:x9=M6Y|bI%AB">
                               <value name="IF0">
                                 <block type="logic_negate" id="KU5.(_mb5WO]3$v]P;mz">
                                   <value name="BOOL">
                                     <block type="variables_get" id="~J8PYsO0P`zwzQz~1|a,">
                                       <field name="VAR" id=".5d;w1P5[7n}Z;RtN7`5" variabletype="">lampe2</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <statement name="DO0">
                                 <block type="control" id="Qw4=KT9T2fTUEy`ya/.W">
                                   <mutation delay_input="false"></mutation>
                                   <field name="OID">Object ID</field>
                                   <field name="WITH_DELAY">FALSE</field>
                                   <value name="VALUE">
                                     <block type="on_source" id="G.G77Q?ZDl!6rT$KA5(/">
                                       <field name="ATTR">state.val</field>
                                     </block>
                                   </value>
                                 </block>
                               </statement>
                             </block>
                           </next>
                         </block>
                       </next>
                     </block>
                   </next>
                 </block>
               </statement>
             </block>
            </xml>
            

            1 Reply Last reply Reply Quote 0
            • H
              horido last edited by

              Danke, funktioniert super 🙂

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

                @horido sagte:

                funktioniert super

                Dann markiere bitte das Thema in der Überschrift als [gelöst].

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

                Support us

                ioBroker
                Community Adapters
                Donate

                804
                Online

                31.9k
                Users

                80.3k
                Topics

                1.3m
                Posts

                blockly
                2
                6
                468
                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