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 Configuration Issue

    Scheduled Pinned Locked Moved Solved Troubleshooting
    6 Posts 2 Posters 853 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 Do not disturb
      sdetweil @jsn0327
      last edited by

      @jsn0327 and then after starting mm u do Alexa discover devices

      u need one of the older echo or dot.

      Amazon removed the built-in support for wemo devices in the show, and newer echo devices

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @jsn0327
        last edited by

        @jsn0327 all the module config stuff has to be inside the config:{}

         {
                 module: 'name',
                  config:{
                  ...
                  ...
                  }
        }
        

        u have notifications and other stuff outside the config section

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          jsn0327 @sdetweil
          last edited by

          @sdetweil Thank for the reply. I tried it the other way and received the same syntax error when running the config check. This is how I have it now, and am receiving the following error: [ERROR] Line 101 column 4: Parsing error: Unexpected token notifications

          Before I added the notification section, I was able to discover devices with my Echo Spot and control the Magic Mirror through Alexa by turning the virtual switches off and on. I am now trying to expand the devices that I can control. I’m sure that I’m missing something simple, but I’ve gone through the installation and configuration instructions on Github and while they are pretty detailed with the basic installation and configuration of the built-in options, they aren’t as detailed when it comes to integrating other modules.

                              module: 'MMM-AlexaControl',
                              position: 'bottom_right',
                              config:{
                                      image: true,
                                      height: 75,
                                      width: 75,
                                      pages: 25,
                                      pm2ProcessName: "MagicMirror",
                                      vcgencmd: "vcgencmd"
                              notifications: [
                      {
                              name: 'Next page',
                              port: 11100,
                              OnOff: false,
                              notification: ["PAGE_INCREMENT", "payload"]
                      }
                                              ]
                      }
          
          S 1 Reply Last reply Reply Quote 0
          • S Do not disturb
            sdetweil @jsn0327
            last edited by sdetweil

            @jsn0327 the rules

            things to the left of : do not need quotes
            things to the right of : do not need quotes if they are numbers or true/false, otherwise they need quotes

            if the thing on a line is NOT } or ]
            then the line above it must have a trailing comma, aka, more to follow.

            if u get an unexpected token error, look to the line before, and check for the trailing comma

            in this case

              vcgencmd: "vcgencmd"
                                notifications: [
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            J 1 Reply Last reply Reply Quote 0
            • J Offline
              jsn0327 @sdetweil
              last edited by

              @sdetweil The comma fixed it! Thanks! I figured that it had to be something simple that I was overlooking.

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