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 5.3k 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.
    • wishmaster270W Offline
      wishmaster270 Module Developer @fischi87
      last edited by

      @fischi87 Hi, you could i.e. connect the mirror to iobroker with my MMM-MQTTbridge module and send a notification to the alert module depending of the state change.

      F 1 Reply Last reply Reply Quote 2
      • F Offline
        fischi87 @wishmaster270
        last edited by

        @wishmaster270

        Thanks for ur reply. I See this already but i dont know how to send the trigger u know what i mean? Maybe do u have a example for me?

        Thanks

        wishmaster270W S 3 Replies Last reply Reply Quote 0
        • wishmaster270W Offline
          wishmaster270 Module Developer @fischi87
          last edited by wishmaster270

          @fischi87 Hi and sorry. I use node red instead of iobroker and do not have a glue of it.
          You will need a MQTT integration in iobroker, a MQTT broker and the MQTT module in the mirror.
          If the device changes state iobroker gets notice of it and sends a message to a MQTT topic.
          You can subscribe to this topic with the MQTT module in the mirror and initiate a notification with it.
          The alert module can display the message in the notification in the result.

          1 Reply Last reply Reply Quote 0
          • wishmaster270W Offline
            wishmaster270 Module Developer @fischi87
            last edited by

            @fischi87 Sorry, do not know where I read iobroker but Home Assistant has a MQTT integration, too.

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

              @fischi87 do you mean send notification? for send trigger?

              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 @wishmaster270
                last edited by

                @wishmaster270

                iobroker have also a MQTT instance. so maybe I will give it a try. but the readme looks difficult :-)

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

                  @sdetweil

                  like I wrote I want see a alert in my mirror that shows me the Washer finished washing. the question is how I can trigger the alert or maybe a notification, is also a idea. when I think about. how can I do it, do u have a idea?

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

                    @fischi87 @wishmaster270 gave you the answer with his MQTTBridge module

                    hears the mqtt message and can send a notification to the alert module.

                    you configure both

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

                                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
                                • 1 / 1
                                • 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