Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Zeitschaltung mit Datenpunkt

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Zeitschaltung mit Datenpunkt

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

      HAll sigi234,

      ich hoffe das Blockly kommt so an:


      <block xmlns="https://developers.google.com/blockly/xml" type="on_ext" id="03p?-S1^y6Rw/3/PIbZ!" x="963" y="38">
      <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="Yf~uH}dX/37H@W93?Y9"> <field name="oid">javascript.0.Eigene_Datenpunkte.Anwesend_Lago_Oben</field> </shadow> </value> <statement name="STATEMENT"> <block type="schedule" id="Bw=[xUQHpp9Qe^?VLq;#"> <field name="SCHEDULE">{"time":{"start":"06:00","end":"11:00","mode":"hours","interval":1},"period":{"days":1}}</field> <statement name="STATEMENT"> <block type="control" id="1D[V3RfmPWw+FvOU6^eF"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">hm-rpc.1.OEQ2310644.1.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="_c7d@~qB8V$BTThUye.H"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <next> <block type="control" id="h@%+I;9NNBWTgeH22!I6"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">hm-rpc.1.OEQ2310644.1.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="A9,QB{/nZpoa2!uTP[QE"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="schedule" id="DBCGZlkaIVdY%btjluy)"> <field name="SCHEDULE">{"time":{"start":"12:00","end":"15:30","mode":"hours","interval":1},"period":{"days":1}}</field> <statement name="STATEMENT"> <block type="control" id="9qQm?Rs./PDR|lzap%7g"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">hm-rpc.1.OEQ2310644.1.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id=")u-PsD{I_OGD9O)JDVJo"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <next> <block type="control" id="w,C@_*x,qAskLNfF-6$Q"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">hm-rpc.1.OEQ2310644.1.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="pg+ks29Ga%:T,g4_fuA]"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="schedule" id="3m2+T!.iF^%.PdnMv_U;"> <field name="SCHEDULE">{"time":{"start":"16:30","end":"17:30","mode":"hours","interval":1},"period":{"days":1}}</field> <statement name="STATEMENT"> <block type="control" id="7:|%btJ;D9ZqG=ZC+1^="> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">hm-rpc.1.OEQ2310644.1.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id=";,lh::#!jf6UC0j)Q+[R"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <next> <block type="control" id="y6PBk$1UdEpM?=Uc{S1a"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">hm-rpc.1.OEQ2310644.1.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="8M6BbLLcFNi.MxnQ;Sg">
      <field name="BOOL">FALSE</field>
      </block>
      </value>
      <next>
      <block type="schedule" id="aUO-I!^WpzF#mJ7|/rs">
      <field name="SCHEDULE">{"time":{"start":"18:00","end":"20:00","mode":"hours","interval":1},"period":{"days":1}}</field>
      <statement name="STATEMENT">
      <block type="control" id="nA7r;jIV7AYW,0O@1ApZ">
      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
      <field name="OID">hm-rpc.1.OEQ2310644.1.STATE</field>
      <field name="WITH_DELAY">FALSE</field>
      <value name="VALUE">
      <block type="logic_boolean" id="IgJCUnEZCIp9sW]Ul
      rd">
      <field name="BOOL">TRUE</field>
      </block>
      </value>
      </block>
      </statement>
      <next>
      <block type="control" id="U}waXyq|4KfX3)JciL2d">
      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
      <field name="OID">hm-rpc.1.OEQ2310644.1.STATE</field>
      <field name="WITH_DELAY">FALSE</field>
      <value name="VALUE">
      <block type="logic_boolean" id="gFIGcNl(+_:KuWi`MSxY">
      <field name="BOOL">FALSE</field>
      </block>
      </value>
      </block>
      </next>
      </block>
      </next>
      </block>
      </next>
      </block>
      </next>
      </block>
      </next>
      </block>
      </next>
      </block>
      </next>
      </block>
      </statement>
      </block>

      1 Reply Last reply Reply Quote 0
      • G
        guergen last edited by

        Ich würde das auf diese Art machen:
        dbbf3538-8c87-48cf-9d7a-608e3efe2b13-grafik.png

        paul53 1 Reply Last reply Reply Quote 0
        • G
          guergen last edited by

          Besser noch so: 9315df85-daf7-43ca-a463-cd9e3512e055-grafik.png

          1 Reply Last reply Reply Quote 0
          • L
            Lenz last edited by

            Hallo guergen,

            werds so mal versuchen.
            Danke schon mal

            G 1 Reply Last reply Reply Quote 0
            • G
              guergen @Lenz last edited by

              @Lenz Aber nicht mit "wurde geändert" sondern mit "wahr" oben im Trigger

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

                @guergen sagte:

                Ich würde das auf diese Art machen:

                Das genügt nicht, denn es soll zu den Uhrzeiten geschaltet werden, also braucht es Zeit-Trigger.

                Blockly_temp.JPG

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

                  @paul53 Ja klar... Wenn der dp gesetzt ist, soll es ja auch zu den Uhrzeiten gehen.... verpennt...
                  Aber aus Fehlern lernt man 🙂

                  L 1 Reply Last reply Reply Quote 0
                  • L
                    Lenz @guergen last edited by

                    @guergen said in Zeitschaltung mit Datenpunkt:

                    @paul53 Ja klar... Wenn der dp gesetzt ist, soll es ja auch zu den Uhrzeiten gehen.... verpennt...
                    Aber aus Fehlern lernt man 🙂

                    So Danke an alle, aber wie setze ich das denn nun genau um?
                    Kann mir jemand event. was zum "kopieren" schicken?
                    event. ein Blockly export, so dass ich das mal nachvollziehen kann.

                    Wie erstelle ich denn anwesend?
                    Dank Euch

                    G paul53 3 Replies Last reply Reply Quote 0
                    • G
                      guergen @Lenz last edited by

                      @Lenz mit einer Variablen erstellst Du anwesend

                      1 Reply Last reply Reply Quote 0
                      • G
                        guergen @Lenz last edited by

                        @Lenz paul53-er Blocklay´s sind immer sehr zusammengestrichen.... finde ich zumindest, aber sie funktionieren! Ich denke halt simpler 🙂

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

                          @Lenz sagte:

                          event. ein Blockly export

                          <xml xmlns="https://developers.google.com/blockly/xml">
                           <variables>
                             <variable id="{)*dQ?S1y=euBUX4#x2w">anwesend</variable>
                           </variables>
                           <block type="on_ext" id="a|dGJ|d6b:r?VBPmN^TV" x="87" y="-12">
                             <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                             <field name="CONDITION">ne</field>
                             <field name="ACK_CONDITION"></field>
                             <value name="OID0">
                               <shadow type="field_oid" id="}=|ed@|qC:u0d:_XNF-W">
                                 <field name="oid">default</field>
                               </shadow>
                             </value>
                             <statement name="STATEMENT">
                               <block type="variables_set" id="Orx~8K5!TAD4yTW5Tis#">
                                 <field name="VAR" id="{)*dQ?S1y=euBUX4#x2w">anwesend</field>
                                 <value name="VALUE">
                                   <block type="on_source" id="+LHR6;C6mDp8r`K/y*L,">
                                     <field name="ATTR">state.val</field>
                                   </block>
                                 </value>
                                 <next>
                                   <block type="control" id=";)h2}Ztw@aE70W%eE]QZ" inline="false">
                                     <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_operation" id="byb#SEGXxg:Jik6outPa" inline="false">
                                         <field name="OP">AND</field>
                                         <value name="A">
                                           <block type="variables_get" id=";Ra_UHieS%ctwMxH~IoX">
                                             <field name="VAR" id="{)*dQ?S1y=euBUX4#x2w">anwesend</field>
                                           </block>
                                         </value>
                                         <value name="B">
                                           <block type="logic_operation" id="=cIpdh*!L4#.-QO$o40k" inline="false">
                                             <field name="OP">OR</field>
                                             <value name="A">
                                               <block type="logic_operation" id="UnHqY?{e_LbXpbJ,[ORB" inline="false">
                                                 <field name="OP">OR</field>
                                                 <value name="A">
                                                   <block type="time_compare" id="#gnDz.I)P}m|:#nn]+w?">
                                                     <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation>
                                                     <field name="OPTION">between</field>
                                                     <field name="START_TIME">6:00</field>
                                                     <field name="END_TIME">11:00</field>
                                                   </block>
                                                 </value>
                                                 <value name="B">
                                                   <block type="time_compare" id="Wvpv2F04B73E`cCJS)45">
                                                     <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation>
                                                     <field name="OPTION">between</field>
                                                     <field name="START_TIME">12:00</field>
                                                     <field name="END_TIME">15:30</field>
                                                   </block>
                                                 </value>
                                               </block>
                                             </value>
                                             <value name="B">
                                               <block type="logic_operation" id="G~rR}5U[AVpmE^RMW(}s" inline="false">
                                                 <field name="OP">OR</field>
                                                 <value name="A">
                                                   <block type="time_compare" id="R=xF_wp@@:rfS[^g7R[k">
                                                     <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation>
                                                     <field name="OPTION">between</field>
                                                     <field name="START_TIME">16:30</field>
                                                     <field name="END_TIME">17:30</field>
                                                   </block>
                                                 </value>
                                                 <value name="B">
                                                   <block type="time_compare" id=";0QJLJd),19}CS8EJ_76">
                                                     <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation>
                                                     <field name="OPTION">between</field>
                                                     <field name="START_TIME">18:00</field>
                                                     <field name="END_TIME">20:00</field>
                                                   </block>
                                                 </value>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                   </block>
                                 </next>
                               </block>
                             </statement>
                             <next>
                               <block type="schedule" id="][j-41~Cw?71a)SCt3HW">
                                 <field name="SCHEDULE">0 6,12,18 * * *</field>
                                 <statement name="STATEMENT">
                                   <block type="control" id=",fFC_w~%dCh,4:s,sb2(">
                                     <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="Hbiolq`e8rfP!cZN62_w">
                                         <field name="VAR" id="{)*dQ?S1y=euBUX4#x2w">anwesend</field>
                                       </block>
                                     </value>
                                   </block>
                                 </statement>
                                 <next>
                                   <block type="schedule" id="4QI2dbEE.IAs]S)2%?_,">
                                     <field name="SCHEDULE">30 16 * * *</field>
                                     <statement name="STATEMENT">
                                       <block type="control" id=":Od[;JXX.;zbCvTKbl6.">
                                         <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="qvE:%avjP=KrR0DfN-hv">
                                             <field name="VAR" id="{)*dQ?S1y=euBUX4#x2w">anwesend</field>
                                           </block>
                                         </value>
                                       </block>
                                     </statement>
                                     <next>
                                       <block type="schedule" id="SoH5L6p1PeR@R7zG(qYg">
                                         <field name="SCHEDULE">0 11,20 * * *</field>
                                         <statement name="STATEMENT">
                                           <block type="control" id="y^GT}_V1zlK+ALr#3#(Y">
                                             <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="o.:[_~@EBNIY,0NIVkpp">
                                                 <field name="BOOL">FALSE</field>
                                               </block>
                                             </value>
                                           </block>
                                         </statement>
                                         <next>
                                           <block type="schedule" id="/aUYjaIa3Pj3A5@295W@">
                                             <field name="SCHEDULE">30 15,17 * * *</field>
                                             <statement name="STATEMENT">
                                               <block type="control" id=".pxc}|},cA*j@8^|+GO`">
                                                 <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="~F{,)bAnQ/n}!Zq]KrT(">
                                                     <field name="BOOL">FALSE</field>
                                                   </block>
                                                 </value>
                                               </block>
                                             </statement>
                                           </block>
                                         </next>
                                       </block>
                                     </next>
                                   </block>
                                 </next>
                               </block>
                             </next>
                           </block>
                          </xml>
                          

                          @guergen sagte in Zeitschaltung mit Datenpunkt:

                          Ich denke halt simpler

                          Eher komplizierter 🙂

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

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          380
                          Online

                          32.0k
                          Users

                          80.4k
                          Topics

                          1.3m
                          Posts

                          blockly climate javascript
                          4
                          14
                          713
                          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