Read the statement by Michael Teeuw here.
MMM-AlexaControl Configuration Issue
-
@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
-
@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
-
@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"] } ] }
-
@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 quotesif 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: [
-
@sdetweil The comma fixed it! Thanks! I figured that it had to be something simple that I was overlooking.