• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
TRIGGERcmd
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  1. Home
  2. blizzrdof77
  • Profile
  • Following 0
  • Followers 0
  • Topics 0
  • Posts 2
  • Best 1
  • Controversial 0
  • Groups 0

Ben Wagner

@blizzrdof77

Let me tell you a little bit about myself so people know they have found the right Benjaham.

1
Reputation
204
Profile views
2
Posts
0
Followers
0
Following
Joined Dec 27, 2017, 5:39 PM Last Online May 10, 2025, 1:25 AM
Website iambenwagner.com Location Columbus, OH Age 36

blizzrdof77 Unfollow Follow

Best posts made by blizzrdof77

  • RE: How to run commands from Home Assistant

    @russ Thanks for this, by the way!

    For anyone else using TriggerCMD with Home Assistant, I wrote this helper script with a rest_command that I have found very useful for running commands with parameters (or without parameters).

    Just be sure to change "ADD.YOUR.TRIGGERCMD.TOKEN.HERE" to your token.

    The Script:

    ## -- RUN TRIGGERCMD REST COMMAND
    script:
      run_triggercmd_rest_command:
        alias: Run TriggerCMD REST Command
        description: Execute a RESTful command with params and a device using triggercmd.
        icon: mdi:apple-keyboard-command
        variables:
          params: ''
          token: 'ADD.YOUR.TRIGGERCMD.TOKEN.HERE'
        fields:
          trigger:
            description: The name of the trigger
            example: Exit Windows Program
            required: true
          computer:
            description: The name of the computer as shown in your computer list on triggercmd.com.
            example: My Computer Name
            required: true
          params:
            description: Optional args string to pass with the trigger, using a space for multiple params [optional].
            example: ''
            required: false
        sequence:
        - service: rest_command.tcmd_run_command
          data:
            trigger: "{{ trigger }}"
            computer: "{{ computer }}"
            params: "{{ params }}"
            token: "{{ token }}"
    

    The Rest Command

    ## -- RUN TRIGGERCMD COMMAND
    rest_command:
      tcmd_run_command:
        url: 'https://www.triggercmd.com/api/run/triggerSave'
        method: POST
        content_type: 'application/x-www-form-urlencoded'
        payload: 'trigger={{trigger|replace(" ","%20")}}&computer={{computer|replace(" ","-")}}&params=+{{params}}&token={{token}}'
    

    Example Usage

    service: script.run_triggercmd_rest_command
    data:
      trigger: This Is The Trigger Name                 # Literally the name of the command
      computer: My Computer                             # (will render as 'My-Computer')
      params: '--female "Shutdown request confirmed"'   # This has 3 params
    
    posted in Home Assistant
    B
    blizzrdof77
    Dec 4, 2021, 1:12 AM

Latest posts made by blizzrdof77

  • RE: How to run commands from Home Assistant

    @russ Thanks for this, by the way!

    For anyone else using TriggerCMD with Home Assistant, I wrote this helper script with a rest_command that I have found very useful for running commands with parameters (or without parameters).

    Just be sure to change "ADD.YOUR.TRIGGERCMD.TOKEN.HERE" to your token.

    The Script:

    ## -- RUN TRIGGERCMD REST COMMAND
    script:
      run_triggercmd_rest_command:
        alias: Run TriggerCMD REST Command
        description: Execute a RESTful command with params and a device using triggercmd.
        icon: mdi:apple-keyboard-command
        variables:
          params: ''
          token: 'ADD.YOUR.TRIGGERCMD.TOKEN.HERE'
        fields:
          trigger:
            description: The name of the trigger
            example: Exit Windows Program
            required: true
          computer:
            description: The name of the computer as shown in your computer list on triggercmd.com.
            example: My Computer Name
            required: true
          params:
            description: Optional args string to pass with the trigger, using a space for multiple params [optional].
            example: ''
            required: false
        sequence:
        - service: rest_command.tcmd_run_command
          data:
            trigger: "{{ trigger }}"
            computer: "{{ computer }}"
            params: "{{ params }}"
            token: "{{ token }}"
    

    The Rest Command

    ## -- RUN TRIGGERCMD COMMAND
    rest_command:
      tcmd_run_command:
        url: 'https://www.triggercmd.com/api/run/triggerSave'
        method: POST
        content_type: 'application/x-www-form-urlencoded'
        payload: 'trigger={{trigger|replace(" ","%20")}}&computer={{computer|replace(" ","-")}}&params=+{{params}}&token={{token}}'
    

    Example Usage

    service: script.run_triggercmd_rest_command
    data:
      trigger: This Is The Trigger Name                 # Literally the name of the command
      computer: My Computer                             # (will render as 'My-Computer')
      params: '--female "Shutdown request confirmed"'   # This has 3 params
    
    posted in Home Assistant
    B
    blizzrdof77
    Dec 4, 2021, 1:12 AM
  • RE: How to run commands from Home Assistant

    Is it possible to pass arguments via this method?

    posted in Home Assistant
    B
    blizzrdof77
    Feb 9, 2021, 5:52 PM