Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. [gelöst] Temp Steuerung

    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

    [gelöst] Temp Steuerung

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

      Ich komme einfach micht weiter!
      Bei den Lüftern und der Pi Temp funktioniert die Steuerung.
      Wohl aber auch nur weil sich die Pi Temperatur ständig ändert.
      Doch bei meinem Aquarium ändert sich die Temperatur nicht so stark.
      Was muss es für eine Logik sein, das die Temp alle zb 5 sek geprüft wird und dann die zieltemperatur angestrebt wird.

      Bildschirmfoto 2019-06-11 um 02.45.34.png

      <xml xmlns="http://www.w3.org/1999/xhtml">
        <variables>
          <variable type="" id="nmz`l12.%ps5W$y2x5[2">zieltemperatur</variable>
        </variables>
        <block type="variables_set" id="HN=AnTq~TTFdmT[uDT*." x="-1112" y="-1437">
          <field name="VAR" id="nmz`l12.%ps5W$y2x5[2" variabletype="">zieltemperatur</field>
          <value name="VALUE">
            <block type="math_number" id=":M!3SY.bhg~Rj.b3b=$?">
              <field name="NUM">27</field>
            </block>
          </value>
          <next>
            <block type="on" id="!w9XGkE(,e^yh^{wWH(4">
              <field name="OID">sonoff.0.Aqua_Power_Control.DS18B20_Temperature</field>
              <field name="CONDITION">ne</field>
              <field name="ACK_CONDITION"></field>
              <statement name="STATEMENT">
                <block type="controls_if" id="I=$=BMINU67s7Qx8cv:g">
                  <mutation elseif="1"></mutation>
                  <value name="IF0">
                    <block type="logic_compare" id="+5B/6!tn8y}VfhP)N{LE">
                      <field name="OP">GTE</field>
                      <value name="A">
                        <block type="get_value" id="^utSy1+Q!BR1HJ]}*AxX">
                          <field name="ATTR">val</field>
                          <field name="OID">sonoff.0.Aqua_Power_Control.DS18B20_Temperature</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="convert_tonumber" id="b`1#Hbf,_IAUC%L53OUs">
                          <value name="VALUE">
                            <block type="variables_get" id="CLUm:Rlhp`=%h!MYv[W-">
                              <field name="VAR" id="nmz`l12.%ps5W$y2x5[2" variabletype="">zieltemperatur</field>
                            </block>
                          </value>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="control" id="mAV9IFI)yXjMtXo2M]D2">
                      <mutation delay_input="false"></mutation>
                      <field name="OID">sonoff.0.Aqua_Power_Control.POWER1</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id=".?ucpaU|BCH~wpk^BXcN">
                          <field name="BOOL">TRUE</field>
                        </block>
                      </value>
                      <next>
                        <block type="debug" id="3TrVyd)vrSLJfd|`BK]s">
                          <field name="Severity">log</field>
                          <value name="TEXT">
                            <shadow type="text" id="4*3][}x|3(CTn=QXa*PN">
                              <field name="TEXT">test</field>
                            </shadow>
                            <block type="text_join" id="0q*BZ^cqqp5NzfH:gY(q">
                              <mutation items="5"></mutation>
                              <value name="ADD0">
                                <block type="text" id="oE3K+Wv`,qM3U!-2(@*Q">
                                  <field name="TEXT">Aquarium Temp ist </field>
                                </block>
                              </value>
                              <value name="ADD1">
                                <block type="get_value" id="#O)d/Uswk?/KeQb!Y{KR">
                                  <field name="ATTR">val</field>
                                  <field name="OID">sonoff.0.Aqua_Power_Control.DS18B20_Temperature</field>
                                </block>
                              </value>
                              <value name="ADD2">
                                <block type="text" id="!?{Q:u/+4lGo2K+bQ4ea">
                                  <field name="TEXT"> °C</field>
                                </block>
                              </value>
                              <value name="ADD3">
                                <block type="text_newline" id="5unlAP4UQ5~]sOAG@OU`">
                                  <field name="Type">\n</field>
                                </block>
                              </value>
                              <value name="ADD4">
                                <block type="text" id="Vryi2kR.)iE:d!#Bd0IK">
                                  <field name="TEXT">Lüfter wurden eingeschaltet</field>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </next>
                    </block>
                  </statement>
                  <value name="IF1">
                    <block type="logic_compare" id="AL;l=N%]-}0YJ78+GMj]">
                      <field name="OP">LTE</field>
                      <value name="A">
                        <block type="get_value" id="u7hk.00gLzdV$#]/^[s3">
                          <field name="ATTR">val</field>
                          <field name="OID">sonoff.0.Aqua_Power_Control.DS18B20_Temperature</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="convert_tonumber" id="vLDN%Zf3-}b-lRfN9oUc">
                          <value name="VALUE">
                            <block type="variables_get" id="RO-YSk#P|E}y0y0kIis+">
                              <field name="VAR" id="nmz`l12.%ps5W$y2x5[2" variabletype="">zieltemperatur</field>
                            </block>
                          </value>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO1">
                    <block type="control" id="s7=@{`70/E1ZK[]?RR7J">
                      <mutation delay_input="false"></mutation>
                      <field name="OID">sonoff.0.Aqua_Power_Control.POWER1</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="IaSuQt6pqc4FFX%j16(8">
                          <field name="BOOL">FALSE</field>
                        </block>
                      </value>
                      <next>
                        <block type="debug" id="7bF[TRL$XQ4Z?x1/S}w{">
                          <field name="Severity">log</field>
                          <value name="TEXT">
                            <shadow type="text" id="4*3][}x|3(CTn=QXa*PN">
                              <field name="TEXT">test</field>
                            </shadow>
                            <block type="text_join" id="D9M]%$PJT2.tI/3$RU)K">
                              <mutation items="5"></mutation>
                              <value name="ADD0">
                                <block type="text" id="`2e2YZSqxALdbwWsNAls">
                                  <field name="TEXT">Aquarium Temp ist </field>
                                </block>
                              </value>
                              <value name="ADD1">
                                <block type="get_value" id="@H|+kRsL|J2kkjN;5W5E">
                                  <field name="ATTR">val</field>
                                  <field name="OID">sonoff.0.Aqua_Power_Control.DS18B20_Temperature</field>
                                </block>
                              </value>
                              <value name="ADD2">
                                <block type="text" id="|+G?MRD~Pb2:%tW,a#;m">
                                  <field name="TEXT"> °C</field>
                                </block>
                              </value>
                              <value name="ADD3">
                                <block type="text_newline" id="yq{y{2tqlhsM~*sGlXc:">
                                  <field name="Type">\n</field>
                                </block>
                              </value>
                              <value name="ADD4">
                                <block type="text" id="h@Uar#Y3[/ghd)Mgs}:v">
                                  <field name="TEXT">Lüfter wurden ausgeschaltet</field>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </statement>
            </block>
          </next>
        </block>
      </xml>
      

      Vielleicht kann mir da ja jemand weiter helfen.

      1 Reply Last reply Reply Quote 0
      • FredF
        FredF Most Active Forum Testing last edited by

        @Aphofis
        So müsste es gehen:
        f1262557-9b84-49b1-923d-16fb6fa7209d-grafik.png

        1 Reply Last reply Reply Quote 0
        • Aphofis
          Aphofis last edited by Aphofis

          Also hast du nur > und = in > geändert und
          ist < und = in < mehr nicht !?
          und die Objekt logik durch Wert ersetzt !?

          Problem besteht weiterhin aber auch beim Raspberry springt der Lüfter nur an wenn der Wert sich ändert!
          Man muss doch den aktuellen wert alle x sek lesen können und danach den Lüfter per relais ein oder ausschalten.

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

          Support us

          ioBroker
          Community Adapters
          Donate

          466
          Online

          31.9k
          Users

          80.3k
          Topics

          1.3m
          Posts

          2
          3
          282
          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