JosefJantzen / MMM-AlexaControl

Control your MagicMirror with Alexa
MIT License
45 stars 10 forks source link

Custom device unresponsive #24

Closed masonbesmer closed 2 years ago

masonbesmer commented 4 years ago

Hello! My custom device is detected in the Alexa App, however, when I try to turn it off/on it is unresponsive. What can I do to fix this?

https://pastebin.com/jmpadPwV

JosefJantzen commented 4 years ago

Hi, I think the problem is that exec is undefined. In the last days I added Command devices. They work like the notification devices. Your device looks like that:

commands: [
    {
        name: 'Media Center',
        port: 11105,
        OnOff: true,
        command: ["kodi &", `kodi-send --action='Quit'`]
    }
]

Note: You have to update the module first with git pull in the module folder.