Open eli167 opened 8 years ago
Near the end of the documentation (page 12), there are some examples of performing various functions (on/off, dimmable, scene control)
For Vera, here are some typical configurations for the onUrl and OffUrl. Keep in mind that you will need to replace the 10.10.1.91 with the IP Address of your Vera server as well as adusting the port (3480) if you are not using a standard Vera configuration. Finally, you will need to update the DeviceNum (or SceneNum) with the DeviceNum (or SceneNum) of the Vera device you are trying to control.
A Dimmable Light
On http://10.10.1.91:3480/data_request?id=action&output_format=json&DeviceNum=33&serviceId=urn:u pnp-org:serviceId:Dimming1&action=SetLoadLevelTarget&newLoadlevelTarget=${intensity.percent}
Off http://10.10.1.91:3480/data_request?id=action&output_format=json&serviceId=urn:upnporg: serviceId:SwitchPower1&action=SetTarget&newTargetValue=0&DeviceNum=33
An On/Off Light
On http://10.10.1.91:3480/data_request?id=action&output_format=json&DeviceNum=84&serviceId=urn:u pnp-org:serviceId:Dimming1&action=SetLoadLevelTarget&newLoadlevelTarget=${intensity.percent}
Off http://10.10.1.91:3480/data_request?id=action&output_format=json&serviceId=urn:upnporg: serviceId:SwitchPower1&action=SetTarget&newTargetValue=0&DeviceNum=84
etc From: eli167 [mailto:notifications@github.com] Sent: Sunday, June 19, 2016 11:24 AM To: nanowebcoder/NanoVeraHuesBridge NanoVeraHuesBridge@noreply.github.com Subject: [nanowebcoder/NanoVeraHuesBridge] can i use this to Dim (#5)
How can I dim the lights or is it only on and off?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/nanowebcoder/NanoVeraHuesBridge/issues/5, or mute the threadhttps://github.com/notifications/unsubscribe/AQjlVHCuy88HodCP1n31oKvTM6t8x91gks5qNV8jgaJpZM4I5L9C.
How can I dim the lights or is it only on and off?