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.

    [SOLVED] Anyone tried MMM-mqtt?

    Scheduled Pinned Locked Moved Troubleshooting
    19 Posts 5 Posters 16.2k Views 7 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.
    • X Offline
      xbmcnut
      last edited by xbmcnut

      Hi there,

      First time user and loving this after stumbling across it on YouTube. First mirror demo up and running on Jessie Lite albeit without the screensaver or auto start working but I was wondering if anyone has tried MMM-mqtt? I have it configured and it is connecting to my broker but when I’m publishing to the topic the MM is subscribed to, no data appears on the screen.

      I’ve logged an issue here but would appreciate it if anyone could let me know if there’s is working and paste their config. :confused:

      [UPDATE 25TH July 2017]. See my issue here https://github.com/javiergayala/MMM-mqtt/issues/1. @javiergayala has modified the instructions now to ensure you have a MQTT client installed first otherwise MMM-mqtt won’t work.

      1 Reply Last reply Reply Quote 0
      • cowboysdudeC Offline
        cowboysdude Module Developer
        last edited by

        Not as of yet but a project I"m interested in will require it so I’m curious as to how this works out…

        1 Reply Last reply Reply Quote 0
        • D Offline
          dantodd
          last edited by

          I know this is an old topic but hopefully someone has started using this module and can help out. I am looking for a way to have mqtt fire off an alert box when it receives a specific message on a particular topic. I haven’t really worked with alerts either.

          X 1 Reply Last reply Reply Quote 0
          • X Offline
            xbmcnut @dantodd
            last edited by

            @dantodd said in Anyone tried MMM-mqtt?:

            I know this is an old topic but hopefully someone has started using this module and can help out. I am looking for a way to have mqtt fire off an alert box when it receives a specific message on a particular topic. I haven’t really worked with alerts either.

            I have MQTT working now and pulling in data (Temperature) from a remote MQTT broker. Don’t think MMM-mqtt is going to handle your alert natively. You’d need something like Home Assistant to manage the automation?

            D cowboysdudeC 3 Replies Last reply Reply Quote 0
            • D Offline
              dantodd @xbmcnut
              last edited by dantodd

              @xbmcnut said in Anyone tried MMM-mqtt?:

              I have MQTT working now and pulling in data (Temperature) from a remote MQTT broker. Don’t think MMM-mqtt is going to handle your alert natively. You’d need something like Home Assistant to manage the automation?

              I have mosquito running I just want to send an alert to the alert module when I receive a notification that the mail was delivered on the topic: /sensors/mailbox

              1 Reply Last reply Reply Quote 2
              • cowboysdudeC Offline
                cowboysdude Module Developer @xbmcnut
                last edited by

                @xbmcnut said in Anyone tried MMM-mqtt?:

                @dantodd said in Anyone tried MMM-mqtt?:

                I know this is an old topic but hopefully someone has started using this module and can help out. I am looking for a way to have mqtt fire off an alert box when it receives a specific message on a particular topic. I haven’t really worked with alerts either.

                I have MQTT working now and pulling in data (Temperature) from a remote MQTT broker. Don’t think MMM-mqtt is going to handle your alert natively. You’d need something like Home Assistant to manage the automation?

                I am hoping I can do the same as you but using openHab…

                1 Reply Last reply Reply Quote 0
                • cowboysdudeC Offline
                  cowboysdude Module Developer @xbmcnut
                  last edited by

                  @xbmcnut said in Anyone tried MMM-mqtt?:

                  @dantodd said in Anyone tried MMM-mqtt?:

                  I know this is an old topic but hopefully someone has started using this module and can help out. I am looking for a way to have mqtt fire off an alert box when it receives a specific message on a particular topic. I haven’t really worked with alerts either.

                  I have MQTT working now and pulling in data (Temperature) from a remote MQTT broker. Don’t think MMM-mqtt is going to handle your alert natively. You’d need something like Home Assistant to manage the automation?

                  Would you care to share how you did it? Thanks!

                  X 1 Reply Last reply Reply Quote 0
                  • M Offline
                    MrEdOne
                    last edited by MrEdOne

                    Hello. @xbmcnut i tried to use this module to connect to my home assistant broker with login and password but no success.
                    How can i show a state of my sensors from Esp8266 connected to home assistant via mqtt on my mirror?

                    X 1 Reply Last reply Reply Quote 1
                    • X Offline
                      xbmcnut @MrEdOne
                      last edited by

                      @MrEdOne said in Anyone tried MMM-mqtt?:

                      Hello. @xbmcnut i tried to use this module to connect to my home assistant broker with login and password but no success.
                      How can i show a state of my sensors from Esp8266 connected to home assistant via mqtt on my mirror?

                      As per the instructions here https://github.com/javiergayala/MMM-mqtt, sadly MMM-mqtt “Currently only supports unencrypted/unauthenticated MQTT connections” so it won’t work on a broker that has a username and password set up.

                      cowboysdudeC 1 Reply Last reply Reply Quote 0
                      • cowboysdudeC Offline
                        cowboysdude Module Developer @xbmcnut
                        last edited by

                        @xbmcnut No sure it’ll work for me… haven’t looked into but we’ll see. I need it to make a connection with OpenHab.

                        X 1 Reply Last reply Reply Quote 0
                        • X Offline
                          xbmcnut @cowboysdude
                          last edited by yawns

                          @cowboysdude said in Anyone tried MMM-mqtt?:

                          Would you care to share how you did it? Thanks!

                          Here is my config:

                          {					
                          			module: 'MMM-mqtt',
                          			position: 'bottom_left',
                          			header: 'Office Temperature', // This is optional
                          			config: {
                          				mqttServer: 'mqtt://10.0.2.8', //Connection string for the server to connect to (mqtt://localhost)
                          				topic: '/garage/dallas/temperature',
                          				postText: ' °C'
                          			}
                          		},
                          
                          1 Reply Last reply Reply Quote 1
                          • X Offline
                            xbmcnut @cowboysdude
                            last edited by

                            @cowboysdude said in Anyone tried MMM-mqtt?:

                            @xbmcnut No sure it’ll work for me… haven’t looked into but we’ll see. I need it to make a connection with OpenHab.

                            If you are using a MQTT broker, MMM-mqtt will work with any HA system as it’s only subscribing to a MQTT topic.

                            cowboysdudeC 1 Reply Last reply Reply Quote 1
                            • cowboysdudeC Offline
                              cowboysdude Module Developer @xbmcnut
                              last edited by

                              @xbmcnut Great to know!! Thank you!

                              Going to build a module to show the temp from this on the mirror:

                              https://hestiapi.com/

                              At some point would like to be able to change the temp as well but just getting it to show the temp right now would be awesome :)

                              X 1 Reply Last reply Reply Quote 0
                              • X Offline
                                xbmcnut @cowboysdude
                                last edited by

                                @cowboysdude said in Anyone tried MMM-mqtt?:

                                Going to build a module to show the temp from this on the mirror

                                Should be pretty easy if that device can publish the temperature to a broker.

                                cowboysdudeC 1 Reply Last reply Reply Quote 0
                                • cowboysdudeC Offline
                                  cowboysdude Module Developer @xbmcnut
                                  last edited by

                                  @xbmcnut It can. I have ‘the guide’ another user put together for the thermostat and now this module! :) Shouldn’t be too bad. Just have to find time to really focus on it… perhaps this weekend. I’m just so busy.

                                  1 Reply Last reply Reply Quote 0
                                  • cowboysdudeC Offline
                                    cowboysdude Module Developer
                                    last edited by

                                    Is there a way to seek multiple topics without having to run the module several times? Like using an array …

                                    X 1 Reply Last reply Reply Quote 0
                                    • X Offline
                                      xbmcnut @cowboysdude
                                      last edited by

                                      @cowboysdude said in [SOLVED] Anyone tried MMM-mqtt?:

                                      Is there a way to seek multiple topics without having to run the module several times? Like using an array …

                                      Yes, you can add another entity in the same position and it will add it below the older one (including the title)

                                      1 Reply Last reply Reply Quote 0
                                      • cowboysdudeC Offline
                                        cowboysdude Module Developer
                                        last edited by

                                        Are you referring to running the module more than once in the config.js and in the same position?
                                        That is what I’m doing but adding the entry 7 times to my config would be a bit tedious :)

                                        1 Reply Last reply Reply Quote 0
                                        • axellejamousA Offline
                                          axellejamous
                                          last edited by axellejamous

                                          Hello,

                                          I was wondering if any of you know how to actually subscribe and publish to a topic using this module? I currently tried adding two different modules to the config file and have one set as sending and one as receiving but that just causes the module to crash. Has anyone figured out how to do both of these at the same time?

                                          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