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

MMM-AlexaControl use

Scheduled Pinned Locked Moved Unsolved Troubleshooting
2 Posts 2 Posters 432 Views 2 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.
  • S Offline
    Seregeth
    last edited by Apr 11, 2023, 8:51 AM

    I can’t quite see my way through the structure of the module. Where do I enter the notifications?

    e.g.
    notifications: [
    {
    name: ‘Notificaition 1’,
    port: 11100,
    OnOff: false,
    notification: [“NOTIFICATION”, “PAYLOAD”]
    }
    ]

    Where do I insert this part?

    What else do I enter here then? Is “Notification 1” what I speak and Alexa hears and then executes?
    Surprisingly, when I say “Alexa mirror off” it works, turns the display off. With: “Alexa mirror on” it turns on again.
    Can someone show me an example of how this should look?
    How do I enter it so that, for example, the module for the weather shows the module “weather” with: “Alexa, switch on the time”?

    B 1 Reply Last reply Apr 13, 2023, 12:30 AM Reply Quote 0
    • B Offline
      bhepler Module Developer @Seregeth
      last edited by bhepler Apr 13, 2023, 12:31 AM Apr 13, 2023, 12:30 AM

      @Seregeth If I’m reading the documentation correctly, it works like this:
      You say: [wake word] [mirror name] [command]
      The module will then broadcast [notification].

      So when you say “Alexa mirror off”, it’s telling the device “mirror” to use the notification named “off” (which is installed by default with the module).

      In order to get the behavior you describe, you’ll need to do an extra step that I’m not sure is in the documentation. But it’s not all that hard. You have the module installed and working already, so we’ll take that as a given.

      Work from the result back to the command. Start with the weather module and making it appear & disappear. Probably using MMM-pages but I’m sure there are other ways. With MMM-pages, you can configure it so that the notification SHOW_HIDDEN_PAGE with a package of “weather” will display the page with your weather module on it. Once you can successfully hide & display the weather module, move to the MMM-AlexaControl module.

      Now you configure AlexaControl to send the SHOW_HIDDEN_PAGE notification. Something like this:

      notifications: [
         {
           name: 'show page 1',
           port: 11100,
           OnOff: false,
           notification: ['SHOW_HIDDEN_PAGE', 'weather']
         }
      ]
      

      This configures your module to respond to an Alexa command of “show page 1” by sending the notification SHOW_HIDDEN_PAGE.

      Now you move to your phone and the Alexa app. You need to create a “routine” for your Alexa that responds to exactly the phrase that you want. The app interface is pretty intuitive so you shouldn’t have a problem. It basically reads as “When you say…” then “Alexa will…”. You want to configure it to match the phrase and give the command of “mirror show page 1”. Which will match the name of your Magic Mirror device followed by the command that you set up to send the notification.

      That should do it, more or less. If not, it should get you close enough that troubleshooting will close any gap.

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      1 / 1
      • First post
        1/2
        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