• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
TRIGGERcmd
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

sending parameter to a home assistant TCMD switch

Home Assistant
2
5
198
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    metablast
    last edited by Jan 3, 2025, 7:12 PM

    Hi,
    I'm new here so please be gentle

    I sent up a simple curl command in TCMD (tigger cmd) .. litterally just 'curl' and set 'allow parameters'

    I now want to be able to send a paratameter to this from a switch or action in home assistant so i can send http request / web hook

    example parameter/webhook .. "http;//mywebkook.com/tokenblahblah"

    example webhook trigger.. curl "http;//mywebkook.com/tokenblahblah" would activate a simple webhook .. checked and works fine from cmd line

    any idea how to do this? Cheers everyone

    M 1 Reply Last reply Jan 3, 2025, 7:20 PM Reply Quote 0
    • M
      metablast @metablast
      last edited by Jan 3, 2025, 7:20 PM

      @metablast

      Bot Replied with rest commands avalible but if there is a more simple way to pass the parameter at the switch level that would be far better unless i am missing something.

      That way the parameter or webhook can be added directly into the switch or automation instead of more coding or TCMD commands for each webhook

      R 1 Reply Last reply Jan 7, 2025, 1:05 PM Reply Quote 0
      • R
        Russ @metablast
        last edited by Russ Jan 7, 2025, 1:05 PM Jan 7, 2025, 1:05 PM

        @metablast, sorry, at this point in time the TRIGGERcmd Home Assistant integration only supports sending the on and off parameters with the trigger.

        You mentioned "Bot Replied." What bot are you talking about?

        Russell VanderMey

        1 Reply Last reply Reply Quote 0
        • M
          metablast
          last edited by Jan 18, 2025, 6:53 PM

          Thanks for letting me know... when I say bot it was just mean that a post shifted automatically to give more info at the top about home assistant

          R 1 Reply Last reply Jan 19, 2025, 5:54 PM Reply Quote 0
          • R
            Russ @metablast
            last edited by Jan 19, 2025, 5:54 PM

            Thanks @metablast.

            I've been thinking about how I could allow other parameters. Would you want to create an HA automation that triggers the command, and do you want the properties of the device that triggered the automation to be selectable as command parameters? I think I could build a way to do that.

            Russell VanderMey

            1 Reply Last reply Reply Quote 0
            • First post
              Last post