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
    22 Posts 10 Posters 9.2k 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.
    • 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 1 Reply Last reply Reply Quote 0
      • S Do not disturb
        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

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