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. [gelöst] Subscription für Tasten funktionieren nicht

NEWS

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

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

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

[gelöst] Subscription für Tasten funktionieren nicht

Scheduled Pinned Locked Moved Skripten / Logik
3 Posts 2 Posters 643 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.
  • H Offline
    H Offline
    Harry423
    wrote on last edited by
    #1

    Hallo,

    ich habe mir eine HMIP-WR6 gekauft und möchte die Reaktionen auf die Tastendrücke per Skript auslösen.

    Dazu habe ich folgende Anweisungen für die Subscription gemacht

    on("hm-rpc.1.xxxxxxxxxxxxxx.1.PRESS_SHORT", function (obj) { Taster01(obj); });
    on("hm-rpc.1.xxxxxxxxxxxxxx.2.PRESS_SHORT", function (obj) { Taster02(obj); });
    on("hm-rpc.1.xxxxxxxxxxxxxx.3.PRESS_SHORT", function (obj) { Taster03(obj); });
    on("hm-rpc.1.xxxxxxxxxxxxxx.4.PRESS_SHORT", function (obj) { Taster04(obj); });
    on("hm-rpc.1.xxxxxxxxxxxxxx.5.PRESS_SHORT", function (obj) { Taster05(obj); });
    on("hm-rpc.1.xxxxxxxxxxxxxx.6.PRESS_SHORT", function (obj) { Taster06(obj); });
    
    

    Wenn ich das Skript speichere und starte kommt:

    14:41:32.256 [info] javascript.0 Start javascript script.js.common.Taster_Reaktion

    14:41:32.256 [info] javascript.0 script.js.common.Taster_Reaktion: registered 6 subscriptions and 0 schedules

    Soweit so gut. Aber wenn ich dann die Tasten drücke passiert nicht :-(

    Hat jemand ein Tipp?

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

      Wird das Muster bei on() als ID-String angegeben, wird nur bei Wertänderung getriggert. Tasten liefern keine Wertänderung, deshalb:

      on({id: "hm-rpc.1.xxxxxxxxxxxxxx.1.PRESS_SHORT"}, function (obj) { Taster01(obj); });
      

      triggert bei jeder Aktualisierung des Zeitstempels (ts) auch ohne Wertänderung.

      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
      • H Offline
        H Offline
        Harry423
        wrote on last edited by
        #3

        Danke für den Tipp, war leider nicht der Grund.

        Bei dem HMIP-WR6 wird der Event PRESSLONG oder PRESSSHORT scheinbar nur weiter gegeben, wenn ich ein Fake-Programm in der HomeMatic schreib, dass die Events abfasst.

        Andernfalls leuchtet der Schalter nur gelb, erst nach diesem Programm leuchtet er grün :-(

        Hier das kleine Programm falls jemand das gleiche Problem haben sollte:
        2686_bildschirmfoto_2017-12-15_um_16.15.08.jpg

        Wie man sieht macht es rein gar nichts, wenn die Tasten gedrückt werden…

        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

        254

        Online

        32.7k

        Users

        82.6k

        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