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
    23 Posts 10 Posters 9.4k Views 8 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.
    • 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
                MMM-homeassistant-sensors,MMM-Modulebar,MMM-Profilepicture,MMM-Videoplayer,MMM-TautulliLatest

                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
                    • UncleRogerU Offline
                      UncleRoger
                      last edited by

                      Just to be clear, this is meant to allow you to control the MM from HA, not display HA info on the MM, right?

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

                        @UncleRoger correct MMM-HomeAssistantDisplay
                        will display info from ha

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

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

                          Would you see a chance to include a “sensor” that shows whether an update for a module is available? Right now the sensor on updates can only “hide” the update message on the mirror.

                          With an update sensor, I could get a message on my phone and at least trigger the update remotely with the MMM-Remote module.

                          Thanks anyway for this great module.

                          R 1 Reply Last reply Reply Quote 0
                          • R Offline
                            raymonvdm @mirrorlover270
                            last edited by

                            I found a display (touchscreen) to setup a family dashboard and i`m making babysteps to get it going again after a long time of trying out MagicMirror

                            I did get this module to work and most of the buttons in HomeAssistant work, but since i`m using a GigabyteBrix debian12 pc the screen off and on does not work.

                            This however is working to get the screen on/off

                            apt install vbetool
                            
                            root@debian:~# sudo vbetool dpms off
                            root@debian:~# sudo vbetool dpms on
                            
                            root@debian:~# cat /etc/sudoers.d/magicmirror
                            magicmirror ALL=(ALL) NOPASSWD: /usr/bin/vbetool
                            
                            root@debian:~# 
                            

                            So i changed the on off command to

                            /usr/bin/sudo /usr/bin/vbetool dpms off
                            /usr/bin/sudo /usr/bin/vbetool dpms on

                            But it stops working as soon as i start the MagicMirror using PM2 and i`m not sure why.

                            Are there any other options?

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

                              I was directed from [MagicMirror Forum] Digest for 1/11/2026 to that discussion and I can show you some kind of alternative regarding Home Assistant controlled MagicMirror. It is using TouchKIO as a mirror client.
                              Recently I did upgrade my many years existing setup and I did summarize it here:
                              https://github.com/Lateadapter/TouchKIO-as-Kiosk-Application-for-MagicMirror

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

                                @raymonvdm can you show the log?

                                I always recommend testing with manual start after you make a module change

                                pm2 stop all
                                cd ~/MagicMirror
                                npm start 
                                

                                if it comes up ok, ctrl-q, or alt-spacebar, c
                                then pm2 status
                                and pm2 start xxxx
                                where xxxx is the name or number on the row for your application

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                R 1 Reply Last reply Reply Quote 0
                                • R Offline
                                  raymonvdm @sdetweil
                                  last edited by

                                  @sdetweil

                                  I found out that it stil asked for the user password when performing sudo. I had this statement in /etc/sudoers

                                  magicmirror ALL=(ALL:ALL) ALL
                                  

                                  And this in /etc/sudoers.d/magicmirror

                                  magicmirror ALL=(ALL) NOPASSWD: /usr/bin/vbetool
                                  
                                  

                                  For now i removed the line in /etc/sudoers

                                  1 Reply Last reply Reply Quote 0
                                  • O Offline
                                    onkelbobby
                                    last edited by

                                    I just found this awesome module and installed on our all newly installed MagicMirror.
                                    After integrating it to HomeAssistant everything is working just fine. There is one downside:
                                    If I switch the screen off via Home Assistant
                                    Bildschirmfoto 2026-05-18 um 22.28.12.png
                                    it turns ‘off’ but switches back ‘on’ on its own after 3-5sec.

                                    I checked the MQTT vie MQTT Explorer but I just see the commands coming from the MachiMirror
                                    Bildschirmfoto 2026-05-18 um 22.31.52.png

                                    any I deal what is wrong?

                                    here is the config I’m using:

                                    {
                                        		module: 'MMM-HomeAssistant',
                                        		config: {
                                            		mqttServer: 'mqtt://192.168.178.100',
                                            		mqttPort: 1883,
                                            		username: 'mqtt-client',
                                            		password: 'PASSWORD',
                                            		deviceName: 'MagicMirror',
                                            		autodiscoveryTopic: 'homeassistant',
                                            		monitorControl: true,
                                            		brightnessControl: true,
                                            		moduleControl: true,
                                    				/***** for xandr
                                            		monitorStatusCommand: 'xrandr --query | awk \'/Screen/ {print ($8 > 320) ? "true" : "false"}\'',
                                            		monitorOnCommand: 'xrandr -d :0 --output HDMI-1 --auto --rotate right',
                                            		monitorOffCommand: 'xrandr -d :0 --output HDMI-1 --off',
                                    				*/
                                    				/***** for Wayland Display Steuerung  */
                                    				monitorStatusCommand: 'wlr-randr | awk \'/HDMI-A-1/ {found=1} found && /Enabled:/ {print ($2 == "yes") ? "true" : "false"; exit} END {if(!found) print "false"}\'',
                                            		monitorOnCommand: 'wlr-randr --output HDMI-A-1 --on',
                                            		monitorOffCommand: 'wlr-randr --output HDMI-A-1 --off',
                                            		pm2ProcessName: 'mm',
                                            		refreshBrowser: true,
                                            		customCommands: [
                                                		{
                                                    		name: 'Update MagicMirror',
                                                    		command: 'bash ~/MagicMirror/modules/MMM-HomeAssistant/custom_commands/update_MM.sh'
                                                		}
                                    		        ]
                                    		    }
                                    		},
                                    

                                    any Idea what is wrong?
                                    Thank you

                                    S O 2 Replies Last reply Reply Quote 0
                                    • S Offline
                                      sdetweil @onkelbobby
                                      last edited by

                                      @onkelbobby generally you should post a message to the author in the module github issues section

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      1 Reply Last reply Reply Quote 0
                                      • O Offline
                                        onkelbobby @onkelbobby
                                        last edited by

                                        Thank you @sdetweil for notifying me.
                                        I opened an issue and was eventually able to identify the solution.

                                        For anyone experiencing the same issue, please refer to the link below:
                                        https://github.com/ambarusa/MMM-HomeAssistant/issues/13#issuecomment-4502382457

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