nanowebcoder / NanoVeraHuesBridge

A C# version of a Philips Hues Bridge which allows Amazon Echo to speak to Vera and control lights, doors, stereos and more.
Apache License 2.0
14 stars 4 forks source link

comands #6

Open eli167 opened 8 years ago

eli167 commented 8 years ago

is there a list of commands like how do I request to dim a light by 50 percent please advise. thanks in advance

Eli

nanowebcoder commented 8 years ago

The PDF contains the primary three actions involved with Vera (on/off switches, dimmables and scenes). You can google Vera and Urls and you can check the MCV wiki (http://wiki.micasaverde.com/index.php/Luup_Requests) to see examples of other URL based things you can do (like rename a room—which isn’t very useful for our purposes)

With Vera, you can create a scene (say to dim something to 50% and turn on the music). Then you can setup a device in the bridge to turn that scene on.

Or you can call that dimmable directly: 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}

Replace (${intensity.percent} with 50 and, viola!, you can set a device to 50%.

The bridge itself doesn’t have commands. Remember it is emulating a Philips hue bridge (which is designed to control Philips hues lights). So it really on supports turning things on and turning things off. However, because we can go to any URL on the command to off or on, the nanoVeraHuesbridge controller can do a bit more. Doesn’t even have to be Vera. Just anything that takes a URL.

From: eli167 [mailto:notifications@github.com] Sent: Wednesday, June 22, 2016 8:02 AM To: nanowebcoder/NanoVeraHuesBridge NanoVeraHuesBridge@noreply.github.com Subject: [nanowebcoder/NanoVeraHuesBridge] comands (#6)

is there a list of commands like how do I request to dim a light by 50 percent please advise. thanks in advance

Eli

— 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/6, or mute the threadhttps://github.com/notifications/unsubscribe/AQjlVG76PSzJk-WQUPDOK_SeIdYyMkVoks5qOSQdgaJpZM4I7s75.