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] Blockly: Retriggerbare Monoflop mit TimeOut (B)

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    [gelöst] Blockly: Retriggerbare Monoflop mit TimeOut (B)

    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      Ioniq-2018 last edited by Ioniq-2018

      Wahrscheinlich betrifft es nicht Blockly sondern Flot Edit. Da ich aber meinen Trigger vereinfacht habe schreibe ich das mal hier rein.

      Monoflop B.jpg

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable type="interval" id="Intervall">Intervall</variable>
          <variable type="timeout" id="timeout">timeout</variable>
        </variables>
        <block type="comment" id="^5?|70{fl~%^v-[{-k|7" x="-487" y="-187">
          <field name="COMMENT">retriggerbarer Monoflop </field>
          <next>
            <block type="update" id="~Ra#[Kx}_}:m:Gez6-7g">
              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
              <field name="OID">0_userdata.0.DP_Wallbox.DP_Wallbox_Laden</field>
              <field name="WITH_DELAY">FALSE</field>
              <value name="VALUE">
                <block type="math_number" id="hvu0e$07vgUijgi2$=3e">
                  <field name="NUM">30</field>
                </block>
              </value>
              <next>
                <block type="timeouts_setinterval" id="kn:(:z/YV@]6wBDB!7e(">
                  <field name="NAME">Intervall</field>
                  <field name="INTERVAL">5</field>
                  <field name="UNIT">sec</field>
                  <statement name="STATEMENT">
                    <block type="debug" id=")c@EDf2z105/C3+QC_)(">
                      <field name="Severity">log</field>
                      <value name="TEXT">
                        <shadow type="text" id="]KhJHSrGl%J~3}(/*9({">
                          <field name="TEXT">test</field>
                        </shadow>
                        <block type="get_value" id="2?1?bX6zf!}$HnOE8nJc">
                          <field name="ATTR">val</field>
                          <field name="OID">hs100.0.192_168_178_19.power</field>
                        </block>
                      </value>
                      <next>
                        <block type="controls_if" id="3/h=@eQ;9xhK^Swe?*Ts">
                          <value name="IF0">
                            <block type="logic_compare" id="HRs0Yp$)JmO4kJDx$?RK">
                              <field name="OP">GT</field>
                              <value name="A">
                                <block type="get_value" id="y9#]`fVZ=7X.VD.LTeqr">
                                  <field name="ATTR">val</field>
                                  <field name="OID">hs100.0.192_168_178_19.power</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="math_number" id="fAq^,b#jE8pj2|(u]S?|">
                                  <field name="NUM">190</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="debug" id="/3}R2V}RQHI]^-wK(%)$">
                              <field name="Severity">log</field>
                              <value name="TEXT">
                                <shadow type="text" id="Qd-}U-PPYB?,gE93gp@p">
                                  <field name="TEXT">timeout Start</field>
                                </shadow>
                              </value>
                              <next>
                                <block type="update" id="fSY.6y%kkOxxs=mx@EYr">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">0_userdata.0.DP_Wallbox.DP_Wallbox</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="math_number" id="R]E?0l,`C)fyIG%EG_*H">
                                      <field name="NUM">201</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="debug" id="6}rdF%T8dxIYMtVM4%d5">
                                      <field name="Severity">error</field>
                                      <value name="TEXT">
                                        <shadow type="text">
                                          <field name="TEXT">test</field>
                                        </shadow>
                                        <block type="get_value" id="?|S9K73m[e?GM)u}vH](">
                                          <field name="ATTR">val</field>
                                          <field name="OID">0_userdata.0.DP_Wallbox.DP_Wallbox</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="timeouts_cleartimeout" id="M]eb%V@iO]sdMjpSWhN,">
                                          <field name="NAME">timeout</field>
                                          <next>
                                            <block type="timeouts_settimeout" id="S08T!/a$2RR6|l?TQny?">
                                              <field name="NAME">timeout</field>
                                              <field name="DELAY">30</field>
                                              <field name="UNIT">sec</field>
                                              <statement name="STATEMENT">
                                                <block type="update" id="u:#a{W26~oAKMyBKiKzW">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">0_userdata.0.DP_Wallbox.DP_Wallbox</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="math_number" id="!*yzjn{SWFWCt$KFqxLv">
                                                      <field name="NUM">30</field>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="debug" id="}oV)U`L(CiZZ=gA]5=Zr">
                                                      <field name="Severity">error</field>
                                                      <value name="TEXT">
                                                        <shadow type="text">
                                                          <field name="TEXT">test</field>
                                                        </shadow>
                                                        <block type="get_value" id="S*O!ME}$ung!!5Xz:uvd">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">0_userdata.0.DP_Wallbox.DP_Wallbox</field>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="debug" id="-nbSwRw%rTQp9f_{Gtlf">
                                                          <field name="Severity">log</field>
                                                          <value name="TEXT">
                                                            <shadow type="text" id="{6*;a2!boSloL`5+PE#o">
                                                              <field name="TEXT">timeout Ende 1</field>
                                                            </shadow>
                                                          </value>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </statement>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </statement>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
          </next>
        </block>
      </xml>
      

      Beim Diagramm sieht es am Anfang recht gut aus:
      Diagramm 1.jpg
      Wobei meine erste Frage dazu wäre: wie bekomme ich die Diagonale (am Anfang) weg. Ich habe nur 2 Werte. Einen unteren und einen oberen Wert! Ist da eine "Grauzone"?
      Und wenn dann der Wert auf den untern springt, dann sieht es auf einmal so aus:
      Diagramm 2.jpg
      Normalerweise sollte die gelbe Linie noch einige Zeit weiter waagerecht verlaufen.
      Es ist bestimmt wieder nur eine Einstellungssache, aber welche? Bitte um Hilfe 🙂

      paul53 1 Reply Last reply Reply Quote 0
      • paul53
        paul53 @Ioniq-2018 last edited by

        @Ioniq-2018 sagte:

        wie bekomme ich die Diagonale (am Anfang) weg.

        Chart Type: Schritte.

        I 1 Reply Last reply Reply Quote 0
        • I
          Ioniq-2018 @paul53 last edited by Ioniq-2018

          Hervorragend 🙂
          Danke.
          Der kleine Piks ist über 190 Watt. Die anderen sind drunter!

          Diagramm 3.jpg

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

          Support us

          ioBroker
          Community Adapters
          Donate

          938
          Online

          32.0k
          Users

          80.4k
          Topics

          1.3m
          Posts

          blockly
          2
          3
          232
          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