MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    how alert trigger

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    alertsmodulemqtt
    15 Posts 3 Posters 3.9k Views 3 Watching
    Loading More Posts
    • 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.
    • F Offline
      fischi87 @sdetweil
      last edited by fischi87

      @sdetweil

      hello again, I connected now this modul with my broker but how can I send a notification to the alert model? this I don’t understand right now. maybe u or someone else can help me in this topic please?

      thanks

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @fischi87
        last edited by sdetweil

        @fischi87 yeh it’s a little bit of thinking, as it is two part

        starting here
        Screenshot_20240218_144659_Chrome.jpg

        1. define the mqtt topic and an arbitrary ‘command’ word to execute when the topic is heard (mqttHook)

        2. define the ‘command’ that has the notification and the payload (mqttNotiCommands)

        and from the alert module doc, start here
        Screenshot_20240218_145825_Chrome.jpg

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        F 2 Replies Last reply Reply Quote 0
        • F Offline
          fischi87 @sdetweil
          last edited by

          @sdetweil

          first of all thank u for ur time.
          i dont understand where i have to write down the sendnotification. i mean i can see in my broker the examples from the mqtt module but how it works now. my understanding is to write something in the config to trigger the alarm.

          for example i use the example from the brige modul how can i use this exemple to trigger a alert? i hope u can understand me.

          thanks

          S 1 Reply Last reply Reply Quote 0
          • F Offline
            fischi87 @sdetweil
            last edited by

            @sdetweil

            i have also a other idea. maybe it is easier to trigger the alert with the MMM-Api module? my broker have also a simple-api adapter.

            but its still my question, how?

            1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @fischi87
              last edited by

              @fischi87 YOU don’t do the sendnotification.

              you take the data from it and configure the module to send it.

              I was just showing you the doc for the alert.module that describes what it wants

              a string for the notification value
              and a object for the notification payload

              these two things go in the command section

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              F 1 Reply Last reply Reply Quote 0
              • F Offline
                fischi87 @sdetweil
                last edited by

                @sdetweil

                im so sorry but I don’t understand it. like I wrote I can see the examples in my Mqtt broker.
                when I change in my broker the messages I can also see in the log from the mirror that it changed this values but how can I trigger with this a alert for example or a notification? what I have to configure? in the config.js file by the module: MMM-MQTT-Bridge? when yes what? I copy the examples already.

                1 Reply Last reply Reply Quote 0
                • 1
                • 2
                • 2 / 2
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy