Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. POPUP bei ALARM

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    POPUP bei ALARM

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

      Hallo!

      Ich habe ein einfaches ALARM Programm (bei Tür -> offen -> Variable "ALARM" -> ein

      ich möchte dass zusätzlich auch ein POPUP aufspringt mit einer ALARM Meldung (oder PROWL-Push Nachricht)

      geht das?

      Danke 🙂 und guten Rutsch

      lg

      Manuel

      1 Reply Last reply Reply Quote 0
      • P
        pix last edited by Jey Cee

        Hallo Manuel,

        ist das eine Homematic-Variable?

        Dann so:

        /* Pushmeldung bei 
            Änderung der Variable
            ALARM
        */
        var idAlarm = 'hm-rega.0.12345'; // REGA Alarmvariable vom Homematic eintragen
         on({
            id: idAlarm,
            val: true
        }, function(obj) {
            var status = 'Tür offen',
                betreff = 'ioBroker Alarm',
                prio: '1',
                // ansage = betreff + '!' + ' ' + status + '.';
        
            sendTo('pushover', {
                message: status,
                title: betreff,
                priority: prio
            });
        
            // optional auch Ansage
            // setState("sayit.0.tts.text"/*Text to speech*/, ansage);
        });
        

        Optional mit Sayit - Ansage. Dann bitte "//" in Zeile 10 und 19 löschen.

        Gruß

        Pix

        EDIT: VIS Popup kannst du über die Sichtbarkeit machen. Ein Textfenster (zB HTML Basic) mit großem Z-Index erstellen und Alarmtext reinschreiben. Dann in den Einstellungen die Sichtbarkeit auf true stellen bei ID hm-rega.0.12345. Dann wird das Fenster nur angezeigt, wenn die hm-rega.0.12345 auf true geht.

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

        Support us

        ioBroker
        Community Adapters
        Donate

        807
        Online

        31.7k
        Users

        79.7k
        Topics

        1.3m
        Posts

        2
        2
        1563
        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