Okay, the command lines you provided work, and I also changed my command word to just "shut" so Alexa can recognize it better. Overall, thanks a lot for helping me, TriggerCMD is definitely a great tool for the raspberry pi.
Latest posts made by Phuong Dinh
- 
    RE: Can't add command with raspberry pi 3b+posted in Raspberry Pi
- 
    RE: Can't add command with raspberry pi 3b+posted in Raspberry PiUnlinking the Trigger CMD with Alexa doesn't seem to help. 
 My conversation with Alexa is like this:
 Me: Alexa, open Trigger CMD
 Alexa: Say something like: open calculator on ...
 Me: Shutdown Magic Mirror (Magic Mirror is the name of the device)
 Alexa: Beeped... and nothing happen.
- 
    RE: Can't add command with raspberry pi 3b+posted in Raspberry PiOkay, I was editing the wrong file all along. Now I do see my trigger online, and I can activate it. However, I still can't tell Alexa to execute the new command. Once again, Alexa just beeped and then nothing happened. So right now this is what I have under /root/.TRIGGERcmdData/commands.json. 
 [
 {"trigger":"Reboot","command":"shutdown -r","ground":"background","voice":"reboot","allowParams": "false"},
 {"trigger":"Gnome Editor","command":"gedit","ground":"foreground","voice":"edit","allowParams": "false"},
 {"trigger":"yum update","command":"yum -y update","ground":"background","voice":"yum update","allowParams": "false"},
 {"trigger":"apt update","command":"apt-get -y update","ground":"background","voice":"update","allowParams": "false"},
 {"trigger":"shutdown","command":"shutdown now","ground":"background","voice":"shutdown","allowParams": "false"}
 ]
- 
    RE: Can't add command with raspberry pi 3b+posted in Raspberry PiBelow is the full commands.json file; it is under /home/pi/.TRIGGERcmdData. 
 {"trigger":"Reboot","command":"shutdown -r","ground":"background","voice":"reboot","allowParams": "false"},
 {"trigger":"Gnome Editor","command":"gedit","ground":"foreground","voice":"edit","allowParams": "false"},
 {"trigger":"yum update","command":"yum -y update","ground":"background","voice":"yum update","allowParams": "false"},
 {"trigger":"apt update","command":"apt-get -y update","ground":"background","voice":"update","allowParams": "false"},
 {"trigger":"shutdown","command":"shutdown now","ground":"background","voice":"shutdown","allowParams": "false"}
 ]Even when I changed the original reboot command to shutdown. The system still reboots. 
 [
 {"trigger":"Reboot","command":"shutdown -P now","ground":"background","voice":"reboot","allowParams": "false"},
 {"trigger":"Gnome Editor","command":"gedit","ground":"foreground","voice":"edit","allowParams": "false"},
 {"trigger":"yum update","command":"yum -y update","ground":"background","voice":"yum update","allowParams": "false"},
 {"trigger":"apt update","command":"apt-get -y update","ground":"background","voice":"update","allowParams": "false"},
 {"trigger":"shutdown","command":"shutdown now","ground":"background","voice":"shutdown","allowParams": "false"}
 ]
- 
    Can't add command with raspberry pi 3b+posted in Raspberry PiRe: Raspberry Pi setup 
 I have tried opening the commands.json file and add
 {"trigger":"shutdown","command":"shutdown now","ground":"background","voice":"shutdown","allowParams": "false"}
 inside the parameters. However, the command does not show up on the website; and when I tried to execute the shutdown command through Alexa, it just beeped and did nothing. Can somebody help me with this problem?
 P.S: It does work with the original commands.