Open/Close .exe +Lights on Google Home routines
-
Hello!
I have a routine integrated with TriggerCMD but it only works from my phone (google home) and not from my pc.
What i made successfully is create a Routine on the Google Script editor that whenever i start my command/trigger, it opens steam.exe, this triggers my led strip on or off, depending on the parameter sent (both starters on the same code)# Visit g.co/home/script-editor-docs for full documentation. # ------------------------------------------------------------------------------------------ # metadata: name: test steam + light rgb escritorio description: Scripted automation automations: - starters: - type: device.state.OnOff state: on is: true device: Iniciar Steam - Oficina condition: type: device.state.OnOff state: on is: false device: Led escritorio - Oficina actions: - type: device.command.OnOff on: true devices: Led escritorio - Oficina # SECOND STARTER # - starters: - type: device.state.OnOff state: on is: false device: Iniciar Steam - Oficina actions: - type: device.command.OnOff on: false devices: Led escritorio - Oficina
this is on the .bat file:
taskkill /F /IM Steam.exeI added on the triggercmd Command and off command on and off text to the end, i dont know if that sends the parameter but at least is working (maybe if i delete that it works anyway)
But what is not working is the automation triggering when i open the shortcut from my pc or the .exe, is it possible to make it work like my phone? i want to open Steam from my desktop and this triggers my routine, therefore turning on my strip lights and also when i stop/kill/close the .exe it turns off my light, i cant make it work like that
thanks!
-
@john-lagos-ramirez, if you open and close steam from your PC via TRIGGERcmd it should trigger your Google Home routines that turn your lights on/off.
Please try this:
-
Download the tcmd tool
-
Rename it to tcmd.exe
-
Move it in your c:\windows folder so it's in your PATH.
-
Right-click your desktop and create 2 shortcuts that run these two commands:
tcmd -t "Open/close steam"-c "PC John"-p on
tcmd -t "Open/close steam"-c "PC John"-p off
For example:

I created similar shortcuts to open/close calculator via TRIGGERcmd:

You can customize the shortcut icon if you want.
-
-
Hi @Russ
I followed your instructions and it is working excellent now
Thank you so much! -
@john-lagos-ramirez, awesome.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login