<xml xmlns="https://developers.google.com/blockly/xml">
  <block type="schedule" id="zVt3@Jm)ZyqeF1~S{|{;" x="-107" y="80">
    <field name="SCHEDULE">{"time":{"start":"08:00","end":"17:00","mode":"minutes","interval":15},"period":{"days":1}}</field>
    <statement name="STATEMENT">
      <block type="comment" id="4:1c=|ZVI1FIB4fdN:zS">
        <field name="COMMENT">Wenn der berechnete lokale UVI über Wert steigt</field>
        <next>
          <block type="controls_if" id="OIhx)xvagZ][I*:QyV!y">
            <value name="IF0">
              <block type="logic_compare" id="T20Da]gAX%OLX3[rGRj[">
                <field name="OP">GT</field>
                <value name="A">
                  <block type="get_value" id="WRWU4MK{He!I:;kY-b$I">
                    <field name="ATTR">val</field>
                    <field name="OID">javascript.0.LokalerUVI</field>
                  </block>
                </value>
                <value name="B">
                  <block type="math_number" id="]T[$pJ:V?#CkYJ6MC=8V">
                    <field name="NUM">5</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="comment" id="a!o}cRYpHW)TEli(#{0j">
                <field name="COMMENT">Wenn der UV Wert über 5 liegt und die Läden offen sind</field>
                <next>
                  <block type="controls_if" id="(!15X`OR:D%PI7*cFXlZ">
                    <value name="IF0">
                      <block type="logic_operation" id=")wR^4yk1SyJQV;L;/^vm">
                        <field name="OP">AND</field>
                        <value name="A">
                          <block type="logic_compare" id="~8mc-a*36V#0yG.u2~h6">
                            <field name="OP">GT</field>
                            <value name="A">
                              <block type="get_value" id="|Gf3*-}ym)c#FpjLR2`j">
                                <field name="ATTR">val</field>
                                <field name="OID">javascript.0.LokalerUVI</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="cH#{en[8WTZ}s:#^aqUG">
                                <field name="NUM">5</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_operation" id="(A[*ef:gU(K}8n|JaX?=">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="logic_compare" id="C!9|2)]izNevH7eOpR1~">
                                <field name="OP">LT</field>
                                <value name="A">
                                  <block type="get_value" id="]{~v|q6*tHT^|yikRZ8y">
                                    <field name="ATTR">val</field>
                                    <field name="OID">daswetter.0.NextHours2.Location_1.Day_1.current.clouds</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="math_number" id="fltI0bIwG^x5T8O.x83)">
                                    <field name="NUM">30</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_compare" id="eY$$76aX?`E3eaHcrdCd">
                                <field name="OP">GT</field>
                                <value name="A">
                                  <block type="get_value" id="c,PtL64SKAjx3Q_A|iI(">
                                    <field name="ATTR">val</field>
                                    <field name="OID">shelly.0.SHSW-25#5DB483#1.Shutter.Position</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="math_number" id="5crR@+2k4hv#.2uLdZfv">
                                    <field name="NUM">90</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="comment" id="lMf}OCsWs4l5oV7*4L9!">
                        <field name="COMMENT">in die Beschattungs Position fahren</field>
                        <next>
                          <block type="controls_if" id="^0if6G,u[z:toB2O*Oo+">
                            <value name="IF0">
                              <block type="logic_compare" id="!!T+i~;kMYS.fC8|C}5|">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="P_aCJC@w.^#jo(B*WC[`">
                                    <field name="ATTR">val</field>
                                    <field name="OID">Meine_Geraete.0.Virtueller_Schalter_1_TTuer</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_boolean" id="zBY[mH0tGwcKe}kJC{kP">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="control" id="@qNANbb#oUu,RpQrHO1F">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">shelly.0.SHSW-25#BA6F8A#1.Shutter.Position</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="math_number" id="5UrSG3O|:MX9A+{K+oJ[">
                                    <field name="NUM">20</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                            <next>
                              <block type="control" id="SU%a9:{)Y*@(nfsMe%;`">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">shelly.0.SHSW-25#5DB483#1.Shutter.Position</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="math_number" id="?s/c[`l*=uqBf;r*YPru">
                                    <field name="NUM">20</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="control" id="PV2bZ7xZ]f)9C`_@{M+1">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">shelly.0.SHSW-25#73CCAD#1.Shutter.Position</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="math_number" id="|/Zfb*h8Pt4-jO1s!tny">
                                        <field name="NUM">0</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="control" id="2kf[Jn(IhI*F]?c9T/98">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">shelly.0.SHSW-25#688438#1.Shutter.Position</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="math_number" id="W(^!;tGh#DH!%hJhz6bq">
                                            <field name="NUM">20</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="control" id="+2swQCaHDltbelKTha7B">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">shelly.0.SHSW-25#688123#1.Shutter.Position</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="math_number" id="c!Ku[13.AR0.Y{+t_m`?">
                                                <field name="NUM">20</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="control" id="t5MjxgRig#hCOD%G9SMo">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">shelly.0.SHSW-25#BA921C#1.Shutter.Position</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="math_number" id="59f6C#uG!^Y5.$ethTsk">
                                                    <field name="NUM">20</field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="telegram" id="`6r2#@KVw^?;,+pj`m+g">
                                                    <field name="INSTANCE">.0</field>
                                                    <field name="LOG">log</field>
                                                    <field name="SILENT">FALSE</field>
                                                    <field name="PARSEMODE">default</field>
                                                    <value name="MESSAGE">
                                                      <shadow type="text" id="7%uTD.4#PU(Yf.h1}{Mv">
                                                        <field name="TEXT">+++ Sonnenschutz: Rollläden werden geschlossen +++</field>
                                                      </shadow>
                                                    </value>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </statement>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="schedule" id="K_0toyK/sQ3QfvGik80|" x="-112" y="863">
    <field name="SCHEDULE">{"time":{"start":"14:00","end":"21:00","mode":"minutes","interval":15},"period":{"days":1}}</field>
    <statement name="STATEMENT">
      <block type="comment" id="~z?,_NL0.NWh_/w+!}Y)">
        <field name="COMMENT">Wenn der UV wert unter 1 ist und die Läden geschlossen sind</field>
        <next>
          <block type="controls_if" id="(T~8HJ[:r5zDZQ?fZw^I">
            <value name="IF0">
              <block type="logic_operation" id="wq*G_;aqd!~qG:$5~q*#">
                <field name="OP">AND</field>
                <value name="A">
                  <block type="logic_compare" id="%Lg2}|6JE^im`R/j9(U9">
                    <field name="OP">LT</field>
                    <value name="A">
                      <block type="get_value" id="/|F]FaCL#UqyIe;/qJ+4">
                        <field name="ATTR">val</field>
                        <field name="OID">javascript.0.LokalerUVI</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="math_number" id="Z}KnK|.*TYJEv`rsWrlU">
                        <field name="NUM">1</field>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <block type="logic_compare" id="Ua9@Lh}st0Tlxia=YN*-">
                    <field name="OP">LT</field>
                    <value name="A">
                      <block type="get_value" id="@wP,[f4]5wCBy:TZ:{Im">
                        <field name="ATTR">val</field>
                        <field name="OID">shelly.0.SHSW-25#BA6F8A#1.Shutter.Position</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="math_number" id="1I.szuK)LHgo1HVK)8A6">
                        <field name="NUM">50</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="comment" id="t21UQeZODOCyf|F73};u">
                <field name="COMMENT">die Läden öffnen</field>
                <next>
                  <block type="controls_if" id="21rAgk)_K#+#c7OD(M*o">
                    <value name="IF0">
                      <block type="logic_compare" id="foHI]K^iwkJ~.S0Ur{,R">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id="t2RTnQoI#/gf662edF`K">
                            <field name="ATTR">val</field>
                            <field name="OID">Meine_Geraete.0.Virtueller_Schalter_1_TTuer</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_boolean" id="kW/CG~s^!4`]TtD}%Z5J">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="control" id="QVm1G)9z|%/0G.T+Fxu`">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">shelly.0.SHSW-25#BA6F8A#1.Shutter.Position</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="math_number" id="jt~c4@FfARmVMCWwUD7_">
                            <field name="NUM">100</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <next>
                      <block type="control" id="1IHgo/|U@Rc)oDgt3%fH">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">shelly.0.SHSW-25#5DB483#1.Shutter.Position</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="math_number" id="AGxC2o48QWcP-{e1sEy6">
                            <field name="NUM">100</field>
                          </block>
                        </value>
                        <next>
                          <block type="control" id="ESoJq_*sfE8dqrU9PLtQ">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">shelly.0.SHSW-25#73CCAD#1.Shutter.Position</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="math_number" id="Bu7@}:IAu7nP[o]mW#H2">
                                <field name="NUM">100</field>
                              </block>
                            </value>
                            <next>
                              <block type="control" id="%Sn~~34|j/:G)Foa=+99">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">shelly.0.SHSW-25#688438#1.Shutter.Position</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="math_number" id="EcWkJ4Vet{u%)JPfmIR?">
                                    <field name="NUM">100</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="control" id="hi/vl8OZNSULs?z(d_g;">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">shelly.0.SHSW-25#688123#1.Shutter.Position</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="math_number" id="[pGwB5!C]5pz2X|sgm(*">
                                        <field name="NUM">100</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="control" id="{yaVhY]Hk6cSP^8RI#;!">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">shelly.0.SHSW-25#BA921C#1.Shutter.Position</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="math_number" id="sk|_UJl;aSXoc|*Ja#6U">
                                            <field name="NUM">100</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="telegram" id="|bKgv}n-73p+n|)MB9l@">
                                            <field name="INSTANCE">.0</field>
                                            <field name="LOG">log</field>
                                            <field name="SILENT">FALSE</field>
                                            <field name="PARSEMODE">default</field>
                                            <value name="MESSAGE">
                                              <shadow type="text" id="BL?gfHP2m%[TuLyKx0[#">
                                                <field name="TEXT">+++ Sonnenschutz: Rollläden werden geöffnet +++</field>
                                              </shadow>
                                            </value>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </statement>
          </block>
        </next>
      </block>
    </statement>
  </block>
</xml>