This page outlines steps trigger different sounds scenes for Doorbell Gen5 in Vera gateway using LUUP coding and form part of the larger Doorbell Gen5 user guide.
A quick review of the LUUP code needed.
You can use a LUUP command in your scenes to trigger different tones:
luup.call_action('urn:micasaverde-com:serviceId:ZWaveNetwork1','SendData',{Node='44',Data='112 4 6 1 1'},1)
Items that you will need to change are:
Node='44'
- This will need to change to be the "altid" of your Doorbell sensor (can be found under Advanced towards the top of the list)
Data='112 4 6 1 1'
- Your only concern under "Data" would be the number 1 which is used as the ID for the sound that you want to play.
-
An Example. Example - if you have a Doorbell Gen5 with an "altid = 15" and you want to trigger the 2nd sound that was uploaded to the Doorbell Gen5 you will set: Node='15' Data='112 4 6 1 2' So your LUUP code will look like this: luup.call_action('urn:micasaverde-com:serviceId:ZWaveNetwork1','SendData',{Node='15',Data='112 4 6 1 2'},1) As a quick example, if you want to trigger sound 3, notice that the last value is changed to 3.
luup.call_action('urn:micasaverde-com:serviceId:ZWaveNetwork1','SendData',{Node='15',Data='112 4 6 1 3'},1)
As soon as the script runs, then the doorbell sound will play.
-
Step by Step Guide.
Below are the steps that you will need to take to take to use the LUUP code as a trigger within a scene.
1. You'll need to first need to find your Doorbell in the "Devices" menu of your Vera UI7 gateway, then click on the arrow next to it.
2. Tap on "Advanced"
3. Look for altID variable, and make note of it. (In this example, the altID = 22 from the image below).
4. Now Click on the "Scenes" Tab then click on "+ Add Scene"
5. Select Device (big button, should be default selection), then click on the arrow next to "Select a device..."
6. Select the device you want to control Doorbell Gen5
7. Determine what triggers the scene from the device that is controlling Doorbell, and click on "Validate" at the bottom.
8. Click on Next Step.
9. Skip Step 2: Device Actions by clicking on "Next Step" arrow
10. Click on the arrow next to "Also, execute the following Luup code:"
11. Enter the LUUP code that will trigger when the scene is triggered.
Example setting.
Node = 22 (remember from step 3, you've made node of the altID, this is the Node setting).
Sound selected = 5 (I want to select sound 5, so the last value should be 5)
The ending code is:
luup.call_action('urn:micasaverde-com:serviceId:ZWaveNetwork1','SendData',{Node='22',Data='112 4 6 1 5'},1)
12. Click on "Save Lua".
13. Name your Scene and click on "Finish" to save your setting.
14. Now test your trigger!