Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Bei Änderung nach N Sekunden Pushover

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    774

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    18
    1
    6.2k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.5k

Bei Änderung nach N Sekunden Pushover

Scheduled Pinned Locked Moved Skripten / Logik
4 Posts 3 Posters 696 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    smuxus
    wrote on last edited by
    #1

    Hallo zusammen,

    folgende Problematik:

    Mithifle eines Homematic 083146 Funk-Neigungssensor und einem kleinen Javascript lasse ich mir über Pushover eine Noftification zukommen, wenn das Garagentor geöffnet oder geschlossen wird.

    Das Skript sieht zur Zeit so aus:

    //Garagentor auf
    on({id:"hm-rpc.0.NEQ0111111.1.STATE"/*FN Garagentor:1.STATE*/, val: true, change: "ne"},
        function() { sendTo("pushover", "Garagentor wurde geöffnet"); }) 
    
    //Garagentor zu
    on({id:"hm-rpc.0.NEQ0111111.1.STATE"/*FN Garagentor:1.STATE*/, val: false, change: "ne"},
        function() { sendTo("pushover", "Garagentor wurde geschlossen"); })  
    
    

    Wenn es jetzt stürmt und der Wind gegen das Garagentor knallt, stellt sich der Neigungssender kurz (unter 1 Sek.) auf gekippt und ich erhalte jedesmal ne Push-Notification.

    Ziemlich nervig ;)

    Kenn jemand eine Möglichkeit, wie ich im Script feststellen kann, dass die Zustandsänderung seit N Sekunden besteht und ich erst dann eine Push-Notification sende?

    Vielen Dank u. viele Grüße

    1 Reply Last reply
    0
    • paul53P Offline
      paul53P Offline
      paul53
      wrote on last edited by
      #2

      Versuche es mal so:

      var timer = null;
      
      on("hm-rpc.0.NEQ0111111.1.STATE"/*FN Garagentor:1.STATE*/, function(dp) {
          var txt = 'geschlossen';
          if(dp.state.val) txt = 'geöffnet';
          if(timer) clearTimeout(timer);
          timer = setTimeout(function() {
             sendTo("pushover", "Garagentor wurde " + txt);
             timer = null;
          }, 2000);   
      });
      
      

      Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
      Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dwm
        wrote on last edited by
        #3

        Kleine Anmerkung:

        Wenns der Homematic-Neigungssender ist, kann man in der Konfiguration einstellen, wie lange sich der Zustand "etabliert" haben muss, bis überhaupt gesendet wird - fängt das Problem also schon am Device ab.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          smuxus
          wrote on last edited by
          #4

          Besten Dank für die schnellen Antworten. Ich habe jetzt den Filterwert in der Konfiguration der CCU auf 2 Sekunden gestellt und es funktioniert… Das Skript kann ich super für einen anderen Anwendungsfall weiternutzen ;) Klasse Forum hier!

          Gesendet von iPad mit Tapatalk

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          Support us

          ioBroker
          Community Adapters
          Donate

          635

          Online

          32.8k

          Users

          82.7k

          Topics

          1.3m

          Posts
          Community
          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
          ioBroker Community 2014-2025
          logo
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Home
          • Recent
          • Tags
          • Unread 0
          • Categories
          • Unreplied
          • Popular
          • GitHub
          • Docu
          • Hilfe