<xml xmlns="https://developers.google.com/blockly/xml">
  <variables>
    <variable id="`J:yxl|pwa1-z)3RkGte">datum</variable>
    <variable id="vnxy-zAYQ!WmR=`GMR{K">txt</variable>
    <variable id=")9+q}i8,EkRfK%y8?m$p">SmartPlugBad</variable>
    <variable id="KD:P[N/_4z@jQ6}[4|~Y">HzgBadButtonAktiviert</variable>
    <variable id="`G/{R4tGviqeZfGp{,EE">HzgBadPVAktiviert</variable>
    <variable id="c+L0@dN#McAd[SM]2%59">Timer</variable>
  </variables>
  <block type="procedures_defcustomnoreturn" id=",7b2k?=i4GwomzlyopI}" x="-113" y="-263">
    <mutation statements="false">
      <arg name="datum" varid="`J:yxl|pwa1-z)3RkGte"></arg>
      <arg name="txt" varid="vnxy-zAYQ!WmR=`GMR{K"></arg>
    </mutation>
    <field name="NAME">Logfile</field>
    <field name="SCRIPT">cmVxdWlyZSgnZnMnKS5hcHBlbmRGaWxlU3luYygnL29wdC9pb2Jyb2tlci9sb2cvJyArIGRhdHVtICsgJyAtIHNtYXJ0cGx1Z19iYWRoemcubG9nJywgZm9ybWF0RGF0ZShuZXcgRGF0ZSgpLCAiaGg6bW06c3MiKSArICIgXHQiICsgdHh0ICsgIlxuIik7</field>
    <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
  </block>
  <block type="comment" id="z=dwW7Z^I0)*hUWc$k!f" x="-113" y="-212">
    <field name="COMMENT">INIT--------------</field>
    <next>
      <block type="create" id="7Gf_Q8NN|bW1T3agv:sj">
        <field name="NAME">0_userdata.0.SmartPlugs_BadHzg.SmarPlugBad_HzgBad</field>
        <value name="VALUE">
          <block type="logic_boolean" id="+ABL;uy{pNb(E|1)o5th">
            <field name="BOOL">TRUE</field>
          </block>
        </value>
        <value name="COMMON">
          <block type="text" id="Xcka@/|Q/tc|Xcv+Yr*l">
            <field name="TEXT">{"name": "SmartPlugBad_HzgBad","role": "","type": "boolean","desc": "Blockly erzeugt","read": true,"write": true,"def": false}</field>
          </block>
        </value>
        <next>
          <block type="create" id="LFCHOn_*3wer@,9HVZP/">
            <field name="NAME">0_userdata.0.SmartPlugs_BadHzg.SmartPlugBad_Timeout</field>
            <value name="VALUE">
              <block type="math_number" id="qTkixDa^L=Dh+RtHO,gY">
                <field name="NUM">0</field>
              </block>
            </value>
            <value name="COMMON">
              <block type="text" id="n1EtZK~#Blev)V^Pr$,6">
                <field name="TEXT">{"name": "SmartPlugBad_Timeout","role": "","type": "number","desc": "Blockly erzeugt","unit": "s","min": 0,"max": 10000,"def": 0,"read": true,"write": true}</field>
              </block>
            </value>
            <next>
              <block type="create" id="jS;%ECS+Irk^DEw~Gl)A">
                <field name="NAME">0_userdata.0.SmartPlugs_BadHzg.SmartPlugBad_Timer_Aktiv</field>
                <value name="VALUE">
                  <block type="math_number" id=".sV2MFTO|fA/bTk6,Ra^">
                    <field name="NUM">0</field>
                  </block>
                </value>
                <value name="COMMON">
                  <block type="text" id="kmO~[QL82{)MBaKZtRuM">
                    <field name="TEXT">{"name": "SmartPlugBad_Timer_Aktiv","role": "","type": "number","desc": "Blockly erzeugt","unit": "min","min": 0,"max": 10000,"def": 0,"read": true,"write": true}</field>
                  </block>
                </value>
                <next>
                  <block type="create" id="Zn:ax4)iNxYm:EK.Ki7j">
                    <field name="NAME">0_userdata.0.SmartPlugs_BadHzg.SmartPlugBad_Timer_Inaktiv</field>
                    <value name="VALUE">
                      <block type="math_number" id="h^ht`BVG-vuaUWS0B)J{">
                        <field name="NUM">0</field>
                      </block>
                    </value>
                    <value name="COMMON">
                      <block type="text" id="YQq{jpJ.%h8OFz)4$pHg">
                        <field name="TEXT">{"name": "SmartPlugBad_Timer_Inaktiv","role": "","type": "number","desc": "Blockly erzeugt","unit": "min","min": 0,"max": 10000,"def": 0,"read": true,"write": true}</field>
                      </block>
                    </value>
                    <next>
                      <block type="create" id="~fT6*`8?0zAwN]kmIQs.">
                        <field name="NAME">0_userdata.0.SmartPlugs_BadHzg.SmarPlugBad_Debug</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="].`]ZHV_Ei_`MwQmc*@q">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                        <value name="COMMON">
                          <block type="text" id="A,O+@Y#;-]x(lxrZdqs5">
                            <field name="TEXT">{"name": "SmartPlugBad_Debug","role": "","type": "boolean","desc": "Blockly erzeugt","read": true,"write": true,"def": false}</field>
                          </block>
                        </value>
                        <next>
                          <block type="comment" id="ue#:70|~$/^fglI#!6G1">
                            <field name="COMMENT">VIS</field>
                            <next>
                              <block type="create" id="(.]JhV(RH_EKyooOM~HL">
                                <field name="NAME">0_userdata.0.SmartPlugs_BadHzg.SmartPlugBad_Timer_Start_VIS</field>
                                <value name="VALUE">
                                  <block type="math_number" id="2Mg|Mx#j,m`Fx$;p;N6`">
                                    <field name="NUM">60</field>
                                  </block>
                                </value>
                                <value name="COMMON">
                                  <block type="text" id="mOyW0Mas0YA*vRYzDf^O">
                                    <field name="TEXT">{"name": "SmartPlugBad_Timer_Start_VIS","role": "","type": "number","desc": "Blockly erzeugt","unit": "min","min": 0,"max": 10000,"def": 0,"read": true,"write": true}</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="create" id="Y?8qvIl+{d5)pKnSC[uQ">
                                    <field name="NAME">0_userdata.0.SmartPlugs_BadHzg.SmartPlugBad_Timer_Aktiv_VIS</field>
                                    <value name="VALUE">
                                      <block type="math_number" id="phw0ON4Fkd/~N2e9B4](">
                                        <field name="NUM">10</field>
                                      </block>
                                    </value>
                                    <value name="COMMON">
                                      <block type="text" id="KmbWS.kLGAE.Bs-d2aN(">
                                        <field name="TEXT">{"name": "SmartPlugBad_Timer_Aktiv_VIS","role": "","type": "number","desc": "Blockly erzeugt","unit": "min","min": 0,"max": 10000,"def": 0,"read": true,"write": true}</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="create" id="3r;M9}7.do7(5tdDU^un">
                                        <field name="NAME">0_userdata.0.SmartPlugs_BadHzg.SmartPlugBad_Timer_Inaktiv_VIS</field>
                                        <value name="VALUE">
                                          <block type="math_number" id="0sUq5tc__WrmB,L!CRfR">
                                            <field name="NUM">10</field>
                                          </block>
                                        </value>
                                        <value name="COMMON">
                                          <block type="text" id="AdmmF=9braEmM4u8+/}h">
                                            <field name="TEXT">{"name": "SmartPlugBad_Timer_Inaktiv_VIS","role": "","type": "number","desc": "Blockly erzeugt","unit": "min","min": 0,"max": 10000,"def": 0,"read": true,"write": true}</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="variables_set" id="Tk#z6D5K3%vW_GU@L*p.">
                                            <field name="VAR" id="`G/{R4tGviqeZfGp{,EE">HzgBadPVAktiviert</field>
                                            <value name="VALUE">
                                              <block type="logic_boolean" id="Lt@V,t]tf{FO7EWo)gcm">
                                                <field name="BOOL">FALSE</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="variables_set" id="ZG~Vk3y;L=0{b/n@$Z$P">
                                                <field name="VAR" id="KD:P[N/_4z@jQ6}[4|~Y">HzgBadButtonAktiviert</field>
                                                <value name="VALUE">
                                                  <block type="logic_boolean" id="5(W=[1-XM3ohy_#TA~?|">
                                                    <field name="BOOL">FALSE</field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="variables_set" id="eECP=9``:52+4/HS26GF">
                                                    <field name="VAR" id=")9+q}i8,EkRfK%y8?m$p">SmartPlugBad</field>
                                                    <value name="VALUE">
                                                      <block type="logic_boolean" id="I?y]PiJ$4U.T%}8/a+j+">
                                                        <field name="BOOL">FALSE</field>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="variables_set" id="o|p[u#GIVOHOMboy7]dm">
                                                        <field name="VAR" id="c+L0@dN#McAd[SM]2%59">Timer</field>
                                                        <value name="VALUE">
                                                          <block type="math_number" id="7Xar{SQDpqDb9fZ5@8-]">
                                                            <field name="NUM">0</field>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="schedule" id="hM1N5!Z6,.@n_1lC=s{T">
                                                            <field name="SCHEDULE">{"time":{"exactTime":true,"start":"00:00"},"period":{"days":1}}</field>
                                                            <statement name="STATEMENT">
                                                              <block type="update" id="i=+(PzcdQ3d2Yi$`F_aN">
                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                <field name="OID">0_userdata.0.SmartPlugs_BadHzg.SmartPlugBad_Timer_Aktiv</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="math_number" id="_7?,sP|h^SzHo)Klm2Y[">
                                                                    <field name="NUM">0</field>
                                                                  </block>
                                                                </value>
                                                                <next>
                                                                  <block type="update" id="6mo%BeGUAyV1}wbB-r`e">
                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                    <field name="OID">0_userdata.0.SmartPlugs_BadHzg.SmartPlugBad_Timer_Inaktiv</field>
                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                    <value name="VALUE">
                                                                      <block type="math_number" id="R^7Je;rvTvdO_#gCcU^.">
                                                                        <field name="NUM">0</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </statement>
                                                            <next>
                                                              <block type="comment" id="#c[Hx8(1vY$]fi+IZNjc">
                                                                <field name="COMMENT">Überwachung ---------------------</field>
                                                                <next>
                                                                  <block type="schedule" id="~u(rY-KwJjS!?GU`J1G7">
                                                                    <field name="SCHEDULE">*/5 * * * * *</field>
                                                                    <statement name="STATEMENT">
                                                                      <block type="controls_if" id="-;RD+J/PHKOhgQ3U^O0e">
                                                                        <value name="IF0">
                                                                          <block type="logic_compare" id="P[CgK8H$UokBqXaaVzq@">
                                                                            <field name="OP">EQ</field>
                                                                            <value name="A">
                                                                              <block type="get_value" id="n(.5E`cN@f2*Nvw5/78|">
                                                                                <field name="ATTR">val</field>
                                                                                <field name="OID">0_userdata.0.AMIS.Grid_Überwachung</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="B">
                                                                              <block type="logic_boolean" id="F_4!QIHpkl.Ry5eaU=kT">
                                                                                <field name="BOOL">TRUE</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                        <statement name="DO0">
                                                                          <block type="update" id="Vpij9v/a?dTh/1WfP$kw">
                                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                            <field name="OID">fritzdect.0.DECT_116300118701.state</field>
                                                                            <field name="WITH_DELAY">FALSE</field>
                                                                            <value name="VALUE">
                                                                              <block type="logic_boolean" id="*H-%,[CSJSLBcF|ZV3fo">
                                                                                <field name="BOOL">FALSE</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </statement>
                                                                        <next>
                                                                          <block type="controls_if" id="k9AJ8C/p;74U8o-F~`d`">
                                                                            <value name="IF0">
                                                                              <block type="logic_compare" id="(CUyJ-?*bOCU1sarEl_+">
                                                                                <field name="OP">EQ</field>
                                                                                <value name="A">
                                                                                  <block type="get_value" id="!oJWk1LO.!OaF4@|AM7*">
                                                                                    <field name="ATTR">val</field>
                                                                                    <field name="OID">0_userdata.0.AMIS.PVÜberschuss</field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="B">
                                                                                  <block type="math_number" id="o]*1.%[FbQp%_t=Tf)JW">
                                                                                    <field name="NUM">0</field>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </value>
                                                                            <statement name="DO0">
                                                                              <block type="controls_if" id="fV/y/5RuLS_6Bh5g.c}Z">
                                                                                <value name="IF0">
                                                                                  <block type="logic_operation" id="ncZ,q8#XL#U_u)s=IO!p" inline="false">
                                                                                    <field name="OP">AND</field>
                                                                                    <value name="A">
                                                                                      <block type="logic_compare" id="c)R*M]Xlx$E`~B8bnEOR">
                                                                                        <field name="OP">EQ</field>
                                                                                        <value name="A">
                                                                                          <block type="get_value" id="yc;X/NkF!fu;YU?dW=q;">
                                                                                            <field name="ATTR">val</field>
                                                                                            <field name="OID">fritzdect.0.DECT_116300118701.state</field>
                                                                                          </block>
                                                                                        </value>
                                                                                        <value name="B">
                                                                                          <block type="logic_boolean" id="!g^(j2[$V(-]xs!y[j7+">
                                                                                            <field name="BOOL">TRUE</field>
                                                                                          </block>
                                                                                        </value>
                                                                                      </block>
                                                                                    </value>
                                                                                    <value name="B">
                                                                                      <block type="logic_negate" id="!sJ8~xR@Q8Q]{Fq[in(8">
                                                                                        <value name="BOOL">
                                                                                          <block type="variables_get" id="y(r}C5a$c,NWMFKphy#-">
                                                                                            <field name="VAR" id="KD:P[N/_4z@jQ6}[4|~Y">HzgBadButtonAktiviert</field>
                                                                                          </block>
                                                                                        </value>
                                                                                      </block>
                                                                                    </value>
                                                                                  </block>
                                                                                </value>
                                                                                <statement name="DO0">
                                                                                  <block type="update" id="edj_,zKCSdfI8i6Nx=~~">
                                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                    <field name="OID">fritzdect.0.DECT_116300118701.state</field>
                                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                                    <value name="VALUE">
                                                                                      <block type="logic_boolean" id="o6tnD`fwk-?J.HTAQjga">
                                                                                        <field name="BOOL">FALSE</field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <next>
                                                                                      <block type="debug" id="G%P53t+EMG-*4Av;.w+e">
                                                                                        <field name="Severity">debug</field>
                                                                                        <value name="TEXT">
                                                                                          <shadow type="text" id="64::X?N8N;/02dc4Ie00">
                                                                                            <field name="TEXT">Hzg Bad musste abgedreht werden</field>
                                                                                          </shadow>
                                                                                        </value>
                                                                                        <next>
                                                                                          <block type="procedures_callcustomnoreturn" id="oKZ34.;B|Kc9)ZH}vQ3_">
                                                                                            <mutation name="Logfile">
                                                                                              <arg name="datum"></arg>
                                                                                              <arg name="txt"></arg>
                                                                                            </mutation>
                                                                                            <value name="ARG0">
                                                                                              <block type="time_get" id="`I0Be0SJqL+q9/nqU[nl">
                                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                                                <field name="OPTION">YYYY.MM.DD</field>
                                                                                              </block>
                                                                                            </value>
                                                                                            <value name="ARG1">
                                                                                              <block type="text_join" id="119x_]8`8U92*^,m*(V`">
                                                                                                <mutation items="2"></mutation>
                                                                                                <value name="ADD0">
                                                                                                  <block type="text" id="(ci;g=?!7!:H}.u6HAVL">
                                                                                                    <field name="TEXT">Hzg Bad musste abgedreht werden. PV-Überschuss (W): </field>
                                                                                                  </block>
                                                                                                </value>
                                                                                                <value name="ADD1">
                                                                                                  <block type="convert_tostring" id="PeAKn@mB2!pHC]c`{X3S">
                                                                                                    <value name="VALUE">
                                                                                                      <block type="get_value" id="F@YD4Sch!TmJCAW_@-UE">
                                                                                                        <field name="ATTR">val</field>
                                                                                                        <field name="OID">0_userdata.0.AMIS.PVÜberschuss</field>
                                                                                                      </block>
                                                                                                    </value>
                                                                                                  </block>
                                                                                                </value>
                                                                                              </block>
                                                                                            </value>
                                                                                          </block>
                                                                                        </next>
                                                                                      </block>
                                                                                    </next>
                                                                                  </block>
                                                                                </statement>
                                                                              </block>
                                                                            </statement>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </statement>
                                                                    <next>
                                                                      <block type="comment" id="#|^ZIKG]k@PRVAr6ed)G">
                                                                        <field name="COMMENT">Timeouts</field>
                                                                        <next>
                                                                          <block type="schedule" id="|E2gXAO4%D;fNKEifl%F">
                                                                            <field name="SCHEDULE">* * * * * *</field>
                                                                            <statement name="STATEMENT">
                                                                              <block type="control" id=":Bk`dM0E*D[aP1.,k-JA">
                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                <field name="OID">0_userdata.0.SmartPlugs_BadHzg.SmartPlugBad_Timeout</field>
                                                                                <field name="WITH_DELAY">FALSE</field>
                                                                                <value name="VALUE">
                                                                                  <block type="math_constrain" id="L(Wuu6$2$eWnfRN`h}B-" inline="false">
                                                                                    <value name="VALUE">
                                                                                      <shadow type="math_number">
                                                                                        <field name="NUM">50</field>
                                                                                      </shadow>
                                                                                      <block type="math_arithmetic" id="P_3B.G9anu?]5/Y$Tmj`" inline="false">
                                                                                        <field name="OP">MINUS</field>
                                                                                        <value name="A">
                                                                                          <shadow type="math_number">
                                                                                            <field name="NUM">1</field>
                                                                                          </shadow>
                                                                                          <block type="get_value" id="^K22F9:9ne|F#}m$(1tw">
                                                                                            <field name="ATTR">val</field>
                                                                                            <field name="OID">0_userdata.0.SmartPlugs_BadHzg.SmartPlugBad_Timeout</field>
                                                                                          </block>
                                                                                        </value>
                                                                                        <value name="B">
                                                                                          <shadow type="math_number" id="uQy/E]77=fp-I/*zgmm9">
                                                                                            <field name="NUM">1</field>
                                                                                          </shadow>
                                                                                        </value>
                                                                                      </block>
                                                                                    </value>
                                                                                    <value name="LOW">
                                                                                      <shadow type="math_number" id="d}AX|o({rD*qp^=Yhb[h">
                                                                                        <field name="NUM">0</field>
                                                                                      </shadow>
                                                                                    </value>
                                                                                    <value name="HIGH">
                                                                                      <shadow type="math_number" id=":Pcxpp^rJWI.X4ocXEF,">
                                                                                        <field name="NUM">1000</field>
                                                                                      </shadow>
                                                                                    </value>
                                                                                  </block>
                                                                                </value>
                                                                                <next>
                                                                                  <block type="math_change" id="bnD89gzLGc{z8VIY+m(4">
                                                                                    <field name="VAR" id="c+L0@dN#McAd[SM]2%59">Timer</field>
                                                                                    <value name="DELTA">
                                                                                      <shadow type="math_number" id="H8cxHa7u[HWI.a|]YeJH">
                                                                                        <field name="NUM">1</field>
                                                                                      </shadow>
                                                                                    </value>
                                                                                    <next>
                                                                                      <block type="controls_if" id="L0ztp)Lr+F_Fau2.Uav@">
                                                                                        <value name="IF0">
                                                                                          <block type="logic_compare" id="rQ7~D!f,JC;C/gW6j%/`">
                                                                                            <field name="OP">EQ</field>
                                                                                            <value name="A">
                                                                                              <block type="variables_get" id="7g.ZM2/?0va[~S9Vi{6n">
                                                                                                <field name="VAR" id="c+L0@dN#McAd[SM]2%59">Timer</field>
                                                                                              </block>
                                                                                            </value>
                                                                                            <value name="B">
                                                                                              <block type="math_number" id="xJo_!8clKTkmmv71@@+:">
                                                                                                <field name="NUM">60</field>
                                                                                              </block>
                                                                                            </value>
                                                                                          </block>
                                                                                        </value>
                                                                                        <statement name="DO0">
                                                                                          <block type="controls_if" id="*UE`kjgNXZAdSaEfHoeE">
                                                                                            <mutation else="1"></mutation>
                                                                                            <value name="IF0">
                                                                                              <block type="get_value" id="Fr}nchcq^HKd110ct}Th">
                                                                                                <field name="ATTR">val</field>
                                                                                                <field name="OID">fritzdect.0.DECT_116300118701.state</field>
                                                                                              </block>
                                                                                            </value>
                                                                                            <statement name="DO0">
                                                                                              <block type="update" id="RQiE:9OE6eBT1hC{JMyN">
                                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                <field name="OID">0_userdata.0.SmartPlugs_BadHzg.SmartPlugBad_Timer_Inaktiv</field>
                                                                                                <field name="WITH_DELAY">FALSE</field>
                                                                                                <value name="VALUE">
                                                                                                  <block type="math_number" id="@}zJ}f[!c`/a-?Vv)gq{">
                                                                                                    <field name="NUM">0</field>
                                                                                                  </block>
                                                                                                </value>
                                                                                                <next>
                                                                                                  <block type="control" id="X,s038)LG0?Pe6%@E=h|">
                                                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                    <field name="OID">0_userdata.0.SmartPlugs_BadHzg.SmartPlugBad_Timer_Aktiv</field>
                                                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                                                    <value name="VALUE">
                                                                                                      <block type="math_constrain" id="_qU%_}8}vu?4b~6s4J*-" inline="false">
                                                                                                        <value name="VALUE">
                                                                                                          <shadow type="math_number">
                                                                                                            <field name="NUM">50</field>
                                                                                                          </shadow>
                                                                                                          <block type="math_arithmetic" id="V#*;R_x.3eAn*4N9UK=r" inline="false">
                                                                                                            <field name="OP">ADD</field>
                                                                                                            <value name="A">
                                                                                                              <shadow type="math_number">
                                                                                                                <field name="NUM">1</field>
                                                                                                              </shadow>
                                                                                                              <block type="get_value" id="j]^-W!q=(Di#cMc:Ud4l">
                                                                                                                <field name="ATTR">val</field>
                                                                                                                <field name="OID">0_userdata.0.SmartPlugs_BadHzg.SmartPlugBad_Timer_Aktiv</field>
                                                                                                              </block>
                                                                                                            </value>
                                                                                                            <value name="B">
                                                                                                              <shadow type="math_number" id="0y(BG/o=.%)%NrUoyF3^">
                                                                                                                <field name="NUM">1</field>
                                                                                                              </shadow>
                                                                                                            </value>
                                                                                                          </block>
                                                                                                        </value>
                                                                                                        <value name="LOW">
                                                                                                          <shadow type="math_number" id="Et-cdl:9~h9+l0(kBk4N">
                                                                                                            <field name="NUM">0</field>
                                                                                                          </shadow>
                                                                                                        </value>
                                                                                                        <value name="HIGH">
                                                                                                          <shadow type="math_number" id="bMihx986_9bw5/f]P28g">
                                                                                                            <field name="NUM">10000</field>
                                                                                                          </shadow>
                                                                                                        </value>
                                                                                                      </block>
                                                                                                    </value>
                                                                                                  </block>
                                                                                                </next>
                                                                                              </block>
                                                                                            </statement>
                                                                                            <statement name="ELSE">
                                                                                              <block type="control" id="{bp-j~ZicT%DO:NC[%[x">
                                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                <field name="OID">0_userdata.0.SmartPlugs_BadHzg.SmartPlugBad_Timer_Inaktiv</field>
                                                                                                <field name="WITH_DELAY">FALSE</field>
                                                                                                <value name="VALUE">
                                                                                                  <block type="math_constrain" id="C9fG)cJeR_XJt-AWWmoB" inline="false">
                                                                                                    <value name="VALUE">
                                                                                                      <shadow type="math_number">
                                                                                                        <field name="NUM">50</field>
                                                                                                      </shadow>
                                                                                                      <block type="math_arithmetic" id="p2]F!a,7U/WZ$DlLkW~B" inline="false">
                                                                                                        <field name="OP">ADD</field>
                                                                                                        <value name="A">
                                                                                                          <shadow type="math_number">
                                                                                                            <field name="NUM">1</field>
                                                                                                          </shadow>
                                                                                                          <block type="get_value" id="d26MC1UY[GV!tjQCv-)$">
                                                                                                            <field name="ATTR">val</field>
                                                                                                            <field name="OID">0_userdata.0.SmartPlugs_BadHzg.SmartPlugBad_Timer_Inaktiv</field>
                                                                                                          </block>
                                                                                                        </value>
                                                                                                        <value name="B">
                                                                                                          <shadow type="math_number" id="3qbnl1Y`I@V[xW+3U2P2">
                                                                                                            <field name="NUM">1</field>
                                                                                                          </shadow>
                                                                                                        </value>
                                                                                                      </block>
                                                                                                    </value>
                                                                                                    <value name="LOW">
                                                                                                      <shadow type="math_number" id="jd3$YL6pUsX9dFunPl)6">
                                                                                                        <field name="NUM">0</field>
                                                                                                      </shadow>
                                                                                                    </value>
                                                                                                    <value name="HIGH">
                                                                                                      <shadow type="math_number" id="z!u=kM[5:@#u^1LZm@2}">
                                                                                                        <field name="NUM">10000</field>
                                                                                                      </shadow>
                                                                                                    </value>
                                                                                                  </block>
                                                                                                </value>
                                                                                              </block>
                                                                                            </statement>
                                                                                          </block>
                                                                                        </statement>
                                                                                        <next>
                                                                                          <block type="controls_if" id="I,$hG0{L-yU0m-}s=%C+">
                                                                                            <value name="IF0">
                                                                                              <block type="logic_compare" id="vp)Za[O:W=Um7GZ4v-|N">
                                                                                                <field name="OP">GTE</field>
                                                                                                <value name="A">
                                                                                                  <block type="variables_get" id="_*zhY$=uWq:=QIza$t~C">
                                                                                                    <field name="VAR" id="c+L0@dN#McAd[SM]2%59">Timer</field>
                                                                                                  </block>
                                                                                                </value>
                                                                                                <value name="B">
                                                                                                  <block type="math_number" id=",F-I:lxid]fk[jUqX?|n">
                                                                                                    <field name="NUM">60</field>
                                                                                                  </block>
                                                                                                </value>
                                                                                              </block>
                                                                                            </value>
                                                                                            <statement name="DO0">
                                                                                              <block type="variables_set" id="K4B`_l^4Q6qmu5QuRPpa">
                                                                                                <field name="VAR" id="c+L0@dN#McAd[SM]2%59">Timer</field>
                                                                                                <value name="VALUE">
                                                                                                  <block type="math_number" id="F%!G7Z]GQmmgWU:Cv-v+">
                                                                                                    <field name="NUM">0</field>
                                                                                                  </block>
                                                                                                </value>
                                                                                              </block>
                                                                                            </statement>
                                                                                          </block>
                                                                                        </next>
                                                                                      </block>
                                                                                    </next>
                                                                                  </block>
                                                                                </next>
                                                                              </block>
                                                                            </statement>
                                                                            <next>
                                                                              <block type="comment" id="%M8Ho6;CQeh?5({qH+*2">
                                                                                <field name="COMMENT">Deaktivierung</field>
                                                                                <next>
                                                                                  <block type="on" id="Nww+UrP^:*KyZ-ev!R#k">
                                                                                    <field name="OID">0_userdata.0.SmartPlugs_BadHzg.SmarPlugBad_HzgBad</field>
                                                                                    <field name="CONDITION">false</field>
                                                                                    <field name="ACK_CONDITION"></field>
                                                                                    <statement name="STATEMENT">
                                                                                      <block type="controls_if" id="LMAxl+;SZ8E(TlZKxWl`">
                                                                                        <value name="IF0">
                                                                                          <block type="get_value" id="j:Fq]C*4d+}EE,zt!CB1">
                                                                                            <field name="ATTR">val</field>
                                                                                            <field name="OID">fritzdect.0.DECT_116300118701.state</field>
                                                                                          </block>
                                                                                        </value>
                                                                                        <statement name="DO0">
                                                                                          <block type="control" id="kp_2D29pPxyBD?BILdYy">
                                                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                            <field name="OID">fritzdect.0.DECT_116300118701.state</field>
                                                                                            <field name="WITH_DELAY">FALSE</field>
                                                                                            <value name="VALUE">
                                                                                              <block type="logic_boolean" id="^Lvuh$RDtEkNp]pH:1Kx">
                                                                                                <field name="BOOL">FALSE</field>
                                                                                              </block>
                                                                                            </value>
                                                                                            <next>
                                                                                              <block type="variables_set" id="fi,8jMb]:;nRjEANg30]">
                                                                                                <field name="VAR" id="KD:P[N/_4z@jQ6}[4|~Y">HzgBadButtonAktiviert</field>
                                                                                                <value name="VALUE">
                                                                                                  <block type="logic_boolean" id="S,N!K.oxOUE@TF/rg6(K">
                                                                                                    <field name="BOOL">FALSE</field>
                                                                                                  </block>
                                                                                                </value>
                                                                                                <next>
                                                                                                  <block type="variables_set" id="eGU=ps7+5*m*=7SwxtH|">
                                                                                                    <field name="VAR" id="`G/{R4tGviqeZfGp{,EE">HzgBadPVAktiviert</field>
                                                                                                    <value name="VALUE">
                                                                                                      <block type="logic_boolean" id="Opy{.zEg](?ok`;}cd1`">
                                                                                                        <field name="BOOL">FALSE</field>
                                                                                                      </block>
                                                                                                    </value>
                                                                                                    <next>
                                                                                                      <block type="controls_if" id="#.+A7kzEAOIlc,SeX;cL">
                                                                                                        <value name="IF0">
                                                                                                          <block type="logic_compare" id="bb9Z[X;rE`,4^7ygLa)Q">
                                                                                                            <field name="OP">EQ</field>
                                                                                                            <value name="A">
                                                                                                              <block type="get_value" id="1DUX#A6kuGg_l4~Q(1(W">
                                                                                                                <field name="ATTR">val</field>
                                                                                                                <field name="OID">0_userdata.0.SmartPlugs_BadHzg.SmarPlugBad_Debug</field>
                                                                                                              </block>
                                                                                                            </value>
                                                                                                            <value name="B">
                                                                                                              <block type="logic_boolean" id="6.JAgYiW1nsd+v[4E@bT">
                                                                                                                <field name="BOOL">TRUE</field>
                                                                                                              </block>
                                                                                                            </value>
                                                                                                          </block>
                                                                                                        </value>
                                                                                                        <statement name="DO0">
                                                                                                          <block type="debug" id="a;01*:ELD{dYAHvW3*c_">
                                                                                                            <field name="Severity">debug</field>
                                                                                                            <value name="TEXT">
                                                                                                              <shadow type="text" id="q[2]03]=RC.ZTX|f)qw(">
                                                                                                                <field name="TEXT">--- SmartPlug Bad wurde ausgeschaltet</field>
                                                                                                              </shadow>
                                                                                                            </value>
                                                                                                            <next>
                                                                                                              <block type="procedures_callcustomnoreturn" id="BXjn}.}i+M]GcA3XsfZo">
                                                                                                                <mutation name="Logfile">
                                                                                                                  <arg name="datum"></arg>
                                                                                                                  <arg name="txt"></arg>
                                                                                                                </mutation>
                                                                                                                <value name="ARG0">
                                                                                                                  <block type="time_get" id="q52#0[cx`EXr7Ky)0[NA">
                                                                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                                                                    <field name="OPTION">YYYY.MM.DD</field>
                                                                                                                  </block>
                                                                                                                </value>
                                                                                                                <value name="ARG1">
                                                                                                                  <block type="text" id="K[{t`J}Vyp=ugm*jM/2l">
                                                                                                                    <field name="TEXT">--- SmartPlug Bad wurde ausgeschaltet</field>
                                                                                                                  </block>
                                                                                                                </value>
                                                                                                              </block>
                                                                                                            </next>
                                                                                                          </block>
                                                                                                        </statement>
                                                                                                      </block>
                                                                                                    </next>
                                                                                                  </block>
                                                                                                </next>
                                                                                              </block>
                                                                                            </next>
                                                                                          </block>
                                                                                        </statement>
                                                                                      </block>
                                                                                    </statement>
                                                                                    <next>
                                                                                      <block type="comment" id="#j:V.-B-q8|xs86QpW{u">
                                                                                        <field name="COMMENT">LOG</field>
                                                                                        <next>
                                                                                          <block type="on_ext" id="m1uu62o,`RA-svgtxV3g">
                                                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                                                                            <field name="CONDITION">ne</field>
                                                                                            <field name="ACK_CONDITION"></field>
                                                                                            <value name="OID0">
                                                                                              <shadow type="field_oid" id="MvLU6fnlo1Sp`yT^2/7j">
                                                                                                <field name="oid">0_userdata.0.AMIS.PVÜberschuss</field>
                                                                                              </shadow>
                                                                                            </value>
                                                                                            <statement name="STATEMENT">
                                                                                              <block type="controls_if" id="L;8(BZ1bRu$0:C9r!m`+">
                                                                                                <value name="IF0">
                                                                                                  <block type="logic_compare" id=")]t;V?lAYmuNrGSvb9PH">
                                                                                                    <field name="OP">EQ</field>
                                                                                                    <value name="A">
                                                                                                      <block type="get_value" id="Bg]27AU76@RkEANM_:#I">
                                                                                                        <field name="ATTR">val</field>
                                                                                                        <field name="OID">0_userdata.0.SmartPlugs_BadHzg.SmarPlugBad_Debug</field>
                                                                                                      </block>
                                                                                                    </value>
                                                                                                    <value name="B">
                                                                                                      <block type="logic_boolean" id="HsxINyfaa}Yk!9Oe[CI5">
                                                                                                        <field name="BOOL">TRUE</field>
                                                                                                      </block>
                                                                                                    </value>
                                                                                                  </block>
                                                                                                </value>
                                                                                                <statement name="DO0">
                                                                                                  <block type="procedures_callcustomnoreturn" id="h`EvMh-Gf)%hQTM$V,Iz">
                                                                                                    <mutation name="Logfile">
                                                                                                      <arg name="datum"></arg>
                                                                                                      <arg name="txt"></arg>
                                                                                                    </mutation>
                                                                                                    <value name="ARG0">
                                                                                                      <block type="time_get" id="asv?||b+UCSM(aO},+)U">
                                                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                                                        <field name="OPTION">YYYY.MM.DD</field>
                                                                                                      </block>
                                                                                                    </value>
                                                                                                    <value name="ARG1">
                                                                                                      <block type="text_join" id="wfUxb!oP~9(LdK{X0Q|g">
                                                                                                        <mutation items="2"></mutation>
                                                                                                        <value name="ADD0">
                                                                                                          <block type="text_join" id="9{8gUO_Sh;Q]Sa=)RvH(">
                                                                                                            <mutation items="2"></mutation>
                                                                                                            <value name="ADD0">
                                                                                                              <block type="text" id="UkUr!,5%U=LEQIpEXRCr">
                                                                                                                <field name="TEXT">##### PV-Überschuss (W) : </field>
                                                                                                              </block>
                                                                                                            </value>
                                                                                                            <value name="ADD1">
                                                                                                              <block type="convert_tostring" id="v$5QewG2ysv,qEn^:*iE">
                                                                                                                <value name="VALUE">
                                                                                                                  <block type="get_value" id="Y+IT0$;L![bbl.W_X9*1">
                                                                                                                    <field name="ATTR">val</field>
                                                                                                                    <field name="OID">0_userdata.0.AMIS.PVÜberschuss</field>
                                                                                                                  </block>
                                                                                                                </value>
                                                                                                              </block>
                                                                                                            </value>
                                                                                                          </block>
                                                                                                        </value>
                                                                                                        <value name="ADD1">
                                                                                                          <block type="text" id="cd_M:8;sKVR28e4`_[7x">
                                                                                                            <field name="TEXT"> #####</field>
                                                                                                          </block>
                                                                                                        </value>
                                                                                                      </block>
                                                                                                    </value>
                                                                                                    <next>
                                                                                                      <block type="debug" id=")00za#hEg2!m1qLnmRCA">
                                                                                                        <field name="Severity">debug</field>
                                                                                                        <value name="TEXT">
                                                                                                          <shadow type="text" id="jNXGQwWFslme^E#Z]rlY">
                                                                                                            <field name="TEXT">test</field>
                                                                                                          </shadow>
                                                                                                          <block type="text_join" id="l@r?8o.2RlJmmv/8.nq{">
                                                                                                            <mutation items="2"></mutation>
                                                                                                            <value name="ADD0">
                                                                                                              <block type="text" id="P-9URIODf0;XyV5rq{^^">
                                                                                                                <field name="TEXT">- Status SmartPlugBad: </field>
                                                                                                              </block>
                                                                                                            </value>
                                                                                                            <value name="ADD1">
                                                                                                              <block type="convert_tostring" id="x0r994^W|0BwE!SW*]oL">
                                                                                                                <value name="VALUE">
                                                                                                                  <block type="variables_get" id="W@W^m!TCqT[)6*1X/v/[">
                                                                                                                    <field name="VAR" id=")9+q}i8,EkRfK%y8?m$p">SmartPlugBad</field>
                                                                                                                  </block>
                                                                                                                </value>
                                                                                                              </block>
                                                                                                            </value>
                                                                                                          </block>
                                                                                                        </value>
                                                                                                        <next>
                                                                                                          <block type="procedures_callcustomnoreturn" id="]cIm3G|A/Eh^u^N3@dMH">
                                                                                                            <mutation name="Logfile">
                                                                                                              <arg name="datum"></arg>
                                                                                                              <arg name="txt"></arg>
                                                                                                            </mutation>
                                                                                                            <value name="ARG0">
                                                                                                              <block type="time_get" id="j5UzQ_pEK;2m[C4+Nw5{">
                                                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                                                                <field name="OPTION">YYYY.MM.DD</field>
                                                                                                              </block>
                                                                                                            </value>
                                                                                                            <value name="ARG1">
                                                                                                              <block type="text_join" id="_EOXPYA?n}xSxwh@`UzJ">
                                                                                                                <mutation items="2"></mutation>
                                                                                                                <value name="ADD0">
                                                                                                                  <block type="text" id="OBFy_#Hr,1%2+-m9nd:L">
                                                                                                                    <field name="TEXT">- Status SmartPlugBad: </field>
                                                                                                                  </block>
                                                                                                                </value>
                                                                                                                <value name="ADD1">
                                                                                                                  <block type="convert_tostring" id="!EcS,:`*H1*7e:_N%eF4">
                                                                                                                    <value name="VALUE">
                                                                                                                      <block type="variables_get" id="6!9BY;Xe9!Fjgxv:%.[|">
                                                                                                                        <field name="VAR" id=")9+q}i8,EkRfK%y8?m$p">SmartPlugBad</field>
                                                                                                                      </block>
                                                                                                                    </value>
                                                                                                                  </block>
                                                                                                                </value>
                                                                                                              </block>
                                                                                                            </value>
                                                                                                            <next>
                                                                                                              <block type="debug" id="~F;}ohaUY:97OP0@LIAD">
                                                                                                                <field name="Severity">debug</field>
                                                                                                                <value name="TEXT">
                                                                                                                  <shadow type="text">
                                                                                                                    <field name="TEXT">test</field>
                                                                                                                  </shadow>
                                                                                                                  <block type="text_join" id="d{DCuaw%@g`}c{ZK7m)L">
                                                                                                                    <mutation items="2"></mutation>
                                                                                                                    <value name="ADD0">
                                                                                                                      <block type="text" id="Tz[Q@R_z2qw2)EhNA``O">
                                                                                                                        <field name="TEXT">- Status HzgBadPV: </field>
                                                                                                                      </block>
                                                                                                                    </value>
                                                                                                                    <value name="ADD1">
                                                                                                                      <block type="convert_tostring" id="5.[^Wlzv9WI-:v7LXDlR">
                                                                                                                        <value name="VALUE">
                                                                                                                          <block type="variables_get" id="un#U4I2V!9|kE01dK0B5">
                                                                                                                            <field name="VAR" id="`G/{R4tGviqeZfGp{,EE">HzgBadPVAktiviert</field>
                                                                                                                          </block>
                                                                                                                        </value>
                                                                                                                      </block>
                                                                                                                    </value>
                                                                                                                  </block>
                                                                                                                </value>
                                                                                                                <next>
                                                                                                                  <block type="procedures_callcustomnoreturn" id="aG{0}1B6FBq5Ho1j||,4">
                                                                                                                    <mutation name="Logfile">
                                                                                                                      <arg name="datum"></arg>
                                                                                                                      <arg name="txt"></arg>
                                                                                                                    </mutation>
                                                                                                                    <value name="ARG0">
                                                                                                                      <block type="time_get" id="InE@{7_8QoL5u:fzJlF0">
                                                                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                                                                        <field name="OPTION">YYYY.MM.DD</field>
                                                                                                                      </block>
                                                                                                                    </value>
                                                                                                                    <value name="ARG1">
                                                                                                                      <block type="text_join" id="`y)[*Q?!V{OV,#0)m/FA">
                                                                                                                        <mutation items="2"></mutation>
                                                                                                                        <value name="ADD0">
                                                                                                                          <block type="text" id="JWW#aFWNHN`Fi(D2lSDT">
                                                                                                                            <field name="TEXT">- Status HzgBadPV: </field>
                                                                                                                          </block>
                                                                                                                        </value>
                                                                                                                        <value name="ADD1">
                                                                                                                          <block type="convert_tostring" id="9)LMmlH/h^Y5)Y)v%wER">
                                                                                                                            <value name="VALUE">
                                                                                                                              <block type="variables_get" id="_WgUICab.S+Y$u;!2zV$">
                                                                                                                                <field name="VAR" id="`G/{R4tGviqeZfGp{,EE">HzgBadPVAktiviert</field>
                                                                                                                              </block>
                                                                                                                            </value>
                                                                                                                          </block>
                                                                                                                        </value>
                                                                                                                      </block>
                                                                                                                    </value>
                                                                                                                    <next>
                                                                                                                      <block type="debug" id="TMre:W~sXG,:vwI~2Zy3">
                                                                                                                        <field name="Severity">debug</field>
                                                                                                                        <value name="TEXT">
                                                                                                                          <shadow type="text">
                                                                                                                            <field name="TEXT">test</field>
                                                                                                                          </shadow>
                                                                                                                          <block type="text_join" id="b)q#?6Pl7neqSON?rO|d">
                                                                                                                            <mutation items="2"></mutation>
                                                                                                                            <value name="ADD0">
                                                                                                                              <block type="text" id="$_23WQeV:RC6Y0P9Y/*k">
                                                                                                                                <field name="TEXT">- Status HzgBadHand: </field>
                                                                                                                              </block>
                                                                                                                            </value>
                                                                                                                            <value name="ADD1">
                                                                                                                              <block type="convert_tostring" id="06aM`,JfiOJsS{aeq,M@">
                                                                                                                                <value name="VALUE">
                                                                                                                                  <block type="variables_get" id="1}f3%ZSx=+j0{gRgomKC">
                                                                                                                                    <field name="VAR" id="KD:P[N/_4z@jQ6}[4|~Y">HzgBadButtonAktiviert</field>
                                                                                                                                  </block>
                                                                                                                                </value>
                                                                                                                              </block>
                                                                                                                            </value>
                                                                                                                          </block>
                                                                                                                        </value>
                                                                                                                        <next>
                                                                                                                          <block type="procedures_callcustomnoreturn" id=")9;tB[H*@MS*7$-Msc`Z">
                                                                                                                            <mutation name="Logfile">
                                                                                                                              <arg name="datum"></arg>
                                                                                                                              <arg name="txt"></arg>
                                                                                                                            </mutation>
                                                                                                                            <value name="ARG0">
                                                                                                                              <block type="time_get" id="HG{#%7I#d]=H^II2^w,A">
                                                                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                                                                                <field name="OPTION">YYYY.MM.DD</field>
                                                                                                                              </block>
                                                                                                                            </value>
                                                                                                                            <value name="ARG1">
                                                                                                                              <block type="text_join" id="@!r#TeIpble1YY*XLpAR">
                                                                                                                                <mutation items="2"></mutation>
                                                                                                                                <value name="ADD0">
                                                                                                                                  <block type="text" id="uwg$4)A(xHv25/L:NyJl">
                                                                                                                                    <field name="TEXT">- Status HzgBadHand: </field>
                                                                                                                                  </block>
                                                                                                                                </value>
                                                                                                                                <value name="ADD1">
                                                                                                                                  <block type="convert_tostring" id="6O8E[=m8/-,1tXiW@2H.">
                                                                                                                                    <value name="VALUE">
                                                                                                                                      <block type="variables_get" id="g?B-ILt;O[UL,W9RUhsa">
                                                                                                                                        <field name="VAR" id="KD:P[N/_4z@jQ6}[4|~Y">HzgBadButtonAktiviert</field>
                                                                                                                                      </block>
                                                                                                                                    </value>
                                                                                                                                  </block>
                                                                                                                                </value>
                                                                                                                              </block>
                                                                                                                            </value>
                                                                                                                            <next>
                                                                                                                              <block type="debug" id="{a.AZqgJ^L~GYqzZBr(0">
                                                                                                                                <field name="Severity">debug</field>
                                                                                                                                <value name="TEXT">
                                                                                                                                  <shadow type="text">
                                                                                                                                    <field name="TEXT">test</field>
                                                                                                                                  </shadow>
                                                                                                                                  <block type="text_join" id="hB)qfY{Up1z)}u|n=z3.">
                                                                                                                                    <mutation items="2"></mutation>
                                                                                                                                    <value name="ADD0">
                                                                                                                                      <block type="text" id="C{r(3NQ%8]D#}M)v-i}O">
                                                                                                                                        <field name="TEXT">- Status Fritz: </field>
                                                                                                                                      </block>
                                                                                                                                    </value>
                                                                                                                                    <value name="ADD1">
                                                                                                                                      <block type="convert_tostring" id="Y^brU`3|.:_CW+kygRa`">
                                                                                                                                        <value name="VALUE">
                                                                                                                                          <block type="get_value" id="=.q?h]X@VMFdkAG-Dg$[">
                                                                                                                                            <field name="ATTR">val</field>
                                                                                                                                            <field name="OID">fritzdect.0.DECT_116300118701.state</field>
                                                                                                                                          </block>
                                                                                                                                        </value>
                                                                                                                                      </block>
                                                                                                                                    </value>
                                                                                                                                  </block>
                                                                                                                                </value>
                                                                                                                                <next>
                                                                                                                                  <block type="procedures_callcustomnoreturn" id="jKvh)Di$Gp{-C5_)S?;Z">
                                                                                                                                    <mutation name="Logfile">
                                                                                                                                      <arg name="datum"></arg>
                                                                                                                                      <arg name="txt"></arg>
                                                                                                                                    </mutation>
                                                                                                                                    <value name="ARG0">
                                                                                                                                      <block type="time_get" id="N,uxGe@L7W#i)Ngwh_}w">
                                                                                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                                                                                        <field name="OPTION">YYYY.MM.DD</field>
                                                                                                                                      </block>
                                                                                                                                    </value>
                                                                                                                                    <value name="ARG1">
                                                                                                                                      <block type="text_join" id="S}Q3Ai=`:.k=`N:l{;-c">
                                                                                                                                        <mutation items="2"></mutation>
                                                                                                                                        <value name="ADD0">
                                                                                                                                          <block type="text" id="y7W3jCIC65QN`rH[jjd!">
                                                                                                                                            <field name="TEXT">- Status Fritz: </field>
                                                                                                                                          </block>
                                                                                                                                        </value>
                                                                                                                                        <value name="ADD1">
                                                                                                                                          <block type="convert_tostring" id="7VWckO:v:J3._?3V-Ew.">
                                                                                                                                            <value name="VALUE">
                                                                                                                                              <block type="get_value" id="K?KYr~VGyBU|.(hf1l?-">
                                                                                                                                                <field name="ATTR">val</field>
                                                                                                                                                <field name="OID">fritzdect.0.DECT_116300118701.state</field>
                                                                                                                                              </block>
                                                                                                                                            </value>
                                                                                                                                          </block>
                                                                                                                                        </value>
                                                                                                                                      </block>
                                                                                                                                    </value>
                                                                                                                                  </block>
                                                                                                                                </next>
                                                                                                                              </block>
                                                                                                                            </next>
                                                                                                                          </block>
                                                                                                                        </next>
                                                                                                                      </block>
                                                                                                                    </next>
                                                                                                                  </block>
                                                                                                                </next>
                                                                                                              </block>
                                                                                                            </next>
                                                                                                          </block>
                                                                                                        </next>
                                                                                                      </block>
                                                                                                    </next>
                                                                                                  </block>
                                                                                                </statement>
                                                                                              </block>
                                                                                            </statement>
                                                                                          </block>
                                                                                        </next>
                                                                                      </block>
                                                                                    </next>
                                                                                  </block>
                                                                                </next>
                                                                              </block>
                                                                            </next>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </next>
  </block>
  <block type="comment" id="m|fsyw%~z-7@{pQ@klZ|" x="1387" y="-212">
    <field name="COMMENT">Hzg Bad</field>
    <next>
      <block type="schedule" id="*`dBqDWojZV.Ya=f;DE9">
        <field name="SCHEDULE">* * * * * *</field>
        <statement name="STATEMENT">
          <block type="comment" id="Vgw{Jz2zPKEw|uJk;3bI">
            <field name="COMMENT">De-/Aktivieren</field>
            <next>
              <block type="controls_if" id="~z(`C0Ym)^=1QfSjT7~)">
                <value name="IF0">
                  <block type="logic_operation" id=":E.13m/I1kq+dJ1qUnjU" inline="false">
                    <field name="OP">AND</field>
                    <value name="A">
                      <block type="get_value" id="]3^k`MmXHdM*X6hxcLT$">
                        <field name="ATTR">val</field>
                        <field name="OID">0_userdata.0.SmartPlugs_BadHzg.SmarPlugBad_HzgBad</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_negate" id="H|P;bq}DXHISZ7Gw0}ow">
                        <value name="BOOL">
                          <block type="get_value" id="yr9(vK|.Fdp.UD!]l7J5">
                            <field name="ATTR">val</field>
                            <field name="OID">0_userdata.0.AMIS.Grid_Überwachung</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="controls_if" id="!:6IVLh(.s7Zc7*X2PKe">
                    <value name="IF0">
                      <block type="logic_operation" id="Vnr0j02F|^6{hSSbQEmK" inline="false">
                        <field name="OP">AND</field>
                        <value name="A">
                          <block type="logic_negate" id="K~rgK;sALe4{c~Ujl-i6">
                            <value name="BOOL">
                              <block type="variables_get" id="]y;likc+`U,w(YnZm}|~">
                                <field name="VAR" id="KD:P[N/_4z@jQ6}[4|~Y">HzgBadButtonAktiviert</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_compare" id="63^muR5:yLfn#!:bZZWG">
                            <field name="OP">LTE</field>
                            <value name="A">
                              <block type="get_value" id="CI#|3bR0Tzf[-gK@Xfuz">
                                <field name="ATTR">val</field>
                                <field name="OID">0_userdata.0.SmartPlugs_BadHzg.SmartPlugBad_Timeout</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="}+}+k;{`t|^@(ubY(.Ol">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="controls_if" id="h2[afer[}5V$)v@slP7p">
                        <mutation elseif="2"></mutation>
                        <value name="IF0">
                          <block type="logic_operation" id="(NWf|i0oO8QM/.Axl,Ut" inline="false">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="logic_operation" id="Nmlt)igIsK,]cTElirIO" inline="false">
                                <field name="OP">OR</field>
                                <value name="A">
                                  <block type="logic_compare" id="m![RY(f3FtDyAKVqo9Tx">
                                    <field name="OP">LTE</field>
                                    <value name="A">
                                      <block type="get_value" id="8g2XiUBKIj/;R,V+q?%]">
                                        <field name="ATTR">val</field>
                                        <field name="OID">0_userdata.0.AMIS.PVÜberschuss</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="math_number" id="OzBUgjtn~Ed/`)o1mWRp">
                                        <field name="NUM">10</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_compare" id="mL7.f6Y8#0OmaVuk$71L">
                                    <field name="OP">GT</field>
                                    <value name="A">
                                      <block type="get_value" id="x!PfMXjU|/Qh^Cf|Sr]-">
                                        <field name="ATTR">val</field>
                                        <field name="OID">fritzdect.0.DECT_116300118701.celsius</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="math_number" id="wI[/OC#D;vOjTQ97fMcm">
                                        <field name="NUM">23</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block type="variables_get" id="h([Zd5X!hd}(ljFy_iNa">
                                <field name="VAR" id=")9+q}i8,EkRfK%y8?m$p">SmartPlugBad</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="variables_set" id="*|c%1P3R}|bETp:H-Zru">
                            <field name="VAR" id=")9+q}i8,EkRfK%y8?m$p">SmartPlugBad</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="TTB|-!JB/!/Llp_*?jXy">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block type="variables_set" id="o]q1%Ol!-HtMMpr~qF~7">
                                <field name="VAR" id="`G/{R4tGviqeZfGp{,EE">HzgBadPVAktiviert</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="2Q,OtCW#?_arTJ]{OkFr">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="controls_if" id="sa~L}VIZ|f^NN9pK!vb7">
                                    <value name="IF0">
                                      <block type="logic_compare" id="%5~8ooF|pA=LN5q5-zNi">
                                        <field name="OP">EQ</field>
                                        <value name="A">
                                          <block type="get_value" id="HU)oiSa@K++/^ObQ*N7N">
                                            <field name="ATTR">val</field>
                                            <field name="OID">0_userdata.0.SmartPlugs_BadHzg.SmarPlugBad_Debug</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="logic_boolean" id="%A$,o/qc!)fmZJ$!M(z#">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="debug" id=":2bpKO5;oqCJ~(~?yU*H">
                                        <field name="Severity">debug</field>
                                        <value name="TEXT">
                                          <shadow type="text" id="twZ%b$:x7:Pk1$7*_oNr">
                                            <field name="TEXT">SmartPlug Bad PV / Tmp deaktiviert</field>
                                          </shadow>
                                        </value>
                                        <next>
                                          <block type="procedures_callcustomnoreturn" id=":_I19Lj{(=M+dH~_(W9,">
                                            <mutation name="Logfile">
                                              <arg name="datum"></arg>
                                              <arg name="txt"></arg>
                                            </mutation>
                                            <value name="ARG0">
                                              <block type="time_get" id="|+a.jqZ6]H|U=p0^+vvg">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                <field name="OPTION">YYYY.MM.DD</field>
                                              </block>
                                            </value>
                                            <value name="ARG1">
                                              <block type="text_join" id="p;M7_f(}M7*V;4q_HS`3">
                                                <mutation items="2"></mutation>
                                                <value name="ADD0">
                                                  <block type="text" id="No2d9t_X=(0^/rIfk0%a">
                                                    <field name="TEXT">SmartPlug Bad deaktiviert: </field>
                                                  </block>
                                                </value>
                                                <value name="ADD1">
                                                  <block type="convert_tostring" id="wiNjfm2x(,w4O:IJoyoP">
                                                    <value name="VALUE">
                                                      <block type="variables_get" id="f/~kbGiDY|#adY618/*Q">
                                                        <field name="VAR" id=")9+q}i8,EkRfK%y8?m$p">SmartPlugBad</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </statement>
                        <value name="IF1">
                          <block type="logic_operation" id="A*M3/[N#IZ:ANx3#N?r*" inline="false">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="logic_operation" id="DW7F}t8zu~$_G*8Pa(3e" inline="false">
                                <field name="OP">AND</field>
                                <value name="A">
                                  <block type="logic_compare" id="n=Zb^9u~JGi|Z-2*qlih">
                                    <field name="OP">LT</field>
                                    <value name="A">
                                      <block type="get_value" id="RO$ii/.eX+hbu0jJElK1">
                                        <field name="ATTR">val</field>
                                        <field name="OID">fritzdect.0.DECT_116300118701.celsius</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="math_number" id="n|%GCJ*$Tgl`4!/hO)HO">
                                        <field name="NUM">23</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_compare" id="UUL3U=9eId#Q,LtbX:V2">
                                    <field name="OP">GT</field>
                                    <value name="A">
                                      <block type="get_value" id="j7Og^vZs{Gb@!_FYa^rw">
                                        <field name="ATTR">val</field>
                                        <field name="OID">0_userdata.0.AMIS.PVÜberschuss</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="math_number" id="Zc~cW;[({xEj*S-%?x4O">
                                        <field name="NUM">1200</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_negate" id="6U9,;r+-zK}!Vqb_`{Y)">
                                <value name="BOOL">
                                  <block type="variables_get" id="2L#guWrV]Nuk]J*P(i0U">
                                    <field name="VAR" id=")9+q}i8,EkRfK%y8?m$p">SmartPlugBad</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO1">
                          <block type="variables_set" id="_fw-lf1ke521sTDyD+sc">
                            <field name="VAR" id=")9+q}i8,EkRfK%y8?m$p">SmartPlugBad</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="x(T:*dP4Y`UgCIhxf.6|">
                                <field name="BOOL">TRUE</field>
                              </block>
                            </value>
                            <next>
                              <block type="variables_set" id="=XNnI:dF{iPZY{5-gz{%">
                                <field name="VAR" id="`G/{R4tGviqeZfGp{,EE">HzgBadPVAktiviert</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="4s?8X2O{mv4dkx!lU;tL">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="controls_if" id="KWpGRYo|^/T/lph1i-7v">
                                    <value name="IF0">
                                      <block type="logic_compare" id="{K?KX(MFh!FWXyH[!kS-">
                                        <field name="OP">EQ</field>
                                        <value name="A">
                                          <block type="get_value" id="Aa:-sf,jmc0J^b7G:QhW">
                                            <field name="ATTR">val</field>
                                            <field name="OID">0_userdata.0.SmartPlugs_BadHzg.SmarPlugBad_Debug</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="logic_boolean" id="Lz/4[=/tB!wC/%U_zM_q">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="debug" id="5,x6)%(2~s:amdJRme2N">
                                        <field name="Severity">debug</field>
                                        <value name="TEXT">
                                          <shadow type="text" id=")8=(EFb/R{t4{8OSW[~|">
                                            <field name="TEXT">SmartPlug Bad PV aktiviert</field>
                                          </shadow>
                                        </value>
                                        <next>
                                          <block type="procedures_callcustomnoreturn" id="]5Cyi[q)~QDQU~GO07O]">
                                            <mutation name="Logfile">
                                              <arg name="datum"></arg>
                                              <arg name="txt"></arg>
                                            </mutation>
                                            <value name="ARG0">
                                              <block type="time_get" id="y_,dfaW0P[4rq-Y;b;;[">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                <field name="OPTION">YYYY.MM.DD</field>
                                              </block>
                                            </value>
                                            <value name="ARG1">
                                              <block type="text_join" id="n*Ru_SC,S=ir$Z78b2/j">
                                                <mutation items="2"></mutation>
                                                <value name="ADD0">
                                                  <block type="text" id="ZHJ3wl::d:V[DvOLu:/,">
                                                    <field name="TEXT">SmartPlug Bad aktiviert: </field>
                                                  </block>
                                                </value>
                                                <value name="ADD1">
                                                  <block type="convert_tostring" id="G`IH}cj65CNX-z{BCm`.">
                                                    <value name="VALUE">
                                                      <block type="variables_get" id="6u]Ms6}[p;r:E*JSj!ul">
                                                        <field name="VAR" id=")9+q}i8,EkRfK%y8?m$p">SmartPlugBad</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </statement>
                        <value name="IF2">
                          <block type="logic_operation" id="MTy+}m9:JMp@;;PY6-/F" inline="false">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="logic_negate" id="Q#OxQB$HvgaqX3m78[+M">
                                <value name="BOOL">
                                  <block type="variables_get" id="C2K1KDHRtj$xfOGo@go~">
                                    <field name="VAR" id="`G/{R4tGviqeZfGp{,EE">HzgBadPVAktiviert</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block type="get_value" id="*]GH9myRBhVS94EZ4e:)">
                                <field name="ATTR">val</field>
                                <field name="OID">fritzdect.0.DECT_116300118701.state</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO2">
                          <block type="variables_set" id="7P}pf]`1+NeL1K_O$S{s">
                            <field name="VAR" id=")9+q}i8,EkRfK%y8?m$p">SmartPlugBad</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id=")$M%p?2E~$!D%mGcCHC_">
                                <field name="BOOL">TRUE</field>
                              </block>
                            </value>
                            <next>
                              <block type="variables_set" id="|nh#iDC_e)hn`q@jQo@I">
                                <field name="VAR" id="KD:P[N/_4z@jQ6}[4|~Y">HzgBadButtonAktiviert</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="keJXQKlL1imm+c@9fB0F">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="controls_if" id="xcnAhlf^(P|h,hXSFWr|">
                                    <value name="IF0">
                                      <block type="logic_compare" id="O:g@7w^a#!y_,pz)6GU#">
                                        <field name="OP">EQ</field>
                                        <value name="A">
                                          <block type="get_value" id="f[e!0@(mFWriqpGTz}3G">
                                            <field name="ATTR">val</field>
                                            <field name="OID">0_userdata.0.SmartPlugs_BadHzg.SmarPlugBad_Debug</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="logic_boolean" id=",Mf*06wU=Anc@^]|sPQA">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="debug" id="5Rkj^gdka`1b@-UyFYxI">
                                        <field name="Severity">debug</field>
                                        <value name="TEXT">
                                          <shadow type="text" id="Q3r?jsv0ibYC+:xHbtX|">
                                            <field name="TEXT">SmartPlug Bad Button aktiviert</field>
                                          </shadow>
                                        </value>
                                        <next>
                                          <block type="procedures_callcustomnoreturn" id="YWB$_oADK+yzjRPxxmTm">
                                            <mutation name="Logfile">
                                              <arg name="datum"></arg>
                                              <arg name="txt"></arg>
                                            </mutation>
                                            <value name="ARG0">
                                              <block type="time_get" id="C.KIOV?CnrOG{m-%g?O}">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                <field name="OPTION">YYYY.MM.DD</field>
                                              </block>
                                            </value>
                                            <value name="ARG1">
                                              <block type="text_join" id="edzEW9vF(R6-um%Y/J:*">
                                                <mutation items="2"></mutation>
                                                <value name="ADD0">
                                                  <block type="text" id="B_4-LQ/ED74IC3EfSwD(">
                                                    <field name="TEXT">SmartPlug Bad Button aktiviert: </field>
                                                  </block>
                                                </value>
                                                <value name="ADD1">
                                                  <block type="convert_tostring" id="#*uRZdPTtJA2jk[Et@`g">
                                                    <value name="VALUE">
                                                      <block type="variables_get" id="FbtGL0OA:QH@^PuoZ70%">
                                                        <field name="VAR" id="KD:P[N/_4z@jQ6}[4|~Y">HzgBadButtonAktiviert</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </statement>
                        <next>
                          <block type="comment" id="rp{kmD0`Vx_F;T)BHghe">
                            <field name="COMMENT">Einschaltzeiten reduzieren</field>
                            <next>
                              <block type="controls_if" id="b#]:DB9Q8eaR*kt1b[9I">
                                <value name="IF0">
                                  <block type="logic_compare" id="#ul(@KP4$34nHUMfbMU?" inline="false">
                                    <field name="OP">GTE</field>
                                    <value name="A">
                                      <block type="get_value" id="/VO=;uh0]/at6`yFjBs,">
                                        <field name="ATTR">val</field>
                                        <field name="OID">0_userdata.0.SmartPlugs_BadHzg.SmartPlugBad_Timer_Aktiv</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="get_value" id="K6;-*[iB1DDGxg46;j5t">
                                        <field name="ATTR">val</field>
                                        <field name="OID">0_userdata.0.SmartPlugs_BadHzg.SmartPlugBad_Timer_Start_VIS</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <next>
                                  <block type="comment" id="j^xV4W-J#X2ee{MUKL$X">
                                    <field name="COMMENT">----------&gt;&gt;&gt;&gt;&gt;&gt; ansteuern</field>
                                    <next>
                                      <block type="controls_if" id="iMG-g)W+/JBa1c0H4o:^">
                                        <value name="IF0">
                                          <block type="logic_compare" id="E7:1rr(1eLtr8iBYg8vs">
                                            <field name="OP">NEQ</field>
                                            <value name="A">
                                              <block type="get_value" id="6di?WSeWq5K.PkO_Z)R,">
                                                <field name="ATTR">val</field>
                                                <field name="OID">fritzdect.0.DECT_116300118701.state</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="variables_get" id="Z?{k!DyEOM%Mt+vH3eLV">
                                                <field name="VAR" id=")9+q}i8,EkRfK%y8?m$p">SmartPlugBad</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="DO0">
                                          <block type="control" id="P@rQWr^[Hv%ygfQq*qvB">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">fritzdect.0.DECT_116300118701.state</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="variables_get" id="Pd8cVi{9va:z8,7sY^zL">
                                                <field name="VAR" id=")9+q}i8,EkRfK%y8?m$p">SmartPlugBad</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="controls_if" id="xYo,B=;iQVy;dY-oxaA;">
                                                <value name="IF0">
                                                  <block type="logic_compare" id="JhwDj|B`NYpF_ELoN9H8">
                                                    <field name="OP">EQ</field>
                                                    <value name="A">
                                                      <block type="get_value" id="$;FPBiUPn}bf:lR?NRD:">
                                                        <field name="ATTR">val</field>
                                                        <field name="OID">0_userdata.0.SmartPlugs_BadHzg.SmarPlugBad_Debug</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="logic_boolean" id="8m5TK9h=PKY7oD{I~P/:">
                                                        <field name="BOOL">TRUE</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <statement name="DO0">
                                                  <block type="debug" id="=E//m{5/T*uqMlChhlY%">
                                                    <field name="Severity">debug</field>
                                                    <value name="TEXT">
                                                      <shadow type="text">
                                                        <field name="TEXT">SmartPlug Bad aktiviert</field>
                                                      </shadow>
                                                      <block type="text_join" id="FZw]Io~5OR@MzI(d{L7?">
                                                        <mutation items="2"></mutation>
                                                        <value name="ADD0">
                                                          <block type="text" id="RNqEZ1$#y$;0??wEfMW0">
                                                            <field name="TEXT">Smart Plug Bad geändert: </field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD1">
                                                          <block type="convert_tostring" id="fjNUG~3r3uOS5Q!P9#)H">
                                                            <value name="VALUE">
                                                              <block type="variables_get" id="%g_y(-RP!PvLeJ4-EHbl">
                                                                <field name="VAR" id=")9+q}i8,EkRfK%y8?m$p">SmartPlugBad</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="procedures_callcustomnoreturn" id="#+3Vykv_KUC+r[wsl!#7">
                                                        <mutation name="Logfile">
                                                          <arg name="datum"></arg>
                                                          <arg name="txt"></arg>
                                                        </mutation>
                                                        <value name="ARG0">
                                                          <block type="time_get" id="epqo/Uwl-Q?WT=8s)f$}">
                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                            <field name="OPTION">YYYY.MM.DD</field>
                                                          </block>
                                                        </value>
                                                        <value name="ARG1">
                                                          <block type="text_join" id="K+vUPx_nyUJ|dTDm_i~,">
                                                            <mutation items="2"></mutation>
                                                            <value name="ADD0">
                                                              <block type="text" id="r-_uYhD/+FG|lK2Fs7XG">
                                                                <field name="TEXT">Smart Plug Bad geändert: </field>
                                                              </block>
                                                            </value>
                                                            <value name="ADD1">
                                                              <block type="convert_tostring" id="j$|c?.*cPJ*O9%%HXr^C">
                                                                <value name="VALUE">
                                                                  <block type="variables_get" id="L*[i?ro6C5YMw(?2Tpgz">
                                                                    <field name="VAR" id=")9+q}i8,EkRfK%y8?m$p">SmartPlugBad</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </statement>
                                                <next>
                                                  <block type="controls_if" id="x]pMK?e[syVdHUUhB6!Z">
                                                    <value name="IF0">
                                                      <block type="logic_negate" id="Dg!}:VQ?#z1B0;0kYqzE">
                                                        <value name="BOOL">
                                                          <block type="variables_get" id="`qa7=EJ!2!jl-@g/w{,;">
                                                            <field name="VAR" id=")9+q}i8,EkRfK%y8?m$p">SmartPlugBad</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <statement name="DO0">
                                                      <block type="control" id="0|P58i_KWx5s,5fa}{w5">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                        <field name="OID">0_userdata.0.SmartPlugs_BadHzg.SmartPlugBad_Timeout</field>
                                                        <field name="WITH_DELAY">FALSE</field>
                                                        <value name="VALUE">
                                                          <block type="math_number" id="NxiG`rM^tW/[?VnZdSG!">
                                                            <field name="NUM">270</field>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="controls_if" id="Mn9t7fuJwZwLG0]-^YkS">
                                                            <value name="IF0">
                                                              <block type="logic_compare" id="e;;WpH|xR6H@V{d`N-@f">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="get_value" id="5PUwo:@$bN$R?^`oI}./">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">0_userdata.0.SmartPlugs_BadHzg.SmarPlugBad_Debug</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="logic_boolean" id="GU$?gU1/i46mWja1:D5j">
                                                                    <field name="BOOL">TRUE</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <statement name="DO0">
                                                              <block type="procedures_callcustomnoreturn" id=";~Gt^E]=@_oIKVd:v:N[">
                                                                <mutation name="Logfile">
                                                                  <arg name="datum"></arg>
                                                                  <arg name="txt"></arg>
                                                                </mutation>
                                                                <value name="ARG0">
                                                                  <block type="time_get" id="U~;{Pa{YD,jH~bD8jds~">
                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                    <field name="OPTION">YYYY.MM.DD</field>
                                                                  </block>
                                                                </value>
                                                                <value name="ARG1">
                                                                  <block type="text_join" id="g;%/|@FX;M}fp/(DR,q~">
                                                                    <mutation items="2"></mutation>
                                                                    <value name="ADD0">
                                                                      <block type="text" id="*-!Wb0;d-g:gR+K8ku;{">
                                                                        <field name="TEXT">Smart Plug Bad Timeout: </field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="ADD1">
                                                                      <block type="convert_tostring" id="2tK}%$ZJSCk/UTUU)Dw_">
                                                                        <value name="VALUE">
                                                                          <block type="get_value" id="=Z2cH^E@w/iXO7Bl0Uo!">
                                                                            <field name="ATTR">val</field>
                                                                            <field name="OID">0_userdata.0.SmartPlugs_BadHzg.SmartPlugBad_Timeout</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </statement>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </statement>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </statement>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </statement>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </statement>
      </block>
    </next>
  </block>
</xml>