Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. [gelöst]Warum zeitversetztes Einschalten?

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    688

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    18
    1
    5.8k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.5k

[gelöst]Warum zeitversetztes Einschalten?

Scheduled Pinned Locked Moved Blockly
7 Posts 3 Posters 751 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Matthias HM Offline
    Matthias HM Offline
    Matthias H
    wrote on last edited by Matthias H
    #1

    Hi, evt weiß jemand Rat, bzw kann mir sagen warum das so ist.

    Ich hab ein Script für die Sauna. Hier erstmal mit test werten drin (Zimmertemp.)
    Die Steuerung soll erst dann an gehen, wenn Sonoff Relais 2 anzieht.
    Relais 1 soll angehen wenn Temp unter 23Grad fällt und aus über 25Grad.

    Soweit funktioniert das auch, nur habe ich das Problem das beim einschalten von Relais 2 es eine Zeitlang dauert ca 1min. bis was passiert, beim Ausschalten reagiert es sofort..

    Hinweiß. dieses Script ist noch nicht ganz fertig. Erst teste ich verschiedene Sachen und merze Probleme aus. Als Anfänger mache ich ein Schritt nach dem anderen ;-)

    Danke schonmal
    d495b4a4-fe85-4b52-aafa-4eca7aee7f6e-image.png

    paul53P BBTownB 2 Replies Last reply
    0
    • Matthias HM Matthias H

      Hi, evt weiß jemand Rat, bzw kann mir sagen warum das so ist.

      Ich hab ein Script für die Sauna. Hier erstmal mit test werten drin (Zimmertemp.)
      Die Steuerung soll erst dann an gehen, wenn Sonoff Relais 2 anzieht.
      Relais 1 soll angehen wenn Temp unter 23Grad fällt und aus über 25Grad.

      Soweit funktioniert das auch, nur habe ich das Problem das beim einschalten von Relais 2 es eine Zeitlang dauert ca 1min. bis was passiert, beim Ausschalten reagiert es sofort..

      Hinweiß. dieses Script ist noch nicht ganz fertig. Erst teste ich verschiedene Sachen und merze Probleme aus. Als Anfänger mache ich ein Schritt nach dem anderen ;-)

      Danke schonmal
      d495b4a4-fe85-4b52-aafa-4eca7aee7f6e-image.png

      paul53P Offline
      paul53P Offline
      paul53
      wrote on last edited by
      #2

      @Matthias-H sagte:

      beim einschalten von Relais 2 es eine Zeitlang dauert ca 1min. bis was passiert,

      Die Temperatur muss sich zum Triggern erst ändern.

      Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
      Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

      1 Reply Last reply
      0
      • Matthias HM Matthias H

        Hi, evt weiß jemand Rat, bzw kann mir sagen warum das so ist.

        Ich hab ein Script für die Sauna. Hier erstmal mit test werten drin (Zimmertemp.)
        Die Steuerung soll erst dann an gehen, wenn Sonoff Relais 2 anzieht.
        Relais 1 soll angehen wenn Temp unter 23Grad fällt und aus über 25Grad.

        Soweit funktioniert das auch, nur habe ich das Problem das beim einschalten von Relais 2 es eine Zeitlang dauert ca 1min. bis was passiert, beim Ausschalten reagiert es sofort..

        Hinweiß. dieses Script ist noch nicht ganz fertig. Erst teste ich verschiedene Sachen und merze Probleme aus. Als Anfänger mache ich ein Schritt nach dem anderen ;-)

        Danke schonmal
        d495b4a4-fe85-4b52-aafa-4eca7aee7f6e-image.png

        BBTownB Offline
        BBTownB Offline
        BBTown
        wrote on last edited by BBTown
        #3

        Du triggerst ja nirgends auf die Änderung von "Power1", daher wird darauf nicht reagiert

        Das war absolut 🖕 dummes Zeug ! 😎

        ioBroker auf NUC (VM debian v13 (Trixie ), node v22.21.0 npm v10.9.4, js-controller v7.1.0 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS

        1 Reply Last reply
        0
        • Matthias HM Offline
          Matthias HM Offline
          Matthias H
          wrote on last edited by
          #4

          Ahhh, das macht natürlich Sinn jetzt. Vielen Dank
          Kann man das ändern, das er sofort schaltet, wenn ja wie? 😍

          BBTownB 1 Reply Last reply
          0
          • Matthias HM Matthias H

            Ahhh, das macht natürlich Sinn jetzt. Vielen Dank
            Kann man das ändern, das er sofort schaltet, wenn ja wie? 😍

            BBTownB Offline
            BBTownB Offline
            BBTown
            wrote on last edited by BBTown
            #5

            @Matthias-H
            Das könnte funktionieren
            7438dc8d-9c10-4a15-8bf5-8e340c108c35-grafik.png

             <xml xmlns="http://www.w3.org/1999/xhtml">
              <variables>
                <variable type="" id="Kw.jRgkqZBo/ag.nmT[?">Ofen_an</variable>
                <variable type="" id="|mHB_{FP]=e%fh!#)f-S">Freigabe</variable>
              </variables>
              <block type="on_ext" id="|XXSpx]c`tG@[dVSk)ue" x="13" y="13">
                <mutation items="1"></mutation>
                <field name="CONDITION">ne</field>
                <field name="ACK_CONDITION"></field>
                <value name="OID0">
                  <shadow type="field_oid" id="ZR5!j`HI,D*cS?!ozU6$">
                    <field name="oid">Test.0.Temperatur</field>
                  </shadow>
                </value>
                <statement name="STATEMENT">
                  <block type="controls_if" id="hu=9QXwjB.O:E!1(oUq[">
                    <mutation elseif="1"></mutation>
                    <value name="IF0">
                      <block type="logic_compare" id="u:(B,ph%_q{=GARdin,5">
                        <field name="OP">LTE</field>
                        <value name="A">
                          <block type="on_source" id="AMi2Ev/LN*NT6Im8Cc;@">
                            <field name="ATTR">state.val</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_number" id="F8xMdLsbuZu1M9ho$Y%0">
                            <field name="NUM">23</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="variables_set" id="5Owe$|.GHNTCN9:*c7b$">
                        <field name="VAR" id="Kw.jRgkqZBo/ag.nmT[?" variabletype="">Ofen_an</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="Ib155unsAtq(V=1cb(!4">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <value name="IF1">
                      <block type="logic_compare" id="^Krl!eKW|ib=BwIJBp{p">
                        <field name="OP">GTE</field>
                        <value name="A">
                          <block type="on_source" id="}K,i*lrddo_@GoQVjyHf">
                            <field name="ATTR">state.val</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="math_number" id="^J+jfd6%ir^(FM36qg@g">
                            <field name="NUM">25</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO1">
                      <block type="variables_set" id="GS6c*Q=0M+OsPRYh@/Vz">
                        <field name="VAR" id="Kw.jRgkqZBo/ag.nmT[?" variabletype="">Ofen_an</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="PprIj2E7PoH?[+HmaJRx">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <next>
                      <block type="procedures_callnoreturn" id="qatGGJ-z*=_0QZ-R4LfA">
                        <mutation name="Sauna"></mutation>
                      </block>
                    </next>
                  </block>
                </statement>
                <next>
                  <block type="on_ext" id="V{T^z]o};TWRrQiYhH7e">
                    <mutation items="1"></mutation>
                    <field name="CONDITION">ne</field>
                    <field name="ACK_CONDITION"></field>
                    <value name="OID0">
                      <shadow type="field_oid" id="q_=WDTrBl/wlJ!@$)RfS">
                        <field name="oid">Test.0.Relais2</field>
                      </shadow>
                    </value>
                    <statement name="STATEMENT">
                      <block type="variables_set" id="lnVRIbH9h0A7r~bVJNb+">
                        <field name="VAR" id="|mHB_{FP]=e%fh!#)f-S" variabletype="">Freigabe</field>
                        <value name="VALUE">
                          <block type="on_source" id="{qh+_29v:%un)wk9PvP-">
                            <field name="ATTR">state.val</field>
                          </block>
                        </value>
                        <next>
                          <block type="procedures_callnoreturn" id="]8]|wRCil:#qbeSpt;XU">
                            <mutation name="Sauna"></mutation>
                          </block>
                        </next>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
              <block type="procedures_defnoreturn" id="_)JHV0U:4+tOoT6Zx1r*" x="413" y="13">
                <field name="NAME">Sauna</field>
                <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                <statement name="STACK">
                  <block type="controls_if" id="Uc.XOZat~Y8@69!8+r+U">
                    <mutation else="1"></mutation>
                    <value name="IF0">
                      <block type="logic_operation" id="R?MJ/$BM-h6EJxqq;3Xo" inline="false">
                        <field name="OP">AND</field>
                        <value name="A">
                          <block type="variables_get" id="XNq.6Q1G+jE`K]gg7s6^">
                            <field name="VAR" id="Kw.jRgkqZBo/ag.nmT[?" variabletype="">Ofen_an</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="variables_get" id="!84cJ,|{pG1BXLa}7cgW">
                            <field name="VAR" id="|mHB_{FP]=e%fh!#)f-S" variabletype="">Freigabe</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="control" id="6)$Rgt9)Ukf5iLsMshtY">
                        <mutation delay_input="false"></mutation>
                        <field name="OID">Test.0.Relais1</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="6vJbK0^d04ZKYcwwjFQS">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <statement name="ELSE">
                      <block type="control" id="pXAcIk9Yj4xm)SW$7Q,/">
                        <mutation delay_input="false"></mutation>
                        <field name="OID">Test.0.Relais1</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id=",$mIQC,`j)v-`8Ta]w$Z">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </statement>
              </block>
            </xml>
            

            ioBroker auf NUC (VM debian v13 (Trixie ), node v22.21.0 npm v10.9.4, js-controller v7.1.0 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS

            Matthias HM 1 Reply Last reply
            0
            • Matthias HM Offline
              Matthias HM Offline
              Matthias H
              wrote on last edited by
              #6

              Danke dir, werde es heute Abend oder morgen früh mal testen. Melde mich dann ob es ging 😀

              1 Reply Last reply
              0
              • BBTownB BBTown

                @Matthias-H
                Das könnte funktionieren
                7438dc8d-9c10-4a15-8bf5-8e340c108c35-grafik.png

                 <xml xmlns="http://www.w3.org/1999/xhtml">
                  <variables>
                    <variable type="" id="Kw.jRgkqZBo/ag.nmT[?">Ofen_an</variable>
                    <variable type="" id="|mHB_{FP]=e%fh!#)f-S">Freigabe</variable>
                  </variables>
                  <block type="on_ext" id="|XXSpx]c`tG@[dVSk)ue" x="13" y="13">
                    <mutation items="1"></mutation>
                    <field name="CONDITION">ne</field>
                    <field name="ACK_CONDITION"></field>
                    <value name="OID0">
                      <shadow type="field_oid" id="ZR5!j`HI,D*cS?!ozU6$">
                        <field name="oid">Test.0.Temperatur</field>
                      </shadow>
                    </value>
                    <statement name="STATEMENT">
                      <block type="controls_if" id="hu=9QXwjB.O:E!1(oUq[">
                        <mutation elseif="1"></mutation>
                        <value name="IF0">
                          <block type="logic_compare" id="u:(B,ph%_q{=GARdin,5">
                            <field name="OP">LTE</field>
                            <value name="A">
                              <block type="on_source" id="AMi2Ev/LN*NT6Im8Cc;@">
                                <field name="ATTR">state.val</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="F8xMdLsbuZu1M9ho$Y%0">
                                <field name="NUM">23</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="variables_set" id="5Owe$|.GHNTCN9:*c7b$">
                            <field name="VAR" id="Kw.jRgkqZBo/ag.nmT[?" variabletype="">Ofen_an</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="Ib155unsAtq(V=1cb(!4">
                                <field name="BOOL">TRUE</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <value name="IF1">
                          <block type="logic_compare" id="^Krl!eKW|ib=BwIJBp{p">
                            <field name="OP">GTE</field>
                            <value name="A">
                              <block type="on_source" id="}K,i*lrddo_@GoQVjyHf">
                                <field name="ATTR">state.val</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="^J+jfd6%ir^(FM36qg@g">
                                <field name="NUM">25</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO1">
                          <block type="variables_set" id="GS6c*Q=0M+OsPRYh@/Vz">
                            <field name="VAR" id="Kw.jRgkqZBo/ag.nmT[?" variabletype="">Ofen_an</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="PprIj2E7PoH?[+HmaJRx">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <next>
                          <block type="procedures_callnoreturn" id="qatGGJ-z*=_0QZ-R4LfA">
                            <mutation name="Sauna"></mutation>
                          </block>
                        </next>
                      </block>
                    </statement>
                    <next>
                      <block type="on_ext" id="V{T^z]o};TWRrQiYhH7e">
                        <mutation items="1"></mutation>
                        <field name="CONDITION">ne</field>
                        <field name="ACK_CONDITION"></field>
                        <value name="OID0">
                          <shadow type="field_oid" id="q_=WDTrBl/wlJ!@$)RfS">
                            <field name="oid">Test.0.Relais2</field>
                          </shadow>
                        </value>
                        <statement name="STATEMENT">
                          <block type="variables_set" id="lnVRIbH9h0A7r~bVJNb+">
                            <field name="VAR" id="|mHB_{FP]=e%fh!#)f-S" variabletype="">Freigabe</field>
                            <value name="VALUE">
                              <block type="on_source" id="{qh+_29v:%un)wk9PvP-">
                                <field name="ATTR">state.val</field>
                              </block>
                            </value>
                            <next>
                              <block type="procedures_callnoreturn" id="]8]|wRCil:#qbeSpt;XU">
                                <mutation name="Sauna"></mutation>
                              </block>
                            </next>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                  <block type="procedures_defnoreturn" id="_)JHV0U:4+tOoT6Zx1r*" x="413" y="13">
                    <field name="NAME">Sauna</field>
                    <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                    <statement name="STACK">
                      <block type="controls_if" id="Uc.XOZat~Y8@69!8+r+U">
                        <mutation else="1"></mutation>
                        <value name="IF0">
                          <block type="logic_operation" id="R?MJ/$BM-h6EJxqq;3Xo" inline="false">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="variables_get" id="XNq.6Q1G+jE`K]gg7s6^">
                                <field name="VAR" id="Kw.jRgkqZBo/ag.nmT[?" variabletype="">Ofen_an</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="variables_get" id="!84cJ,|{pG1BXLa}7cgW">
                                <field name="VAR" id="|mHB_{FP]=e%fh!#)f-S" variabletype="">Freigabe</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="control" id="6)$Rgt9)Ukf5iLsMshtY">
                            <mutation delay_input="false"></mutation>
                            <field name="OID">Test.0.Relais1</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="6vJbK0^d04ZKYcwwjFQS">
                                <field name="BOOL">TRUE</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <statement name="ELSE">
                          <block type="control" id="pXAcIk9Yj4xm)SW$7Q,/">
                            <mutation delay_input="false"></mutation>
                            <field name="OID">Test.0.Relais1</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id=",$mIQC,`j)v-`8Ta]w$Z">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </statement>
                  </block>
                </xml>
                

                Matthias HM Offline
                Matthias HM Offline
                Matthias H
                wrote on last edited by
                #7

                @BBTown Vielen vielen Dank. so funktioniert das .
                Top. Hätte ich nicht hinbekommen👍

                1 Reply Last reply
                0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                Support us

                ioBroker
                Community Adapters
                Donate

                451

                Online

                32.7k

                Users

                82.6k

                Topics

                1.3m

                Posts
                Community
                Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                ioBroker Community 2014-2025
                logo
                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Home
                • Recent
                • Tags
                • Unread 0
                • Categories
                • Unreplied
                • Popular
                • GitHub
                • Docu
                • Hilfe