Read the statement by Michael Teeuw here.
MMM-Pages and Alexa
-
@radioman sorry, don’t use pages
-
I will try tommorow, now its time for me to go to bed
-
@radioman Hi. You made one mistake in the configuration for your page devices. You set OnOff to true. If it’s set to true you can send different notifications for on and off. So you have to set it to false for this two devices. Your config looks then like this:
{ module: 'MMM-AlexaControl', position: 'bottom_left', config:{ image: false, pm2ProcessName: "mm", refresh: true, restart: true, reboot: false, monitorToggle: true, vcgencmd: 'vcgencmd', deviceName: "Spiegel", startPort: 12000, notifications: [ { name: 'Radar', port: 11101, OnOff: true, notification: [["SHOW_RADAR", null],["HIDE_RADAR", null]] }, { name: 'Seite eins', port: 11102, OnOff: false, notification: ["PAGE_CHANGED", 0] }, { name: 'Seite zwei', port: 11103, OnOff: false, notification: ["PAGE_CHANGED", 1] } ] } },
Instead of this you could also use the pages option and set it to the number of pages you have. You can then change the names in the Alexa app.
-
@JoChef2 so, if OnOff is true, then you expect an array of notifications? if false, only one notification, right?
you could add a check for array and output a message to help the user…
and switch to false… -
@sdetweil Yes you are right. That’s a good idea. I will do it in the next week.
-
:slightly_smiling_face: :ok_hand:
Thank You it works