TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Russ
    RussR Offline
    • Profile
    • Following 1
    • Followers 37
    • Topics 239
    • Posts 2,737
    • Groups 1

    Russ

    @Russ

    administrators

    I'm a tech enthusiast with about 30 years experience in IT. Recently I'm also a TRIGGERcmd developer.

    165
    Reputation
    3.8k
    Profile views
    2.7k
    Posts
    37
    Followers
    1
    Following
    Joined
    Last Online
    [[user:website]] triggercmd.com
    [[user:location]] Haslett, MI

    Russ Unfollow Follow
    administrators
    • RE: Doc Api

      @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?

      posted in API
      RussR
      Russ
    • RE: Laptop Battery Management - Automated On/Off Cycle

      @philip-nguyen, there's a similar question here.

      These are the high level steps:

      1. Create 2 commands that just run echo (doesn't matter what), and name them PlugOn and PlugOff.
      2. Setup two Alexa routines - one that turns on your smart plug when the PlugOn command runs, and other that turns it off when the PlugOff command runs.
      3. Create a script. At the beginning of the script, do the following:
      4. Set variable called PLUG_IS_ON with a default value of true.
      5. To make sure the plug is on at first, run the tcmd utility like this: tcmd -t plugon -c (your TRIGGERcmd computer name)
      6. Create a loop that repeats every minute. Inside the loop, do the following:
      7. Check your battery level with BatteryInfoView.exe
      8. When the level is below 30 percent and PLUG_IS_ON = false, run tcmd utility like this: tcmd -t plugon -c (your TRIGGERcmd computer name)
      9. When the level is above 99 percent and PLUG_IS_ON = true, run tcmd utility like this: tcmd -t plugoff -c (your TRIGGERcmd computer name)
      10. Also set PLUG_IS_ON to true when you run plugon, and set it to false when you run plugoff

      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.

      posted in Example Commands
      RussR
      Russ
    • Autohotkey script for Play, Pause, Volume Up/Down, Next/Previous

      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
      
      posted in Windows
      RussR
      Russ
    • List of ways to trigger your commands

      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 Smart Home" Alexa skill
      • "TRIGGERcmd Smart Home" Google Assistant action

      TRIGGERcmd Mission Control (demo video)

      • https://github.com/rvmey/triggercmd-mission-control/releases/

      Original "conversational" voice assistant skills (Example: "Alexa, ask TRIGGERcmd to run calculator"):

      • Original Alexa skill
      • Original Google Assistant action (deprecated)

      Mobile apps:

      • Apple App Store: TRIGGERcmd
      • Google Play Store: TRIGGERcmd (supports widgets)
      • Amazon App Store: TRIGGERcmd

      Progressive Web App (PWA)

      • https://app.triggercmd.com

      Run your commands when things happen in other Internet services:

      • Zapier - create a "Zap" that runs your command when something happens on one of their 1500+ supported apps.
      • Make - create "scenarios" that run commands on your computers.
      • IFTTT - If This Then run a command, or if a TRIGGERcmd command runs, run an IFTTT applet.
      • Microsoft Power Automate (aka Flow) - run commands when things happen in Office 365 and other services.
      • Pipedream - build workflows that run your commands.

      AI methods:

      • ChatGPT app (Youtube demo video)
      • Claude skill
      • OpenClaw skill.
      • Local stdio MCP - Run commands from local AI LLM chat tools like Claude Desktop or VS Code. Use the "MCP Tool Description" field of each command to tell the LLM what the command does, and how to use the parameters.
      • Online Streamable HTTP MCP - Same as above but for online AI tools like Mistral AI.

      IoT Smart Home hubs:

      • Home Assistant - Flip virtual HA switches to run your TRIGGERcmd commands.
      • Samsung SmartThings - Create virtual switches for each command, then flip the switches to run them. (Not working as of 6/21/2025)
      • Homey - Use the ‘run command’ flow action.
      • Hubitat - Trigger a command like you'd flip a switch.
      • Node-RED - Run commands using an "http request".
      • HomeKit - Connect the agent directly to a Homekit hub for offline local runs.

      Other cool methods:

      • Run an Alexa routine - when one of your TRIGGERcmd commands runs.
      • Google Assistant routine (aka automation) - use one of your TRIGGERcmd commands as a "starter" to run your routine when the command runs, or run one of your commands as a routine's "action." Either way, you must use the google automations script editor, not the Home app.
      • n8n community node - Run your commands from n8n AI workflows.
      • Bookmarks - Create and share URL's that run your commands without authentication. You can set an optional timeout to make bookmark URL's expire. People can also scan your bookmark's QR code to run the command.
      • iOS shortcut - Use the iOS Shortcuts app to run your commands with Siri.
      • REST API - Use curl or other client to call the TRIGGERcmd API.
      • tcmd - triggercmd cli command line tool written in Go.
      • Tasker - Tasker is an Android app for automating things with your phone.
      • Slack app - Run your commands with Slack "slash" commands.
      • Powershell - Run a command on a computer across the Internet from your powershell script.
      • Roku channel - Run a command from your Roku.
      • Unity - Run a command from a Unity game or utility you made.
      • Streamdeck - Configure a Streamdeck button to run a command on a remote computer.
      • Python - Run a command on a remote computer from a python script.
      • viaSocket - Run commands from your viaSocket flow (demo video).
      posted in Instructions trigger methods
      RussR
      Russ
    • RE: New Bookmark option for each trigger

      @tim-s, that's right - you could even just change the trigger name and change it back, and it would invalidate the bookmark URL.

      posted in Announcements
      RussR
      Russ
    • RE: Shutdown não funciona no mac

      @Waldex-Santos, I think this should work:

      osascript -e 'delay 60' -e 'tell app "System Events" to shut down'
      
      posted in Mac
      RussR
      Russ
    • RE: Triggercmd smart home not reachable

      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.

      posted in Google Home
      RussR
      Russ
    • smartthings-cli

      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.

      posted in Example Commands
      RussR
      Russ
    • Hubitat integration

      @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

      posted in Instructions
      RussR
      Russ
    • Alexa bug fixed

      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.

      posted in Announcements
      RussR
      Russ
    • RE: How to revoke and regenerate user tokens?

      @Videsfront, you can revoke all previously issued tokens with this new button on the Token Usage page: https://www.triggercmd.com/user/tokenUsage

      c434b71c-6c6f-47a9-a8b2-78fae04da0b4-image.jpeg

      posted in General Discussion
      RussR
      Russ
    • RE: Request to Revoke and Replace Exposed User Token

      @Sshss-H, if you log into your account and click your name in the upper-right, then click Profile:

      1ea37828-a39d-4b4f-85e9-d0173c3eb869-image.jpeg

      If you scroll down on the profile page you'll see this "View Token Usage History" button:

      7b8e9979-682f-4a2f-b7e3-293f10d1b88c-image.jpeg

      Here's a direct link to that page:
      https://www.triggercmd.com/user/tokenUsage

      On that page you can see what tokens have been used for what, and you can disable them.

      If you have the leaked token, you can copy/paste it to https://www.jwt.io to get the issue date. It's safe to paste it there - it won't be sent to them.

      posted in API
      RussR
      Russ
    • RE: iOS Triggercmd app stopped working

      @russell-mourney , @dallas-butler , @jason-hinds , the fixed version is available on the App Store now.

      posted in General Discussion
      RussR
      Russ
    • RE: iOS Triggercmd app stopped working

      Thanks @Russell-Mourney. I love the use-case. I bet you found it easier to launch Teams for them rather than try to get them to do it.

      posted in General Discussion
      RussR
      Russ
    • RE: iOS Triggercmd app stopped working

      @Jason-Hinds , @russell-mourney, @dallas-butler , I'm looking into it now. Thank you for reporting the issue!

      It's an iOS 27 issue. I couldn't reproduce the issue on my iOS 26 device, then I upgraded it to iOS 27 and it started crashing.

      I fixed it and submitted an update to Apple. Hopefully they'll approve it quickly. Usually it's a day or two.

      posted in General Discussion
      RussR
      Russ
    • RE: Alexa+ (Alexa Plus) breaks TRIGGERcmd custom actions in new routines, while existing routines still work

      @Uuzz, I think you're running into an Alexa+ limitation. They seem to be phasing out legacy conversational skill features with Alexa+. I've run into the same limitations and switched to using the Smart Home skill for the most part.

      You could try disabling Alexa+. This page gave me the option:
      https://www.amazon.com/adgmonera/webapp2/thank-you?asin=B0CXRRF584&adgwdg=adg-monera&tenantId=DEVICE_SUBS

      e26b3fc3-0653-4ee4-89d6-338a21123339-image.jpeg

      posted in General Discussion
      RussR
      Russ
    • RE: Reregistering Triggercmd on a New PC and copying across all commands

      @Edwin-Zahra, no, it's supposed to save your settings under the computer Edit screen. Can you reproduce that issue?

      I tested it myself and I found that my settings do save.

      All I can think of that would clear your settings if you deleted your computer and recreated it. I did notice if I rename my "Alexa Shutdown Command" it gets cleared, but the Volume and Mute commands don't, so I'll fix that.

      I wonder if the reason Alexa isn't saying "Turning on the computer" is because it's not actually running your routine - maybe it's finding the computer device you created for your TRIGGERcmd computer by checking that box. You could use a very different trigger phrase, like "apple" or "banana" to run your routine for testing.

      posted in General Discussion
      RussR
      Russ
    • RE: Reregistering Triggercmd on a New PC and copying across all commands

      @Edwin-Zahra, you're welcome.

      One thing I want to make sure you understand is if you're checking that "Create Alexa Smart Home device for this computer" checkbox, it creates a device for the computer, which is separate from the devices created for each command that has a voice word filled in. That computer device can be used for turn on (wake-on-lan) and turn off (run the shutdown command you specify).

      You'd say "turn on shutdown" if you want to run the shutdown command via its own device.

      You'd say "turn off laptop" to run the shutdown command you specified in the Computer Edit screen.

      posted in General Discussion
      RussR
      Russ
    • RE: Reregistering Triggercmd on a New PC and copying across all commands

      You're right @Edwin-Zahra, I'm sorry I sent bad instructions last reply.

      To get to that Computer Edit screen, click the Edit button for the computer:

      b3abb37c-63e4-43d7-8755-32b3dc2b497c-image.jpeg

      posted in General Discussion
      RussR
      Russ
    • RE: Reregistering Triggercmd on a New PC and copying across all commands

      @Edwin-Zahra, sorry, to get to your profile settings page, click your name in the upper-right, and click Profile.

      57ec37ef-6d95-4b57-aebb-94d5914a9115-image.jpeg

      posted in General Discussion
      RussR
      Russ