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

    Parameters via google/smart things

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 3 Posters 1.6k Views 1 Watching
    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.
    • ? Offline
      [[global:former-user]]
      last edited by

      Is there a way to accept a parameter using google/smart things? I'm setting up the mono amp software and would love to be able to tell it to set an zone to a certain input. "Set the kitchen speakers to PC audio"

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

        @clconner09, the only parameters SmartThings will send is on or off as you flip the virtual switch on or off.

        If you want to use your voice via Google Assistant, you can send a parameter with this sentence format:

        • Hey Google, ask TRIGGERcmd to run kitchen speakers with parameter PC audio.

        You could then have a batch file called kitchenspeakers.bat with contents like this:

        if "%1"=="pc audio" curl "http://localhost:50233/api/Value?Channel=0&Property=CH&value=1"
        if "%1"=="stereo" curl "http://localhost:50233/api/Value?Channel=0&Property=CH&value=2"
        if "%1"=="tv" curl "http://localhost:50233/api/Value?Channel=0&Property=CH&value=3"
        

        Russell VanderMey

        1 Reply Last reply Reply Quote 0
        • ? Offline
          [[global:former-user]]
          last edited by

          Brilliant! Just earned my subscription. Keep up the good work brother.

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

            @clconner09, awesome, thank you!

            Russell VanderMey

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post