I received the following(below) from Aeotec as a response to my query.
Since I am not a programmer nor an IT person. I am looking for a little help in translating it into Newbie.
When I go to setup a scene, after I select the trigger, I get device option. Only choices are On/Off. So I select On. Next After I validate, I get a Add a delayed action/Next step choices.
Question is where does the Luup scene/code that AeoTec provided go? Is it a “Delayed action” or is it supposed to be in the next step option as a"Add luup code" Both appear to apply the code to the siren after it goes on. Am I mistaken or just simply very confused? ???
You may need to create a luup scene for every trigger that you want to use and different sounds, i will give you an example of using sound 4 with volume 2, and will leave it up to you to program the other scenes with the luup code.
All you need to edit is a single number for the case in the luup code to run different sounds.
This code can be used to change the sound setting of the siren before it triggers.
Hex 0402 = dec 1027 (Sound 4 Volume 2)
Node=‘44’ will need to change to reflect the Siren in your network.
(LUUP for setting configuration settings)
luup.call_action(‘urn:micasaverde-com:serviceId:ZWaveNetwork1’,‘SendData’,{Node=‘44’,Data=‘112 4 37 2 1027’},1)
(LUUP for turning ON the Siren)
luup.call_action(‘urn:micasaverde-com:serviceId:ZWaveNetwork1’,‘SendData’,{Node=‘44’,Data=‘37 1 255’},1)
(LUUP for turning OFF the Siren)
luup.call_action(‘urn:micasaverde-com:serviceId:ZWaveNetwork1’,‘SendData’,{Node=‘44’,Data=‘37 1 0’},1)
Edit-
At least AeoTec has been trying to help. I am appreciate of that. I am thinking of calling Vera today with the info below to see if they can help me figure this out. Figured this might help some non programmers like me.
Follow up question to above response-
"In Vera, I see a trigger. I set that up. The next option is to select a device and there seems to be no option to add the luup code in the device option. The only options in the device are on and off. So where does this code go?
Also, I am assuming that in the following, I change "1027" based on hex0402 to or hex 0305 and its decimal conversion.. right
(LUUP for setting configuration settings)
luup.call_action('urn:micasaverde-com:serviceId:ZWaveNetwork1','SendData',{Node='44',Data='112 4 37 2 1027'},1)
Now you also sent me a code for siren on and siren off. Does this mean, I use the trigger and just add the three sets of code in the same sequence?
Config settings, siren on and siren off?
Is there code to specify the duration for the siren to stay on?"
Response from AeoTec
Node=‘44’ must be changed to the node number of the device you want to control for all of the luup commands. You can find this under (Advanced → altid), the value of altid is your NodeID number (should be 3rd to the top of the Params list).
Then for 1027, you are correct, i used Windows pre-installed progammers calculator to convert hexidecimal to decimal.
So for example, open up the programmer function in the windows calculator
Then input 402 into hexidecimal, you should see 1027 appear in the decimal area.
Try inputting 303 for sound 3 volume 3 and see what you get.
You area also correct, for the configuration, you should have the configuration sound luup code first, then the ON command afterwards.
Cheers,
Chris Cheng
Field Application Engineer
Aeon Labs