Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Lüftungssteuerung mit Shelly 2.5 und HT

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Lüftungssteuerung mit Shelly 2.5 und HT

    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      NicB last edited by

      Hallo zusammen,

      ich bin recht neu in der Blockly Thematik und in diesem Forum. Aktuell Programmiere ich eine kleine Lüftungssteuerung die Luft über einen Wärmetauscher erst aus dem Raum heraus führt und anschließend wieder zurück schickt. Als Trigger dient der Luftfeuchtigkeitswert eines Shelly H&T in dem Raum. Der Motor wird über eine Steinmetzschaltung betrieben. Die Lastphase wird über ein Relais eines Shelly2 geschaltet und die Drehrichtungsumkehr über das zweite Relais des Shelly2. Nun habe ich das Skript soweit aufgebaut, dass es auch funktioniert. Nur wenn die Luftfeuchtigkeit unter 60 % fällt soll das System stoppen und das funktioniert nicht. Im Gegenteil, die An- und Absaugphasen sind nicht mehr 10 Minuten lang sondern starten recht willkürlich für mein empfinden. Kann mir jemand sagen, wo der Fehler in meinem Skript liegt?

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable type="interval" id="Intervall">Intervall</variable>
        </variables>
        <block type="on_ext" id="GE|=VL;ctD[/yM#y4c/I" x="-313" y="-237">
          <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
          <field name="CONDITION">any</field>
          <field name="ACK_CONDITION"></field>
          <value name="OID0">
            <shadow type="field_oid" id="P.4kd|F3sg)~n+le!_A8">
              <field name="oid">shelly.0.SHHT-1#9551EA#1.hum.value</field>
            </shadow>
          </value>
          <value name="OID1">
            <shadow type="field_oid" id=".xD|/4T[PNBc[T4EGToZ">
              <field name="oid">shelly.0.SHHT-1#9551EA#1.tmp.temperatureC</field>
            </shadow>
          </value>
          <statement name="STATEMENT">
            <block type="controls_if" id="/lx=(-!MSB.N93!M5#n.">
              <mutation else="1"></mutation>
              <value name="IF0">
                <block type="logic_operation" id="gP%j9f?rxR=u}:p[QLq;">
                  <field name="OP">AND</field>
                  <value name="A">
                    <block type="logic_compare" id="a]rin`~L:O5Pf`uX6R#0">
                      <field name="OP">GTE</field>
                      <value name="A">
                        <block type="get_value" id="nkOg7gH-;nX:gf$ukW{p">
                          <field name="ATTR">val</field>
                          <field name="OID">shelly.0.SHHT-1#9551EA#1.hum.value</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="math_number" id=";3LrLubdu~?[Yx5-07`f">
                          <field name="NUM">60</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <value name="B">
                    <block type="logic_compare" id="yc^SoarYb}j4L0}d#wLZ">
                      <field name="OP">GT</field>
                      <value name="A">
                        <block type="get_value" id="^2FQ,j#tYAzGe#.H4z_q">
                          <field name="ATTR">val</field>
                          <field name="OID">shelly.0.SHHT-1#9551EA#1.tmp.temperatureC</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="math_number" id="e!f^!+x=|`7);yTT8`/+">
                          <field name="NUM">19</field>
                        </block>
                      </value>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO0">
                <block type="control" id="#){N;Jv|MVur.5c+;;Cz">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                  <field name="OID">shelly.0.SHSW-25#10521CF98065#1.Relay0.Switch</field>
                  <field name="WITH_DELAY">TRUE</field>
                  <field name="DELAY_MS">1</field>
                  <field name="UNIT">min</field>
                  <field name="CLEAR_RUNNING">FALSE</field>
                  <value name="VALUE">
                    <block type="logic_boolean" id="unjk_?:]EJYF1,$K?N5A">
                      <field name="BOOL">TRUE</field>
                    </block>
                  </value>
                  <next>
                    <block type="debug" id="?Q#$X:4.SpA*,)rKO-J?">
                      <field name="Severity">log</field>
                      <value name="TEXT">
                        <shadow type="text" id=":P.@ZPx@1M9(zf/Y.AZ_">
                          <field name="TEXT">Absaugen</field>
                        </shadow>
                      </value>
                      <next>
                        <block type="control" id="{ujBiccQh6u=j+S17?-q">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                          <field name="OID">shelly.0.SHSW-25#10521CF98065#1.Relay0.Switch</field>
                          <field name="WITH_DELAY">TRUE</field>
                          <field name="DELAY_MS">11</field>
                          <field name="UNIT">min</field>
                          <field name="CLEAR_RUNNING">FALSE</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id=":}o6.m~(zcVr)Joc:/Ua">
                              <field name="BOOL">FALSE</field>
                            </block>
                          </value>
                          <next>
                            <block type="control" id="*HadsET8W[|xeQz{RF$K">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                              <field name="OID">shelly.0.SHSW-25#10521CF98065#1.Relay0.Switch</field>
                              <field name="WITH_DELAY">TRUE</field>
                              <field name="DELAY_MS">13</field>
                              <field name="UNIT">min</field>
                              <field name="CLEAR_RUNNING">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="Sl{R`_epd=?OX/a0K?Yh">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                              <next>
                                <block type="debug" id="XuWFJ=ciNgBo`F[@yKFo">
                                  <field name="Severity">log</field>
                                  <value name="TEXT">
                                    <shadow type="text" id="/B_x^L8lq{5Hq7u|Mh^h">
                                      <field name="TEXT">Ansaugen</field>
                                    </shadow>
                                  </value>
                                  <next>
                                    <block type="control" id="u}F+;//b:Ge}K;36%Yij">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                      <field name="OID">shelly.0.SHSW-25#10521CF98065#1.Relay0.Switch</field>
                                      <field name="WITH_DELAY">TRUE</field>
                                      <field name="DELAY_MS">23</field>
                                      <field name="UNIT">min</field>
                                      <field name="CLEAR_RUNNING">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id=",,at-`~|obgf6cMfdLVh">
                                          <field name="BOOL">FALSE</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="controls_if" id="MF#!NyEJfq|8ixCTj*[A">
                                          <value name="IF0">
                                            <block type="logic_compare" id="qyvs6Yx8Cn2)]$j%k2z]">
                                              <field name="OP">EQ</field>
                                              <value name="A">
                                                <block type="get_value" id="@;/3Z^s;(xL),%o:!vgO">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">shelly.0.SHSW-25#10521CF98065#1.Relay0.Switch</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="logic_boolean" id="v%ifPoZJv+H;1]Zolo{5">
                                                  <field name="BOOL">FALSE</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO0">
                                            <block type="debug" id="KL6p,A%W.y5owv6!7X(4">
                                              <field name="Severity">log</field>
                                              <value name="TEXT">
                                                <shadow type="text" id="v@g8ge}8Ls?=N|3rmNeR">
                                                  <field name="TEXT">Relais Absaugen</field>
                                                </shadow>
                                              </value>
                                              <next>
                                                <block type="control" id="Z}+]!A1A0Sul$2Qo~f|+">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">shelly.0.SHSW-25#10521CF98065#1.Relay1.Switch</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="logic_boolean" id="n7j}.b=tCvx49fxX,=L4">
                                                      <field name="BOOL">TRUE</field>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="debug" id="Uku%c1T;h9ju3C2hYg!a">
                                                      <field name="Severity">log</field>
                                                      <value name="TEXT">
                                                        <shadow type="text" id="U]]Vs{`tde;|afbvf=`s">
                                                          <field name="TEXT">Relais Ansaugen</field>
                                                        </shadow>
                                                      </value>
                                                      <next>
                                                        <block type="control" id="aSj;Mj(VUC)Xl8m.6#cN">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                          <field name="OID">shelly.0.SHSW-25#10521CF98065#1.Relay1.Switch</field>
                                                          <field name="WITH_DELAY">TRUE</field>
                                                          <field name="DELAY_MS">12</field>
                                                          <field name="UNIT">min</field>
                                                          <field name="CLEAR_RUNNING">FALSE</field>
                                                          <value name="VALUE">
                                                            <block type="logic_boolean" id="BEsn|5O=,8#gKFgzK=FJ">
                                                              <field name="BOOL">FALSE</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </statement>
                                          <next>
                                            <block type="timeouts_setinterval" id="hf%tS|l$}WBZV7z{4jj}">
                                              <field name="NAME">Intervall</field>
                                              <field name="INTERVAL">24</field>
                                              <field name="UNIT">min</field>
                                              <statement name="STATEMENT">
                                                <block type="control" id="hfdXQ)EFPZYWUk2oeW)f">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                  <field name="OID">shelly.0.SHSW-25#10521CF98065#1.Relay0.Switch</field>
                                                  <field name="WITH_DELAY">TRUE</field>
                                                  <field name="DELAY_MS">1</field>
                                                  <field name="UNIT">min</field>
                                                  <field name="CLEAR_RUNNING">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="logic_boolean" id="t9M[IUpa24Jr-*mVhHZF">
                                                      <field name="BOOL">TRUE</field>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="control" id="9QtR8xLelm5Inn$ge0|=">
                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                      <field name="OID">shelly.0.SHSW-25#10521CF98065#1.Relay0.Switch</field>
                                                      <field name="WITH_DELAY">TRUE</field>
                                                      <field name="DELAY_MS">11</field>
                                                      <field name="UNIT">min</field>
                                                      <field name="CLEAR_RUNNING">FALSE</field>
                                                      <value name="VALUE">
                                                        <block type="logic_boolean" id="YHs.8/Zzto||1IAm3XdT">
                                                          <field name="BOOL">FALSE</field>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="control" id="Xv,:6cf~iiSu,bqx2D_@">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                          <field name="OID">shelly.0.SHSW-25#10521CF98065#1.Relay0.Switch</field>
                                                          <field name="WITH_DELAY">TRUE</field>
                                                          <field name="DELAY_MS">13</field>
                                                          <field name="UNIT">min</field>
                                                          <field name="CLEAR_RUNNING">FALSE</field>
                                                          <value name="VALUE">
                                                            <block type="logic_boolean" id="0u0+(P]aR*,Ml9-kFnh@">
                                                              <field name="BOOL">TRUE</field>
                                                            </block>
                                                          </value>
                                                          <next>
                                                            <block type="control" id="S+nHm.4:qRkV%*sN:XZi">
                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                              <field name="OID">shelly.0.SHSW-25#10521CF98065#1.Relay0.Switch</field>
                                                              <field name="WITH_DELAY">TRUE</field>
                                                              <field name="DELAY_MS">23</field>
                                                              <field name="UNIT">min</field>
                                                              <field name="CLEAR_RUNNING">FALSE</field>
                                                              <value name="VALUE">
                                                                <block type="logic_boolean" id=";1BP{*BAU?!Fp59?WQQ5">
                                                                  <field name="BOOL">FALSE</field>
                                                                </block>
                                                              </value>
                                                              <next>
                                                                <block type="controls_if" id="PXZ-OsL:5123dQ2tLBrr">
                                                                  <value name="IF0">
                                                                    <block type="logic_compare" id="Py1{.E*I11XZ*$%[BuPM">
                                                                      <field name="OP">EQ</field>
                                                                      <value name="A">
                                                                        <block type="get_value" id="p](`(%f0G24Kslk?YJn-">
                                                                          <field name="ATTR">val</field>
                                                                          <field name="OID">shelly.0.SHSW-25#10521CF98065#1.Relay0.Switch</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="B">
                                                                        <block type="logic_boolean" id="^do@9@VqmqdM;k{Z9IB[">
                                                                          <field name="BOOL">FALSE</field>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                  <statement name="DO0">
                                                                    <block type="debug" id="wEt,}vepvOYYiE;M,{^.">
                                                                      <field name="Severity">log</field>
                                                                      <value name="TEXT">
                                                                        <shadow type="text" id="JG!MSw0SF^e4p;$!uAL2">
                                                                          <field name="TEXT">Relais Absaugen</field>
                                                                        </shadow>
                                                                      </value>
                                                                      <next>
                                                                        <block type="control" id="h2J7o%L.si)eKs30hn[w">
                                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                          <field name="OID">shelly.0.SHSW-25#10521CF98065#1.Relay1.Switch</field>
                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                          <value name="VALUE">
                                                                            <block type="logic_boolean" id="$yx~+;CfgY2q%y*)sbzf">
                                                                              <field name="BOOL">TRUE</field>
                                                                            </block>
                                                                          </value>
                                                                          <next>
                                                                            <block type="debug" id="IJvEeN[A[/xJE:YI7r!_">
                                                                              <field name="Severity">log</field>
                                                                              <value name="TEXT">
                                                                                <shadow type="text" id=".O^lG`L7}OL1M1%Rc`ri">
                                                                                  <field name="TEXT">Relais Ansaugen</field>
                                                                                </shadow>
                                                                              </value>
                                                                              <next>
                                                                                <block type="control" id="l=LA61mod$J}huJ{m2m)">
                                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                                                  <field name="OID">shelly.0.SHSW-25#10521CF98065#1.Relay1.Switch</field>
                                                                                  <field name="WITH_DELAY">TRUE</field>
                                                                                  <field name="DELAY_MS">12</field>
                                                                                  <field name="UNIT">min</field>
                                                                                  <field name="CLEAR_RUNNING">FALSE</field>
                                                                                  <value name="VALUE">
                                                                                    <block type="logic_boolean" id=";QY-U=:BpCM0*-wUQww.">
                                                                                      <field name="BOOL">FALSE</field>
                                                                                    </block>
                                                                                  </value>
                                                                                </block>
                                                                              </next>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </statement>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </statement>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </statement>
              <statement name="ELSE">
                <block type="timeouts_clearinterval" id="B1[f)f^wNoFOS[RYhr=}">
                  <field name="NAME">Intervall</field>
                  <next>
                    <block type="control" id="g+VU7yyGH?/%izNtM}pw">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">shelly.0.SHSW-25#10521CF98065#1.Relay0.Switch</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="qw7!)2xWC]Ob6DO-LtA#">
                          <field name="BOOL">FALSE</field>
                        </block>
                      </value>
                      <next>
                        <block type="control" id="gT[s.#4M:XNXz.i4(gj8">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">shelly.0.SHSW-25#10521CF98065#1.Relay1.Switch</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="Q8T~*LiN;it@/t3S$8MH">
                              <field name="BOOL">FALSE</field>
                            </block>
                          </value>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </statement>
            </block>
          </statement>
        </block>
      </xml>
      
      N 1 Reply Last reply Reply Quote 0
      • N
        NicB @NicB last edited by

        @NicB said in Lüftungssteuerung mit Shelly 2.5 und HT:

        Hallo zusammen,

        ich bin recht neu in der Blockly Thematik und in diesem Forum. Aktuell Programmiere ich eine kleine Lüftungssteuerung die Luft über einen Wärmetauscher erst aus dem Raum heraus führt und anschließend wieder zurück schickt. Als Trigger dient der Luftfeuchtigkeitswert eines Shelly H&T in dem Raum. Der Motor wird über eine Steinmetzschaltung betrieben. Die Lastphase wird über ein Relais eines Shelly2 geschaltet und die Drehrichtungsumkehr über das zweite Relais des Shelly2. Nun habe ich das Skript soweit aufgebaut, dass es auch funktioniert. Nur wenn die Luftfeuchtigkeit unter 60 % fällt soll das System stoppen und das funktioniert nicht. Im Gegenteil, die An- und Absaugphasen sind nicht mehr 10 Minuten lang sondern starten recht willkürlich für mein empfinden. Kann mir jemand sagen, wo der Fehler in meinem Skript liegt?

        <xml xmlns="https://developers.google.com/blockly/xml">
          <variables>
            <variable type="interval" id="Intervall">Intervall</variable>
          </variables>
          <block type="on_ext" id="GE|=VL;ctD[/yM#y4c/I" x="-313" y="-237">
            <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
            <field name="CONDITION">any</field>
            <field name="ACK_CONDITION"></field>
            <value name="OID0">
              <shadow type="field_oid" id="P.4kd|F3sg)~n+le!_A8">
                <field name="oid">shelly.0.SHHT-1#9551EA#1.hum.value</field>
              </shadow>
            </value>
            <value name="OID1">
              <shadow type="field_oid" id=".xD|/4T[PNBc[T4EGToZ">
                <field name="oid">shelly.0.SHHT-1#9551EA#1.tmp.temperatureC</field>
              </shadow>
            </value>
            <statement name="STATEMENT">
              <block type="controls_if" id="/lx=(-!MSB.N93!M5#n.">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="logic_operation" id="gP%j9f?rxR=u}:p[QLq;">
                    <field name="OP">AND</field>
                    <value name="A">
                      <block type="logic_compare" id="a]rin`~L:O5Pf`uX6R#0">
                        <field name="OP">GTE</field>
                        <value name="A">
                          <block type="get_value" id="nkOg7gH-;nX:gf$ukW{p">
                            <field name="ATTR">val</field>
                            <field name="OID">shelly.0.SHHT-1#9551EA#1.hum.value</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_number" id=";3LrLubdu~?[Yx5-07`f">
                            <field name="NUM">60</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_compare" id="yc^SoarYb}j4L0}d#wLZ">
                        <field name="OP">GT</field>
                        <value name="A">
                          <block type="get_value" id="^2FQ,j#tYAzGe#.H4z_q">
                            <field name="ATTR">val</field>
                            <field name="OID">shelly.0.SHHT-1#9551EA#1.tmp.temperatureC</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_number" id="e!f^!+x=|`7);yTT8`/+">
                            <field name="NUM">19</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="control" id="#){N;Jv|MVur.5c+;;Cz">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                    <field name="OID">shelly.0.SHSW-25#10521CF98065#1.Relay0.Switch</field>
                    <field name="WITH_DELAY">TRUE</field>
                    <field name="DELAY_MS">1</field>
                    <field name="UNIT">min</field>
                    <field name="CLEAR_RUNNING">FALSE</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="unjk_?:]EJYF1,$K?N5A">
                        <field name="BOOL">TRUE</field>
                      </block>
                    </value>
                    <next>
                      <block type="debug" id="?Q#$X:4.SpA*,)rKO-J?">
                        <field name="Severity">log</field>
                        <value name="TEXT">
                          <shadow type="text" id=":P.@ZPx@1M9(zf/Y.AZ_">
                            <field name="TEXT">Absaugen</field>
                          </shadow>
                        </value>
                        <next>
                          <block type="control" id="{ujBiccQh6u=j+S17?-q">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                            <field name="OID">shelly.0.SHSW-25#10521CF98065#1.Relay0.Switch</field>
                            <field name="WITH_DELAY">TRUE</field>
                            <field name="DELAY_MS">11</field>
                            <field name="UNIT">min</field>
                            <field name="CLEAR_RUNNING">FALSE</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id=":}o6.m~(zcVr)Joc:/Ua">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block type="control" id="*HadsET8W[|xeQz{RF$K">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                <field name="OID">shelly.0.SHSW-25#10521CF98065#1.Relay0.Switch</field>
                                <field name="WITH_DELAY">TRUE</field>
                                <field name="DELAY_MS">13</field>
                                <field name="UNIT">min</field>
                                <field name="CLEAR_RUNNING">FALSE</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="Sl{R`_epd=?OX/a0K?Yh">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="debug" id="XuWFJ=ciNgBo`F[@yKFo">
                                    <field name="Severity">log</field>
                                    <value name="TEXT">
                                      <shadow type="text" id="/B_x^L8lq{5Hq7u|Mh^h">
                                        <field name="TEXT">Ansaugen</field>
                                      </shadow>
                                    </value>
                                    <next>
                                      <block type="control" id="u}F+;//b:Ge}K;36%Yij">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                        <field name="OID">shelly.0.SHSW-25#10521CF98065#1.Relay0.Switch</field>
                                        <field name="WITH_DELAY">TRUE</field>
                                        <field name="DELAY_MS">23</field>
                                        <field name="UNIT">min</field>
                                        <field name="CLEAR_RUNNING">FALSE</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id=",,at-`~|obgf6cMfdLVh">
                                            <field name="BOOL">FALSE</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="controls_if" id="MF#!NyEJfq|8ixCTj*[A">
                                            <value name="IF0">
                                              <block type="logic_compare" id="qyvs6Yx8Cn2)]$j%k2z]">
                                                <field name="OP">EQ</field>
                                                <value name="A">
                                                  <block type="get_value" id="@;/3Z^s;(xL),%o:!vgO">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">shelly.0.SHSW-25#10521CF98065#1.Relay0.Switch</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="logic_boolean" id="v%ifPoZJv+H;1]Zolo{5">
                                                    <field name="BOOL">FALSE</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <statement name="DO0">
                                              <block type="debug" id="KL6p,A%W.y5owv6!7X(4">
                                                <field name="Severity">log</field>
                                                <value name="TEXT">
                                                  <shadow type="text" id="v@g8ge}8Ls?=N|3rmNeR">
                                                    <field name="TEXT">Relais Absaugen</field>
                                                  </shadow>
                                                </value>
                                                <next>
                                                  <block type="control" id="Z}+]!A1A0Sul$2Qo~f|+">
                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                    <field name="OID">shelly.0.SHSW-25#10521CF98065#1.Relay1.Switch</field>
                                                    <field name="WITH_DELAY">FALSE</field>
                                                    <value name="VALUE">
                                                      <block type="logic_boolean" id="n7j}.b=tCvx49fxX,=L4">
                                                        <field name="BOOL">TRUE</field>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="debug" id="Uku%c1T;h9ju3C2hYg!a">
                                                        <field name="Severity">log</field>
                                                        <value name="TEXT">
                                                          <shadow type="text" id="U]]Vs{`tde;|afbvf=`s">
                                                            <field name="TEXT">Relais Ansaugen</field>
                                                          </shadow>
                                                        </value>
                                                        <next>
                                                          <block type="control" id="aSj;Mj(VUC)Xl8m.6#cN">
                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                            <field name="OID">shelly.0.SHSW-25#10521CF98065#1.Relay1.Switch</field>
                                                            <field name="WITH_DELAY">TRUE</field>
                                                            <field name="DELAY_MS">12</field>
                                                            <field name="UNIT">min</field>
                                                            <field name="CLEAR_RUNNING">FALSE</field>
                                                            <value name="VALUE">
                                                              <block type="logic_boolean" id="BEsn|5O=,8#gKFgzK=FJ">
                                                                <field name="BOOL">FALSE</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </statement>
                                            <next>
                                              <block type="timeouts_setinterval" id="hf%tS|l$}WBZV7z{4jj}">
                                                <field name="NAME">Intervall</field>
                                                <field name="INTERVAL">24</field>
                                                <field name="UNIT">min</field>
                                                <statement name="STATEMENT">
                                                  <block type="control" id="hfdXQ)EFPZYWUk2oeW)f">
                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                    <field name="OID">shelly.0.SHSW-25#10521CF98065#1.Relay0.Switch</field>
                                                    <field name="WITH_DELAY">TRUE</field>
                                                    <field name="DELAY_MS">1</field>
                                                    <field name="UNIT">min</field>
                                                    <field name="CLEAR_RUNNING">FALSE</field>
                                                    <value name="VALUE">
                                                      <block type="logic_boolean" id="t9M[IUpa24Jr-*mVhHZF">
                                                        <field name="BOOL">TRUE</field>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="control" id="9QtR8xLelm5Inn$ge0|=">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                        <field name="OID">shelly.0.SHSW-25#10521CF98065#1.Relay0.Switch</field>
                                                        <field name="WITH_DELAY">TRUE</field>
                                                        <field name="DELAY_MS">11</field>
                                                        <field name="UNIT">min</field>
                                                        <field name="CLEAR_RUNNING">FALSE</field>
                                                        <value name="VALUE">
                                                          <block type="logic_boolean" id="YHs.8/Zzto||1IAm3XdT">
                                                            <field name="BOOL">FALSE</field>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="control" id="Xv,:6cf~iiSu,bqx2D_@">
                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                            <field name="OID">shelly.0.SHSW-25#10521CF98065#1.Relay0.Switch</field>
                                                            <field name="WITH_DELAY">TRUE</field>
                                                            <field name="DELAY_MS">13</field>
                                                            <field name="UNIT">min</field>
                                                            <field name="CLEAR_RUNNING">FALSE</field>
                                                            <value name="VALUE">
                                                              <block type="logic_boolean" id="0u0+(P]aR*,Ml9-kFnh@">
                                                                <field name="BOOL">TRUE</field>
                                                              </block>
                                                            </value>
                                                            <next>
                                                              <block type="control" id="S+nHm.4:qRkV%*sN:XZi">
                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                                <field name="OID">shelly.0.SHSW-25#10521CF98065#1.Relay0.Switch</field>
                                                                <field name="WITH_DELAY">TRUE</field>
                                                                <field name="DELAY_MS">23</field>
                                                                <field name="UNIT">min</field>
                                                                <field name="CLEAR_RUNNING">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="logic_boolean" id=";1BP{*BAU?!Fp59?WQQ5">
                                                                    <field name="BOOL">FALSE</field>
                                                                  </block>
                                                                </value>
                                                                <next>
                                                                  <block type="controls_if" id="PXZ-OsL:5123dQ2tLBrr">
                                                                    <value name="IF0">
                                                                      <block type="logic_compare" id="Py1{.E*I11XZ*$%[BuPM">
                                                                        <field name="OP">EQ</field>
                                                                        <value name="A">
                                                                          <block type="get_value" id="p](`(%f0G24Kslk?YJn-">
                                                                            <field name="ATTR">val</field>
                                                                            <field name="OID">shelly.0.SHSW-25#10521CF98065#1.Relay0.Switch</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <block type="logic_boolean" id="^do@9@VqmqdM;k{Z9IB[">
                                                                            <field name="BOOL">FALSE</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                    <statement name="DO0">
                                                                      <block type="debug" id="wEt,}vepvOYYiE;M,{^.">
                                                                        <field name="Severity">log</field>
                                                                        <value name="TEXT">
                                                                          <shadow type="text" id="JG!MSw0SF^e4p;$!uAL2">
                                                                            <field name="TEXT">Relais Absaugen</field>
                                                                          </shadow>
                                                                        </value>
                                                                        <next>
                                                                          <block type="control" id="h2J7o%L.si)eKs30hn[w">
                                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                            <field name="OID">shelly.0.SHSW-25#10521CF98065#1.Relay1.Switch</field>
                                                                            <field name="WITH_DELAY">FALSE</field>
                                                                            <value name="VALUE">
                                                                              <block type="logic_boolean" id="$yx~+;CfgY2q%y*)sbzf">
                                                                                <field name="BOOL">TRUE</field>
                                                                              </block>
                                                                            </value>
                                                                            <next>
                                                                              <block type="debug" id="IJvEeN[A[/xJE:YI7r!_">
                                                                                <field name="Severity">log</field>
                                                                                <value name="TEXT">
                                                                                  <shadow type="text" id=".O^lG`L7}OL1M1%Rc`ri">
                                                                                    <field name="TEXT">Relais Ansaugen</field>
                                                                                  </shadow>
                                                                                </value>
                                                                                <next>
                                                                                  <block type="control" id="l=LA61mod$J}huJ{m2m)">
                                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                                                    <field name="OID">shelly.0.SHSW-25#10521CF98065#1.Relay1.Switch</field>
                                                                                    <field name="WITH_DELAY">TRUE</field>
                                                                                    <field name="DELAY_MS">12</field>
                                                                                    <field name="UNIT">min</field>
                                                                                    <field name="CLEAR_RUNNING">FALSE</field>
                                                                                    <value name="VALUE">
                                                                                      <block type="logic_boolean" id=";QY-U=:BpCM0*-wUQww.">
                                                                                        <field name="BOOL">FALSE</field>
                                                                                      </block>
                                                                                    </value>
                                                                                  </block>
                                                                                </next>
                                                                              </block>
                                                                            </next>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </statement>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </statement>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block type="timeouts_clearinterval" id="B1[f)f^wNoFOS[RYhr=}">
                    <field name="NAME">Intervall</field>
                    <next>
                      <block type="control" id="g+VU7yyGH?/%izNtM}pw">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">shelly.0.SHSW-25#10521CF98065#1.Relay0.Switch</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="qw7!)2xWC]Ob6DO-LtA#">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                        <next>
                          <block type="control" id="gT[s.#4M:XNXz.i4(gj8">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">shelly.0.SHSW-25#10521CF98065#1.Relay1.Switch</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="Q8T~*LiN;it@/t3S$8MH">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </statement>
              </block>
            </statement>
          </block>
        </xml>
        

        Unbenannt.JPG

        paul53 1 Reply Last reply Reply Quote 0
        • paul53
          paul53 @NicB last edited by paul53

          @NicB
          Das Intervall wird mehrfach gestartet, was verhindert werden muss. Prinzip:

          Blockly_temp.JPG

          Hinweis: Erst eine dummy-Variable erstellen, diese in das Editor-Fenster ziehen, anschließend in die Javascript-Ansicht und wieder zurück wechseln und dann anstelle der dummy-Variable die Variable Intervall selektieren.

          1 Reply Last reply Reply Quote 1
          • N
            NicB last edited by NicB

            Hallo Paul,

            ich danke dir für deine Antwort. Ich habe es tatsächlich hinbekommen. Zum einen lag es an dem Intervall welches immer wieder gestartet wurde und zum anderen hat das Rücksetzten der Verzögerung beim Unterschreiten der Luftfeuchtigkeit nicht funktioniert. Das habe ich über Timeouts realisiert. Zudem habe ich eine Variable genutzt um das Intervall nur einmal starten zu lassen. Diese Variable wird durch das Unterschreiten der Luftfeuchtigkeit zurückgesetzt. Um es etwas übersichtlicher zu gestalten habe ich die "Aktion" in eine Funktion ausgelagert. Wenn ich nachher wieder im LAN bin poste ich mal ein Bild des Programms.

            Vielen Dank nochmal

            N 1 Reply Last reply Reply Quote 0
            • N
              NicB @NicB last edited by

              @NicB said in Lüftungssteuerung mit Shelly 2.5 und HT:

              Hallo Paul,

              ich danke dir für deine Antwort. Ich habe es tatsächlich hinbekommen. Zum einen lag es an dem Intervall welches immer wieder gestartet wurde und zum anderen hat das Rücksetzten der Verzögerung beim Unterschreiten der Luftfeuchtigkeit nicht funktioniert. Das habe ich über Timeouts realisiert. Zudem habe ich eine Variable genutzt um das Intervall nur einmal starten zu lassen. Diese Variable wird durch das Unterschreiten der Luftfeuchtigkeit zurückgesetzt. Um es etwas übersichtlicher zu gestalten habe ich die "Aktion" in eine Funktion ausgelagert. Wenn ich nachher wieder im LAN bin poste ich mal ein Bild des Programms.

              Vielen Dank nochmal.

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

              Support us

              ioBroker
              Community Adapters
              Donate

              952
              Online

              31.9k
              Users

              80.1k
              Topics

              1.3m
              Posts

              blockly
              2
              5
              439
              Loading More Posts
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes
              Reply
              • Reply as topic
              Log in to reply
              Community
              Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
              The ioBroker Community 2014-2023
              logo