@Ruan-Santana, I added two pages to the documentation this morning:
https://docs.triggercmd.com/#/./API/TriggerCommand
https://docs.triggercmd.com/#/./API/ListCommands
Is that what you're looking for?
I'm a tech enthusiast with about 30 years experience in IT. Recently I'm also a TRIGGERcmd developer.
@Ruan-Santana, I added two pages to the documentation this morning:
https://docs.triggercmd.com/#/./API/TriggerCommand
https://docs.triggercmd.com/#/./API/ListCommands
Is that what you're looking for?
@philip-nguyen, there's a similar question here.
These are the high level steps:
I think that should work. Do you know how to do that? Let me know if you get stuck, and where you get stuck. I can look at your script if you paste it here.
You'll need to install this on your Windows box to make it work: https://autohotkey.com
This is my media.ahk autohotkey script:
Gosub, %1%
return
next:
Send {Media_Next}
return
previous:
Send {Media_Prev}
return
pause:
Send {Media_Play_Pause}
return
play:
Send {Media_Play_Pause}
return
stop:
Send {Media_Stop}
return
volup:
Send {Volume_Up}
return
voldown:
Send {Volume_Down}
return
mute:
Send {Volume_Mute}
return
These are the corresponding commands.json entries:
{"trigger":"Mute","command":"start C:\\autohotkeyscripts\\media.ahk mute","ground":"foreground","voice":"mute"},
{"trigger":"Volume Up","command":"start C:\\autohotkeyscripts\\media.ahk volup","ground":"foreground","voice":"volume up"},
{"trigger":"Volume Down","command":"start C:\\autohotkeyscripts\\media.ahk voldown","ground":"foreground","voice":"volume down"},
{"trigger":"Media Next","command":"start C:\\autohotkeyscripts\\media.ahk next","ground":"foreground","voice":"next"},
{"trigger":"Media Stop","command":"start C:\\autohotkeyscripts\\media.ahk stop","ground":"foreground","voice":"stop"},
{"trigger":"Media Previous","command":"start C:\\autohotkeyscripts\\media.ahk previous","ground":"foreground","voice":"previous"},
{"trigger":"Media Play Pause","command":"start C:\\autohotkeyscripts\\media.ahk pause","ground":"foreground","voice":"pause"},
NOTE: You don't need a Play and a Pause because they do the same thing - they just toggle between play and pause.
This is optional, but I'm also using my Raspberry Pi based IR receiver to trigger the above commands with a VCR remote.
I have these entries in my /etc/lirc/lircrc file on the Pi:
begin
prog = irexec
button = KEY_1
config = export HOME=/root ; /root/triggertest.sh play downstairs
end
begin
prog = irexec
button = KEY_2
config = export HOME=/root ; /root/triggertest.sh notepad downstairs
end
begin
prog = irexec
button = KEY_PLAY
config = export HOME=/root ; /root/triggertest.sh "Media Play Pause" downstairs
end
begin
prog = irexec
button = KEY_PAUSE
config = export HOME=/root ; /root/triggertest.sh "Media Play Pause" downstairs
end
begin
prog = irexec
button = KEY_RIGHT
config = export HOME=/root ; /root/triggertest.sh "Media Next" downstairs
end
begin
prog = irexec
button = KEY_LEFT
config = export HOME=/root ; /root/triggertest.sh "Media Previous" downstairs
end
begin
prog = irexec
button = KEY_STOP
config = export HOME=/root ; /root/triggertest.sh "Media Stop" downstairs
end
begin
prog = irexec
button = KEY_UP
config = export HOME=/root ; /root/triggertest.sh "Volume Up" downstairs
end
begin
prog = irexec
button = KEY_DOWN
config = export HOME=/root ; /root/triggertest.sh "Volume Down" downstairs
end
begin
prog = irexec
button = KEY_MUTE
config = export HOME=/root ; /root/triggertest.sh "Mute" downstairs
end
You can use this web page of course, but don't stop there. Check out this list of ways to run your commands on your computers.
The Smart Home version of the Alexa skill and Google Assistant action does the best job of matching your spoken words to your commands.
Smart Home voice assistant skills (Example: "Alexa, turn on calculator") <--Recommended
TRIGGERcmd Mission Control (demo video)
Original "conversational" voice assistant skills (Example: "Alexa, ask TRIGGERcmd to run calculator"):
Mobile apps:
Progressive Web App (PWA)
Run your commands when things happen in other Internet services:
AI methods:
IoT Smart Home hubs:
Other cool methods:
@tim-s, that's right - you could even just change the trigger name and change it back, and it would invalidate the bookmark URL.
@Waldex-Santos, I think this should work:
osascript -e 'delay 60' -e 'tell app "System Events" to shut down'
It's back up now.
One of my servers went down last night, and Kubernetes didn't handle the fail-over well.
I got an email from my monitoring system while I was sleeping. I'll need to setup something else that will actually wake me up.
I'm sorry about this outage.
This works in Windows, Mac, Linux, Raspberry Pi. You can list and control your SmartThings devices with the Samsung SmartThings cli (command line interface) tool.
https://github.com/SmartThingsCommunity/smartthings-cli#smartthings-devicescommands-id-command
smartthings.exe devices
──────────────────────────────────────────────────────────────────────────────────────────────────────────────
# Label Name Type Device Id
──────────────────────────────────────────────────────────────────────────────────────────────────────────────
1 Front Door base-contact ZWAVE 5bebe423-f899-486e-9f62-8c63707a9b6c
2 Front Lights switch1 DTH fb132245-8bd0-478d-be4b-ca311ae64656
3 Home Hub SmartThings v2 Hub HUB 9079eb4d-10b4-435d-9a05-b2b9629cb50a
4 Motion Sensor Motion Sensor DTH b8a3a1ab-daac-44fb-a6c9-53bac4382df9
5 Notepad Notepad DTH a83bbda3-d461-44ae-948a-7d8fd13b5799
6 Samsung 7 Series (40) [TV] Samsung 7 Series (40) OCF 01253b2b-71ed-4b74-b7dd-74dd94522d96
7 THERMOSTAT Honeywell TCC 6000 Thermostat VIPER 86b567ac-0da3-4257-9b03-47a3cfc3b469
8 Kitchen Switch Z-Wave Switch DTH e2237460-e3fa-4bf5-8a24-3e6d64f89352
To turn on my Kitchen z-wave switch, I can run a command like this:
smartthings.exe devices:commands e2237460-e3fa-4bf5-8a24-3e6d64f89352 switch:on
SmartThings devices can be controlled with the SmartThings app of course, but this might be useful in scripts - whether you run them remotely via TRIGGERcmd or not.
@Royski created this Hubitat integration that works just like the SmartThings integration.
His write up is here, on the Hubitat community forum:
https://community.hubitat.com/t/release-triggercmd-for-hubitat/22715
The code and instructions are here:
https://github.com/rvmey/HubitatTRIGGERcmd
Here's quick video showing it working:
https://youtu.be/V90B7jbEYxI
Some of you might have noticed, when you'd say something like:
Alexa, ask TRIGGER cmd to run notepad on downstairs
You'd get an answer like this:
"Could not find a command with voice word cmd notepad on downstairs, ..."
I fixed that today.
For some reason Alexa started sending the "cmd" part of "TRIGGER cmd" as a prefix in the command name. I actually had to add code to strip that out.
@Thiago-Rodrigues, I think you'd have to run 2 commands:
For #1, you could run the wakeonlan or WakeMeOnLan command from a separate computer on your network, or use this new Alexa method.
For #2, I would not use TRIGGERcmd - I would use this method to turn on my monitor whenever the PC boots up:

@igorneth, if you close and open the agent it should download the updated list of examples.
@igorneth, I added it. Let me know if you want me to make any changes.

@dinco fyi, now Alexa can send the magic packet so you don't need to run the wakeonlan command.
https://www.triggercmd.com/forum/topic/3377/alexa-wake-on-lan
@holmstockd, fyi, now you don't need a second computer on your network. Alexa can send the magic packet. This explains how:
https://www.triggercmd.com/forum/topic/3377/alexa-wake-on-lan
@Stanisław-Grzybołowski, I sent it just now.
@Marcus-Mortensen, I found your Paypal TRIGGERcmd subscription and cancelled it for you.
I made this video to describe the new feature:
https://www.youtube.com/watch?v=NKWxyIQT4G8
More info here:
https://www.triggercmd.com/forum/topic/3373/new-computer-device-option-for-triggercmd-smart-home-alexa-skill-users?_=1786117895659
Enable Wake-On-Lan in your BIOS or UEFI.
Enable Wake-On-Lan in the Agent.

Enable the computer Alexa smart home device.

@Luca-Coraggio, the "TRIGGERcmd Smart Home" Alexa skill is the one you want.
Do you have a device for each command listed in your device list in your Alexa app? You'll need that because that's what you're telling Alexa to turn on/off.
Please try changing your voice word for the Steam command to just "steam" so you can say, "Alexa, turn on steam", or in your case (Italian), "Alexa, avvia steam".