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

MonoAMP from monoprice 6 zone amplifier

Windows
3
8
4.0k
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.
  • N
    Nate Hales
    last edited by Nate Hales Dec 17, 2020, 5:14 AM Oct 4, 2017, 2:53 AM

    Check out this video for detailed instructions:
    https://www.youtube.com/watch?v=fHB_gjc1w8Q

    Change volume of a zone:

    curl "http://localhost:50233/api/Value?Channel=0&command=Volume&value=15"
    

    Change input (aka channel) of zone 0:

    curl "http://localhost:50233/api/Value?Channel=0&Property=CH&value=1"
    

    Power on zone 0:

    curl "http://localhost:50233/api/Value?Channel=0&Property=PR&value=1"
    

    Mono Amp Codes.jpg

    K 1 Reply Last reply Feb 28, 2018, 7:06 PM Reply Quote 0
    • ?
      A Former User
      last edited by Jan 3, 2018, 5:49 PM

      I just spoke with the creator of the monoamp software. Using the command "curl "http://localhost:50233/api/ValueUp?Channel=1&command=Power" allows you to use it like a switch in smart things. Each time you call the command it will change the value 010101010 etc.

      N 2 Replies Last reply Jan 4, 2018, 5:15 AM Reply Quote 0
      • N
        Nate Hales @A Former User
        last edited by Jan 4, 2018, 5:15 AM

        @clconner09 This is huge!!! Thanks for the share!! I want to be ablle to turn on Zones by Smartthings and/or Alexa. Any additional input you have on this would be great!!

        1 Reply Last reply Reply Quote 0
        • N
          Nate Hales @A Former User
          last edited by Jan 4, 2018, 7:10 AM

          @clconner09 said in MonoAMP from monoprice 6 zone amplifier:

          "curl "http://localhost:50233/api/ValueUp?Channel=1&command=Power"

          I used this in a batch file and made a smartthings switch for each zone. Here is the sample for the batch file (thanks for the idea. 🙂
          if "%1"=="on" curl "http://localhost:50233/api/Value?Channel=5&Property=PR&value=1
          if "%1"=="off" curl "http://localhost:50233/api/Value?Channel=5&Property=PR&value=0

          1 Reply Last reply Reply Quote 0
          • ?
            A Former User
            last edited by Jan 4, 2018, 4:17 PM

            I just did something similar. I have a one script called OfficePower.bat with the code:

            curl "http://localhost:50230/api/ValueUp?Channel=3&command=Power"
            0_1515082332570_d0305f9e-774b-43a5-a2b6-6e9e9820dfe1-image.png

            This a switch in smart things which I can just say 'Hey Google, turn off Office Speakers' or 'Hey Google, turn on Office Speakers'. Fortunately, smart things doesn't care what "state" the switch is in, it will execute regardless.

            Then I created a second script called OfficeSource.bat with the code:

            curl "http://localhost:50230/api/Value?Channel=3&Property=PR&value=1"
            if "%1"=="Chromecast" curl "http://localhost:50230/api/Value?Channel=3&Property=CH&value=5"
            if "%1"=="PC" curl "http://localhost:50230/api/Value?Channel=3&Property=CH&value=1"
            0_1515082528239_f03a8dd1-58ea-4f12-ad97-fa2d19d9ac87-image.png

            I use the command "Hey Google, ask TRIGGERcmd to run office speakers with parameter PC." or "Hey Google, ask TRIGGERcmd to run office speakers with parameter Chromecast."

            N K 2 Replies Last reply Jan 10, 2018, 9:04 AM Reply Quote 0
            • N
              Nate Hales @A Former User
              last edited by Jan 10, 2018, 9:04 AM

              @clconner09 that is awesome!! I just figured out how to switch between Spotify devices. it is a .vbs file I made in notepad. Works like a champ. You can change the amount of times it hits the TAB button (to select different devices) by changing the 3 in "{TAB 3}". I have made multiple identical scripts with the only change being this number. I made Trigger commands that I trigger with Alexa through Smartthings. "Alexa turn on device 3"

              Set WshShell = WScript.CreateObject("WScript.Shell")
              Comandline = ":\Users*YOUR COMPUTER NAME*\AppData\Roaming\Spotify\Spotify.exe"
              CreateObject("WScript.Shell").Run("spotify:")
              WScript.sleep 1000
              WshShell.SendKeys "^{d}"
              WScript.sleep 1000
              WshShell.SendKeys "{TAB 3}", True
              WScript.sleep 1000
              WshShell.SendKeys " "

              1 Reply Last reply Reply Quote 0
              • K
                KenJ @A Former User
                last edited by Feb 28, 2018, 7:17 AM

                @clconner09 I just started this and created a file called Power.bat:
                curl "http://192.168.1.150:50233/api/ValueUp?Channel=%1&command=Power"
                Then create the trigger with a variable by running "Power 0"
                This will turn on /off Zone 1, For Zone 2 it would be "Power 1" etc...

                1 Reply Last reply Reply Quote 0
                • K
                  KenJ @Nate Hales
                  last edited by Feb 28, 2018, 7:06 PM

                  @nate-hales said in MonoAMP from monoprice 6 zone amplifier:

                  Check out this video for detailed instructions:
                  https://www.youtube.com/watch?v=fHB_gjc1w8Q

                  Change volume of a zone:

                  curl "http://localhost:50233/api/Value?Channel=0&command=Volume&value=15"
                  

                  Change input (aka channel) of zone 0:

                  curl "http://localhost:50233/api/Value?Channel=0&Property=CH&value=1"
                  

                  Power on zone 0:

                  curl "http://localhost:50233/api/Value?Channel=0&Property=PR&value=1"
                  

                  Are these the only commands that you have?

                  Thanks

                  Ken

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