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

    Parameters via google/smart things

    General Discussion
    3
    4
    1.1k
    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.
    • ?
      A 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
        Russ @A Former User
        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
        • ?
          A 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
            Russ @A Former User
            last edited by

            @clconner09, awesome, thank you!

            Russell VanderMey

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