Navigation

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

    NEWS

    • Neues Video "KI im Smart Home" - ioBroker plus n8n

    • Neues Video über Aliase, virtuelle Geräte und Kategorien

    • Wir empfehlen: Node.js 22.x

    [gelöst] Blockly Auslöser 0 Prozent

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

      Hallo Leute,

      ich möchte gerne meinen Poolschuppen schließen. Nach dem meine Poolabdeckung auf 0% gefaren ist.

      Jetzt suche ich als Auslöser 0% finde aber nur true oder false. Oder haben diese fest definierte Werte?

      Hier mal das Blockly dazu: (bitte nicht Wundern da ist noch ein 2tes Blockly das um 22:00 Uhr den Schuppen schließt, falls er noch auf ist.)

       <xml xmlns="http://www.w3.org/1999/xhtml"><block type="comment" id="KV49T(XPPTU6CMTujGla" x="38" y="12"><field name="COMMENT">Jeden Tag um 22 UHR</field>
          <next><block type="schedule" id="+J(pJNlzh`UJt)+5h[y3"><field name="SCHEDULE">* 22 * * *</field>
              <statement name="STATEMENT"><block type="comment" id="+)cyEuM@mOV!7vdY_ZNf"><field name="COMMENT">Prüfe Tor/auf/zu</field>
                  <next><block type="controls_if" id="mf!H_j{`7a~WBqlm)t4S"><value name="IF0"><block type="logic_compare" id="{/3d#WAVBE:D1A0_DrRo"><field name="OP">GT</field>
                          <value name="A"><block type="field_oid" id="MJuoF2C9#8cM4aRtq:@t"><field name="oid">hm-rpc.0.KEQ0926083.1.LEVEL</field></block></value> 
                          <value name="B"></value></block></value> 
                      <statement name="DO0"><block type="control_ex" id="j)TX7{Qb/GaeLa0[=Vkd"><field name="TYPE">false</field>
                          <field name="CLEAR_RUNNING">TRUE</field>
                          <value name="OID"><shadow type="field_oid" id="qO{xt`M(rg+~o%6G;m_h"><field name="oid">hm-rpc.0.KEQ0926083.1.LEVEL</field></shadow> 
                            <block type="field_oid" id="-z#w8d=2]J6sE1D4r:.!"><field name="oid">hm-rpc.0.KEQ0926083.1.LEVEL</field></block></value> 
                          <value name="VALUE"><shadow type="logic_boolean" id="uO(l*a|n]7t[fJr-6[]-"><field name="BOOL">TRUE</field></shadow></value> 
                          <value name="DELAY_MS"><shadow type="math_number" id="4/=Bm(#EDJ}7F,1TLo+C"><field name="NUM">300000</field></shadow> 
                            <block type="math_number" id="]5eZC-1W{xCB0G)q:^wt"><field name="NUM">300000</field></block></value> 
                          <next><block type="pushover" id="sQr:6^NYpM`6gd7mzv5a"><field name="PRIORITY">0</field>
                              <field name="LOG">log</field>
                              <value name="MESSAGE"><shadow type="text" id="hx_}hv/(`@jZRFOi+1+f"><field name="TEXT">Dein Poolschuppen ist noch auf und wird in 5 Minuten geschlossen</field></shadow> 
                                <block type="text" id="Xzo|/BCN8iYl#=h2P%E3"><field name="TEXT">Dein Poolschuppen ist noch auf und wird in 5 Minuten geschlossen</field></block></value> 
                              <value name="TITLE"><block type="text" id="kk*Sqp|){eEH/I*s8kHR"><field name="TEXT">Rolltor Poolschuppen</field></block></value></block></next></block></statement></block></next></block></statement></block></next></block> 
        <block type="comment" id="zTh=-wYnLq*6O_qQM1l7" x="813" y="38"><field name="COMMENT">Prüfen bei Pool wird geschlossen</field>
          <next><block type="on_ext" id="^V}fk=;|%(9c3HTP%K%G"><mutation items="1"></mutation>
              <field name="CONDITION">lt</field>
      
              <value name="OID0"><shadow type="field_oid" id="vZuBI6YfB2;e`@o[L!7p"><field name="oid">default</field></shadow> 
                <block type="field_oid" id="|ZhyliFXA~~^q0(U^8;^"><field name="oid">hm-rpc.0.MEQ1312365.1.LEVEL</field></block></value> 
              <statement name="STATEMENT"><block type="debug" id="z/Xd6Xqt!e,[qlyFX2yq"><field name="Severity">log</field>
                  <value name="TEXT"><shadow type="text" id="w_mC2aqZ7G1I/ZD+^d[Q"><field name="TEXT">Aktivierung des Programms</field></shadow></value> 
                  <next><block type="comment" id="hSjL^r01.mq,~/:bE)7v"><field name="COMMENT">Prüfe Tor/auf/zu</field>
                      <next><block type="controls_if" id="GQ)t[%Q}.;5_e/tt:.p/"><value name="IF0"><block type="logic_compare" id="Us,-jcRKGmg|D3jK*tWN"><field name="OP">GT</field>
                              <value name="A"><block type="get_value" id="G?)L`)?Ktsr)6T]/pt?Y"><field name="ATTR">val</field>
                                  <field name="OID">hm-rpc.0.KEQ0926083.1.LEVEL</field></block></value> 
                              <value name="B"><block type="math_number" id="s2.EI6SkXLxY{W|xR.Sr"><field name="NUM">0</field></block></value></block></value> 
                          <statement name="DO0"><block type="debug" id="3nZJ%n2EDl[V^m|;.PvY"><field name="Severity">log</field>
                              <value name="TEXT"><shadow type="text" id="2^%rx=erR08#@?KfLDB/"><field name="TEXT">erkenne Pooltor offen</field></shadow></value> 
                              <next><block type="control_ex" id="IlflaL;bbuACd9!1W?U)"><field name="TYPE">false</field>
                                  <field name="CLEAR_RUNNING">TRUE</field>
                                  <value name="OID"><shadow type="field_oid" id="UXZ5rVQdKu*s/BuG/K=^"><field name="oid">hm-rpc.0.KEQ0926083.1.LEVEL</field></shadow> 
                                    <block type="field_oid" id="ayDkygR2IDw,}rbLDj7K"><field name="oid">hm-rpc.0.KEQ0926083.1.LEVEL</field></block></value> 
                                  <value name="VALUE"><shadow type="logic_boolean" id="uO(l*a|n]7t[fJr-6[]-"><field name="BOOL">TRUE</field></shadow> 
                                    <block type="math_number" id="E,q**7^/bK]4gAfIyAdG"><field name="NUM">0</field></block></value> 
                                  <value name="DELAY_MS"><shadow type="math_number" id="ZSsfiyZ]lce%D:0J.u|O"><field name="NUM">300000</field></shadow> 
                                    <block type="math_number" id="x85v]k|R:#[O:2-,!B)O"><field name="NUM">300000</field></block></value> 
                                  <next><block type="debug" id="!dNh@s(K69:Qwo2c_%fs"><field name="Severity">log</field>
                                      <value name="TEXT"><shadow type="text" id="k8Z^7Kq=]5kDtDAgK).e"><field name="TEXT">habe es nach 5 Min wartezeit geschlossen</field></shadow></value> 
                                      <next><block type="pushover" id="@I9w)heWB9Io^@Q?K4UF"><field name="PRIORITY">0</field>
                                          <field name="LOG">log</field>
                                          <value name="MESSAGE"><shadow type="text" id="MzDKf}J0H3p/%bW4mg^5"><field name="TEXT">Dein Poolschuppen ist noch auf und wird in 5 Minuten geschlossen</field></shadow> 
                                            <block type="text" id="V=K8OJ)!6h3gm}iH-noG"><field name="TEXT">Dein Poolschuppen ist noch auf und wird in 5 Minuten geschlossen</field></block></value> 
                                          <value name="TITLE"><block type="text" id="LVcjo}C7x/O9IKe/uREi"><field name="TEXT">Rolltor Poolschuppen</field></block></value> 
                                          <next><block type="debug" id=")T%u[kf:kB7Y8._#:Yds"><field name="Severity">log</field>
                                              <value name="TEXT"><shadow type="text" id="4jxFUXXvwN1_xLA^fSEx"><field name="TEXT">Habe den Nutzer darüber informiert</field></shadow></value></block></next></block></next></block></next></block></next></block></statement> 
                          <next><block type="debug" id="/oT2aExFAXs2wn}*VU~m"><field name="Severity">log</field>
                              <value name="TEXT"><shadow type="text" id="=V8rt=7pPd8K/A{?npSW"><field name="TEXT">erkenne nichts läuft ins leere</field></shadow></value></block></next></block></next></block></next></block></statement></block></next></block></xml> 
      

      576_pool.png

      Danke für eure Hilfe

      Gruß Sven

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

        Hallo Sven2013

        Einfach die Abfrage auf Level=0 als äußere Bedingung.
        147_pool.png

        Grüße

        1 Reply Last reply Reply Quote 0
        • S
          Sven2013 last edited by

          Hallo Rantanplan,

          manchmal ist die Lösung so einfach. Aber ich habe Sie halt nicht gefunden. Danke für deinen Tipp 🙂

          Funktioniert nun einwandfrei…

          Danke Gruß Sven

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

          Support us

          ioBroker
          Community Adapters
          Donate

          869
          Online

          32.1k
          Users

          80.6k
          Topics

          1.3m
          Posts

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