[Release] TRIGGERcmd for Hubitat

Hi all.

TRIGGERcmd, is a PC utility which allows you to expose commands/programs created on a PC to the smart world.
Almost anything which can be executed on a PC, can now be executed from HE and virtual switches created by the TRIGGERcmd app, and driver below.

Start your mail program, run that batch-file you created, reboot your PC remotely, or shut it down for the day, even run HueDynamic to the camera, and set your lights going to the movie playing on Plex (or any other program). These are just a few examples, you can achieve.

I can think of lot of use cases, if you have a PC media server connected to the TV, or work from home, this could be a perfect companion!! For me, I can fire up mail by my Dash, or perform a reboot, or shutdown etc at the push of a Dashboard switch. Or if you leave the house and forgot to shut the PC down, the possibilities are endless. There's a few other ways to integrate it here

Russ from TRIGGERcmd, created the ST version of the app and driver, which I've ported and enhanced in a few areas.
I can now share with all. I hope you find some use for it :slight_smile:

You can download the application for free here and can be installed on Windows, Linux or Mac, you can also run it as a service. Full instructions are in the link. There are more examples on Russ's Youtube

For one PC/Mac/Linux machine its free, and you can execute one command per minute.
If you'd like it on many PCs there is a charge of $15 per year to TRIGGERcmd (not me).

Installing TRIGGERcmd.

First, sign up for a TRIGGERcmd account here
Then download the PC installation required.
Linux Agent RPM
Linux Agent DEB
Linux Agent DEB with no GUI (good for Raspberry Pi)
Mac Agent

For HE, Install the app.

And the driver

When installing the App, the second page will allow you to choose which TRIGGERcmd commands you'd like to install as Switches. Once installed, there is an option to toggle how the switch behaves.


When set On, it behaves like a momentary switch, and will turn the switch off shortly after switching on. Useful for launching a program or batch-file just once, without closing.

When set Off, it will behave as a normal switch. You could open an application, when switched on, and close it again when switching off.

Example of a command for Notepad++

In TRIGGERcmd you would configure as such:-

And the "Notepad.bat" :-

	if "%1"=="on" "C:\Program Files\Notepad++\notepad++.exe"
    if "%1"=="off" taskkill /im notepad++.exe

When the switch is switched on, Notepad++ will launch, when switched off, it will be closed.


Special thanks to @cobra for reuse of code snippets, and @april.brandt for prompting the thoughts :wink:


Just curiosity and something I noticed. This is cloud based which gives me shivers allowing any cloud service from an unknown 3rd party full and complete access to my PC.

And curiosity. Why not do this with EventGhost which is local?

Otherwise cool idea.

Understandable I guess, I've used it for a long while, initially just via Alexa. It may be cloud based, but all thats being passed are triggers not the commands themselves. You're not giving it access to your PC though.

I haven't looked at EventGhost, but TRIGGERcmd suits my needs, and can be installed on more of my devices I believe. Android app, Alexa, Google Home etc

I just thought I'd share this, its just a nice simple way to achieve what I wanted.

1 Like

Yeah cool. Not meaning anything negative just curious and I hadn't even seen TRIGGERcmd before this. It looks interesting. I'll have to look into it further. I'm not cloud phobic but I'm just leary of unknown agents running on my internal systems... not security paranoid but aware :smile:


I'm with you on that :wink: :+1:


This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.