Read the statement by Michael Teeuw here.
[MMM-AlexaOnOff] Simple Mirror Control from External Home Assistant (Alexa/Google Home/HASS.io)
-
@richland007 Yes, it can, in conjunction with another module like MMM-Remote-Control or MMM-OnScreenMenu.
Config section to do this with MMM-Remote-Control (see here for specifics on the module identifier needed):
{ module: 'MMM-AlexaOnOff', config: { devices: [{ name: "Clock Module", on: { notification: "REMOTE_ACTION", payload: { action: "SHOW", module: "module_1_clock" } }, off: { notification: "REMOTE_ACTION", payload: { action: "HIDE", module: "module_1_clock" } }, }] } }
Config section to do this with MMM-OnScreenMenu:
{ module: 'MMM-AlexaOnOff', config: { devices: [{ name: "Clock Module", on: { notification: "ONSCREENMENU_PROCESS_ACTION", payload: { actionName:'moduleShow1', name: 'clock' } }, off: { notification: "ONSCREENMENU_PROCESS_ACTION", payload: { actionName:'moduleHide1', name: 'clock' } }, }] } }
-
@shbatm Oh great that is all i wanted thank you!
I have been struggling to get MMM-MirrorMirrorOnTheWall and its skill for the past 5 months and i am unable to get it to work.
Now i got myself a new module to work with thanks to you :)
I do have MMM-RemoteControl working and i guess all it takes is to write some long config.js sections for all my modules … and they are a lot of them LOL
So basically all my modules will look like switches right??
Thank you
Denis -
@shbatm, this is a really great solution, that gets the job done. Now we have an easy way to get the Magic Mirror voice controlled.
I have it now running with remote control, and all my modules as separate devices that can be switched on and off.
-
Hello,
I thinh it s necessary to have V2.5 magic mirror because echo don t recognize magic ?
nice module. good job -
@richland007 Yes, that’s correct about all the modules showing up as switches. I haven’t tested a maximum number of modules yet, so if you hit a limit let me know. You may have to re-run Discover a couple times if it takes longer than 20s to find all of your devices.
I feel your pain about MirrorMirrorOnTheWall, that’s why I made this one for myself.
@MoreLinux Glad you got it working!
@chassain-0 I’ll update the minimum version. I run V2.6-dev with no issues and didn’t test lower versions.
-
Is there any way to execute two commands?
Example:
“Alexa, turn calendar on”- “SHOW calendar & HIDE clock” in the same step OR “HIDE all & show calendar”
Tried to figure that out but didn’t find a solution yet. Since there is “HIDE ALL” button on the webcontrol I thought that at least the second option should be possible. Or am I wrong?
Thanks in advance :-)
Robert -
@reropa1904 said in [MMM-AlexaOnOff] Simple Mirror Control from External Home Assistant (Alexa/Google Home/HASS.io):
Is there any way to execute two commands?
Out of curiosity, which module are you using for the show/hide?
I should be able to add the ability to send multiple notifications pretty easily when I get a chance.
EDIT: Done, you can now have multiple notifications fire when a “device” is turned on or off (Note: I was not able to fully test on the Mirror but it works in the browser, let me know if you have issues).
Update your version and see the last example at the bottom of the updated README
To update:
cd ~/MagicMirror/modules/MMM-AlexaOnOff/ git fetch && git pull
-
@shbatm That’s great. Thanks for your reaction on this. Will test tomorrow and let you know.
-
Can confirm that it works. Great Job. Thanks so much!!!
-
@shbatm Hey there thank you again for this module … i opened this thread here
https://forum.magicmirror.builders/topic/9326/an-additional-config-js-per-say
I am trying to install MMM-AlexaOnOff but i have a lot of modules that i will have to write lines about on and off and than some combination on and offs (that will turn the modules for my wife on and hide mine and vice versa) so one could imagine how long that module config in config.js is going to get.@bhepler had some ideas on the last post of that thread similar to the default “compliments” module that may be implemented to reference the MMM-AlexaOnOff config.js entry as a separate file for some of us with lots of modules.
Can you help me please on how i can modify my settings so i can achieve this.
in the mean time i am about done referencing all my modules on the regular way of adding this to config.js and will give that long file a try where MMM-AlexaOnOff confi part alone is some 400 lines in my case LOL :)Thank you and happy new year’s
Denis