Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Spülmaschine fertig

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Spülmaschine fertig

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

      @grizzlyco
      Warum postest Du nicht das Blockly als Bild ?

      Die while-Schleife ist tödlich !
      Ein Intervall muss auch gestoppt werden.

      1 Reply Last reply Reply Quote 0
      • G
        grizzlyco last edited by

        Spülmaschine.jpg

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

          @grizzlyco
          Versuche es mal so:

          Blockly_temp.JPG

          Wert findet man unter "Trigger".

          <xml xmlns="https://developers.google.com/blockly/xml">
           <variables>
             <variable id="WZDTdR2wt;{2fV(#SX#{">aktiv</variable>
             <variable type="interval" id="Intervall">Intervall</variable>
             <variable id="6VT=qP{xCaUHGfhs^U!=">Dauerzaehler</variable>
           </variables>
           <block type="on" id="Int%5TTx;UDERKcfPyX7" x="88" y="-112">
             <field name="OID">Object ID</field>
             <field name="CONDITION">ne</field>
             <field name="ACK_CONDITION"></field>
             <statement name="STATEMENT">
               <block type="controls_if" id="Tz=dssi/)[k11-}r3_1U">
                 <mutation elseif="1"></mutation>
                 <value name="IF0">
                   <block type="logic_compare" id="5m5c/i7Nz%[k{FRd),5G">
                     <field name="OP">GTE</field>
                     <value name="A">
                       <block type="on_source" id="rs.x~Q6+mEjG:094ayRM">
                         <field name="ATTR">state.val</field>
                       </block>
                     </value>
                     <value name="B">
                       <block type="math_number" id="BTfJM96%X=[I/XG5~CPR">
                         <field name="NUM">50</field>
                       </block>
                     </value>
                   </block>
                 </value>
                 <statement name="DO0">
                   <block type="timeouts_clearinterval" id="T(gb.b0W.v]6`G4Nt@=m">
                     <field name="NAME">Intervall</field>
                     <next>
                       <block type="variables_set" id="3y-W6%Jis1R3=:BbT`e}">
                         <field name="VAR" id="WZDTdR2wt;{2fV(#SX#{">aktiv</field>
                         <value name="VALUE">
                           <block type="logic_boolean" id="uFmM`tGobz~IWHA:#awn">
                             <field name="BOOL">TRUE</field>
                           </block>
                         </value>
                         <next>
                           <block type="variables_set" id="B2]oLnNdAcmt,%I%Kx~F">
                             <field name="VAR" id="6VT=qP{xCaUHGfhs^U!=">Dauerzaehler</field>
                             <value name="VALUE">
                               <block type="math_number" id="KagezaS@Vdhz4%~e[MxG">
                                 <field name="NUM">0</field>
                               </block>
                             </value>
                           </block>
                         </next>
                       </block>
                     </next>
                   </block>
                 </statement>
                 <value name="IF1">
                   <block type="variables_get" id="p{_XM5r#+mh-{!y-Y4PP">
                     <field name="VAR" id="WZDTdR2wt;{2fV(#SX#{">aktiv</field>
                   </block>
                 </value>
                 <statement name="DO1">
                   <block type="variables_set" id="xBsh47XP9)71g`1aWxk{">
                     <field name="VAR" id="WZDTdR2wt;{2fV(#SX#{">aktiv</field>
                     <value name="VALUE">
                       <block type="logic_boolean" id="W4X]Ln|d?p!X`u}*l5Yr">
                         <field name="BOOL">FALSE</field>
                       </block>
                     </value>
                     <next>
                       <block type="timeouts_setinterval" id="xHzL2wSV0@+3^RX7eC*Z">
                         <field name="NAME">Intervall</field>
                         <field name="INTERVAL">5</field>
                         <field name="UNIT">sec</field>
                         <statement name="STATEMENT">
                           <block type="math_change" id="5hNQHOvUQDvj.#CxMM04">
                             <field name="VAR" id="6VT=qP{xCaUHGfhs^U!=">Dauerzaehler</field>
                             <value name="DELTA">
                               <shadow type="math_number" id="s*tEo(XLxreWv6I,Dp:@">
                                 <field name="NUM">5</field>
                               </shadow>
                             </value>
                             <next>
                               <block type="controls_if" id="5`_$HEFPU2wX/PnVp8[:">
                                 <value name="IF0">
                                   <block type="logic_compare" id="%e{ZI[QDu-I4P04vvZk1">
                                     <field name="OP">GTE</field>
                                     <value name="A">
                                       <block type="variables_get" id="8E?vwzt8RUCH*/)+T.bE">
                                         <field name="VAR" id="6VT=qP{xCaUHGfhs^U!=">Dauerzaehler</field>
                                       </block>
                                     </value>
                                     <value name="B">
                                       <block type="math_number" id="wqC1GqpxsN]k_5GJZF^1">
                                         <field name="NUM">20</field>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <statement name="DO0">
                                   <block type="timeouts_clearinterval" id="(X{|X12*MP$fC|,Z+mGE">
                                     <field name="NAME">Intervall</field>
                                     <next>
                                       <block type="pushover" id="5vH!94frQy5%i6h?l^js">
                                         <field name="INSTANCE"></field>
                                         <field name="SOUND"></field>
                                         <field name="PRIORITY">0</field>
                                         <field name="LOG"></field>
                                         <value name="MESSAGE">
                                           <shadow type="text" id="R:ffmpetI?obCo,3zM;R">
                                             <field name="TEXT">Spülmaschine ist fertig</field>
                                           </shadow>
                                         </value>
                                       </block>
                                     </next>
                                   </block>
                                 </statement>
                               </block>
                             </next>
                           </block>
                         </statement>
                       </block>
                     </next>
                   </block>
                 </statement>
               </block>
             </statement>
           </block>
          </xml>
          

          1 Reply Last reply Reply Quote 0
          • G
            grizzlyco last edited by

            So ich habe jetzt auch nochmal was rumgebastelt. Danke @paul53
            Ich hoffe so klappt es wenn die Maschine das nächste mal startet.

            Spülmaschine2.jpg

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

              @grizzlyco
              Nur mal so gefragt, möchtest du nur wissen, wann die Maschine fertig ist? Oder willst du später noch mehr Funktionen in das Skript bauen?

              G 1 Reply Last reply Reply Quote 0
              • G
                grizzlyco @buggybeast last edited by

                @buggybeast
                erstmal möchte ich nur wissen, ob die Spülmaschine fertig ist. Keine Ahnung ob ich später noch mehr damit mache.

                Wieso fragst du?

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

                  @grizzlyco
                  Mir erscheint Dein Skript arg komliziert. Für meine Waschmaschine habe ich folgendes Skript nur für die Fertig-Meldung.
                  Wenn ich davon ausgehen kann, dass Dein Trigger, "Spülmaschine" wurde geändert, ein Energiewert ist, sollte das eigentlich auch funktionieren.
                  Bildschirmfoto 2020-05-20 um 15.42.47.png
                  Die Schwellwerte musst Du natürlich an Deine Spülmaschine anpassen.

                  G 1 Reply Last reply Reply Quote 0
                  • G
                    grizzlyco @buggybeast last edited by

                    @buggybeast
                    wo bekommst du "voriger wert" her?

                    Das Problem ist, dass die Spülmaschine zwischendurch Pausen hat, wo quasi keine Leistung angefordert wird.
                    Deswegen musste ich die Zeit da mit rein bringen.

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

                      Voriger Wert findest Du da, wo auch Wert herkommt:
                      Bildschirmfoto 2020-05-20 um 16.03.53.png
                      Die Pausen habe ich natürlich auch und die werden abgefangen mit dem Timeout. Erst wenn meine Maschine 10 Minuten lang unter 5 Watt bleibt, ist sie fertig und ich bekomme eine Mail.

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

                        Wenn innerhalb von 10 Minuten die Leistung nochmal auf über 5 Watt steigt, wird einfach nur der Timeout gestoppt.

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

                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        480
                        Online

                        32.0k
                        Users

                        80.4k
                        Topics

                        1.3m
                        Posts

                        3
                        11
                        734
                        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