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

    sending parameter to a home assistant TCMD switch

    Home Assistant
    2
    5
    176
    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

      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 Reply Quote 0
      • M
        metablast @metablast
        last edited by

        @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

        RussR 1 Reply Last reply Reply Quote 0
        • RussR
          Russ @metablast
          last edited by Russ

          @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

            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

            RussR 1 Reply Last reply Reply Quote 0
            • RussR
              Russ @metablast
              last edited by

              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