NEWS

Telegram doppelt Nachrichten Astro



  • Hallo zusammen,

    ich werde aus dem Telegram Adapter nicht ganz schlau. Ich habe ein Blockly script angelegt wo der Trigger die Astro Funktion ist. In dem Script werden für mich wichtige Tageszeiten gesteuert. Ich poste mal das Blockly script und vielleicht kann mir jemand sagen wieso ich immer zwei Meldungen erhalte. Die sind so um 5 Sekunden versetzt.

    Wäre super wenn mir jemand helfen kann.

    iobroker_rollo_automatik.PNG

    <xml xmlns="http://www.w3.org/1999/xhtml">
      <block type="astro" id="B`H](f,Q/iADQq@r1|1V" x="13" y="13">
        <field name="TYPE">sunriseEnd</field>
        <field name="OFFSET">140</field>
        <statement name="STATEMENT">
          <block type="debug" id="7FEFP8*KIGy+P-,J92fR">
            <field name="Severity">log</field>
            <value name="TEXT">
              <shadow type="text" id="buq^R*E-WV;LLXz-Ne4)">
                <field name="TEXT">Sonnenaufgang-Ende 140 min</field>
              </shadow>
            </value>
            <next>
              <block type="telegram" id="H9!I}nApZIp]c(*/rY~4">
                <field name="INSTANCE">.0</field>
                <field name="LOG"></field>
                <field name="SILENT">FALSE</field>
                <field name="PARSEMODE">default</field>
                <value name="MESSAGE">
                  <shadow type="text" id="Cv]N{*sW3typGXe{C%j}">
                    <field name="TEXT">Rollos fahren auf Tag</field>
                  </shadow>
                </value>
                <next>
                  <block type="update" id=",daO/XUn`^H+h249U%.r" disabled="true">
                    <mutation delay_input="false"></mutation>
                    <field name="OID">admin.0.Anwesenheit.Tag</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="pLf`o03G~+/mxo4]4xbG">
                        <field name="BOOL">TRUE</field>
                      </block>
                    </value>
                    <next>
                      <block type="controls_if" id="h5xoPZH.hpMlq|9fY#8@" disabled="true">
                        <value name="IF0">
                          <block type="logic_negate" id="ecTO+BQJk3~fh.;|iCXa">
                            <value name="BOOL">
                              <block type="get_value" id="|3fqi=UPb~;sQO#GJaa9">
                                <field name="ATTR">val</field>
                                <field name="OID">admin.0.Anwesenheit.Valentina</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="controls_if" id="y19{E|h^y#O`~^s4uzi7">
                            <value name="IF0">
                              <block type="get_value" id="ShF6l#AJh3A[}E`pW{C0">
                                <field name="ATTR">val</field>
                                <field name="OID">admin.0.SchlaZi-Rollladen-Parameter.Automatik</field>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="control" id="jVJVPC_?y!+D)hJ6ulTb">
                                <mutation delay_input="false"></mutation>
                                <field name="OID">admin.0.SchlaZi-Rollladen-Parameter.Soll-Position</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="get_value" id="dZRa~=ySyZB;EsQmAb|,">
                                    <field name="ATTR">val</field>
                                    <field name="OID">admin.0.SchlaZi-Rollladen-Parameter.Wunsch_Tag</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="update" id="pZcoIGJyz~R2ZO@)Ap[t">
                                    <mutation delay_input="true"></mutation>
                                    <field name="OID">admin.0.SchlaZi-Deckenlampe</field>
                                    <field name="WITH_DELAY">TRUE</field>
                                    <field name="DELAY_MS">15</field>
                                    <field name="UNIT">sec</field>
                                    <field name="CLEAR_RUNNING">FALSE</field>
                                    <value name="VALUE">
                                      <block type="logic_boolean" id="1N#W,@7(M^0e,)w-xG(V">
                                        <field name="BOOL">FALSE</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="update" id="8BodEd@Gt1uUqw5@#:fF">
                                        <mutation delay_input="true"></mutation>
                                        <field name="OID">admin.0.SchlaZi-Nachttisch.Helligkeit</field>
                                        <field name="WITH_DELAY">TRUE</field>
                                        <field name="DELAY_MS">30</field>
                                        <field name="UNIT">sec</field>
                                        <field name="CLEAR_RUNNING">FALSE</field>
                                        <value name="VALUE">
                                          <block type="math_number" id="WsEs`Txh(LD!nBFaU~{T">
                                            <field name="NUM">0</field>
                                          </block>
                                        </value>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </statement>
                          </block>
                        </statement>
                        <next>
                          <block type="controls_if" id="`[Z7Wu9JZwBocu)+SnB{" disabled="true">
                            <value name="IF0">
                              <block type="get_value" id="1Y?OD9B*z)aBb0;B0597">
                                <field name="ATTR">val</field>
                                <field name="OID">javascript.0.Rollladen.Schlafzimmer.Automatik</field>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="control" id="v%J~]WppM~Gk+0=s}si?">
                                <mutation delay_input="false"></mutation>
                                <field name="OID">javascript.0.Rollladen.Schlafzimmer.Soll-Position</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="get_value" id="]{*yTl*ON-9Io_F,an!V">
                                    <field name="ATTR">val</field>
                                    <field name="OID">javascript.0.Rollladen.Schlafzimmer.Wunsch_Tag</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                            <next>
                              <block type="controls_if" id="Jp:3y`0WLT%Suo@6aW,f">
                                <value name="IF0">
                                  <block type="get_value" id="/+K4eW|T]*Mn2/*Lh3J:">
                                    <field name="ATTR">val</field>
                                    <field name="OID">javascript.0.Rollladen.Bad.Automatik</field>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="control" id="7|w}=[IF,?Q~;qB@#-v6">
                                    <mutation delay_input="true"></mutation>
                                    <field name="OID">javascript.0.Rollladen.Bad.Soll-Position</field>
                                    <field name="WITH_DELAY">TRUE</field>
                                    <field name="DELAY_MS">3000</field>
                                    <field name="UNIT">ms</field>
                                    <field name="CLEAR_RUNNING">FALSE</field>
                                    <value name="VALUE">
                                      <block type="get_value" id="8Vc_;ZjtP{g}fmse%6kj">
                                        <field name="ATTR">val</field>
                                        <field name="OID">javascript.0.Rollladen.Bad.Wunsch_Tag</field>
                                      </block>
                                    </value>
                                  </block>
                                </statement>
                                <next>
                                  <block type="controls_if" id="jWJsM@UO;ErDZ-A|R{g{" disabled="true">
                                    <value name="IF0">
                                      <block type="get_value" id="~8de9.}W%0qeif(8D3xc">
                                        <field name="ATTR">val</field>
                                        <field name="OID">javascript.0.Rollladen.Kinderzimmer_Marie.Automatik</field>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="control" id="!G8BTmreXJgmvUs/7yrN">
                                        <mutation delay_input="true"></mutation>
                                        <field name="OID">javascript.0.Rollladen.Kinderzimmer_Marie.Soll-Position</field>
                                        <field name="WITH_DELAY">TRUE</field>
                                        <field name="DELAY_MS">6000</field>
                                        <field name="UNIT">ms</field>
                                        <field name="CLEAR_RUNNING">FALSE</field>
                                        <value name="VALUE">
                                          <block type="get_value" id="0{O/Wnd2kSW!2[Or/fBK">
                                            <field name="ATTR">val</field>
                                            <field name="OID">javascript.0.Rollladen.Kinderzimmer_Marie.Wunsch_Tag</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <next>
                                      <block type="controls_if" id="MhnBSsT~3ib*^yiZ!BMn">
                                        <value name="IF0">
                                          <block type="get_value" id="9_@eWNNvHnO0mUI2jYK#">
                                            <field name="ATTR">val</field>
                                            <field name="OID">javascript.0.Rollladen.Kinderzimmer_Kind2.Automatik</field>
                                          </block>
                                        </value>
                                        <statement name="DO0">
                                          <block type="control" id="}H!%t4`y99ESd]m`WG9}">
                                            <mutation delay_input="true"></mutation>
                                            <field name="OID">javascript.0.Rollladen.Kinderzimmer_Kind2.Soll-Position</field>
                                            <field name="WITH_DELAY">TRUE</field>
                                            <field name="DELAY_MS">9000</field>
                                            <field name="UNIT">ms</field>
                                            <field name="CLEAR_RUNNING">FALSE</field>
                                            <value name="VALUE">
                                              <block type="get_value" id="F[R7uuaCc{EPCz5RXymj">
                                                <field name="ATTR">val</field>
                                                <field name="OID">javascript.0.Rollladen.Kinderzimmer_Kind2.Wunsch_Tag</field>
                                              </block>
                                            </value>
                                          </block>
                                        </statement>
                                        <next>
                                          <block type="controls_if" id="SdX+a-U)!;N#OdT8UwLm">
                                            <value name="IF0">
                                              <block type="get_value" id="U(5o#J:S{W_W3`t:b]:-">
                                                <field name="ATTR">val</field>
                                                <field name="OID">javascript.0.Rollladen.Buero.Automatik</field>
                                              </block>
                                            </value>
                                            <statement name="DO0">
                                              <block type="control" id="+kdTP/TT!|U5fgp%N|q-">
                                                <mutation delay_input="true"></mutation>
                                                <field name="OID">javascript.0.Rollladen.Buero.Soll-Position</field>
                                                <field name="WITH_DELAY">TRUE</field>
                                                <field name="DELAY_MS">12000</field>
                                                <field name="UNIT">ms</field>
                                                <field name="CLEAR_RUNNING">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="get_value" id="].b/a#McZIaB-dtifP{z">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">javascript.0.Rollladen.Buero.Wunsch_Tag</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </statement>
                                            <next>
                                              <block type="controls_if" id="3Yk6DEc7J.*0rU{}?Bz," disabled="true">
                                                <value name="IF0">
                                                  <block type="logic_negate" id="}snT^1rL0GJ(}=y2BV^:">
                                                    <value name="BOOL">
                                                      <block type="get_value" id="Wr}mwMRi2MvJ+2%/sDTJ">
                                                        <field name="ATTR">val</field>
                                                        <field name="OID">admin.0.WoZi-Schlaf</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <statement name="DO0">
                                                  <block type="controls_if" id="K(THAHJZ9{JmV{y6i2*.">
                                                    <value name="IF0">
                                                      <block type="get_value" id="fE;!D1c^GrMrqPl[2v8o">
                                                        <field name="ATTR">val</field>
                                                        <field name="OID">admin.0.WoZi-Rollladen-Parameter.Automatik</field>
                                                      </block>
                                                    </value>
                                                    <statement name="DO0">
                                                      <block type="control" id="ot5;%sbhxwFQW`]f1pJX">
                                                        <mutation delay_input="true"></mutation>
                                                        <field name="OID">admin.0.WoZi-Rollladen-Parameter.Soll-Position</field>
                                                        <field name="WITH_DELAY">TRUE</field>
                                                        <field name="DELAY_MS">2</field>
                                                        <field name="UNIT">min</field>
                                                        <field name="CLEAR_RUNNING">FALSE</field>
                                                        <value name="VALUE">
                                                          <block type="get_value" id="WSr@WTt|)gyl`x)De_Zd">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">admin.0.WoZi-Rollladen-Parameter.Wunsch_Tag</field>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="update" id="(hwiC`x8+th=iXu0M,D,">
                                                            <mutation delay_input="true"></mutation>
                                                            <field name="OID">admin.0.WoZi_</field>
                                                            <field name="WITH_DELAY">TRUE</field>
                                                            <field name="DELAY_MS">30</field>
                                                            <field name="UNIT">sec</field>
                                                            <field name="CLEAR_RUNNING">FALSE</field>
                                                            <value name="VALUE">
                                                              <block type="logic_boolean" id="ATdNw[gl*L-i}7t/Uh;=">
                                                                <field name="BOOL">FALSE</field>
                                                              </block>
                                                            </value>
                                                          </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>
        </statement>
      </block>
      <block type="astro" id="^HGa`{2*Umyx7qip08V|" x="13" y="1038">
        <field name="TYPE">solarNoon</field>
        <field name="OFFSET">-300</field>
        <statement name="STATEMENT">
          <block type="controls_if" id="%[/%nG3w~,X{C`hO~Cw:">
            <value name="IF0">
              <block type="logic_compare" id="ni#(~4YYWurZpQ@uEzjM" inline="false">
                <field name="OP">GTE</field>
                <value name="A">
                  <block type="get_value" id="SNYX=5JPDe.?Y~1+O47Z">
                    <field name="ATTR">val</field>
                    <field name="OID">yr.0.forecast.day0.temperatureMax</field>
                  </block>
                </value>
                <value name="B">
                  <block type="math_number" id="~S.4|[6qV7Uoo53S;)o:">
                    <field name="NUM">23</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="telegram" id="!;QRe|q*!%]+Y8y7br:Z">
                <field name="INSTANCE">.0</field>
                <field name="LOG"></field>
                <field name="SILENT">FALSE</field>
                <field name="PARSEMODE">default</field>
                <value name="MESSAGE">
                  <shadow type="text" id="@{EmB%wUlk?x#O%=Z-Y2">
                    <field name="TEXT">Rollos fahren auf Mittagssonne</field>
                  </shadow>
                </value>
                <next>
                  <block type="debug" id="h)}yH{-7[(DE!v~nNzBM">
                    <field name="Severity">log</field>
                    <value name="TEXT">
                      <shadow type="text" id="nSmlpmyf,1#XqA89O?6n">
                        <field name="TEXT">Sonnenmittag -300min &gt;=25°C</field>
                      </shadow>
                    </value>
                  </block>
                </next>
              </block>
            </statement>
            <next>
              <block type="controls_if" id="MeHG|5Q+BvH:LQF:+@)-">
                <value name="IF0">
                  <block type="get_value" id="`c@^B#K;A}i%9n21,Gi2">
                    <field name="ATTR">val</field>
                    <field name="OID">javascript.0.Rollladen.Schlafzimmer.Automatik</field>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="control" id="]s6U+]mod;wy8*t5kueC">
                    <mutation delay_input="false"></mutation>
                    <field name="OID">javascript.0.Rollladen.Schlafzimmer.Soll-Position</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="get_value" id="X)K3F`a4m`AwDirj)y~7">
                        <field name="ATTR">val</field>
                        <field name="OID">javascript.0.Rollladen.Schlafzimmer.Wunsch_Sonne</field>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="controls_if" id="jxUA{U+i(yw47l:~[Cp%">
                    <value name="IF0">
                      <block type="get_value" id="@j*-mz!Q2r$6FiE+(qD$">
                        <field name="ATTR">val</field>
                        <field name="OID">javascript.0.Rollladen.Bad.Automatik</field>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="control" id="5R=;!LtM6dY*=cK~c%-3">
                        <mutation delay_input="true"></mutation>
                        <field name="OID">javascript.0.Rollladen.Bad.Soll-Position</field>
                        <field name="WITH_DELAY">TRUE</field>
                        <field name="DELAY_MS">3000</field>
                        <field name="UNIT">ms</field>
                        <field name="CLEAR_RUNNING">FALSE</field>
                        <value name="VALUE">
                          <block type="get_value" id="1R6*NbR3$15lUd%J8B1D">
                            <field name="ATTR">val</field>
                            <field name="OID">javascript.0.Rollladen.Bad.Wunsch_Sonne</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <next>
                      <block type="controls_if" id="OrHQTBJ6!,64|0mNx)x)">
                        <value name="IF0">
                          <block type="get_value" id="H]1Jm+,W5{Cwb9Pl+,gz">
                            <field name="ATTR">val</field>
                            <field name="OID">javascript.0.Rollladen.Kinderzimmer_Marie.Automatik</field>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="control" id="ewU2}@numRr2uQ+AHIrl">
                            <mutation delay_input="true"></mutation>
                            <field name="OID">javascript.0.Rollladen.Kinderzimmer_Marie.Soll-Position</field>
                            <field name="WITH_DELAY">TRUE</field>
                            <field name="DELAY_MS">6000</field>
                            <field name="UNIT">ms</field>
                            <field name="CLEAR_RUNNING">FALSE</field>
                            <value name="VALUE">
                              <block type="get_value" id="v{}u7Sg}Lg%}*ootoy6]">
                                <field name="ATTR">val</field>
                                <field name="OID">javascript.0.Rollladen.Kinderzimmer_Marie.Wunsch_Sonne</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <next>
                          <block type="controls_if" id="tW})m}40)l3xb%[.NfH,">
                            <value name="IF0">
                              <block type="get_value" id="lV;%4E/Q^wTfme2Jfp2!">
                                <field name="ATTR">val</field>
                                <field name="OID">javascript.0.Rollladen.Kinderzimmer_Kind2.Automatik</field>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="control" id="(=rw2@hltAEECQ.^[S*i">
                                <mutation delay_input="true"></mutation>
                                <field name="OID">javascript.0.Rollladen.Kinderzimmer_Kind2.Soll-Position</field>
                                <field name="WITH_DELAY">TRUE</field>
                                <field name="DELAY_MS">9000</field>
                                <field name="UNIT">ms</field>
                                <field name="CLEAR_RUNNING">FALSE</field>
                                <value name="VALUE">
                                  <block type="get_value" id="hh.vb[wv-Pn4Fg7i@gM]">
                                    <field name="ATTR">val</field>
                                    <field name="OID">javascript.0.Rollladen.Kinderzimmer_Kind2.Wunsch_Sonne</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                            <next>
                              <block type="controls_if" id="82RQT/@S~wB.4@I[*iIh">
                                <value name="IF0">
                                  <block type="get_value" id="(w;8K]Nng0WtNYSy2h=d">
                                    <field name="ATTR">val</field>
                                    <field name="OID">javascript.0.Rollladen.Buero.Automatik</field>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="control" id="z9h]CX9*K_@4X6G;[_-@">
                                    <mutation delay_input="true"></mutation>
                                    <field name="OID">javascript.0.Rollladen.Buero.Soll-Position</field>
                                    <field name="WITH_DELAY">TRUE</field>
                                    <field name="DELAY_MS">12000</field>
                                    <field name="UNIT">ms</field>
                                    <field name="CLEAR_RUNNING">FALSE</field>
                                    <value name="VALUE">
                                      <block type="get_value" id="e`q{@}8^jT-C@b.(y3h3">
                                        <field name="ATTR">val</field>
                                        <field name="OID">javascript.0.Rollladen.Buero.Wunsch_Sonne</field>
                                      </block>
                                    </value>
                                  </block>
                                </statement>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </statement>
      </block>
      <block type="astro" id="{!a%cHwR~]Hk)e4hxHK(" disabled="true" x="13" y="1763">
        <field name="TYPE">solarNoon</field>
        <field name="OFFSET">300</field>
        <statement name="STATEMENT">
          <block type="controls_if" id="{Grh^2LRz(hwg5YU4}lP">
            <value name="IF0">
              <block type="logic_compare" id="FtGPsg#9n`~{OG0n)(V3" inline="false">
                <field name="OP">GTE</field>
                <value name="A">
                  <block type="get_value" id="Gtn,U|-^Z#Ej#@Yk%7F/">
                    <field name="ATTR">val</field>
                    <field name="OID">yr.0.forecast.day0.temperatureMax</field>
                  </block>
                </value>
                <value name="B">
                  <block type="math_number" id="Y)YCS?UBj-_X7d+K9^80">
                    <field name="NUM">23</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="telegram" id="W+yF!ZQV$HHN9];)_GJ,">
                <field name="INSTANCE">.0</field>
                <field name="LOG"></field>
                <field name="SILENT">FALSE</field>
                <field name="PARSEMODE">default</field>
                <value name="MESSAGE">
                  <shadow type="text" id="-Xch5Png=WzXQd%r-Ycf">
                    <field name="TEXT">Rollos fahren auf Tag</field>
                  </shadow>
                </value>
                <next>
                  <block type="debug" id="kiEwxn7x]~^`aIfPx%Q-">
                    <field name="Severity">log</field>
                    <value name="TEXT">
                      <shadow type="text" id="l4QrOPV!5*Wvpj!4qezb">
                        <field name="TEXT">Sonnenmittag +300min &gt;=25°C</field>
                      </shadow>
                    </value>
                    <next>
                      <block type="controls_if" id="+DJ7#52bQKA;z7M;ZJ?{">
                        <value name="IF0">
                          <block type="get_value" id="KeX~tAq=`C4RJ_fgB:Se">
                            <field name="ATTR">val</field>
                            <field name="OID">javascript.0.Rollladen.Buero.Automatik</field>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="control" id="~,X*E:do0m,(S0vn7[Bh">
                            <mutation delay_input="false"></mutation>
                            <field name="OID">javascript.0.Rollladen.Buero.Soll-Position</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="get_value" id="WsT5gObMHOd03~jm7v,A">
                                <field name="ATTR">val</field>
                                <field name="OID">javascript.0.Rollladen.Buero.Wunsch_Tag</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <next>
                          <block type="controls_if" id="_yF?eb[4}c9e#%52Sx)2">
                            <value name="IF0">
                              <block type="get_value" id="LM#Am8$bN*C{N-OJh_dU">
                                <field name="ATTR">val</field>
                                <field name="OID">javascript.0.Rollladen.Kinderzimmer_Marie.Automatik</field>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="control" id="P}ZD9%ecR9KOlU=~Xw.m">
                                <mutation delay_input="true"></mutation>
                                <field name="OID">javascript.0.Rollladen.Kinderzimmer_Marie.Soll-Position</field>
                                <field name="WITH_DELAY">TRUE</field>
                                <field name="DELAY_MS">3000</field>
                                <field name="UNIT">ms</field>
                                <field name="CLEAR_RUNNING">FALSE</field>
                                <value name="VALUE">
                                  <block type="get_value" id="H5v.@9ImtCCh$yC=0_M-">
                                    <field name="ATTR">val</field>
                                    <field name="OID">javascript.0.Rollladen.Kinderzimmer_Marie.Wunsch_Tag</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                            <next>
                              <block type="controls_if" id="4*7ztF4ihroIMw2z3.sM">
                                <value name="IF0">
                                  <block type="get_value" id="MCgGZ4v%AYMAbH]:8cz8">
                                    <field name="ATTR">val</field>
                                    <field name="OID">javascript.0.Rollladen.Kinderzimmer_Kind2.Automatik</field>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="control" id="5mH[0iDe9hGYS!b)tRN!">
                                    <mutation delay_input="true"></mutation>
                                    <field name="OID">javascript.0.Rollladen.Kinderzimmer_Kind2.Soll-Position</field>
                                    <field name="WITH_DELAY">TRUE</field>
                                    <field name="DELAY_MS">6000</field>
                                    <field name="UNIT">ms</field>
                                    <field name="CLEAR_RUNNING">FALSE</field>
                                    <value name="VALUE">
                                      <block type="get_value" id="RpCx;6i7es3-pU8#LnaT">
                                        <field name="ATTR">val</field>
                                        <field name="OID">javascript.0.Rollladen.Kinderzimmer_Kind2.Wunsch_Tag</field>
                                      </block>
                                    </value>
                                  </block>
                                </statement>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </statement>
          </block>
        </statement>
      </block>
      <block type="astro" id="u1FuA9Bt#[_bp3vxh.@#" x="13" y="2338">
        <field name="TYPE">sunset</field>
        <field name="OFFSET">-90</field>
        <statement name="STATEMENT">
          <block type="debug" id="9:8+)4vFc2C%cq;vs;5F">
            <field name="Severity">log</field>
            <value name="TEXT">
              <shadow type="text" id="pdlrr,5X@PGRXTJ*B|ke">
                <field name="TEXT">Sonnenuntergang -90min</field>
              </shadow>
            </value>
            <next>
              <block type="telegram" id="lFNAu)hlB.r_j0.Ta9_B">
                <field name="INSTANCE">.0</field>
                <field name="LOG"></field>
                <field name="SILENT">FALSE</field>
                <field name="PARSEMODE">default</field>
                <value name="MESSAGE">
                  <shadow type="text" id="Z|!OSdPub#.@Sh.iom|-">
                    <field name="TEXT">Rollos fahren auf Nacht</field>
                  </shadow>
                </value>
                <next>
                  <block type="update" id="Lp6)TwA/JBH%}B`#oVH+" disabled="true">
                    <mutation delay_input="false"></mutation>
                    <field name="OID">admin.0.Anwesenheit.Tag</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="PiIkyroOIP4KMLV-.cbr">
                        <field name="BOOL">FALSE</field>
                      </block>
                    </value>
                    <next>
                      <block type="controls_if" id="g+2p8e*{*xN%y_hx:qL=">
                        <value name="IF0">
                          <block type="get_value" id="L{-#4d5jILpzTDz!B^xH">
                            <field name="ATTR">val</field>
                            <field name="OID">javascript.0.Rollladen.Schlafzimmer.Automatik</field>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="control" id="3rk[;|~e?W(8j2M`4Hx_">
                            <mutation delay_input="false"></mutation>
                            <field name="OID">javascript.0.Rollladen.Schlafzimmer.Soll-Position</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="get_value" id=":l~^3n[unCF12%0{~B(N">
                                <field name="ATTR">val</field>
                                <field name="OID">javascript.0.Rollladen.Schlafzimmer.Wunsch_Nacht</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <next>
                          <block type="controls_if" id="gsKOVffXrcG)cs]R^TLL">
                            <value name="IF0">
                              <block type="get_value" id="Lu,vQ(l!y?uv(*!Y[Aa/">
                                <field name="ATTR">val</field>
                                <field name="OID">javascript.0.Rollladen.Bad.Automatik</field>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="control" id="3W)+ytt*/1Yb.}@Y8V*c">
                                <mutation delay_input="true"></mutation>
                                <field name="OID">javascript.0.Rollladen.Bad.Soll-Position</field>
                                <field name="WITH_DELAY">TRUE</field>
                                <field name="DELAY_MS">3000</field>
                                <field name="UNIT">ms</field>
                                <field name="CLEAR_RUNNING">FALSE</field>
                                <value name="VALUE">
                                  <block type="get_value" id="s0*kTbaJCT#[d4W!75h7">
                                    <field name="ATTR">val</field>
                                    <field name="OID">javascript.0.Rollladen.Bad.Wunsch_Nacht</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                            <next>
                              <block type="controls_if" id="Qqw38*sndSRG]Ezih-vQ">
                                <value name="IF0">
                                  <block type="get_value" id="e{M[}|]w^}Mv?2sUFB~H">
                                    <field name="ATTR">val</field>
                                    <field name="OID">javascript.0.Rollladen.Kinderzimmer_Marie.Automatik</field>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="control" id="Qdw]*Z-tIstVy^,S9CkZ">
                                    <mutation delay_input="true"></mutation>
                                    <field name="OID">javascript.0.Rollladen.Kinderzimmer_Marie.Soll-Position</field>
                                    <field name="WITH_DELAY">TRUE</field>
                                    <field name="DELAY_MS">6000</field>
                                    <field name="UNIT">ms</field>
                                    <field name="CLEAR_RUNNING">FALSE</field>
                                    <value name="VALUE">
                                      <block type="get_value" id="|SQx{-z*Z=9zj*l@MRON">
                                        <field name="ATTR">val</field>
                                        <field name="OID">javascript.0.Rollladen.Kinderzimmer_Marie.Wunsch_Nacht</field>
                                      </block>
                                    </value>
                                  </block>
                                </statement>
                                <next>
                                  <block type="controls_if" id="x||PlhJ)pa#PmR=^9xaV">
                                    <value name="IF0">
                                      <block type="get_value" id="qHbT/WalN,%TCiao)KG6">
                                        <field name="ATTR">val</field>
                                        <field name="OID">javascript.0.Rollladen.Kinderzimmer_Kind2.Automatik</field>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="control" id="pfp5G^W4|LzA;}#PEq#~">
                                        <mutation delay_input="true"></mutation>
                                        <field name="OID">javascript.0.Rollladen.Kinderzimmer_Kind2.Soll-Position</field>
                                        <field name="WITH_DELAY">TRUE</field>
                                        <field name="DELAY_MS">9000</field>
                                        <field name="UNIT">ms</field>
                                        <field name="CLEAR_RUNNING">FALSE</field>
                                        <value name="VALUE">
                                          <block type="get_value" id="qWPN([U3a*ipUh3)_e*Y">
                                            <field name="ATTR">val</field>
                                            <field name="OID">javascript.0.Rollladen.Kinderzimmer_Kind2.Wunsch_Nacht</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <next>
                                      <block type="controls_if" id="*!Qu;8GAENfw6`HPbi@]">
                                        <value name="IF0">
                                          <block type="get_value" id="5-Oya/,dHw7i??3/QEZO">
                                            <field name="ATTR">val</field>
                                            <field name="OID">javascript.0.Rollladen.Buero.Automatik</field>
                                          </block>
                                        </value>
                                        <statement name="DO0">
                                          <block type="control" id="b-q7)kQtE8YJzC=;t[-M">
                                            <mutation delay_input="true"></mutation>
                                            <field name="OID">javascript.0.Rollladen.Buero.Soll-Position</field>
                                            <field name="WITH_DELAY">TRUE</field>
                                            <field name="DELAY_MS">12000</field>
                                            <field name="UNIT">ms</field>
                                            <field name="CLEAR_RUNNING">FALSE</field>
                                            <value name="VALUE">
                                              <block type="get_value" id="Z2t%Eb2WnhSviw:rBVsX">
                                                <field name="ATTR">val</field>
                                                <field name="OID">javascript.0.Rollladen.Buero.Wunsch_Nacht</field>
                                              </block>
                                            </value>
                                          </block>
                                        </statement>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </statement>
      </block>
    </xml>
    


  • @xxxspxxx

    Habe es getestet , bekomme nur eine Nachricht wie es auch sein soll .
    Teste mal nur mit diesem Schnipsel was passiert !?


  • Forum Testing

    @xxxspxxx
    Dir fehlt auch bei jeder Falls Abfrage welchen Wert der Datenpunkt (Beispiel SchlafzimmerAutomatik) haben soll. Also so was: 979e8ec1-2df0-422c-bef4-4d404074854c-grafik.png



  • @FredF Ich denke, dass der Datenpunkt selbst true/false ist. Weswegen auf ein Vergleich verzichtet werden kann.

    Beispiel:

    let automatik = true;
    if(automatik) { log("Automatik ist an"); }
    


  • Also leider ist mein Problem noch nicht weg. Ich habe ein Script was auch immer doppelt ausgeführt wird. Also um 19.30 Uhr sind gerade die Rolladen heruntergefahren und 1 minute später haben die Rollos nochmal den befehl bekommen und eine weitere Telegramm Nachricht.

    Ich kann doch mehrere Crons in einem Script starten lassen zu verschiedenen Uhrzeiten oder?

    Blockly_Rolladen_automatik.txt


Log in to reply
 

Suggested Topics

  • 12
  • 3
  • 13
  • 15
  • 2
  • 3
  • 1
  • 72

934
Online

32.2k
Users

38.8k
Topics

526.6k
Posts