Http Get Switch Add'l Functionality

Hi new user looking for some guidance.

I am using the Http Get Switch driver to control a multi zone amp (Monamp). So far the on/off commands are working great with an echo device using a restful web service. I would like to now add the ability to switch sources. I was using a Dim URL (http://local:local@192.168.1.16:33900/RunScript/false/multiroomaudio.SetZoneSource(1,%201);) in a previous environment. I am very new to this so I am not sure how to modify the code to send the new url. I added the url field under preferences.

    input "dimURI", "text", title: "Dim URI", required: false

Http Get Switch Driver

Thanks
Mike

Ok. Thanks to some great work I found searching this forum I got this working. I am now able to control on and off as well as source selection to all 6 zones using echo.

for some reason i cannot set this switch to ON. it only allowed me to select off once and now it wont' change back. any ideas why? thank you

hmm seems to be cause of illegal character:
Call to off failed: Illegal character in query at index 86: http://192.168.1.xx:xxxx/webapi/entry.cgi?api=SYNO.SurveillanceStation.Webhook&method="Incoming"&version=1&token=a

it seems that is the = sign. odd

Just looking at it I would think that the quotes may be an issue.

Download the Hubitat app