Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. ECO Licht aus nach Zeit X

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    ECO Licht aus nach Zeit X

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

      Hallo Leute, ich bin auf der Suche nach einem Blockly Skript das es mir ermöglicht, nach einer Zeit X, die aus einem Datenpunkt über die Vis eingestellt wird, das Licht Automatisch aus zu schalten.
      Das Ganze soll genutzt werden, wenn ZB die Kinder vergessen, das licht aus zu machen, das es nach der eingestellten Zeit aus geht.
      Vielleicht hat ja einer Zeit mir zu Helfen. Danke schon mal 🙂

      Weiter habe ich es leider nicht geschafft 😢
      blockly.jpg
      Datenpunkt unter Objekten erstellt.

      blocklyObj.jpg
      Die Zeit soll in der VIS ausgewählt werden, wann das Licht aus gehen soll.

      ObjVIS.jpg

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

        @Amnesia1211 sagte:

        Weiter habe ich es leider nicht geschafft

        Dem Trigger muss die ID des Licht-Datenpunktes zugewiesen werden, nicht der Wert. Vorschlag:

        Blockly_temp.JPG

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

          @paul53
          Muss leider sagen ich verstehe das Blockly nicht. Wo muss denn jetzt was rein damit es läuft ?
          Danke schon mal für deine Mühe

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

            @Amnesia1211 sagte:

            Wo muss denn jetzt was rein damit es läuft ?

            <xml xmlns="https://developers.google.com/blockly/xml">
             <variables>
               <variable id="zvK].AX@*]*IM3IGZt_4">Lautstärke</variable>
               <variable id="cMm*s=nD#@dbif;BfO7T">dauer</variable>
               <variable type="interval" id="Intervall">Intervall</variable>
               <variable type="timeout" id="timeout">timeout</variable>
             </variables>
             <block type="comment" id="(5Z^adtqBiPyz/V9[4bd" x="-88" y="37">
               <field name="COMMENT">Licht schaltet ein</field>
               <next>
                 <block type="on_ext" id="R$_oN^TN/5MV[LJ=fTw^">
                   <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                   <field name="CONDITION">gt</field>
                   <field name="ACK_CONDITION"></field>
                   <value name="OID0">
                     <shadow type="field_oid" id="m2Y%7-]x_=B[-c{FyA|t">
                       <field name="oid">default</field>
                     </shadow>
                     <block type="field_oid" id="*0q~[tbaV(Z?hDnDgLgr">
                       <field name="oid">default</field>
                     </block>
                   </value>
                   <statement name="STATEMENT">
                     <block type="comment" id="FW/Ylq5~PqSs[}1,wR`^">
                       <field name="COMMENT">Zeit X: Minuten --&gt; ms</field>
                       <next>
                         <block type="variables_set" id="-d/+]26g8pl$]BSH:;{(">
                           <field name="VAR" id="cMm*s=nD#@dbif;BfO7T">dauer</field>
                           <value name="VALUE">
                             <block type="math_arithmetic" id="S;1]Lz3@YvGsdinTkEQ9">
                               <field name="OP">MULTIPLY</field>
                               <value name="A">
                                 <shadow type="math_number" id="mO2Ti.yx^tC^^3E~zs:a">
                                   <field name="NUM">60000</field>
                                 </shadow>
                               </value>
                               <value name="B">
                                 <shadow type="math_number" id="5*T^M{-I633,~phcC:kS">
                                   <field name="NUM">1</field>
                                 </shadow>
                                 <block type="get_value" id="QxE,je!I1H,O1{@`EkZl">
                                   <field name="ATTR">val</field>
                                   <field name="OID">ID auswählen</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <next>
                             <block type="timeouts_cleartimeout" id="a9jz19b6SIUFRfcFEft$">
                               <field name="NAME">timeout</field>
                               <next>
                                 <block type="timeouts_settimeout" id=":A{NIb$9hVL=)kP=84r(">
                                   <field name="NAME">timeout</field>
                                   <field name="DELAY">dauer</field>
                                   <field name="UNIT">ms</field>
                                   <statement name="STATEMENT">
                                     <block type="comment" id="rictAa=7bgf~^UMh!{94">
                                       <field name="COMMENT">Licht aus</field>
                                       <next>
                                         <block type="control" id="@SXQFcdL8cP4M4$$0,-5">
                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                           <field name="OID">Object ID</field>
                                           <field name="WITH_DELAY">FALSE</field>
                                           <value name="VALUE">
                                             <block type="logic_boolean" id="@q,ZQ%-m|8;!omn4oqYy">
                                               <field name="BOOL">FALSE</field>
                                             </block>
                                           </value>
                                         </block>
                                       </next>
                                     </block>
                                   </statement>
                                 </block>
                               </next>
                             </block>
                           </next>
                         </block>
                       </next>
                     </block>
                   </statement>
                 </block>
               </next>
             </block>
             <block type="comment" id="U,35V96sO2|~TPrU5,q{" x="-63" y="713">
               <field name="COMMENT">Hold</field>
               <next>
                 <block type="on_ext" id="83]^p3@+6(c{A2Jv40R@">
                   <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                   <field name="CONDITION">true</field>
                   <field name="ACK_CONDITION"></field>
                   <value name="OID0">
                     <shadow type="field_oid" id="ZcU+|z.FwZ$@3wtT97v-">
                       <field name="oid">default</field>
                     </shadow>
                   </value>
                   <statement name="STATEMENT">
                     <block type="math_change" id=")g{ctTLYT#1/C}LFhW@l">
                       <field name="VAR" id="zvK].AX@*]*IM3IGZt_4">Lautstärke</field>
                       <value name="DELTA">
                         <shadow type="math_number" id="!bYoNdkwrGG`s32]V4d=">
                           <field name="NUM">1</field>
                         </shadow>
                       </value>
                       <next>
                         <block type="control" id="d367O6_5UR1WHZMfXuXF">
                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                           <field name="OID">Object ID</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="variables_get" id="JunMvJ{Iq3^(k_y~ynQg">
                               <field name="VAR" id="zvK].AX@*]*IM3IGZt_4">Lautstärke</field>
                             </block>
                           </value>
                           <next>
                             <block type="timeouts_setinterval" id="]M+xL)`xl,Zln0:vf?ph">
                               <field name="NAME">Intervall</field>
                               <field name="INTERVAL">250</field>
                               <field name="UNIT">ms</field>
                               <statement name="STATEMENT">
                                 <block type="math_change" id="UxaQBXrIF-cGu|U;..zi">
                                   <field name="VAR" id="zvK].AX@*]*IM3IGZt_4">Lautstärke</field>
                                   <value name="DELTA">
                                     <shadow type="math_number" id="iZU:1fQ_FEE+QWftIBN5">
                                       <field name="NUM">1</field>
                                     </shadow>
                                   </value>
                                   <next>
                                     <block type="control" id="rA`D(5/mK-l/yXoM|K!/">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                       <field name="OID">Object ID</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <value name="VALUE">
                                         <block type="variables_get" id="Y$8el{=n6T+:(!iNZ*)8">
                                           <field name="VAR" id="zvK].AX@*]*IM3IGZt_4">Lautstärke</field>
                                         </block>
                                       </value>
                                     </block>
                                   </next>
                                 </block>
                               </statement>
                             </block>
                           </next>
                         </block>
                       </next>
                     </block>
                   </statement>
                   <next>
                     <block type="comment" id="]{0~pZvatKEdv;TrE45Q">
                       <field name="COMMENT">Release</field>
                       <next>
                         <block type="on_ext" id="RCTj{88+9m5@Z=%/H2DY">
                           <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                           <field name="CONDITION">true</field>
                           <field name="ACK_CONDITION"></field>
                           <value name="OID0">
                             <shadow type="field_oid" id="6|t-*jrQScVAx(!;RoD@">
                               <field name="oid">default</field>
                             </shadow>
                           </value>
                           <statement name="STATEMENT">
                             <block type="timeouts_clearinterval" id="$RpR%Gzz^@63(~)K}?~M">
                               <field name="NAME">Intervall</field>
                             </block>
                           </statement>
                         </block>
                       </next>
                     </block>
                   </next>
                 </block>
               </next>
             </block>
            </xml>
            

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

              @paul53
              Juppiii es klappt, ich danke dir ganz herzlich !!!!

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

              Support us

              ioBroker
              Community Adapters
              Donate

              874
              Online

              32.0k
              Users

              80.4k
              Topics

              1.3m
              Posts

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