• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Control MM with a Google Home

Scheduled Pinned Locked Moved Unsolved Troubleshooting
12 Posts 6 Posters 6.4k 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.
  • R Offline
    retroflex Project Sponsor Module Developer
    last edited by Jan 10, 2019, 1:55 PM

    So I got a Google Home Mini for Christmas, so I’ve tinkered around a bit to try to control MagicMirror with it… but I haven’t found a way yet.

    Most posts seems to be either about Alexa or to run Google assistant on the RPi itself. But someone must have done this before…

    My tests so far:

    1. Created an IFTTT applet that triggered a webhook to send notifications via MMM-RemoteControl. But my mirror IP is local. I had it port forwarded before, but when I realized anyone could access my config.js I turned that off. So I gave this up.

    2. The above but tried to also use Tasker on Android (and other similar apps I don’t remember the name on). I struggled with this and got nowhere. Also, if I would succeed, it would only work when my phone is at home.

    3. I installed MMM-TelegramBot. So now I can control my mirror from anywhere by chatting with the bot and for example texting “/hideall” to it. All modules are hidden instantly. Cool! I could also write to the chat via the rest api:
      https://api.telegram.org/bot[token]/sendMessage?chat_id=[myuserid]&text=/hideall
      That wrote /hideall in the chat, but did not trigger the hide all action. I guess it is because a bot sent message cannot trigger a bot command.

    4. Just now I found this:
      https://forum.magicmirror.builders/topic/9211/mmm-alexaonoff-simple-mirror-control-from-external-home-assistant-alexa-google-home-hass-io
      I haven’t tried that yet, but it is named AlexaOnOff and I found no mention of anyone using it with Google Home. Has anyone tested?

    So… does anyone have any other bright ideas? :)

    ? 1 Reply Last reply Jan 10, 2019, 2:59 PM Reply Quote 1
    • ? Offline
      A Former User @retroflex
      last edited by A Former User Jan 10, 2019, 3:03 PM Jan 10, 2019, 2:59 PM

      @retroflex
      1 . You can use DDNS service to connect your local device from outside. Or you can make SSH tunnel via ngrok or dataplicity. Anyway there could be open port issue what you worry.

      3 . Your guessing is right.

      The usual way to control device via Google Home is to make google Action (a small application or conversation set on Assistant), but it is not easy for non-developer. Frankly said, I don’t recommend.

      The most easy way would be using IFTTT none the more. I think you can install nginx or apache to control accessible URL as your expectation. You can block weak URLs with nginx.

      1 Reply Last reply Reply Quote 1
      • R Offline
        retroflex Project Sponsor Module Developer
        last edited by Jan 14, 2019, 11:43 AM

        @Sean Thanks. I have DDNS setup, I just prefer to keep all ports closed if possible. I also have VPN server setup in my router, but that really doesn’t help here.

        From what I understand google action requires you to say to google home: “I want to speak to magicmirror” before you can trigger any command. Then the whole point with using voice to simplify is gone imo.

        I will look into MMM-AlexaOnOff more and post if I succeed in connecting my google home.

        ? S 2 Replies Last reply Jan 14, 2019, 11:54 AM Reply Quote 0
        • ? Offline
          A Former User @retroflex
          last edited by A Former User Jan 14, 2019, 11:56 AM Jan 14, 2019, 11:54 AM

          @retroflex
          Via google home, that is usual way.
          If your device uses embedded google assistant, you can order to device directly.

          1 Reply Last reply Reply Quote 0
          • S Offline
            selarp @retroflex
            last edited by selarp Jan 15, 2019, 8:09 AM Jan 15, 2019, 7:59 AM

            @retroflex Yesterday I Tried MMM-AlexaOnOff but Google Home didn’t find the Fauxmo (emulated Belkin Wemo) device.

            1 Reply Last reply Reply Quote 0
            • F Offline
              felipemfa
              last edited by Feb 15, 2019, 1:54 PM

              Got any solutions? I have the same situation. The mirror and google home (mini) are in the same room, if I install the assistent in the mirror, both will respond to the command “ok google”

              1 Reply Last reply Reply Quote 0
              • M Offline
                Madseason41
                last edited by Feb 15, 2019, 3:46 PM

                I use the Alexa cloud function in homeassistant to control mine. I created switches that are tied to command line calls which use the remote module to control the mirror. The homeassistant switches are discovered by alexa as smart home devices. Then you can create routines to do whatever you want as long as the remote module allows it and you create a script to call that function. I use mine to turn the monitor on at night when my sons blood sugar goes out of a desired range. I use homeassistant to grab the BG info and post it as a sensor. My mirror uses the MMM-HASS module to display the BG reading. When I address the issue I can say a command and a light and my mirror monitor turn off.

                I can elaborate if you are interested, its not that simply and does require homeassistant running on a home server and i use the paid alexa homeassistant integration service (I believe there is a google home service as well). There is a way free way to do it, but honestly the paid service is cheap and allows you to do so much.

                https://community.home-assistant.io/t/rest-question/98222/4

                F 1 Reply Last reply Feb 15, 2019, 5:05 PM Reply Quote 0
                • F Offline
                  felipemfa @Madseason41
                  last edited by Feb 15, 2019, 5:05 PM

                  @madseason41
                  I have my homeassistant running with google home mini. I was unable to integrate the MMM-homeassistant-sensors module (with token). Any tips? (
                  Sorry for leaving the subject of this topic.)

                  M 1 Reply Last reply Feb 15, 2019, 5:52 PM Reply Quote 0
                  • M Offline
                    Madseason41 @felipemfa
                    last edited by Feb 15, 2019, 5:52 PM

                    @felipemfa I didn’t have any luck with it either. I used the MMM-HASS module instead.

                    F 1 Reply Last reply Feb 15, 2019, 5:53 PM Reply Quote 0
                    • F Offline
                      felipemfa @Madseason41
                      last edited by Feb 15, 2019, 5:53 PM

                      @madseason41 with api password or long token?

                      M 1 Reply Last reply Feb 15, 2019, 5:57 PM Reply Quote 0
                      • 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