Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Steckdose Push NUR einmal bei Power

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Steckdose Push NUR einmal bei Power

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

      Hallo,
      habe eine Pumpe hinter einer Steckdose. Ich suche nun eine Blockly Lösung das ich 1x ein Push bekomme wenn die Pumpe an geht Power größer als 50.
      Und eine Push wenn Power unter 50 mit Pumpe aus ..

      Leider schwankt Power so das ich Pumpe An alle paar Sekunden bekomme ..

      Welche Lösung gibt es OHNE ein Extra Objekt anzulegen ? Also direkt im Blockly ?

      Hab schon einen 2. Tigger auf eine Variable gemacht (on/off) mit "Geändert" klappt nicht.

      Hat da jemand eine Lösung das ich nur 1x ein Push bekomme?

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

        @ChrisXY sagte:

        Hat da jemand eine Lösung das ich nur 1x ein Push bekomme?

        Blockly_temp.JPG

        <xml xmlns="http://www.w3.org/1999/xhtml">
         <variables>
           <variable type="" id="x@:O~S0zL42xS[^)`$Fg">grenzwert</variable>
         </variables>
         <block type="variables_set" id="|EoetsG0Ht}_d/B~EAY@" x="-212" y="-137">
           <field name="VAR" id="x@:O~S0zL42xS[^)`$Fg" variabletype="">grenzwert</field>
           <value name="VALUE">
             <block type="math_number" id="VdjH(KarxqetQj=Wey;)">
               <field name="NUM">50</field>
             </block>
           </value>
           <next>
             <block type="on_ext" id="k%ZP.X8%g91vJ0p.pBj]">
               <mutation items="1"></mutation>
               <field name="CONDITION">ne</field>
               <field name="ACK_CONDITION"></field>
               <value name="OID0">
                 <shadow type="field_oid" id=")GfL6ui@,_`B_$mXXB-J">
                   <field name="oid">default</field>
                 </shadow>
               </value>
               <statement name="STATEMENT">
                 <block type="controls_if" id=".Xm1t*8=iYYc*ov}*/tE">
                   <value name="IF0">
                     <block type="logic_operation" id="H0I,m0k]{a*yTn%KARP9" inline="false">
                       <field name="OP">AND</field>
                       <value name="A">
                         <block type="logic_compare" id="Kj_)F-7gm;_MjV2r4),#">
                           <field name="OP">GT</field>
                           <value name="A">
                             <block type="on_source" id="u_+;t{hO+CIAwcHAGJ[}">
                               <field name="ATTR">state.val</field>
                             </block>
                           </value>
                           <value name="B">
                             <block type="variables_get" id="HK[KwI~1;47}TKN{r{}Q">
                               <field name="VAR" id="x@:O~S0zL42xS[^)`$Fg" variabletype="">grenzwert</field>
                             </block>
                           </value>
                         </block>
                       </value>
                       <value name="B">
                         <block type="logic_compare" id="nAsH2Q6`rSk{c^#}FKT)">
                           <field name="OP">LTE</field>
                           <value name="A">
                             <block type="on_source" id="Er%.i/#Z5lWr5u*8;oda">
                               <field name="ATTR">oldState.val</field>
                             </block>
                           </value>
                           <value name="B">
                             <block type="variables_get" id="=W#QLN$US`6^sg]8KF[-">
                               <field name="VAR" id="x@:O~S0zL42xS[^)`$Fg" variabletype="">grenzwert</field>
                             </block>
                           </value>
                         </block>
                       </value>
                     </block>
                   </value>
                   <statement name="DO0">
                     <block type="comment" id="P[OMvNWMO:xXR1m~nN).">
                       <field name="COMMENT">push: Ein</field>
                     </block>
                   </statement>
                   <next>
                     <block type="controls_if" id="3KlTKs2DZz}rP}kE`qAz">
                       <value name="IF0">
                         <block type="logic_operation" id="?)Y#F^V9sTL~}4$$l)BO" inline="false">
                           <field name="OP">AND</field>
                           <value name="A">
                             <block type="logic_compare" id="4yt,8H{s,oma`Pwyrl4E">
                               <field name="OP">LT</field>
                               <value name="A">
                                 <block type="on_source" id="xOQu5(0Y;W[v1e?NP7.J">
                                   <field name="ATTR">state.val</field>
                                 </block>
                               </value>
                               <value name="B">
                                 <block type="variables_get" id="Z,bZy#Ah1d?.{s6hrK1|">
                                   <field name="VAR" id="x@:O~S0zL42xS[^)`$Fg" variabletype="">grenzwert</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <value name="B">
                             <block type="logic_compare" id="z=,R7`za%078?2iLMd1D">
                               <field name="OP">GTE</field>
                               <value name="A">
                                 <block type="on_source" id="lR_Kmp?IB4Oejs6IZl2f">
                                   <field name="ATTR">oldState.val</field>
                                 </block>
                               </value>
                               <value name="B">
                                 <block type="variables_get" id="QK$G(wTF~]1CRQ-=hZsF">
                                   <field name="VAR" id="x@:O~S0zL42xS[^)`$Fg" variabletype="">grenzwert</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                         </block>
                       </value>
                       <statement name="DO0">
                         <block type="comment" id="?3[05-K$0aas;W68)*uT">
                           <field name="COMMENT">push: Aus</field>
                         </block>
                       </statement>
                     </block>
                   </next>
                 </block>
               </statement>
             </block>
           </next>
         </block>
        </xml>
        

        1 Reply Last reply Reply Quote 0
        • C
          ChrisXY last edited by

          Danke probiere ich aus. Wusste gar nicht das es da so viele sachen im Tigger gibt 😉

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

          Support us

          ioBroker
          Community Adapters
          Donate

          469
          Online

          32.0k
          Users

          80.3k
          Topics

          1.3m
          Posts

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