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-AlexaOnOff] Simple Mirror Control from External Home Assistant (Alexa/Google Home/HASS.io)

    Scheduled Pinned Locked Moved System
    81 Posts 13 Posters 61.1k Views 16 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.
    • SubLim3S Offline
      SubLim3
      last edited by

      I am running MM version 2.7.1 with the latest MMM-AlexaOnOff module. Below is my config.js details for this module. I get no errors when restarting MM and had no problem with Alexa discovering the devices listed in the module. I get confirmation feedback from Alexa when saying “Turn Magic Mirror Off”, but nothing happens. This used to work on an older build of MM but I wanted to start from scratch with the latest version and this has been the only Mod not working correctly. Any help is appreciated. Thank you.

                      {
                              module: 'MMM-AlexaOnOff',
      //						classes: 'default everyone',
                              config: {
                                      devices: [{
                                              name: "Magic Mirror",
                                              on: {
                                                      notification: "REMOTE_ACTION",
                                                      payload: { action:'MONITORON' }
                                              },
                                              off: {
                                                      notification: "REMOTE_ACTION",
                                                      payload: { action:'MONITOROFF' }
                                              },
                                      },
                                      {
                                              name: "Magic Mirror Modules",
                                              on: {
                                                      notification: "REMOTE_ACTION",
                                                      payload: { action:'SHOWALL' }
                                              },
                                              off: {
                                                      notification: "REMOTE_ACTION",
                                                      payload: { action:'HIDEALL' }
                                              },
                                      },
                                      {
                                              name: "Magic Mirror Maps",
                                              on: {
                                                      notification: "REMOTE_ACTION",
                                                      payload: {action: "SHOW", module: "module_8_MMM-GoogleMapsTraffic"}
                                              },
                                              off: {
                                                      notification: "REMOTE_ACTION",
                                                      payload: {action: "HIDE", module: "module_8_MMM-GoogleMapsTraffic"}
                                             },
                                      },
                                      {
                                              name: "Magic Mirror Reboot",
                                              on: {
                                                      notification: "REMOTE_ACTION",
                                                      payload: { action:'REBOOT' }
                                              },
                                              off: {
                                                      notification: "REMOTE_ACTION",
                                                      payload: { action:'SHUTDOWN' }
                                              },
                                      },
                                      {
                                              name: "Magic Mirror Update",
                                              on: {
                                                      notification: "REMOTE_ACTION",
                                                      payload: { action:'UPDATE' }
                                              },
                                              off: {
                                                      notification: "REMOTE_ACTION",
                                                      payload: { action:'RESTART' }
                                      },
                                      }]
                              }
                      },
      
      
      1 Reply Last reply Reply Quote 0
      • SubLim3S Offline
        SubLim3
        last edited by

        If the REMOTE_ACTION of MONITOROFF works from the remote UI then the notifications are sent and received and executed properly. Does anyone have any recommendations as to how I can test if the Notifications sent from my Alexa device to the module is received? Just trying to hash through this one. Any help is appreciated. Thank you.

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @SubLim3
          last edited by sdetweil

          @SubLim3 open the developers window, ctrl-shift-i, then select the console tab across the top.

          U can add text to search the console in the filter field.

          You should see all the notification events

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • StoffbeuteluweS Offline
            Stoffbeuteluwe Project Sponsor
            last edited by

            for me the test device is working (Office lamp or fan) but can’t find my modules

            SubLim3S 1 Reply Last reply Reply Quote 0
            • SubLim3S Offline
              SubLim3 @Stoffbeuteluwe
              last edited by

              @Stoffbeuteluwe Yeah, I have been reading that the 3rd Gen Alexa devices are not locating the modules. You might try discovery through the app or web browser http://alexa.amazon.com.

              StoffbeuteluweS 1 Reply Last reply Reply Quote 0
              • StoffbeuteluweS Offline
                Stoffbeuteluwe Project Sponsor @SubLim3
                last edited by

                @SubLim3 i tried the app but doesn’t work…no device found

                1 Reply Last reply Reply Quote 0
                • StoffbeuteluweS Offline
                  Stoffbeuteluwe Project Sponsor @MoreLinux
                  last edited by

                  @MoreLinux I have MM running on Mac I think you have a RPI …maybe this can be my problem

                  StoffbeuteluweS 1 Reply Last reply Reply Quote 0
                  • StoffbeuteluweS Offline
                    Stoffbeuteluwe Project Sponsor @Stoffbeuteluwe
                    last edited by Stoffbeuteluwe

                    @Stoffbeuteluwe is there anybody with a working module MMM-AlexaOnOff on Mac?

                    test device is working …but no other device

                    1 Reply Last reply Reply Quote 0
                    • StoffbeuteluweS Offline
                      Stoffbeuteluwe Project Sponsor @Stoffbeuteluwe
                      last edited by

                      @Stoffbeuteluwe anybody an idea?

                      1 Reply Last reply Reply Quote 0
                      • SubLim3S Offline
                        SubLim3
                        last edited by

                        So IF I understand this log correctly, my mirror is receiving the Notification from my Alexa Device but the AlexaOnOff module is not operating correctly. Any suggestions?

                        
                        module.js:154 MMM-WatchDog received a module notification: REMOTE_ACTION from sender: MMM-AlexaOnOff
                        module.js:154 MMM-Screencast received a module notification: REMOTE_ACTION from sender: MMM-AlexaOnOff
                        module.js:154 MMM-GoogleMapsTraffic received a module notification: REMOTE_ACTION from sender: MMM-AlexaOnOff
                        MMM-Remote-Control.js:43 Uncaught TypeError: console.log is not a function
                            at Class.notificationReceived (MMM-Remote-Control.js:43)
                            at sendNotification (main.js:95)
                            at Object.sendNotification (main.js:502)
                            at Class.sendNotification (module.js:368)
                            at config.devices.forEach.d (MMM-AlexaOnOff.js:47)
                            at Array.forEach (<anonymous>)
                            at Class.socketNotificationReceived (MMM-AlexaOnOff.js:37)
                            at module.js:246
                            at r.<anonymous> (socketclient.js:25)
                            at r.emit (index.js:83)
                        
                        S 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 5
                        • 6
                        • 7
                        • 8
                        • 9
                        • 8 / 9
                        • 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