Desktop Shortcut
From MiOS
HOWTO setup a desktop shortcut to activate a scene or control a device.
Contents |
Introduction
Instructions for Windows
- Get wget for Windows.
- Create a shortcut to it on the Desktop.
- Right click on the shortcut and open the Shortcut tab.
- In the Target field append the following:
-q -O NUL "http://<vera_IP>:3480/data_request?id=lu_action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=<scene_number>"
Examples
To run a scene
"D:\Programs\wget.exe" -q -O NUL "http://192.168.10.1:3480/data_request?id=lu_action &serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=6"
To control a device:
"http://<vera_IP>:3480/data_request?id=lu_action&output_format=xml&DeviceNum=<device_number> &serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=<1 to turn on, 0 to turn off>"
- Note: You can find the whole Luup requests list Luup Requests.
To toggle the state with one statement:
"http://<veraIP>:3480/data_request?id=lu_action&output_format=xml&DeviceNum=<devId>&serviceId=urn:micasaverde-com:serviceId:HaDevice1&action=ToggleState"
Other OS
In Linux or OSX you can use curl instead of wget.exe Curl is nativly available on these OS'
Syntax:
curl -0