Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Anwesenheit an die CCU senden

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Anwesenheit an die CCU senden

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

      @Torxplacid
      und welches Verhalten erwartest Du wenn jemand nach 23:00h nach Hause kommt oder vor 05:30h das Haus verläßt?

      Was passiert wenn nachts jemand auf die Idee kommt zu lüften?

      T 1 Reply Last reply Reply Quote 0
      • T
        Torxplacid @ticaki last edited by

        @ticaki sagte in Anwesenheit an die CCU senden:

        @Torxplacid
        Hast du die Änderungen mittlerweile vorgenommen?

        Ich weiß nicht wie 😢

        T 1 Reply Last reply Reply Quote 0
        • T
          Torxplacid @BBTown last edited by

          @BBTown
          Das klappt schon

          Homoran BBTown 2 Replies Last reply Reply Quote 0
          • Homoran
            Homoran Global Moderator Administrators @Torxplacid last edited by

            @Torxplacid sagte in Anwesenheit an die CCU senden:

            Das klappt schon

            aber das was ich sagte nicht!

            Die Anwesenheit auf der CCU bleibt so lange auf false bis der erste das Haus verlässt - und dabei geht der Alarm los

            1 Reply Last reply Reply Quote 0
            • T
              ticaki Developer @Torxplacid last edited by ticaki

              @Torxplacid sagte in Anwesenheit an die CCU senden:

              @ticaki sagte in Anwesenheit an die CCU senden:

              @Torxplacid
              Hast du die Änderungen mittlerweile vorgenommen?

              Ich weiß nicht wie 😢

              Kannst du das Blockly mal exportieren, dann mache ich es.

              Bildschirmfoto 2020-04-21 um 14.34.05.png

              das XML bitte in codetags packen

              T 1 Reply Last reply Reply Quote 0
              • BBTown
                BBTown @Torxplacid last edited by

                @Torxplacid
                Ich würde es womöglich über eine Funktione lösen
                3aafc6a2-04eb-492f-b656-2c1b426cea1a-grafik.png

                <xml xmlns="http://www.w3.org/1999/xhtml">
                 <variables>
                   <variable type="" id="%M2}!8m+(Y^W0[Zp$?!%">AlarmScharf</variable>
                 </variables>
                 <block type="schedule" id="0+LeML?/XzKmnHRio7[~" x="-324" y="-151">
                   <field name="SCHEDULE">{"time":{"exactTime":true,"start":"23:00"},"period":{"days":1}}</field>
                   <statement name="STATEMENT">
                     <block type="variables_set" id="j^A+9@l`Kr4JcS/nyVp}">
                       <field name="VAR" id="%M2}!8m+(Y^W0[Zp$?!%" variabletype="">AlarmScharf</field>
                       <value name="VALUE">
                         <block type="logic_boolean" id="d8zvT!{Q%DwP[~rGd7wM">
                           <field name="BOOL">TRUE</field>
                         </block>
                       </value>
                       <next>
                         <block type="procedures_callnoreturn" id="MK5iBj0)Hxp|8]0Gltg0">
                           <mutation name="FunktionAusführen"></mutation>
                         </block>
                       </next>
                     </block>
                   </statement>
                   <next>
                     <block type="schedule" id="?[a3|95j(].pHOA?:Nic">
                       <field name="SCHEDULE">{"time":{"exactTime":true,"start":"05:30"},"period":{"days":1}}</field>
                       <statement name="STATEMENT">
                         <block type="variables_set" id="S9(6.~+R0fqaw{Wquo^K">
                           <field name="VAR" id="%M2}!8m+(Y^W0[Zp$?!%" variabletype="">AlarmScharf</field>
                           <value name="VALUE">
                             <block type="logic_boolean" id="QuTl2GwZJ(a7;sh6^A)n">
                               <field name="BOOL">FALSE</field>
                             </block>
                           </value>
                           <next>
                             <block type="procedures_callnoreturn" id="ZA^2p2^B`p6lf5X(4X(F">
                               <mutation name="FunktionAusführen"></mutation>
                             </block>
                           </next>
                         </block>
                       </statement>
                       <next>
                         <block type="on_ext" id="xF==bnm27l:6rr/~Jm.P">
                           <mutation items="2"></mutation>
                           <field name="CONDITION">ne</field>
                           <field name="ACK_CONDITION"></field>
                           <value name="OID0">
                             <shadow type="field_oid" id="k5}k8oh(yU2a3^g`b1p^">
                               <field name="oid">Test.0.Person1</field>
                             </shadow>
                           </value>
                           <value name="OID1">
                             <shadow type="field_oid" id="F=?m)):-2H@aN=q!%-QK">
                               <field name="oid">Test.0.Person2</field>
                             </shadow>
                           </value>
                           <statement name="STATEMENT">
                             <block type="procedures_callnoreturn" id="%QtOgY2dET:JuaF_^P?}">
                               <mutation name="FunktionAusführen"></mutation>
                             </block>
                           </statement>
                         </block>
                       </next>
                     </block>
                   </next>
                 </block>
                 <block type="procedures_defnoreturn" id="/1h+FUyDaR{iOsFU3].`" x="38" y="-137">
                   <field name="NAME">FunktionAusführen</field>
                   <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                   <statement name="STACK">
                     <block type="controls_if" id="Y-;z~b!~~(PL6MU(UvWy">
                       <mutation elseif="1" else="1"></mutation>
                       <value name="IF0">
                         <block type="variables_get" id="sV|bn$(c8K%whLAo|n{p">
                           <field name="VAR" id="%M2}!8m+(Y^W0[Zp$?!%" variabletype="">AlarmScharf</field>
                         </block>
                       </value>
                       <statement name="DO0">
                         <block type="control" id="%C9W8o@KSVqjjubPCL2O">
                           <mutation delay_input="false"></mutation>
                           <field name="OID">Test.0.Anwesenheit</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="logic_boolean" id="}:zR-Av.#K@w]79s~4wR">
                               <field name="BOOL">FALSE</field>
                             </block>
                           </value>
                         </block>
                       </statement>
                       <value name="IF1">
                         <block type="logic_operation" id="$KbE8#n$C%+vY*Y~x?tA" inline="false">
                           <field name="OP">AND</field>
                           <value name="A">
                             <block type="logic_negate" id=";Hy{XCj=#25:?PHCkAGf">
                               <value name="BOOL">
                                 <block type="get_value" id="z6^Mx5w~^3iZ1F[8gY9j">
                                   <field name="ATTR">val</field>
                                   <field name="OID">Test.0.Person1</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <value name="B">
                             <block type="logic_negate" id="wL4HZ|Hg/|#;p:48N:*v">
                               <value name="BOOL">
                                 <block type="get_value" id="HEWmOM6m#^EH9Y(S#H8;">
                                   <field name="ATTR">val</field>
                                   <field name="OID">Test.0.Person2</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                         </block>
                       </value>
                       <statement name="DO1">
                         <block type="control" id=")DwCKgxyLL.QN7So|2I]">
                           <mutation delay_input="false"></mutation>
                           <field name="OID">Test.0.Anwesenheit</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="logic_boolean" id="jmq)b=kwpTt?t=m]YW:i">
                               <field name="BOOL">FALSE</field>
                             </block>
                           </value>
                         </block>
                       </statement>
                       <statement name="ELSE">
                         <block type="control" id="u0YA]1VJGNFO:_5{Dxf:">
                           <mutation delay_input="false"></mutation>
                           <field name="OID">Test.0.Anwesenheit</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="logic_boolean" id="dt]AZR~M!CZ)y+(@vct;">
                               <field name="BOOL">TRUE</field>
                             </block>
                           </value>
                         </block>
                       </statement>
                     </block>
                   </statement>
                 </block>
                </xml>
                

                Homoran 1 Reply Last reply Reply Quote 0
                • Homoran
                  Homoran Global Moderator Administrators @BBTown last edited by

                  @BBTown Nimm bitte die normalen CRON-Blöcke.
                  Es gibt hier im Forum immer wieder User, bei denen die von dir gewählten zu Problemen führen.

                  BBTown 1 Reply Last reply Reply Quote 0
                  • BBTown
                    BBTown @Homoran last edited by

                    @Homoran welchen meinst Du?

                    Homoran 1 Reply Last reply Reply Quote 0
                    • Homoran
                      Homoran Global Moderator Administrators @BBTown last edited by

                      @BBTown sagte in Anwesenheit an die CCU senden:

                      @Homoran welchen meinst Du?

                      time=exact time...

                      BBTown 1 Reply Last reply Reply Quote 0
                      • T
                        Torxplacid @ticaki last edited by

                        @ticaki

                        <xml xmlns="http://www.w3.org/1999/xhtml">
                          <block type="comment" id="*}PfflVC1kr.[TsnBfZ[" x="-613" y="-38">
                            <field name="COMMENT">Nachtabschaltung</field>
                            <next>
                              <block type="on_ext" id="L/A!iA~ukT09,V+(,BrL">
                                <mutation items="1"></mutation>
                                <field name="CONDITION">true</field>
                                <field name="ACK_CONDITION"></field>
                                <value name="OID0">
                                  <shadow type="field_oid" id="scR3|/GYcQncq:g0d}-R">
                                    <field name="oid">hm-rega.0.950</field>
                                  </shadow>
                                </value>
                                <statement name="STATEMENT">
                                  <block type="controls_if" id="GeU_@`o@n@mC{BLZ,]zB">
                                    <value name="IF0">
                                      <block type="logic_operation" id="LEvrvQ.26#Jj+)MA!{pL">
                                        <field name="OP">AND</field>
                                        <value name="A">
                                          <block type="time_compare" id="`=/;i^tc!#k#PEREN7M(">
                                            <mutation end_time="true"></mutation>
                                            <field name="OPTION">between</field>
                                            <field name="START_TIME">23:00</field>
                                            <field name="END_TIME">05:29</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="on_source" id="0OUpJ}k]O_-:4G5r|ywQ">
                                            <field name="ATTR">state.val</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="control" id="3or|@[AT=VyPv!2Cfsn*">
                                        <mutation delay_input="false"></mutation>
                                        <field name="OID">hm-rega.0.950</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="0BF;Kws_c*NfEif|@b?X">
                                            <field name="BOOL">FALSE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                                <next>
                                  <block type="comment" id="h+))*?gdqH#Wbb+QnmqM">
                                    <field name="COMMENT">Schaltung nach Anwesenheit</field>
                                    <next>
                                      <block type="on_ext" id="C}%?$1}OXaPX/w74Xfv#">
                                        <mutation items="2"></mutation>
                                        <field name="CONDITION">ne</field>
                                        <field name="ACK_CONDITION"></field>
                                        <value name="OID0">
                                          <shadow type="field_oid" id="!DzM_wsq0y`@,I}F]WU,">
                                            <field name="oid">radar2.0.Gritt._here</field>
                                          </shadow>
                                        </value>
                                        <value name="OID1">
                                          <shadow type="field_oid" id=")N([ZT`sFCV5?%U5:tYA">
                                            <field name="oid">radar2.0.Tim._here</field>
                                          </shadow>
                                        </value>
                                        <statement name="STATEMENT">
                                          <block type="controls_if" id="?GNx8Rf^531E=)Po`mJA">
                                            <mutation else="1"></mutation>
                                            <value name="IF0">
                                              <block type="logic_operation" id="O530HP7;sl^~.BsO?-]V">
                                                <field name="OP">AND</field>
                                                <value name="A">
                                                  <block type="time_compare" id="?YfQXhoP]CWy=gN,Qj9x">
                                                    <mutation end_time="true"></mutation>
                                                    <field name="OPTION">between</field>
                                                    <field name="START_TIME">05:30</field>
                                                    <field name="END_TIME">22:59</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="logic_operation" id="593nZ6RruMT!HR?FxS?P">
                                                    <field name="OP">OR</field>
                                                    <value name="A">
                                                      <block type="logic_compare" id="=gQkaV2wOyU]9c0H,/Fd">
                                                        <field name="OP">EQ</field>
                                                        <value name="A">
                                                          <block type="get_value" id="S59qn/I8L*+Q--8w+Nz9">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">radar2.0.Gritt._here</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="logic_boolean" id="pKy-umeq,7T6a8TY~KIP">
                                                            <field name="BOOL">TRUE</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="logic_compare" id="VYt%Q,BmI.TpYwvJ^Ran">
                                                        <field name="OP">EQ</field>
                                                        <value name="A">
                                                          <block type="get_value" id="_,yq^HcaizW^Ix:hohCo">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">radar2.0.Tim._here</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="logic_boolean" id="M_fSJC,kyHlV6E#=O!3s">
                                                            <field name="BOOL">TRUE</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <statement name="DO0">
                                              <block type="control" id=":W3zXQb!SHZH`ERD*Eie">
                                                <mutation delay_input="false"></mutation>
                                                <field name="OID">hm-rega.0.950</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="logic_boolean" id="P.G#%sRFeCiw(9i=7RQ-">
                                                    <field name="BOOL">TRUE</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </statement>
                                            <statement name="ELSE">
                                              <block type="control" id="LdeV92BdwT!pk#?=/ZWm">
                                                <mutation delay_input="false"></mutation>
                                                <field name="OID">hm-rega.0.950</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="logic_boolean" id=";Y.VIopXwr!X$hw//k6L">
                                                    <field name="BOOL">FALSE</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </statement>
                                          </block>
                                        </statement>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </xml>
                        
                        T 1 Reply Last reply Reply Quote 0
                        • T
                          Torxplacid @Torxplacid last edited by

                          @Torxplacid sagte in Anwesenheit an die CCU senden:

                          @ticaki

                          <xml xmlns="http://www.w3.org/1999/xhtml">
                            <block type="comment" id="*}PfflVC1kr.[TsnBfZ[" x="-613" y="-38">
                              <field name="COMMENT">Nachtabschaltung</field>
                              <next>
                                <block type="on_ext" id="L/A!iA~ukT09,V+(,BrL">
                                  <mutation items="1"></mutation>
                                  <field name="CONDITION">true</field>
                                  <field name="ACK_CONDITION"></field>
                                  <value name="OID0">
                                    <shadow type="field_oid" id="scR3|/GYcQncq:g0d}-R">
                                      <field name="oid">hm-rega.0.950</field>
                                    </shadow>
                                  </value>
                                  <statement name="STATEMENT">
                                    <block type="controls_if" id="GeU_@`o@n@mC{BLZ,]zB">
                                      <value name="IF0">
                                        <block type="logic_operation" id="LEvrvQ.26#Jj+)MA!{pL">
                                          <field name="OP">AND</field>
                                          <value name="A">
                                            <block type="time_compare" id="`=/;i^tc!#k#PEREN7M(">
                                              <mutation end_time="true"></mutation>
                                              <field name="OPTION">between</field>
                                              <field name="START_TIME">23:00</field>
                                              <field name="END_TIME">05:29</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="on_source" id="0OUpJ}k]O_-:4G5r|ywQ">
                                              <field name="ATTR">state.val</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <statement name="DO0">
                                        <block type="control" id="3or|@[AT=VyPv!2Cfsn*">
                                          <mutation delay_input="false"></mutation>
                                          <field name="OID">hm-rega.0.950</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="logic_boolean" id="0BF;Kws_c*NfEif|@b?X">
                                              <field name="BOOL">FALSE</field>
                                            </block>
                                          </value>
                                        </block>
                                      </statement>
                                    </block>
                                  </statement>
                                  <next>
                                    <block type="comment" id="h+))*?gdqH#Wbb+QnmqM">
                                      <field name="COMMENT">Schaltung nach Anwesenheit</field>
                                      <next>
                                        <block type="on_ext" id="C}%?$1}OXaPX/w74Xfv#">
                                          <mutation items="2"></mutation>
                                          <field name="CONDITION">ne</field>
                                          <field name="ACK_CONDITION"></field>
                                          <value name="OID0">
                                            <shadow type="field_oid" id="!DzM_wsq0y`@,I}F]WU,">
                                              <field name="oid">radar2.0.Gritt._here</field>
                                            </shadow>
                                          </value>
                                          <value name="OID1">
                                            <shadow type="field_oid" id=")N([ZT`sFCV5?%U5:tYA">
                                              <field name="oid">radar2.0.Tim._here</field>
                                            </shadow>
                                          </value>
                                          <statement name="STATEMENT">
                                            <block type="controls_if" id="?GNx8Rf^531E=)Po`mJA">
                                              <mutation else="1"></mutation>
                                              <value name="IF0">
                                                <block type="logic_operation" id="O530HP7;sl^~.BsO?-]V">
                                                  <field name="OP">AND</field>
                                                  <value name="A">
                                                    <block type="time_compare" id="?YfQXhoP]CWy=gN,Qj9x">
                                                      <mutation end_time="true"></mutation>
                                                      <field name="OPTION">between</field>
                                                      <field name="START_TIME">05:30</field>
                                                      <field name="END_TIME">22:59</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="logic_operation" id="593nZ6RruMT!HR?FxS?P">
                                                      <field name="OP">OR</field>
                                                      <value name="A">
                                                        <block type="logic_compare" id="=gQkaV2wOyU]9c0H,/Fd">
                                                          <field name="OP">EQ</field>
                                                          <value name="A">
                                                            <block type="get_value" id="S59qn/I8L*+Q--8w+Nz9">
                                                              <field name="ATTR">val</field>
                                                              <field name="OID">radar2.0.Gritt._here</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="logic_boolean" id="pKy-umeq,7T6a8TY~KIP">
                                                              <field name="BOOL">TRUE</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="logic_compare" id="VYt%Q,BmI.TpYwvJ^Ran">
                                                          <field name="OP">EQ</field>
                                                          <value name="A">
                                                            <block type="get_value" id="_,yq^HcaizW^Ix:hohCo">
                                                              <field name="ATTR">val</field>
                                                              <field name="OID">radar2.0.Tim._here</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="logic_boolean" id="M_fSJC,kyHlV6E#=O!3s">
                                                              <field name="BOOL">TRUE</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <statement name="DO0">
                                                <block type="control" id=":W3zXQb!SHZH`ERD*Eie">
                                                  <mutation delay_input="false"></mutation>
                                                  <field name="OID">hm-rega.0.950</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="logic_boolean" id="P.G#%sRFeCiw(9i=7RQ-">
                                                      <field name="BOOL">TRUE</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </statement>
                                              <statement name="ELSE">
                                                <block type="control" id="LdeV92BdwT!pk#?=/ZWm">
                                                  <mutation delay_input="false"></mutation>
                                                  <field name="OID">hm-rega.0.950</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="logic_boolean" id=";Y.VIopXwr!X$hw//k6L">
                                                      <field name="BOOL">FALSE</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </statement>
                                            </block>
                                          </statement>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </xml>
                          

                          so?

                          1 Reply Last reply Reply Quote 0
                          • BBTown
                            BBTown @Homoran last edited by

                            @Homoran sagte in Anwesenheit an die CCU senden:

                            time=exact time...

                            alles klar, innerhalb des Zeitplanes auf CRON gehen:
                            6dea027c-f69d-4d83-b80f-ad3d650725ff-grafik.png

                            <xml xmlns="http://www.w3.org/1999/xhtml">
                             <variables>
                               <variable type="" id="%M2}!8m+(Y^W0[Zp$?!%">AlarmScharf</variable>
                             </variables>
                             <block type="schedule" id="a`Nk7({3;ME)09g|bV$Y" x="-312" y="-162">
                               <field name="SCHEDULE">0 23 * * *</field>
                               <statement name="STATEMENT">
                                 <block type="variables_set" id="j^A+9@l`Kr4JcS/nyVp}">
                                   <field name="VAR" id="%M2}!8m+(Y^W0[Zp$?!%" variabletype="">AlarmScharf</field>
                                   <value name="VALUE">
                                     <block type="logic_boolean" id="d8zvT!{Q%DwP[~rGd7wM">
                                       <field name="BOOL">TRUE</field>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="procedures_callnoreturn" id="MK5iBj0)Hxp|8]0Gltg0">
                                       <mutation name="FunktionAusführen"></mutation>
                                     </block>
                                   </next>
                                 </block>
                               </statement>
                               <next>
                                 <block type="schedule" id="@qjy:~J}:NA;/_~](!AD">
                                   <field name="SCHEDULE">30 5 * * *</field>
                                   <statement name="STATEMENT">
                                     <block type="variables_set" id="S9(6.~+R0fqaw{Wquo^K">
                                       <field name="VAR" id="%M2}!8m+(Y^W0[Zp$?!%" variabletype="">AlarmScharf</field>
                                       <value name="VALUE">
                                         <block type="logic_boolean" id="QuTl2GwZJ(a7;sh6^A)n">
                                           <field name="BOOL">FALSE</field>
                                         </block>
                                       </value>
                                       <next>
                                         <block type="procedures_callnoreturn" id="ZA^2p2^B`p6lf5X(4X(F">
                                           <mutation name="FunktionAusführen"></mutation>
                                         </block>
                                       </next>
                                     </block>
                                   </statement>
                                   <next>
                                     <block type="on_ext" id="xF==bnm27l:6rr/~Jm.P">
                                       <mutation items="2"></mutation>
                                       <field name="CONDITION">ne</field>
                                       <field name="ACK_CONDITION"></field>
                                       <value name="OID0">
                                         <shadow type="field_oid" id="k5}k8oh(yU2a3^g`b1p^">
                                           <field name="oid">Test.0.Person1</field>
                                         </shadow>
                                       </value>
                                       <value name="OID1">
                                         <shadow type="field_oid" id="F=?m)):-2H@aN=q!%-QK">
                                           <field name="oid">Test.0.Person2</field>
                                         </shadow>
                                       </value>
                                       <statement name="STATEMENT">
                                         <block type="procedures_callnoreturn" id="%QtOgY2dET:JuaF_^P?}">
                                           <mutation name="FunktionAusführen"></mutation>
                                         </block>
                                       </statement>
                                     </block>
                                   </next>
                                 </block>
                               </next>
                             </block>
                             <block type="procedures_defnoreturn" id="/1h+FUyDaR{iOsFU3].`" x="13" y="-162">
                               <field name="NAME">FunktionAusführen</field>
                               <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                               <statement name="STACK">
                                 <block type="controls_if" id="Y-;z~b!~~(PL6MU(UvWy">
                                   <mutation elseif="1" else="1"></mutation>
                                   <value name="IF0">
                                     <block type="variables_get" id="sV|bn$(c8K%whLAo|n{p">
                                       <field name="VAR" id="%M2}!8m+(Y^W0[Zp$?!%" variabletype="">AlarmScharf</field>
                                     </block>
                                   </value>
                                   <statement name="DO0">
                                     <block type="control" id="%C9W8o@KSVqjjubPCL2O">
                                       <mutation delay_input="false"></mutation>
                                       <field name="OID">Test.0.Anwesenheit</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <value name="VALUE">
                                         <block type="logic_boolean" id="}:zR-Av.#K@w]79s~4wR">
                                           <field name="BOOL">FALSE</field>
                                         </block>
                                       </value>
                                     </block>
                                   </statement>
                                   <value name="IF1">
                                     <block type="logic_operation" id="$KbE8#n$C%+vY*Y~x?tA" inline="false">
                                       <field name="OP">AND</field>
                                       <value name="A">
                                         <block type="logic_negate" id=";Hy{XCj=#25:?PHCkAGf">
                                           <value name="BOOL">
                                             <block type="get_value" id="z6^Mx5w~^3iZ1F[8gY9j">
                                               <field name="ATTR">val</field>
                                               <field name="OID">Test.0.Person1</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="logic_negate" id="wL4HZ|Hg/|#;p:48N:*v">
                                           <value name="BOOL">
                                             <block type="get_value" id="HEWmOM6m#^EH9Y(S#H8;">
                                               <field name="ATTR">val</field>
                                               <field name="OID">Test.0.Person2</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <statement name="DO1">
                                     <block type="control" id=")DwCKgxyLL.QN7So|2I]">
                                       <mutation delay_input="false"></mutation>
                                       <field name="OID">Test.0.Anwesenheit</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <value name="VALUE">
                                         <block type="logic_boolean" id="jmq)b=kwpTt?t=m]YW:i">
                                           <field name="BOOL">FALSE</field>
                                         </block>
                                       </value>
                                     </block>
                                   </statement>
                                   <statement name="ELSE">
                                     <block type="control" id="u0YA]1VJGNFO:_5{Dxf:">
                                       <mutation delay_input="false"></mutation>
                                       <field name="OID">Test.0.Anwesenheit</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <value name="VALUE">
                                         <block type="logic_boolean" id="dt]AZR~M!CZ)y+(@vct;">
                                           <field name="BOOL">TRUE</field>
                                         </block>
                                       </value>
                                     </block>
                                   </statement>
                                 </block>
                               </statement>
                             </block>
                            </xml>
                            

                            T 1 Reply Last reply Reply Quote 1
                            • T
                              Torxplacid @BBTown last edited by

                              @BBTown sagte in Anwesenheit an die CCU senden:

                              @Homoran sagte in Anwesenheit an die CCU senden:

                              time=exact time...

                              alles klar, innerhalb des Zeitplanes auf CRON gehen:
                              6dea027c-f69d-4d83-b80f-ad3d650725ff-grafik.png

                              <xml xmlns="http://www.w3.org/1999/xhtml">
                               <variables>
                                 <variable type="" id="%M2}!8m+(Y^W0[Zp$?!%">AlarmScharf</variable>
                               </variables>
                               <block type="schedule" id="a`Nk7({3;ME)09g|bV$Y" x="-312" y="-162">
                                 <field name="SCHEDULE">0 23 * * *</field>
                                 <statement name="STATEMENT">
                                   <block type="variables_set" id="j^A+9@l`Kr4JcS/nyVp}">
                                     <field name="VAR" id="%M2}!8m+(Y^W0[Zp$?!%" variabletype="">AlarmScharf</field>
                                     <value name="VALUE">
                                       <block type="logic_boolean" id="d8zvT!{Q%DwP[~rGd7wM">
                                         <field name="BOOL">TRUE</field>
                                       </block>
                                     </value>
                                     <next>
                                       <block type="procedures_callnoreturn" id="MK5iBj0)Hxp|8]0Gltg0">
                                         <mutation name="FunktionAusführen"></mutation>
                                       </block>
                                     </next>
                                   </block>
                                 </statement>
                                 <next>
                                   <block type="schedule" id="@qjy:~J}:NA;/_~](!AD">
                                     <field name="SCHEDULE">30 5 * * *</field>
                                     <statement name="STATEMENT">
                                       <block type="variables_set" id="S9(6.~+R0fqaw{Wquo^K">
                                         <field name="VAR" id="%M2}!8m+(Y^W0[Zp$?!%" variabletype="">AlarmScharf</field>
                                         <value name="VALUE">
                                           <block type="logic_boolean" id="QuTl2GwZJ(a7;sh6^A)n">
                                             <field name="BOOL">FALSE</field>
                                           </block>
                                         </value>
                                         <next>
                                           <block type="procedures_callnoreturn" id="ZA^2p2^B`p6lf5X(4X(F">
                                             <mutation name="FunktionAusführen"></mutation>
                                           </block>
                                         </next>
                                       </block>
                                     </statement>
                                     <next>
                                       <block type="on_ext" id="xF==bnm27l:6rr/~Jm.P">
                                         <mutation items="2"></mutation>
                                         <field name="CONDITION">ne</field>
                                         <field name="ACK_CONDITION"></field>
                                         <value name="OID0">
                                           <shadow type="field_oid" id="k5}k8oh(yU2a3^g`b1p^">
                                             <field name="oid">Test.0.Person1</field>
                                           </shadow>
                                         </value>
                                         <value name="OID1">
                                           <shadow type="field_oid" id="F=?m)):-2H@aN=q!%-QK">
                                             <field name="oid">Test.0.Person2</field>
                                           </shadow>
                                         </value>
                                         <statement name="STATEMENT">
                                           <block type="procedures_callnoreturn" id="%QtOgY2dET:JuaF_^P?}">
                                             <mutation name="FunktionAusführen"></mutation>
                                           </block>
                                         </statement>
                                       </block>
                                     </next>
                                   </block>
                                 </next>
                               </block>
                               <block type="procedures_defnoreturn" id="/1h+FUyDaR{iOsFU3].`" x="13" y="-162">
                                 <field name="NAME">FunktionAusführen</field>
                                 <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                                 <statement name="STACK">
                                   <block type="controls_if" id="Y-;z~b!~~(PL6MU(UvWy">
                                     <mutation elseif="1" else="1"></mutation>
                                     <value name="IF0">
                                       <block type="variables_get" id="sV|bn$(c8K%whLAo|n{p">
                                         <field name="VAR" id="%M2}!8m+(Y^W0[Zp$?!%" variabletype="">AlarmScharf</field>
                                       </block>
                                     </value>
                                     <statement name="DO0">
                                       <block type="control" id="%C9W8o@KSVqjjubPCL2O">
                                         <mutation delay_input="false"></mutation>
                                         <field name="OID">Test.0.Anwesenheit</field>
                                         <field name="WITH_DELAY">FALSE</field>
                                         <value name="VALUE">
                                           <block type="logic_boolean" id="}:zR-Av.#K@w]79s~4wR">
                                             <field name="BOOL">FALSE</field>
                                           </block>
                                         </value>
                                       </block>
                                     </statement>
                                     <value name="IF1">
                                       <block type="logic_operation" id="$KbE8#n$C%+vY*Y~x?tA" inline="false">
                                         <field name="OP">AND</field>
                                         <value name="A">
                                           <block type="logic_negate" id=";Hy{XCj=#25:?PHCkAGf">
                                             <value name="BOOL">
                                               <block type="get_value" id="z6^Mx5w~^3iZ1F[8gY9j">
                                                 <field name="ATTR">val</field>
                                                 <field name="OID">Test.0.Person1</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                         <value name="B">
                                           <block type="logic_negate" id="wL4HZ|Hg/|#;p:48N:*v">
                                             <value name="BOOL">
                                               <block type="get_value" id="HEWmOM6m#^EH9Y(S#H8;">
                                                 <field name="ATTR">val</field>
                                                 <field name="OID">Test.0.Person2</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                     <statement name="DO1">
                                       <block type="control" id=")DwCKgxyLL.QN7So|2I]">
                                         <mutation delay_input="false"></mutation>
                                         <field name="OID">Test.0.Anwesenheit</field>
                                         <field name="WITH_DELAY">FALSE</field>
                                         <value name="VALUE">
                                           <block type="logic_boolean" id="jmq)b=kwpTt?t=m]YW:i">
                                             <field name="BOOL">FALSE</field>
                                           </block>
                                         </value>
                                       </block>
                                     </statement>
                                     <statement name="ELSE">
                                       <block type="control" id="u0YA]1VJGNFO:_5{Dxf:">
                                         <mutation delay_input="false"></mutation>
                                         <field name="OID">Test.0.Anwesenheit</field>
                                         <field name="WITH_DELAY">FALSE</field>
                                         <value name="VALUE">
                                           <block type="logic_boolean" id="dt]AZR~M!CZ)y+(@vct;">
                                             <field name="BOOL">TRUE</field>
                                           </block>
                                         </value>
                                       </block>
                                     </statement>
                                   </block>
                                 </statement>
                               </block>
                              </xml>
                              

                              Danke für die Mühe.
                              Ich werde es mal testen.

                              T T 2 Replies Last reply Reply Quote 0
                              • T
                                Torxplacid @Torxplacid last edited by

                                @Torxplacid sagte in Anwesenheit an die CCU senden:

                                @BBTown sagte in Anwesenheit an die CCU senden:

                                @Homoran sagte in Anwesenheit an die CCU senden:

                                time=exact time...

                                alles klar, innerhalb des Zeitplanes auf CRON gehen:
                                6dea027c-f69d-4d83-b80f-ad3d650725ff-grafik.png

                                <xml xmlns="http://www.w3.org/1999/xhtml">
                                 <variables>
                                   <variable type="" id="%M2}!8m+(Y^W0[Zp$?!%">AlarmScharf</variable>
                                 </variables>
                                 <block type="schedule" id="a`Nk7({3;ME)09g|bV$Y" x="-312" y="-162">
                                   <field name="SCHEDULE">0 23 * * *</field>
                                   <statement name="STATEMENT">
                                     <block type="variables_set" id="j^A+9@l`Kr4JcS/nyVp}">
                                       <field name="VAR" id="%M2}!8m+(Y^W0[Zp$?!%" variabletype="">AlarmScharf</field>
                                       <value name="VALUE">
                                         <block type="logic_boolean" id="d8zvT!{Q%DwP[~rGd7wM">
                                           <field name="BOOL">TRUE</field>
                                         </block>
                                       </value>
                                       <next>
                                         <block type="procedures_callnoreturn" id="MK5iBj0)Hxp|8]0Gltg0">
                                           <mutation name="FunktionAusführen"></mutation>
                                         </block>
                                       </next>
                                     </block>
                                   </statement>
                                   <next>
                                     <block type="schedule" id="@qjy:~J}:NA;/_~](!AD">
                                       <field name="SCHEDULE">30 5 * * *</field>
                                       <statement name="STATEMENT">
                                         <block type="variables_set" id="S9(6.~+R0fqaw{Wquo^K">
                                           <field name="VAR" id="%M2}!8m+(Y^W0[Zp$?!%" variabletype="">AlarmScharf</field>
                                           <value name="VALUE">
                                             <block type="logic_boolean" id="QuTl2GwZJ(a7;sh6^A)n">
                                               <field name="BOOL">FALSE</field>
                                             </block>
                                           </value>
                                           <next>
                                             <block type="procedures_callnoreturn" id="ZA^2p2^B`p6lf5X(4X(F">
                                               <mutation name="FunktionAusführen"></mutation>
                                             </block>
                                           </next>
                                         </block>
                                       </statement>
                                       <next>
                                         <block type="on_ext" id="xF==bnm27l:6rr/~Jm.P">
                                           <mutation items="2"></mutation>
                                           <field name="CONDITION">ne</field>
                                           <field name="ACK_CONDITION"></field>
                                           <value name="OID0">
                                             <shadow type="field_oid" id="k5}k8oh(yU2a3^g`b1p^">
                                               <field name="oid">Test.0.Person1</field>
                                             </shadow>
                                           </value>
                                           <value name="OID1">
                                             <shadow type="field_oid" id="F=?m)):-2H@aN=q!%-QK">
                                               <field name="oid">Test.0.Person2</field>
                                             </shadow>
                                           </value>
                                           <statement name="STATEMENT">
                                             <block type="procedures_callnoreturn" id="%QtOgY2dET:JuaF_^P?}">
                                               <mutation name="FunktionAusführen"></mutation>
                                             </block>
                                           </statement>
                                         </block>
                                       </next>
                                     </block>
                                   </next>
                                 </block>
                                 <block type="procedures_defnoreturn" id="/1h+FUyDaR{iOsFU3].`" x="13" y="-162">
                                   <field name="NAME">FunktionAusführen</field>
                                   <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                                   <statement name="STACK">
                                     <block type="controls_if" id="Y-;z~b!~~(PL6MU(UvWy">
                                       <mutation elseif="1" else="1"></mutation>
                                       <value name="IF0">
                                         <block type="variables_get" id="sV|bn$(c8K%whLAo|n{p">
                                           <field name="VAR" id="%M2}!8m+(Y^W0[Zp$?!%" variabletype="">AlarmScharf</field>
                                         </block>
                                       </value>
                                       <statement name="DO0">
                                         <block type="control" id="%C9W8o@KSVqjjubPCL2O">
                                           <mutation delay_input="false"></mutation>
                                           <field name="OID">Test.0.Anwesenheit</field>
                                           <field name="WITH_DELAY">FALSE</field>
                                           <value name="VALUE">
                                             <block type="logic_boolean" id="}:zR-Av.#K@w]79s~4wR">
                                               <field name="BOOL">FALSE</field>
                                             </block>
                                           </value>
                                         </block>
                                       </statement>
                                       <value name="IF1">
                                         <block type="logic_operation" id="$KbE8#n$C%+vY*Y~x?tA" inline="false">
                                           <field name="OP">AND</field>
                                           <value name="A">
                                             <block type="logic_negate" id=";Hy{XCj=#25:?PHCkAGf">
                                               <value name="BOOL">
                                                 <block type="get_value" id="z6^Mx5w~^3iZ1F[8gY9j">
                                                   <field name="ATTR">val</field>
                                                   <field name="OID">Test.0.Person1</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                           <value name="B">
                                             <block type="logic_negate" id="wL4HZ|Hg/|#;p:48N:*v">
                                               <value name="BOOL">
                                                 <block type="get_value" id="HEWmOM6m#^EH9Y(S#H8;">
                                                   <field name="ATTR">val</field>
                                                   <field name="OID">Test.0.Person2</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                       <statement name="DO1">
                                         <block type="control" id=")DwCKgxyLL.QN7So|2I]">
                                           <mutation delay_input="false"></mutation>
                                           <field name="OID">Test.0.Anwesenheit</field>
                                           <field name="WITH_DELAY">FALSE</field>
                                           <value name="VALUE">
                                             <block type="logic_boolean" id="jmq)b=kwpTt?t=m]YW:i">
                                               <field name="BOOL">FALSE</field>
                                             </block>
                                           </value>
                                         </block>
                                       </statement>
                                       <statement name="ELSE">
                                         <block type="control" id="u0YA]1VJGNFO:_5{Dxf:">
                                           <mutation delay_input="false"></mutation>
                                           <field name="OID">Test.0.Anwesenheit</field>
                                           <field name="WITH_DELAY">FALSE</field>
                                           <value name="VALUE">
                                             <block type="logic_boolean" id="dt]AZR~M!CZ)y+(@vct;">
                                               <field name="BOOL">TRUE</field>
                                             </block>
                                           </value>
                                         </block>
                                       </statement>
                                     </block>
                                   </statement>
                                 </block>
                                </xml>
                                

                                Danke für die Mühe.
                                Ich werde es mal testen.

                                Ich glaube es ist verdreht. Der Wert bezieht sich auf die Anwesenheit. Wenn er wahr ist bin ich anwesend

                                1 Reply Last reply Reply Quote 0
                                • T
                                  ticaki Developer @Torxplacid last edited by ticaki

                                  @Torxplacid
                                  Meines sieht auch nicht anders aus 🙂

                                  Da ist ein NICHT davor. Die 2. Prüfung geht auf Abwesenheit nicht auf Anwesenheit.

                                  T 1 Reply Last reply Reply Quote 0
                                  • T
                                    Torxplacid @ticaki last edited by

                                    @ticaki sagte in Anwesenheit an die CCU senden:

                                    @Torxplacid
                                    Meines sieht auch nicht anders aus 🙂

                                    Da ist ein NICHT davor. Die 2. Prüfung geht auf Abwesenheit nicht auf Anwesenheit.

                                    ist so richtig?

                                    T 1 Reply Last reply Reply Quote 0
                                    • T
                                      ticaki Developer @Torxplacid last edited by

                                      @Torxplacid
                                      Jo, wenn A nicht da ist und b nicht da ist schalte Anwesenheit auf falsch. 🙂

                                      T 1 Reply Last reply Reply Quote 0
                                      • T
                                        Torxplacid @ticaki last edited by

                                        @ticaki
                                        nur zum verständnis.

                                        im ersten Teil steht ja das er um 23 Uhr die anwesenheit auf wahr setzt. dann bin ich ja da??

                                        BBTown 1 Reply Last reply Reply Quote 0
                                        • T
                                          ticaki Developer last edited by

                                          Nope er setzt eine Variable auf wahr

                                          1 Reply Last reply Reply Quote 0
                                          • BBTown
                                            BBTown @Torxplacid last edited by

                                            @Torxplacid
                                            nein, es wird eine Variable Alarm scharf auf wahr gesetzt" und danach die Funktion aufgerufen

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            774
                                            Online

                                            32.0k
                                            Users

                                            80.4k
                                            Topics

                                            1.3m
                                            Posts

                                            4
                                            130
                                            6539
                                            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