Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Sendto (Mail kommen dauernd)!?

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Sendto (Mail kommen dauernd)!?

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

      Hallo zusammmen,

      anbei ein Script:
      1.JPG

      der soweit läuft.

      Aber ich bekomme nund dauern die Mail und möchte dies nur einimalig.

      Wie mache ich dies als Anfänger (Time out?)

      Danke.

      BLRD

      R 1 Reply Last reply Reply Quote 0
      • R
        Rushmed Most Active @BLRD last edited by

        @BLRD Worüber willst du denn benachrichtigt werden?
        Darüber dass geladen wird oder welchen Ladezustand dein Telefon hat?

        B 1 Reply Last reply Reply Quote 0
        • B
          BLRD @Rushmed last edited by

          @Rushmed

          Hi am besten über das geladen wird oder nicht, also wie das Skript bedient.

          Danke

          D Homoran 2 Replies Last reply Reply Quote 0
          • D
            Dragon @BLRD last edited by Dragon

            @BLRD Bitte schicke doch einmal die Datenpunkte welche beim ersten Gerät angeboten werden ob es da soetwas wie plugged oder connected gibt.

            B 1 Reply Last reply Reply Quote 0
            • B
              BLRD @Dragon last edited by

              @David-Froebus

              Bitte schön:
              9bb3c140-f5ab-484d-afb2-5a2623096bd0-grafik.png

              Ich habe dies über den State / Datenpunkt Power gemachT

              Danke

              crunchip D 2 Replies Last reply Reply Quote 0
              • Homoran
                Homoran Global Moderator Administrators @BLRD last edited by

                @BLRD sagte in Sendto (Mail kommen dauernd)!?:

                wie das Skript bedient.

                nein, das Skript schickt bei jeder Ladungsänderung des Batterielevels eine Meldung

                B 1 Reply Last reply Reply Quote 0
                • B
                  BLRD @Homoran last edited by

                  @Homoran

                  OK wie änder ich dies?

                  Danke

                  Homoran 1 Reply Last reply Reply Quote 0
                  • Homoran
                    Homoran Global Moderator Administrators @BLRD last edited by

                    @BLRD sagte in Sendto (Mail kommen dauernd)!?:

                    @Homoran

                    OK wie änder ich dies?

                    zum Beispiel mit einer Sperrvariablen, die auf false gesetzt wird, wenn die erste Meldung rausgeht und wieder auf true wenn Level = 100

                    B 1 Reply Last reply Reply Quote 0
                    • B
                      BLRD @Homoran last edited by

                      @Homoran

                      ??? Äh als Anfänger stehe ich gerade vor böhmische Dörfer.
                      Wie geht dies?

                      Und vorab Danke

                      Homoran 1 Reply Last reply Reply Quote 0
                      • Homoran
                        Homoran Global Moderator Administrators @BLRD last edited by

                        @BLRD dann mach mal einen Export

                        B 1 Reply Last reply Reply Quote 0
                        • B
                          BLRD @Homoran last edited by BLRD

                          @Homoran

                          Bitte schön:

                          <xml xmlns="https://developers.google.com/blockly/xml">
                            <variables>
                              <variable type="timeout" id="timeout">timeout</variable>
                              <variable type="timeout" id="timeout2">timeout2</variable>
                            </variables>
                            <block type="on" id="sh_6?8^;9ExO-}/4Dx:." x="-162" y="-212">
                              <field name="OID">paw.0.SM-G975F.info.battery.level</field>
                              <field name="CONDITION">ne</field>
                              <field name="ACK_CONDITION"></field>
                              <statement name="STATEMENT">
                                <block type="controls_if" id="CI$h@O!ge0Zuvw#O,7%y">
                                  <mutation elseif="1"></mutation>
                                  <value name="IF0">
                                    <block type="logic_compare" id="CtN*18c!yPmh!L-ar{o$">
                                      <field name="OP">LTE</field>
                                      <value name="A">
                                        <block type="get_value" id="y6SiNnTcOh/x=P2Ie/.D">
                                          <field name="ATTR">val</field>
                                          <field name="OID">paw.0.SM-G975F.info.battery.level</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="math_number" id="SfOi94m6!*DR]4wQkHWC">
                                          <field name="NUM">16</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO0">
                                    <block type="control" id="xMKb+i^s]uHe4{f^dgmL">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">sonoff.0.SonoffDRNr6STSZ.POWER</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="C)jl1W_Ggi9m.yS/.e!U">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="timeouts_settimeout" id="o^M.H~G-gM*13]=[Y;t=">
                                          <field name="NAME">timeout</field>
                                          <field name="DELAY">1</field>
                                          <field name="UNIT">min</field>
                                          <statement name="STATEMENT">
                                            <block type="email" id="c^1YAQq[9;XSU~ESj:@%">
                                              <field name="INSTANCE">.0</field>
                                              <field name="IS_HTML">TRUE</field>
                                              <field name="LOG"></field>
                                              <value name="TO">
                                                <shadow type="text" id="M4Y/2YvI/VN$(alq{Z,D">
                                                  <field name="TEXT">Gelöscht!</field>
                                                </shadow>
                                              </value>
                                              <value name="TEXT">
                                                <shadow type="text" id="vVZ2Cdt6V`$!K[:3U+g^">
                                                  <field name="TEXT">Handy wird geladen !</field>
                                                </shadow>
                                              </value>
                                              <value name="SUBJECT">
                                                <shadow type="text" id="9.X--}ix]gEKn!ythfn|">
                                                  <field name="TEXT">Handy wird geladen !</field>
                                                </shadow>
                                              </value>
                                            </block>
                                          </statement>
                                          <next>
                                            <block type="timeouts_cleartimeout" id="TX2uqN-xrJ~F^ta`!gvI">
                                              <field name="NAME">timeout</field>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </statement>
                                  <value name="IF1">
                                    <block type="logic_compare" id="l;ns{D^Q)3;aLtd~Cema">
                                      <field name="OP">GTE</field>
                                      <value name="A">
                                        <block type="get_value" id="$$L!iJarhK;9B:sU=DeP">
                                          <field name="ATTR">val</field>
                                          <field name="OID">paw.0.SM-G975F.info.battery.level</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="math_number" id="Km~-p2@r7ayYw;0}6lCP">
                                          <field name="NUM">85</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO1">
                                    <block type="control" id="f60qJA%{@*P)F4ZT+|6+">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">sonoff.0.SonoffDRNr6STSZ.POWER</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="},/;ADTzl5ym^:fr,tTa">
                                          <field name="BOOL">FALSE</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="timeouts_settimeout" id="h6h?^r*KD1LZQ|EGRaha">
                                          <field name="NAME">timeout2</field>
                                          <field name="DELAY">1</field>
                                          <field name="UNIT">min</field>
                                          <statement name="STATEMENT">
                                            <block type="email" id="Bkg^?/-3v1;n^5=PK@a@">
                                              <field name="INSTANCE">.0</field>
                                              <field name="IS_HTML">TRUE</field>
                                              <field name="LOG"></field>
                                              <value name="TO">
                                                <shadow type="text" id=".fm=Rk(N8m{mz^UVp33m">
                                                  <field name="TEXT">Gelöscht!</field>
                                                </shadow>
                                              </value>
                                              <value name="TEXT">
                                                <shadow type="text" id="Ufspt[!gJWLZi7|{rhxL">
                                                  <field name="TEXT">Handy wird nicht geladen !</field>
                                                </shadow>
                                              </value>
                                              <value name="SUBJECT">
                                                <shadow type="text" id="F@`oz|/UPf)cq$8$LhT-">
                                                  <field name="TEXT">Handy wird nicht geladen !</field>
                                                </shadow>
                                              </value>
                                            </block>
                                          </statement>
                                          <next>
                                            <block type="timeouts_cleartimeout" id="=Wu~k/SbK?ozKBY#]7)p">
                                              <field name="NAME">timeout2</field>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </statement>
                                </block>
                              </statement>
                            </block>
                          </xml>
                          
                          Homoran paul53 2 Replies Last reply Reply Quote 0
                          • Homoran
                            Homoran Global Moderator Administrators @BLRD last edited by

                            @BLRD nutzt nix - kann ich nicht importieren

                            B 1 Reply Last reply Reply Quote 0
                            • crunchip
                              crunchip Forum Testing Most Active @BLRD last edited by crunchip

                              @BLRD nicht vom sonoff, sondern vom paw.0
                              Zum battery.level gibt es wahrscheinlich noch einen paw.0.xyz.plugged/charging oder so in der Art

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

                                @BLRD sagte:

                                Bitte schön:

                                Vorschlag:

                                <xml xmlns="https://developers.google.com/blockly/xml">
                                 <variables>
                                   <variable id="o5QWq1D-uG;sTenPDfvN">laden</variable>
                                   <variable id="gkq+0V)+.8?y$@tO!n:l">msg</variable>
                                 </variables>
                                 <block type="on" id="sh_6?8^;9ExO-}/4Dx:." x="-162" y="-212">
                                   <field name="OID">paw.0.SM-G975F.info.battery.level</field>
                                   <field name="CONDITION">ne</field>
                                   <field name="ACK_CONDITION"></field>
                                   <statement name="STATEMENT">
                                     <block type="controls_if" id="CI$h@O!ge0Zuvw#O,7%y">
                                       <mutation elseif="1"></mutation>
                                       <value name="IF0">
                                         <block type="logic_compare" id="CtN*18c!yPmh!L-ar{o$">
                                           <field name="OP">LTE</field>
                                           <value name="A">
                                             <block type="on_source" id="+tgC2FeeP-t6(#I#78sX">
                                               <field name="ATTR">state.val</field>
                                             </block>
                                           </value>
                                           <value name="B">
                                             <block type="math_number" id="SfOi94m6!*DR]4wQkHWC">
                                               <field name="NUM">16</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                       <statement name="DO0">
                                         <block type="variables_set" id="1;?}XCYp^byO;gy^O2@A">
                                           <field name="VAR" id="o5QWq1D-uG;sTenPDfvN">laden</field>
                                           <value name="VALUE">
                                             <block type="logic_boolean" id="WgQ0([/)DWM5/eaBRVki">
                                               <field name="BOOL">TRUE</field>
                                             </block>
                                           </value>
                                           <next>
                                             <block type="variables_set" id="}7W[2Vy[mlFnDLV@Sg#b">
                                               <field name="VAR" id="gkq+0V)+.8?y$@tO!n:l">msg</field>
                                               <value name="VALUE">
                                                 <block type="text" id="1WkJE4,cqqho{[hL]n~F">
                                                   <field name="TEXT">Handy wird geladen !</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </next>
                                         </block>
                                       </statement>
                                       <value name="IF1">
                                         <block type="logic_compare" id="l;ns{D^Q)3;aLtd~Cema">
                                           <field name="OP">GTE</field>
                                           <value name="A">
                                             <block type="on_source" id="tzHBF]WB=%[rk-xpo9l|">
                                               <field name="ATTR">state.val</field>
                                             </block>
                                           </value>
                                           <value name="B">
                                             <block type="math_number" id="Km~-p2@r7ayYw;0}6lCP">
                                               <field name="NUM">85</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                       <statement name="DO1">
                                         <block type="variables_set" id="ELB.|ah!Fiv3aQ6@8pf=">
                                           <field name="VAR" id="o5QWq1D-uG;sTenPDfvN">laden</field>
                                           <value name="VALUE">
                                             <block type="logic_boolean" id="B@Ge,Laaw5c}#yqyDajk">
                                               <field name="BOOL">FALSE</field>
                                             </block>
                                           </value>
                                           <next>
                                             <block type="variables_set" id="sVKmL1oqI9rAR.)R;bf}">
                                               <field name="VAR" id="gkq+0V)+.8?y$@tO!n:l">msg</field>
                                               <value name="VALUE">
                                                 <block type="text" id="L`C/*L{_kNMN$]T!{{*{">
                                                   <field name="TEXT">Handy wird nicht geladen !</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </next>
                                         </block>
                                       </statement>
                                       <next>
                                         <block type="controls_if" id="u}DJxe5;6%N]U{*k*[G1">
                                           <value name="IF0">
                                             <block type="logic_compare" id="hy(~rHnh9(9kbsEnve?U">
                                               <field name="OP">NEQ</field>
                                               <value name="A">
                                                 <block type="variables_get" id="=YrpL4}hjW+AK_9Z]kjy">
                                                   <field name="VAR" id="o5QWq1D-uG;sTenPDfvN">laden</field>
                                                 </block>
                                               </value>
                                               <value name="B">
                                                 <block type="get_value_var" id="WSdI_4h)+G?V~(q|v?jF">
                                                   <field name="ATTR">val</field>
                                                   <value name="OID">
                                                     <shadow type="text" id=")AZRTGG%av*E|jhn2`0C">
                                                       <field name="TEXT">sonoff.0.SonoffDRNr6STSZ.POWER</field>
                                                     </shadow>
                                                   </value>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                           <statement name="DO0">
                                             <block type="control" id="f60qJA%{@*P)F4ZT+|6+">
                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                               <field name="OID">sonoff.0.SonoffDRNr6STSZ.POWER</field>
                                               <field name="WITH_DELAY">FALSE</field>
                                               <value name="VALUE">
                                                 <block type="variables_get" id="U[;@I~N.b,oAMl^N28B9">
                                                   <field name="VAR" id="o5QWq1D-uG;sTenPDfvN">laden</field>
                                                 </block>
                                               </value>
                                               <next>
                                                 <block type="email" id="Bkg^?/-3v1;n^5=PK@a@">
                                                   <field name="INSTANCE">.0</field>
                                                   <field name="IS_HTML">TRUE</field>
                                                   <field name="LOG"></field>
                                                   <value name="TO">
                                                     <shadow type="text" id=".fm=Rk(N8m{mz^UVp33m">
                                                       <field name="TEXT">Gelöscht!</field>
                                                     </shadow>
                                                   </value>
                                                   <value name="TEXT">
                                                     <shadow type="text" id="Ufspt[!gJWLZi7|{rhxL">
                                                       <field name="TEXT">Handy wird nicht geladen !</field>
                                                     </shadow>
                                                     <block type="variables_get" id="3F[s#5(mj6~*)!Nqr2zo">
                                                       <field name="VAR" id="gkq+0V)+.8?y$@tO!n:l">msg</field>
                                                     </block>
                                                   </value>
                                                   <value name="SUBJECT">
                                                     <shadow type="text" id="F@`oz|/UPf)cq$8$LhT-">
                                                       <field name="TEXT">Handy wird nicht geladen !</field>
                                                     </shadow>
                                                     <block type="variables_get" id="bpOd/R~)a*h]@-6#Td+v">
                                                       <field name="VAR" id="gkq+0V)+.8?y$@tO!n:l">msg</field>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </next>
                                             </block>
                                           </statement>
                                         </block>
                                       </next>
                                     </block>
                                   </statement>
                                 </block>
                                </xml>
                                

                                Blockly_temp.JPG

                                Homoran B 2 Replies Last reply Reply Quote 0
                                • B
                                  BLRD @Homoran last edited by

                                  @Homoran
                                  @crunchip
                                  @paul53

                                  Brauche ein moment, da der Rock abgestürzt ist.

                                  1 Reply Last reply Reply Quote 0
                                  • Homoran
                                    Homoran Global Moderator Administrators @paul53 last edited by Homoran

                                    @paul53 Danke!
                                    ich denke ich konnte nicht importieren weil ich den email Block nicht hatte

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

                                      @paul53 sagte in Sendto (Mail kommen dauernd)!?:

                                      <xml xmlns="https://developers.google.com/blockly/xml">

                                      @Rushmed
                                      @Homoran
                                      @crunchip

                                      Dank paul 53 scheint es so zu gehen!

                                      Ich werde dies beobachten und in den nächsten Tage eine definitive Rückmledung geben.

                                      Danle an Alle.

                                      VG

                                      BLRD

                                      B 1 Reply Last reply Reply Quote 0
                                      • D
                                        Dragon @BLRD last edited by

                                        @BLRD Ich muss dich leider enttäuschen. inder Liste welche von dir gesendet wurde ist kein Datenpunkt vorhanden, da weder eine Ladezustand (%) oder ein Datenpunkt für plugged vorhanden ist. im Gegenteil darin ist gar kein Punkt enthalten der irgendetwas mit dem angeschlossenen Gerät zu tun hat.
                                        Falls das hier ein Gerät mit Energiemessung ist in welches dein Gerät eingesteckt wird, dann könntest du den Energy_Current als trigger nutzen.

                                        Sehe aber grad, dass du bereits eine Lösung gefunden hast.

                                        1 Reply Last reply Reply Quote 0
                                        • D
                                          Dragon @crunchip last edited by

                                          @crunchip an den hatte ich auch gedacht, lässt sich nur aus seinen angaben nicht erschließen.

                                          1 Reply Last reply Reply Quote 0
                                          • B
                                            BLRD @BLRD last edited by

                                            @crunchip
                                            @David-Froebus
                                            @Homoran
                                            @paul53

                                            Hallo zusammen,

                                            anbei die Rückmeldung.

                                            Ich habe oben den Import von oben (07.09.;11:09 hvon paul53) umgesetzt.

                                            Jedoch habe ich nun die Mail siebenfach bekommen.

                                            6aa82e47-d72f-469f-893c-cbc38ad008af-grafik.png

                                            Also diese kommen doch wieder vermehrt. Warum?

                                            Danke.

                                            VG

                                            BLRD

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            617
                                            Online

                                            32.0k
                                            Users

                                            80.4k
                                            Topics

                                            1.3m
                                            Posts

                                            6
                                            31
                                            1085
                                            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