Read the statement by Michael Teeuw here.
Control MM with a Google Home
-
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:
-
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.
-
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.
-
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. -
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? :)
-
-
@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.
-
@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.
-
@retroflex
Via google home, that is usual way.
If your device uses embedded google assistant, you can order to device directly. -
@retroflex Yesterday I Tried MMM-AlexaOnOff but Google Home didn’t find the Fauxmo (emulated Belkin Wemo) device.
-
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”
-
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.
-
@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.) -
@felipemfa I didn’t have any luck with it either. I used the MMM-HASS module instead.
-
@madseason41 with api password or long token?