URL to turn on a virtual switch?

How do I create a URL shortcut to flip on a virtual switch. I’ve found a post about creating a shortcut to control an actual switch but for some reason I couldn’t sort out how to adapt it to a vIrtual switch.

Sent from my iPad using Tapatalk

Try this:

http://<ip_address>:3480/data_request?id=action&output_format=xml&DeviceNum=<devID>&serviceId=urn:upnp-org:serviceId:VSwitch1&action=SetTarget&newTargetValue=1

Replace <ip_address> with the IP address of Vera and with the device ID of the VirtualSwitch - without the <>.

[quote=“RexBeckett, post:2, topic:178977”]Try this:

http://<ip_address>:3480/data_request?id=action&output_format=xml&DeviceNum=<devID>&serviceId=urn:upnp-org:serviceId:VSwitch1&action=SetTarget&newTargetValue=1

Replace <ip_address> with the IP address of Vera and with the device ID of the VirtualSwitch - without the <>.[/quote]
Or you can use this for remote.

https://fwd6.mios.com/(vera_username)/(vera_password)/(vera_serial)/data_request?id=action&output_format=xml&DeviceNum=<devID>&serviceId=urn:upnp-org:serviceId:VSwitch1&action=SetTarget&newTargetValue=1

[quote=“RexBeckett, post:2, topic:178977”]Try this:

http://<ip_address>:3480/data_request?id=action&output_format=xml&DeviceNum=<devID>&serviceId=urn:upnp-org:serviceId:VSwitch1&action=SetTarget&newTargetValue=1

Replace <ip_address> with the IP address of Vera and with the device ID of the VirtualSwitch - without the <>.[/quote]

Hi

When I try this URL it says:

ERROR: Device does not handle service/action

I am using the VirtualSwitch plugin found here to create my virtual switches.

Can I send a http command to turn on / off my virtual switches?

Thanks

EDIT: Doh it does work I was using the wrong device ID.

Cheers

Please don’t double post!