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.

    MMM-HomeAssistant

    Scheduled Pinned Locked Moved System
    15 Posts 6 Posters 3.0k Views 5 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.
    • S Offline
      sdetweil @adamambarus
      last edited by sdetweil

      @adamambarus I have mqtt server in a compose stack with watchtower and it gets upgraded on version updates…

      also that machine is on UPS that just recently died after 8 years during a 15 second power outage… so mqtt went away for a LONG time… (I was out of town)

      way longer than its reconnect timeout.

      I see client is 5.13.0 now, I am using 5.1.3 on this client (last PR on mqtt for this reconnect problem seems to be 5.5.6 SO… maybe
      https://github.com/mqttjs/MQTT.js/issues/1727
      )

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      A 1 Reply Last reply Reply Quote 0
      • KristjanESPERANTOK Offline
        KristjanESPERANTO Module Developer @adamambarus
        last edited by

        @adamambarus Nice! Don’t forget to add it to the module list: https://github.com/MagicMirrorOrg/MagicMirror/wiki/3rd-party-modules :-)

        A 1 Reply Last reply Reply Quote 0
        • A Offline
          adamambarus @sdetweil
          last edited by

          @sdetweil
          Hi, I just ran a few tests and the module can automatically reconnect if the server reappears. It is handled automatically in the mqtt lib, my part was to stop flooding the MM logs with mqtt error messages.
          Give this module a try if you are interested, I would really appreciate other good findings.

          S 1 Reply Last reply Reply Quote 0
          • A Offline
            adamambarus @KristjanESPERANTO
            last edited by

            @KristjanESPERANTO Thanks! I am interested in that, I just don’t know how to do that :D Never changed other repos other than mine ever.

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

              @adamambarus you edit this wiki page to add your module entry
              https://github.com/MagicMirrorOrg/MagicMirror/wiki/3rd-Party-Modules#module-creators

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              A 1 Reply Last reply Reply Quote 0
              • A Offline
                adamambarus @sdetweil
                last edited by

                @sdetweil Hahh, of course how could I not see that button…

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

                  @adamambarus great… now, suddenly (been running for near 2 years) MY mqtt server cannot be reached from outside the docker host… SO much fun…

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 1
                  • SnilleS Offline
                    Snille Module Developer
                    last edited by Snille

                    Awsome! This changes a lot in my “config”, my Mirror(s) are tightly integrated with Home Assistant.
                    Thank you for this module!!

                    I’m currently running 3 different mirrors, but two of them are “mixed” with each other in HA, the third (first one) are separate :). I’ll have to do some more investigating. Have you tested with multiple mirrors against one “HA-MQTT”?

                    Again, thank you for this! :)

                    Update: I did some cleaning in the MQTT-queue (with MQTT Explorer) and now it all works. I got to have had my config(s) mixed at some point during my testing. So, now it’s all good. :)

                    If you cant find it, make it and share it!
                    Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

                    A 1 Reply Last reply Reply Quote 1
                    • A Offline
                      adamambarus @Snille
                      last edited by

                      @Snille Wow, I am so glad to hear it. I made a test with my real MagicMirror, and a dummy one running on a linux laptop. At this point I added a real uniqueID for the HA device config jsons.

                      @Snille said in MMM-HomeAssistant:

                      Update: I did some cleaning in the MQTT-queue (with MQTT Explorer) and now it all works. I got to have had my config(s) mixed at some point during my testing. So, now it’s all good. :)

                      Hmm, alright!! I will try to think of a handling in case two MM instances want to connect with the same device name. That is the only attribute left on the user.

                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        schlomm
                        last edited by

                        I’m just here to say “Thank you” - installed the module yesterday and after some struggling with my MQTT Backend all is working :)

                        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