Weiter zum Inhalt
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Hell
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dunkel
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. Schaltzeiten Addieren, Gesamt "An" in Minuten ..

NEWS

  • Neuer ioBroker-Blog online: Monatsrückblick März/April 2026
    BluefoxB
    Bluefox
    8
    1
    473

  • Verwendung von KI bitte immer deutlich kennzeichnen
    HomoranH
    Homoran
    10
    1
    394

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    979

Schaltzeiten Addieren, Gesamt "An" in Minuten ..

Geplant Angeheftet Gesperrt Verschoben Blockly
6 Beiträge 3 Kommentatoren 3.1k Aufrufe 3 Beobachtet
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • M Offline
    M Offline
    Mento
    schrieb am zuletzt editiert von Mento
    #1

    Hallo,
    ich habe ein Objekt welches in einem Zeitraum von 11:45Uhr - 18:15Uhr je nach Bedingungen mal Länger mal kürzer in diesem Zeitraum "An" ist.
    Soweit alles OK.
    2019-07-06 00_01_50-javascript - ioBroker.png

    <xml xmlns="http://www.w3.org/1999/xhtml">
      <block type="on_ext" id="wNNWp~Y_FZe|v#%-dVwx" x="-162" y="-513">
        <mutation items="2"></mutation>
        <field name="CONDITION">ne</field>
        <field name="ACK_CONDITION"></field>
        <value name="OID0">
          <shadow type="field_oid" id="~?t}50$cE*vhNwt/9d{k">
            <field name="oid">sonoff.0.creationx-1023.DS18B20_Temperature</field>
          </shadow>
        </value>
        <value name="OID1">
          <shadow type="field_oid" id="Hpa0]B73T)Sl=V{evgz2">
            <field name="oid">fritzdect.0.DECT200_087610178347.temp</field>
          </shadow>
        </value>
        <statement name="STATEMENT">
          <block type="controls_if" id="RtbEZklb).NV+Z98Gef:">
            <value name="IF0">
              <block type="time_compare" id="hH9U#G+TH0pk@~BgyC^A">
                <mutation end_time="true"></mutation>
                <field name="OPTION">between</field>
                <field name="START_TIME">11:45</field>
                <field name="END_TIME">18:15</field>
              </block>
            </value>
            <statement name="DO0">
              <block type="controls_if" id="f`]_ZnrJPO+/s2gj8/sr">
                <mutation elseif="1"></mutation>
                <value name="IF0">
                  <block type="logic_operation" id="Ay:;6+j:q;d8n/9*)VQC" inline="false">
                    <field name="OP">AND</field>
                    <value name="A">
                      <block type="logic_compare" id="uLfZ.8ij68Im%Zp4D[K^">
                        <field name="OP">GT</field>
                        <value name="A">
                          <block type="get_value" id="0MF^84cfN$rvZt-sMm7V">
                            <field name="ATTR">val</field>
                            <field name="OID">sonoff.0.creationx-1023.DS18B20_Temperature</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_arithmetic" id="kO*{.nQyNy]#0AQMs^@E">
                            <field name="OP">ADD</field>
                            <value name="A">
                              <shadow type="math_number" id="S-?[ltaJSwGg=L^bp!Mh">
                                <field name="NUM">1</field>
                              </shadow>
                              <block type="get_value" id="fUzf0{W!S.r?tCW2os-8">
                                <field name="ATTR">val</field>
                                <field name="OID">fritzdect.0.DECT200_087610178347.temp</field>
                              </block>
                            </value>
                            <value name="B">
                              <shadow type="math_number" id="MuGm=)+OJsJ.%A.7J70)">
                                <field name="NUM">1</field>
                              </shadow>
                              <block type="math_number" id="u9EWK?-EMe(imqdeoX54">
                                <field name="NUM">4</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_compare" id=":bVQVcrIL(YDY32VCsAp">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id="Qq4-:mE3r.sA9^D{Luee">
                            <field name="ATTR">val</field>
                            <field name="OID">fritzdect.0.DECT200_087610178347.state</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_boolean" id="%C|:bx-oZCzz_A7vqcWK">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="control" id="/-2XhHkBmKey*R%[!n?d">
                    <mutation delay_input="false"></mutation>
                    <field name="OID">fritzdect.0.DECT200_087610178347.state</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="q7t)HORVod)v9]3W}jo2">
                        <field name="BOOL">TRUE</field>
                      </block>
                    </value>
                  </block>
                </statement>
                <value name="IF1">
                  <block type="logic_operation" id="Yy~I1gw@#1s|eb*^QU]s" inline="false">
                    <field name="OP">AND</field>
                    <value name="A">
                      <block type="logic_compare" id="gJ(-S([ECw`S;(0i=r+M">
                        <field name="OP">LT</field>
                        <value name="A">
                          <block type="get_value" id=":;OaqB@6DgEvHKMx[Z/=">
                            <field name="ATTR">val</field>
                            <field name="OID">sonoff.0.creationx-1023.DS18B20_Temperature</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_arithmetic" id="!,vG%j$6J{Ikzg:x~x?U">
                            <field name="OP">ADD</field>
                            <value name="A">
                              <shadow type="math_number" id="S-?[ltaJSwGg=L^bp!Mh">
                                <field name="NUM">1</field>
                              </shadow>
                              <block type="get_value" id="C-xfh:R`9N#Rsvj7?gaz">
                                <field name="ATTR">val</field>
                                <field name="OID">fritzdect.0.DECT200_087610178347.temp</field>
                              </block>
                            </value>
                            <value name="B">
                              <shadow type="math_number" id="MuGm=)+OJsJ.%A.7J70)">
                                <field name="NUM">1</field>
                              </shadow>
                              <block type="math_number" id="B5/nTLNzT9]2HGKj)k=M">
                                <field name="NUM">4</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_compare" id="fsEVLCKjDeTnXQO4viQs">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id="G2%KCoV,9q)w;P-cWe8F">
                            <field name="ATTR">val</field>
                            <field name="OID">fritzdect.0.DECT200_087610178347.state</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_boolean" id="T#4?AUYpx3)^tR)foJe(">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO1">
                  <block type="control" id="gG{^EIio~OS*1nMq(CEu">
                    <mutation delay_input="true"></mutation>
                    <field name="OID">fritzdect.0.DECT200_087610178347.state</field>
                    <field name="WITH_DELAY">TRUE</field>
                    <field name="DELAY_MS">50</field>
                    <field name="UNIT">sec</field>
                    <field name="CLEAR_RUNNING">FALSE</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="C_xtJ}B3Z+oFPE:v?=+w">
                        <field name="BOOL">FALSE</field>
                      </block>
                    </value>
                  </block>
                </statement>
              </block>
            </statement>
            <next>
              <block type="controls_if" id="-%l-D?i;KD83Qi8{S#u0">
                <value name="IF0">
                  <block type="logic_operation" id="Y56yfZwbe-u2O0CTTO,-" inline="false">
                    <field name="OP">AND</field>
                    <value name="A">
                      <block type="time_compare_ex" id="1i9lU97W+J-eLC`CGBNw">
                        <mutation end_time="false" actual_time="true"></mutation>
                        <field name="USE_ACTUAL_TIME">TRUE</field>
                        <field name="OPTION">&gt;</field>
                        <value name="START_TIME">
                          <shadow type="text" id="Eq9Cu/~/=7d(jR!4`3Pm">
                            <field name="TEXT">18:20</field>
                          </shadow>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_compare" id="dnF}Dk^~5RI+e)g:O1oN">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id="-zW/+Lp3:})J^MF;sIMQ">
                            <field name="ATTR">val</field>
                            <field name="OID">fritzdect.0.DECT200_087610178347.state</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_boolean" id="^d[x-)l*1:/VIr3=kVyi">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="control" id="Jm3z*dMhXRRf!Our3?ne">
                    <mutation delay_input="true"></mutation>
                    <field name="OID">fritzdect.0.DECT200_087610178347.state</field>
                    <field name="WITH_DELAY">TRUE</field>
                    <field name="DELAY_MS">20</field>
                    <field name="UNIT">sec</field>
                    <field name="CLEAR_RUNNING">FALSE</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="iraX-caBHny?Py:,|Xe{">
                        <field name="BOOL">FALSE</field>
                      </block>
                    </value>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </statement>
      </block>
    </xml>
    
    

    Nun möchte ich gerne noch wissen, wie Lange war das Objekt Switch on/off in diesem Zeitraum gesamt "an"?
    Mir fehlt die Idee wie ich das hier einbauen könnte, bzw. berechnet werden kann.🙄

    Wenn dieser Wert dann unter zb. unter 60 Minuten war, würde ich den Switch dann später nochmal für eine Fixen Wert von zb, 90 Minuten "An" schalten.

    paul53P 1 Antwort Letzte Antwort
    0
    • BBTownB Offline
      BBTownB Offline
      BBTown
      schrieb am zuletzt editiert von
      #2

      Vielleicht hilft dir ein Beispiel von einer Anwesenheits/Abwesenheitsberechnung als Ansatz weiter?!
      Im Grunde wird die Zeit zwischen 2 Änderungszeitpunkten eines Datenpunktes betrachtet.
      b93800e3-305e-4ff7-a2e3-0c4b900e800b-grafik.png

      <block xmlns="http://www.w3.org/1999/xhtml" type="on" id="Qz}94ICw?Qb!u)3Mbg3)" x="-362" y="13">
       <field name="OID">javascript.0.Anwesenheitssteuerung.Userlist.Liste</field>
       <field name="CONDITION">any</field>
       <field name="ACK_CONDITION"></field>
       <statement name="STATEMENT">
         <block type="variables_set" id="0BX5n})*`i)1e{V-@a_M">
           <field name="VAR" id="[voY[W,a!1c!rszK{*#/" variabletype="">Einschaltdauer</field>
           <value name="VALUE">
             <block type="math_round" id="e4VQa~mlI/fiZ9?vYHN/">
               <field name="OP">ROUND</field>
               <value name="NUM">
                 <shadow type="math_number" id="H6fTxzKQCY-v}.:FtS3w">
                   <field name="NUM">3.1</field>
                 </shadow>
                 <block type="math_arithmetic" id="Pw_Sx~8U(B8e1Ia#c,Ep">
                   <field name="OP">DIVIDE</field>
                   <value name="A">
                     <shadow type="math_number" id="F-7_uuh6=|vE~lWx_ZXk">
                       <field name="NUM">1</field>
                     </shadow>
                     <block type="math_arithmetic" id="](K{~?udR%|Wx#E@TcwK">
                       <field name="OP">MINUS</field>
                       <value name="A">
                         <shadow type="math_number" id="-EL;Qei)s~g2xz=il8]+">
                           <field name="NUM">1</field>
                         </shadow>
                         <block type="on_source" id="Dt7[Y1)%dJ}z~G0ndLGC">
                           <field name="ATTR">state.lc</field>
                         </block>
                       </value>
                       <value name="B">
                         <shadow type="math_number" id="ON_1bTe;+MCx}oLi4-t@">
                           <field name="NUM">1</field>
                         </shadow>
                         <block type="on_source" id="k2%f2N^bsOR%0EskI9*P">
                           <field name="ATTR">oldState.lc</field>
                         </block>
                       </value>
                     </block>
                   </value>
                   <value name="B">
                     <shadow type="math_number" id="T%JQJD@,B:KE^}/n7]-Y">
                       <field name="NUM">1</field>
                     </shadow>
                     <block type="math_number" id="lA^wH?;J?uJUa}EwNbcL">
                       <field name="NUM">60000</field>
                     </block>
                   </value>
                 </block>
               </value>
             </block>
           </value>
           <next>
             <block type="controls_if" id="ZdGo^TnKSt!b[H/5*mf^">
               <mutation elseif="1"></mutation>
               <value name="IF0">
                 <block type="logic_compare" id="|v-|#[e^mW/@2ke6jU~v">
                   <field name="OP">EQ</field>
                   <value name="A">
                     <block type="get_value" id="M[ny913|_H0~-q_c*Dbj">
                       <field name="ATTR">val</field>
                       <field name="OID">javascript.0.Anwesenheitssteuerung.Userlist.JemandDa</field>
                     </block>
                   </value>
                   <value name="B">
                     <block type="logic_boolean" id="B^2){oE?P9]P[=4POR@M">
                       <field name="BOOL">TRUE</field>
                     </block>
                   </value>
                 </block>
               </value>
               <statement name="DO0">
                 <block type="control" id="b:xQJp5ttIXPz7w55V=Q">
                   <mutation delay_input="false"></mutation>
                   <field name="OID">Variablen.0.Abwesend_in_Minuten</field>
                   <field name="WITH_DELAY">FALSE</field>
                   <value name="VALUE">
                     <block type="variables_get" id="g+YU9}_w_K0eQ;UmnN+]">
                       <field name="VAR" id="[voY[W,a!1c!rszK{*#/" variabletype="">Einschaltdauer</field>
                     </block>
                   </value>
                   <next>
                     <block type="debug" id="pfsd^FJWCg,Z]%4*LZIu">
                       <field name="Severity">log</field>
                       <value name="TEXT">
                         <shadow type="text" id="Y8uZc}op,^kGM({`9)iU">
                           <field name="TEXT">test</field>
                         </shadow>
                         <block type="text_join" id="1VwzC97MOmk=M5!,K9Mp">
                           <mutation items="3"></mutation>
                           <value name="ADD0">
                             <block type="text" id="hY[MhvdFGC;qss,.ViQI">
                               <field name="TEXT">Ich war insgesamt </field>
                             </block>
                           </value>
                           <value name="ADD1">
                             <block type="variables_get" id="up(Y`Rb.%,A|xg5/Yq58">
                               <field name="VAR" id="[voY[W,a!1c!rszK{*#/" variabletype="">Einschaltdauer</field>
                             </block>
                           </value>
                           <value name="ADD2">
                             <block type="text" id="_mvLRQibC1OFlOw,z??1">
                               <field name="TEXT"> Minuten abwesend</field>
                             </block>
                           </value>
                         </block>
                       </value>
                     </block>
                   </next>
                 </block>
               </statement>
               <value name="IF1">
                 <block type="logic_compare" id="`zw@};1fn9D+`fP]{dfV">
                   <field name="OP">EQ</field>
                   <value name="A">
                     <block type="get_value" id="ZWSc:]nROWNjYS;p:(wQ">
                       <field name="ATTR">val</field>
                       <field name="OID">javascript.0.Anwesenheitssteuerung.Userlist.JemandDa</field>
                     </block>
                   </value>
                   <value name="B">
                     <block type="logic_boolean" id="LW]Y1Vj]2S3mg57%YGlF">
                       <field name="BOOL">FALSE</field>
                     </block>
                   </value>
                 </block>
               </value>
               <statement name="DO1">
                 <block type="control" id="x%*n,-F-vRxJtZ/dc@)g">
                   <mutation delay_input="false"></mutation>
                   <field name="OID">Variablen.0.Anwesend_in_Minuten</field>
                   <field name="WITH_DELAY">FALSE</field>
                   <value name="VALUE">
                     <block type="variables_get" id="u(`{MQ@2,{x8J_q`P3@3">
                       <field name="VAR" id="[voY[W,a!1c!rszK{*#/" variabletype="">Einschaltdauer</field>
                     </block>
                   </value>
                   <next>
                     <block type="debug" id="OLdN7[rb9;;i`O=-d2D7">
                       <field name="Severity">log</field>
                       <value name="TEXT">
                         <shadow type="text" id="Y8uZc}op,^kGM({`9)iU">
                           <field name="TEXT">test</field>
                         </shadow>
                         <block type="text_join" id="Qliz]JF[[bhCbRPXVR+|">
                           <mutation items="3"></mutation>
                           <value name="ADD0">
                             <block type="text" id="5?_=YWE||me7W!!p;UM6">
                               <field name="TEXT">Ich war insgesamt </field>
                             </block>
                           </value>
                           <value name="ADD1">
                             <block type="variables_get" id="zpp_cK4]-#PyF)LGJ/LF">
                               <field name="VAR" id="[voY[W,a!1c!rszK{*#/" variabletype="">Einschaltdauer</field>
                             </block>
                           </value>
                           <value name="ADD2">
                             <block type="text" id="g:c;u/eO6q6E.OB!MN%p">
                               <field name="TEXT"> Minuten anwesend</field>
                             </block>
                           </value>
                         </block>
                       </value>
                     </block>
                   </next>
                 </block>
               </statement>
             </block>
           </next>
         </block>
       </statement>
      </block>
      

      ioBroker auf NUC (VM debian v13 (Trixie ), node v22.22.2 npm v10.9.4, js-controller v7.1.1 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS

      M 1 Antwort Letzte Antwort
      2
      • BBTownB BBTown

        Vielleicht hilft dir ein Beispiel von einer Anwesenheits/Abwesenheitsberechnung als Ansatz weiter?!
        Im Grunde wird die Zeit zwischen 2 Änderungszeitpunkten eines Datenpunktes betrachtet.
        b93800e3-305e-4ff7-a2e3-0c4b900e800b-grafik.png

        <block xmlns="http://www.w3.org/1999/xhtml" type="on" id="Qz}94ICw?Qb!u)3Mbg3)" x="-362" y="13">
         <field name="OID">javascript.0.Anwesenheitssteuerung.Userlist.Liste</field>
         <field name="CONDITION">any</field>
         <field name="ACK_CONDITION"></field>
         <statement name="STATEMENT">
           <block type="variables_set" id="0BX5n})*`i)1e{V-@a_M">
             <field name="VAR" id="[voY[W,a!1c!rszK{*#/" variabletype="">Einschaltdauer</field>
             <value name="VALUE">
               <block type="math_round" id="e4VQa~mlI/fiZ9?vYHN/">
                 <field name="OP">ROUND</field>
                 <value name="NUM">
                   <shadow type="math_number" id="H6fTxzKQCY-v}.:FtS3w">
                     <field name="NUM">3.1</field>
                   </shadow>
                   <block type="math_arithmetic" id="Pw_Sx~8U(B8e1Ia#c,Ep">
                     <field name="OP">DIVIDE</field>
                     <value name="A">
                       <shadow type="math_number" id="F-7_uuh6=|vE~lWx_ZXk">
                         <field name="NUM">1</field>
                       </shadow>
                       <block type="math_arithmetic" id="](K{~?udR%|Wx#E@TcwK">
                         <field name="OP">MINUS</field>
                         <value name="A">
                           <shadow type="math_number" id="-EL;Qei)s~g2xz=il8]+">
                             <field name="NUM">1</field>
                           </shadow>
                           <block type="on_source" id="Dt7[Y1)%dJ}z~G0ndLGC">
                             <field name="ATTR">state.lc</field>
                           </block>
                         </value>
                         <value name="B">
                           <shadow type="math_number" id="ON_1bTe;+MCx}oLi4-t@">
                             <field name="NUM">1</field>
                           </shadow>
                           <block type="on_source" id="k2%f2N^bsOR%0EskI9*P">
                             <field name="ATTR">oldState.lc</field>
                           </block>
                         </value>
                       </block>
                     </value>
                     <value name="B">
                       <shadow type="math_number" id="T%JQJD@,B:KE^}/n7]-Y">
                         <field name="NUM">1</field>
                       </shadow>
                       <block type="math_number" id="lA^wH?;J?uJUa}EwNbcL">
                         <field name="NUM">60000</field>
                       </block>
                     </value>
                   </block>
                 </value>
               </block>
             </value>
             <next>
               <block type="controls_if" id="ZdGo^TnKSt!b[H/5*mf^">
                 <mutation elseif="1"></mutation>
                 <value name="IF0">
                   <block type="logic_compare" id="|v-|#[e^mW/@2ke6jU~v">
                     <field name="OP">EQ</field>
                     <value name="A">
                       <block type="get_value" id="M[ny913|_H0~-q_c*Dbj">
                         <field name="ATTR">val</field>
                         <field name="OID">javascript.0.Anwesenheitssteuerung.Userlist.JemandDa</field>
                       </block>
                     </value>
                     <value name="B">
                       <block type="logic_boolean" id="B^2){oE?P9]P[=4POR@M">
                         <field name="BOOL">TRUE</field>
                       </block>
                     </value>
                   </block>
                 </value>
                 <statement name="DO0">
                   <block type="control" id="b:xQJp5ttIXPz7w55V=Q">
                     <mutation delay_input="false"></mutation>
                     <field name="OID">Variablen.0.Abwesend_in_Minuten</field>
                     <field name="WITH_DELAY">FALSE</field>
                     <value name="VALUE">
                       <block type="variables_get" id="g+YU9}_w_K0eQ;UmnN+]">
                         <field name="VAR" id="[voY[W,a!1c!rszK{*#/" variabletype="">Einschaltdauer</field>
                       </block>
                     </value>
                     <next>
                       <block type="debug" id="pfsd^FJWCg,Z]%4*LZIu">
                         <field name="Severity">log</field>
                         <value name="TEXT">
                           <shadow type="text" id="Y8uZc}op,^kGM({`9)iU">
                             <field name="TEXT">test</field>
                           </shadow>
                           <block type="text_join" id="1VwzC97MOmk=M5!,K9Mp">
                             <mutation items="3"></mutation>
                             <value name="ADD0">
                               <block type="text" id="hY[MhvdFGC;qss,.ViQI">
                                 <field name="TEXT">Ich war insgesamt </field>
                               </block>
                             </value>
                             <value name="ADD1">
                               <block type="variables_get" id="up(Y`Rb.%,A|xg5/Yq58">
                                 <field name="VAR" id="[voY[W,a!1c!rszK{*#/" variabletype="">Einschaltdauer</field>
                               </block>
                             </value>
                             <value name="ADD2">
                               <block type="text" id="_mvLRQibC1OFlOw,z??1">
                                 <field name="TEXT"> Minuten abwesend</field>
                               </block>
                             </value>
                           </block>
                         </value>
                       </block>
                     </next>
                   </block>
                 </statement>
                 <value name="IF1">
                   <block type="logic_compare" id="`zw@};1fn9D+`fP]{dfV">
                     <field name="OP">EQ</field>
                     <value name="A">
                       <block type="get_value" id="ZWSc:]nROWNjYS;p:(wQ">
                         <field name="ATTR">val</field>
                         <field name="OID">javascript.0.Anwesenheitssteuerung.Userlist.JemandDa</field>
                       </block>
                     </value>
                     <value name="B">
                       <block type="logic_boolean" id="LW]Y1Vj]2S3mg57%YGlF">
                         <field name="BOOL">FALSE</field>
                       </block>
                     </value>
                   </block>
                 </value>
                 <statement name="DO1">
                   <block type="control" id="x%*n,-F-vRxJtZ/dc@)g">
                     <mutation delay_input="false"></mutation>
                     <field name="OID">Variablen.0.Anwesend_in_Minuten</field>
                     <field name="WITH_DELAY">FALSE</field>
                     <value name="VALUE">
                       <block type="variables_get" id="u(`{MQ@2,{x8J_q`P3@3">
                         <field name="VAR" id="[voY[W,a!1c!rszK{*#/" variabletype="">Einschaltdauer</field>
                       </block>
                     </value>
                     <next>
                       <block type="debug" id="OLdN7[rb9;;i`O=-d2D7">
                         <field name="Severity">log</field>
                         <value name="TEXT">
                           <shadow type="text" id="Y8uZc}op,^kGM({`9)iU">
                             <field name="TEXT">test</field>
                           </shadow>
                           <block type="text_join" id="Qliz]JF[[bhCbRPXVR+|">
                             <mutation items="3"></mutation>
                             <value name="ADD0">
                               <block type="text" id="5?_=YWE||me7W!!p;UM6">
                                 <field name="TEXT">Ich war insgesamt </field>
                               </block>
                             </value>
                             <value name="ADD1">
                               <block type="variables_get" id="zpp_cK4]-#PyF)LGJ/LF">
                                 <field name="VAR" id="[voY[W,a!1c!rszK{*#/" variabletype="">Einschaltdauer</field>
                               </block>
                             </value>
                             <value name="ADD2">
                               <block type="text" id="g:c;u/eO6q6E.OB!MN%p">
                                 <field name="TEXT"> Minuten anwesend</field>
                               </block>
                             </value>
                           </block>
                         </value>
                       </block>
                     </next>
                   </block>
                 </statement>
               </block>
             </next>
           </block>
         </statement>
        </block>
        

        M Offline
        M Offline
        Mento
        schrieb am zuletzt editiert von
        #3

        @BBTown der Ansatz ist ok.

        Nur müssten die Zeiten der wechselnden Anwesenheiten über eine Zeitraum von x - y Addiert werden um meinen Wert zu erhalten.

        Hast du evt. den code für mich?

        1 Antwort Letzte Antwort
        0
        • M Mento

          Hallo,
          ich habe ein Objekt welches in einem Zeitraum von 11:45Uhr - 18:15Uhr je nach Bedingungen mal Länger mal kürzer in diesem Zeitraum "An" ist.
          Soweit alles OK.
          2019-07-06 00_01_50-javascript - ioBroker.png

          <xml xmlns="http://www.w3.org/1999/xhtml">
            <block type="on_ext" id="wNNWp~Y_FZe|v#%-dVwx" x="-162" y="-513">
              <mutation items="2"></mutation>
              <field name="CONDITION">ne</field>
              <field name="ACK_CONDITION"></field>
              <value name="OID0">
                <shadow type="field_oid" id="~?t}50$cE*vhNwt/9d{k">
                  <field name="oid">sonoff.0.creationx-1023.DS18B20_Temperature</field>
                </shadow>
              </value>
              <value name="OID1">
                <shadow type="field_oid" id="Hpa0]B73T)Sl=V{evgz2">
                  <field name="oid">fritzdect.0.DECT200_087610178347.temp</field>
                </shadow>
              </value>
              <statement name="STATEMENT">
                <block type="controls_if" id="RtbEZklb).NV+Z98Gef:">
                  <value name="IF0">
                    <block type="time_compare" id="hH9U#G+TH0pk@~BgyC^A">
                      <mutation end_time="true"></mutation>
                      <field name="OPTION">between</field>
                      <field name="START_TIME">11:45</field>
                      <field name="END_TIME">18:15</field>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="controls_if" id="f`]_ZnrJPO+/s2gj8/sr">
                      <mutation elseif="1"></mutation>
                      <value name="IF0">
                        <block type="logic_operation" id="Ay:;6+j:q;d8n/9*)VQC" inline="false">
                          <field name="OP">AND</field>
                          <value name="A">
                            <block type="logic_compare" id="uLfZ.8ij68Im%Zp4D[K^">
                              <field name="OP">GT</field>
                              <value name="A">
                                <block type="get_value" id="0MF^84cfN$rvZt-sMm7V">
                                  <field name="ATTR">val</field>
                                  <field name="OID">sonoff.0.creationx-1023.DS18B20_Temperature</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="math_arithmetic" id="kO*{.nQyNy]#0AQMs^@E">
                                  <field name="OP">ADD</field>
                                  <value name="A">
                                    <shadow type="math_number" id="S-?[ltaJSwGg=L^bp!Mh">
                                      <field name="NUM">1</field>
                                    </shadow>
                                    <block type="get_value" id="fUzf0{W!S.r?tCW2os-8">
                                      <field name="ATTR">val</field>
                                      <field name="OID">fritzdect.0.DECT200_087610178347.temp</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <shadow type="math_number" id="MuGm=)+OJsJ.%A.7J70)">
                                      <field name="NUM">1</field>
                                    </shadow>
                                    <block type="math_number" id="u9EWK?-EMe(imqdeoX54">
                                      <field name="NUM">4</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_compare" id=":bVQVcrIL(YDY32VCsAp">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="Qq4-:mE3r.sA9^D{Luee">
                                  <field name="ATTR">val</field>
                                  <field name="OID">fritzdect.0.DECT200_087610178347.state</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="%C|:bx-oZCzz_A7vqcWK">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="control" id="/-2XhHkBmKey*R%[!n?d">
                          <mutation delay_input="false"></mutation>
                          <field name="OID">fritzdect.0.DECT200_087610178347.state</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="q7t)HORVod)v9]3W}jo2">
                              <field name="BOOL">TRUE</field>
                            </block>
                          </value>
                        </block>
                      </statement>
                      <value name="IF1">
                        <block type="logic_operation" id="Yy~I1gw@#1s|eb*^QU]s" inline="false">
                          <field name="OP">AND</field>
                          <value name="A">
                            <block type="logic_compare" id="gJ(-S([ECw`S;(0i=r+M">
                              <field name="OP">LT</field>
                              <value name="A">
                                <block type="get_value" id=":;OaqB@6DgEvHKMx[Z/=">
                                  <field name="ATTR">val</field>
                                  <field name="OID">sonoff.0.creationx-1023.DS18B20_Temperature</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="math_arithmetic" id="!,vG%j$6J{Ikzg:x~x?U">
                                  <field name="OP">ADD</field>
                                  <value name="A">
                                    <shadow type="math_number" id="S-?[ltaJSwGg=L^bp!Mh">
                                      <field name="NUM">1</field>
                                    </shadow>
                                    <block type="get_value" id="C-xfh:R`9N#Rsvj7?gaz">
                                      <field name="ATTR">val</field>
                                      <field name="OID">fritzdect.0.DECT200_087610178347.temp</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <shadow type="math_number" id="MuGm=)+OJsJ.%A.7J70)">
                                      <field name="NUM">1</field>
                                    </shadow>
                                    <block type="math_number" id="B5/nTLNzT9]2HGKj)k=M">
                                      <field name="NUM">4</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_compare" id="fsEVLCKjDeTnXQO4viQs">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="G2%KCoV,9q)w;P-cWe8F">
                                  <field name="ATTR">val</field>
                                  <field name="OID">fritzdect.0.DECT200_087610178347.state</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="T#4?AUYpx3)^tR)foJe(">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO1">
                        <block type="control" id="gG{^EIio~OS*1nMq(CEu">
                          <mutation delay_input="true"></mutation>
                          <field name="OID">fritzdect.0.DECT200_087610178347.state</field>
                          <field name="WITH_DELAY">TRUE</field>
                          <field name="DELAY_MS">50</field>
                          <field name="UNIT">sec</field>
                          <field name="CLEAR_RUNNING">FALSE</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="C_xtJ}B3Z+oFPE:v?=+w">
                              <field name="BOOL">FALSE</field>
                            </block>
                          </value>
                        </block>
                      </statement>
                    </block>
                  </statement>
                  <next>
                    <block type="controls_if" id="-%l-D?i;KD83Qi8{S#u0">
                      <value name="IF0">
                        <block type="logic_operation" id="Y56yfZwbe-u2O0CTTO,-" inline="false">
                          <field name="OP">AND</field>
                          <value name="A">
                            <block type="time_compare_ex" id="1i9lU97W+J-eLC`CGBNw">
                              <mutation end_time="false" actual_time="true"></mutation>
                              <field name="USE_ACTUAL_TIME">TRUE</field>
                              <field name="OPTION">&gt;</field>
                              <value name="START_TIME">
                                <shadow type="text" id="Eq9Cu/~/=7d(jR!4`3Pm">
                                  <field name="TEXT">18:20</field>
                                </shadow>
                              </value>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_compare" id="dnF}Dk^~5RI+e)g:O1oN">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="-zW/+Lp3:})J^MF;sIMQ">
                                  <field name="ATTR">val</field>
                                  <field name="OID">fritzdect.0.DECT200_087610178347.state</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="^d[x-)l*1:/VIr3=kVyi">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="control" id="Jm3z*dMhXRRf!Our3?ne">
                          <mutation delay_input="true"></mutation>
                          <field name="OID">fritzdect.0.DECT200_087610178347.state</field>
                          <field name="WITH_DELAY">TRUE</field>
                          <field name="DELAY_MS">20</field>
                          <field name="UNIT">sec</field>
                          <field name="CLEAR_RUNNING">FALSE</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="iraX-caBHny?Py:,|Xe{">
                              <field name="BOOL">FALSE</field>
                            </block>
                          </value>
                        </block>
                      </statement>
                    </block>
                  </next>
                </block>
              </statement>
            </block>
          </xml>
          
          

          Nun möchte ich gerne noch wissen, wie Lange war das Objekt Switch on/off in diesem Zeitraum gesamt "an"?
          Mir fehlt die Idee wie ich das hier einbauen könnte, bzw. berechnet werden kann.🙄

          Wenn dieser Wert dann unter zb. unter 60 Minuten war, würde ich den Switch dann später nochmal für eine Fixen Wert von zb, 90 Minuten "An" schalten.

          paul53P Offline
          paul53P Offline
          paul53
          schrieb am zuletzt editiert von paul53
          #4

          @Mento sagte:

          wie Lange war das Objekt Switch on/off in diesem Zeitraum gesamt "an"?

          Die Variable ed enthält die Einschaltdauer in Minuten. Falls um 18:15 Uhr eingeschaltet ist, wird ausgeschaltet.

          Blockly_temp.JPG

          Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
          Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

          M 1 Antwort Letzte Antwort
          1
          • paul53P paul53

            @Mento sagte:

            wie Lange war das Objekt Switch on/off in diesem Zeitraum gesamt "an"?

            Die Variable ed enthält die Einschaltdauer in Minuten. Falls um 18:15 Uhr eingeschaltet ist, wird ausgeschaltet.

            Blockly_temp.JPG

            M Offline
            M Offline
            Mento
            schrieb am zuletzt editiert von
            #5

            @paul53 Danke das sieht für mich Anwendbar aus.
            Könntest du mir den code zur Verfügung stellen?
            Ich tu mich da ein wenig schwer ein teil der Blockys so nach zu bauen.

            paul53P 1 Antwort Letzte Antwort
            0
            • M Mento

              @paul53 Danke das sieht für mich Anwendbar aus.
              Könntest du mir den code zur Verfügung stellen?
              Ich tu mich da ein wenig schwer ein teil der Blockys so nach zu bauen.

              paul53P Offline
              paul53P Offline
              paul53
              schrieb am zuletzt editiert von
              #6

              @Mento sagte:

              Könntest du mir den code zur Verfügung stellen?

              <xml xmlns="http://www.w3.org/1999/xhtml">
                <variables>
                  <variable type="" id="E`qm`o|L-sO)k*04AxaC">ed</variable>
                </variables>
                <block type="on_ext" id="wNNWp~Y_FZe|v#%-dVwx" x="-162" y="-513">
                  <mutation items="2"></mutation>
                  <field name="CONDITION">ne</field>
                  <field name="ACK_CONDITION"></field>
                  <value name="OID0">
                    <shadow type="field_oid" id="~?t}50$cE*vhNwt/9d{k">
                      <field name="oid">sonoff.0.creationx-1023.DS18B20_Temperature</field>
                    </shadow>
                  </value>
                  <value name="OID1">
                    <shadow type="field_oid" id="Hpa0]B73T)Sl=V{evgz2">
                      <field name="oid">fritzdect.0.DECT200_087610178347.temp</field>
                    </shadow>
                  </value>
                  <statement name="STATEMENT">
                    <block type="controls_if" id="RtbEZklb).NV+Z98Gef:">
                      <value name="IF0">
                        <block type="time_compare" id="hH9U#G+TH0pk@~BgyC^A">
                          <mutation end_time="true"></mutation>
                          <field name="OPTION">between</field>
                          <field name="START_TIME">11:45</field>
                          <field name="END_TIME">18:15</field>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="controls_if" id="f`]_ZnrJPO+/s2gj8/sr">
                          <mutation elseif="1"></mutation>
                          <value name="IF0">
                            <block type="logic_operation" id="Ay:;6+j:q;d8n/9*)VQC" inline="false">
                              <field name="OP">AND</field>
                              <value name="A">
                                <block type="logic_compare" id="uLfZ.8ij68Im%Zp4D[K^">
                                  <field name="OP">GT</field>
                                  <value name="A">
                                    <block type="get_value" id="0MF^84cfN$rvZt-sMm7V">
                                      <field name="ATTR">val</field>
                                      <field name="OID">sonoff.0.creationx-1023.DS18B20_Temperature</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="math_arithmetic" id="kO*{.nQyNy]#0AQMs^@E">
                                      <field name="OP">ADD</field>
                                      <value name="A">
                                        <shadow type="math_number" id="S-?[ltaJSwGg=L^bp!Mh">
                                          <field name="NUM">1</field>
                                        </shadow>
                                        <block type="get_value" id="fUzf0{W!S.r?tCW2os-8">
                                          <field name="ATTR">val</field>
                                          <field name="OID">fritzdect.0.DECT200_087610178347.temp</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <shadow type="math_number" id="MuGm=)+OJsJ.%A.7J70)">
                                          <field name="NUM">1</field>
                                        </shadow>
                                        <block type="math_number" id="u9EWK?-EMe(imqdeoX54">
                                          <field name="NUM">4</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_compare" id=":bVQVcrIL(YDY32VCsAp">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                    <block type="get_value" id="Qq4-:mE3r.sA9^D{Luee">
                                      <field name="ATTR">val</field>
                                      <field name="OID">fritzdect.0.DECT200_087610178347.state</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_boolean" id="%C|:bx-oZCzz_A7vqcWK">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="control" id="/-2XhHkBmKey*R%[!n?d">
                              <mutation delay_input="false"></mutation>
                              <field name="OID">fritzdect.0.DECT200_087610178347.state</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="q7t)HORVod)v9]3W}jo2">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                            </block>
                          </statement>
                          <value name="IF1">
                            <block type="logic_operation" id="Yy~I1gw@#1s|eb*^QU]s" inline="false">
                              <field name="OP">AND</field>
                              <value name="A">
                                <block type="logic_compare" id="gJ(-S([ECw`S;(0i=r+M">
                                  <field name="OP">LT</field>
                                  <value name="A">
                                    <block type="get_value" id=":;OaqB@6DgEvHKMx[Z/=">
                                      <field name="ATTR">val</field>
                                      <field name="OID">sonoff.0.creationx-1023.DS18B20_Temperature</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="math_arithmetic" id="!,vG%j$6J{Ikzg:x~x?U">
                                      <field name="OP">ADD</field>
                                      <value name="A">
                                        <shadow type="math_number" id="S-?[ltaJSwGg=L^bp!Mh">
                                          <field name="NUM">1</field>
                                        </shadow>
                                        <block type="get_value" id="C-xfh:R`9N#Rsvj7?gaz">
                                          <field name="ATTR">val</field>
                                          <field name="OID">fritzdect.0.DECT200_087610178347.temp</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <shadow type="math_number" id="MuGm=)+OJsJ.%A.7J70)">
                                          <field name="NUM">1</field>
                                        </shadow>
                                        <block type="math_number" id="B5/nTLNzT9]2HGKj)k=M">
                                          <field name="NUM">4</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_compare" id="fsEVLCKjDeTnXQO4viQs">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                    <block type="get_value" id="G2%KCoV,9q)w;P-cWe8F">
                                      <field name="ATTR">val</field>
                                      <field name="OID">fritzdect.0.DECT200_087610178347.state</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_boolean" id="T#4?AUYpx3)^tR)foJe(">
                                      <field name="BOOL">TRUE</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO1">
                            <block type="control" id="gG{^EIio~OS*1nMq(CEu">
                              <mutation delay_input="true"></mutation>
                              <field name="OID">fritzdect.0.DECT200_087610178347.state</field>
                              <field name="WITH_DELAY">TRUE</field>
                              <field name="DELAY_MS">50</field>
                              <field name="UNIT">sec</field>
                              <field name="CLEAR_RUNNING">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="C_xtJ}B3Z+oFPE:v?=+w">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                            </block>
                          </statement>
                        </block>
                      </statement>
                      <next>
                        <block type="controls_if" id="-%l-D?i;KD83Qi8{S#u0">
                          <value name="IF0">
                            <block type="logic_operation" id="Y56yfZwbe-u2O0CTTO,-" inline="false">
                              <field name="OP">AND</field>
                              <value name="A">
                                <block type="time_compare_ex" id="1i9lU97W+J-eLC`CGBNw">
                                  <mutation end_time="false" actual_time="true"></mutation>
                                  <field name="USE_ACTUAL_TIME">TRUE</field>
                                  <field name="OPTION">&gt;</field>
                                  <value name="START_TIME">
                                    <shadow type="text" id="Eq9Cu/~/=7d(jR!4`3Pm">
                                      <field name="TEXT">18:20</field>
                                    </shadow>
                                  </value>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_compare" id="dnF}Dk^~5RI+e)g:O1oN">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                    <block type="get_value" id="-zW/+Lp3:})J^MF;sIMQ">
                                      <field name="ATTR">val</field>
                                      <field name="OID">fritzdect.0.DECT200_087610178347.state</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_boolean" id="^d[x-)l*1:/VIr3=kVyi">
                                      <field name="BOOL">TRUE</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="control" id="Jm3z*dMhXRRf!Our3?ne">
                              <mutation delay_input="true"></mutation>
                              <field name="OID">fritzdect.0.DECT200_087610178347.state</field>
                              <field name="WITH_DELAY">TRUE</field>
                              <field name="DELAY_MS">20</field>
                              <field name="UNIT">sec</field>
                              <field name="CLEAR_RUNNING">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="iraX-caBHny?Py:,|Xe{">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                            </block>
                          </statement>
                        </block>
                      </next>
                    </block>
                  </statement>
                  <next>
                    <block type="on_ext" id="(;}k#gj(B8O%:y(8J{,Q">
                      <mutation items="1"></mutation>
                      <field name="CONDITION">ne</field>
                      <field name="ACK_CONDITION"></field>
                      <value name="OID0">
                        <shadow type="field_oid" id="`5[f^5v.jLycf`Os(xgo">
                          <field name="oid">default</field>
                        </shadow>
                        <block type="text" id="OU}@/_}#NA1MbjgW;?WI">
                          <field name="TEXT">fritzdect.0.DECT200_087610178347.state</field>
                        </block>
                      </value>
                      <statement name="STATEMENT">
                        <block type="controls_if" id="uUk?IXEtvd9ElEd.$0SH">
                          <value name="IF0">
                            <block type="logic_negate" id="k;:UHp9Z.mOi;izEzD+;">
                              <value name="BOOL">
                                <block type="on_source" id="UoXrzFXQ+Sr`_uYi6hY/">
                                  <field name="ATTR">state.val</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="math_change" id="9J3]oUsMBpmy:5SfkMw7">
                              <field name="VAR" id="E`qm`o|L-sO)k*04AxaC" variabletype="">ed</field>
                              <value name="DELTA">
                                <shadow type="math_number" id="X6Z{c![3aM!ITT0Avf{C">
                                  <field name="NUM">1</field>
                                </shadow>
                                <block type="math_arithmetic" id="xAfgjF{W$2Zp@.qr`0d)" inline="false">
                                  <field name="OP">DIVIDE</field>
                                  <value name="A">
                                    <shadow type="math_number" id="NqW1c)DE0+{w#SXlc~Fx">
                                      <field name="NUM">1</field>
                                    </shadow>
                                    <block type="math_arithmetic" id="Qo)5)#AinD,NK__B?KkO" inline="false">
                                      <field name="OP">MINUS</field>
                                      <value name="A">
                                        <shadow type="math_number" id="2p!3#Py6}f]gNQ!:)Qbs">
                                          <field name="NUM">1</field>
                                        </shadow>
                                        <block type="on_source" id="u(]b1pUwq=|#K1CPsVkT">
                                          <field name="ATTR">state.lc</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <shadow type="math_number" id="+E[ka_P9UbE;!;Ok5PSr">
                                          <field name="NUM">1</field>
                                        </shadow>
                                        <block type="on_source" id="Hi=n~,8B+M|TF[O[--$j">
                                          <field name="ATTR">oldState.lc</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <shadow type="math_number" id="G`#C*jQB4@M-%w,1f*{p">
                                      <field name="NUM">1</field>
                                    </shadow>
                                    <block type="math_number" id="T|.d0,3qdrH8boq[-?Z`">
                                      <field name="NUM">60000</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </statement>
                        </block>
                      </statement>
                      <next>
                        <block type="schedule" id="XN~GXwqSPWyk}H~l~K)Z">
                          <field name="SCHEDULE">15 18 * * *</field>
                          <statement name="STATEMENT">
                            <block type="controls_if" id="$6jH0BuAb(6@ztv)`f=+">
                              <value name="IF0">
                                <block type="get_value_var" id=".8go/3x}.@2hhCX}WSa|">
                                  <field name="ATTR">val</field>
                                  <value name="OID">
                                    <shadow type="text" id="zW.J?}rJ;*,d0X(H!!AX">
                                      <field name="TEXT">fritzdect.0.DECT200_087610178347.state</field>
                                    </shadow>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="control" id="EZn@l+8n~g73=sP-6yMz">
                                  <mutation delay_input="false"></mutation>
                                  <field name="OID">Object ID</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="logic_boolean" id="k7,uN26l^YJk*x3mLWo]">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                </block>
                              </statement>
                            </block>
                          </statement>
                          <next>
                            <block type="schedule" id="Kob;^Bz=rn6.aWoG=`([">
                              <field name="SCHEDULE">45 11 * * *</field>
                              <statement name="STATEMENT">
                                <block type="variables_set" id="Z#Q6h3XIg/#s!q9J5T?O">
                                  <field name="VAR" id="E`qm`o|L-sO)k*04AxaC" variabletype="">ed</field>
                                  <value name="VALUE">
                                    <block type="math_number" id="ULCi/5qJtJ=cV_EM^yK=">
                                      <field name="NUM">0</field>
                                    </block>
                                  </value>
                                </block>
                              </statement>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </xml>
              

              Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
              Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

              1 Antwort Letzte Antwort
              0

              Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.

              Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.

              Mit deinem Input könnte dieser Beitrag noch besser werden 💗

              Registrieren Anmelden
              Antworten
              • In einem neuen Thema antworten
              Anmelden zum Antworten
              • Älteste zuerst
              • Neuste zuerst
              • Meiste Stimmen


              Support us

              ioBroker
              Community Adapters
              Donate

              471

              Online

              32.8k

              Benutzer

              82.8k

              Themen

              1.3m

              Beiträge
              Community
              Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
              ioBroker Community 2014-2025
              logo
              • Anmelden

              • Du hast noch kein Konto? Registrieren

              • Anmelden oder registrieren, um zu suchen
              • Erster Beitrag
                Letzter Beitrag
              0
              • Home
              • Aktuell
              • Tags
              • Ungelesen 0
              • Kategorien
              • Unreplied
              • Beliebt
              • GitHub
              • Docu
              • Hilfe