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.
    • 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
                          • T
                            Torxplacid last edited by Torxplacid

                            Ok?
                            Ich werde mal berichten ob es funktioniert wie gewünscht.

                            Verstehen kann ich es nicht

                            Aber Daumen hoch für die tolle Unterstützung.

                            Ist es denn so richtig?

                            Sorry für die Größe. Mein Laptop bekommt es nicht hin

                            Desktop.jpg

                            T Homoran BBTown 3 Replies Last reply Reply Quote 0
                            • T
                              ticaki Developer @Torxplacid last edited by

                              @Torxplacid
                              Er setzt dort Alarm auf wahr... dann fragt er ab ob alarm scharf ist und setzt wenn ja anwesenheit auf falsch.

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

                                @Torxplacid sagte in Anwesenheit an die CCU senden:

                                Sorry für die Größe. Mein Laptop bekommt es nicht hin

                                Dafür gibt es snipping tool (oder jetzt "Ausschneiden un skizzieren")

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

                                  @Homoran
                                  Danke für den Hinweis

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

                                    @Torxplacid das ist inhaltlich korrekt, aber benutze einen anderen Begriff für die Variable z.B. "varNachtalarm" um das später auch noch nachvollziehen zu können.

                                    Du verwendest gleichlautende Begriffe für unterschiedliche Situationen/Inhalte

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

                                      Hallo,

                                      danke nochmal, das klappt Prima.

                                      Gibt es noch die Möglichkeit da ein HTTP befehl für die Kameras einzubinden?

                                      Das heißt:
                                      Anwesend = Kamera aus
                                      nicht Anwesend bzw. Nachts = Kamera an

                                      Ich kann das über einen HTTP befehl im Browser machen.

                                      Lg

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

                                        @Torxplacid
                                        schau mal hier
                                        7d076785-aacf-44d2-b2dd-163828dcfeb6-grafik.png

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

                                          @BBTown
                                          im Textfeld dann den Befehl eintragen?

                                          http://192.168.1.:***/web/cgi-bin/hi3510/param.cgi?cmd=setsche.......

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

                                            @Torxplacid
                                            trau dich 🙂

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            747
                                            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