Help with Custom luup for Aeotec Doorbell ZW056-A

Hello,

I’m trying to use my doorbell to play an mp3 in a scene, which is based on a door sensor being triggered. I am using the following code:

luup.call_action(‘urn:micasaverde-com:serviceId:ZWaveNetwork1’,‘SendData’,{Node=‘45’,Data=‘112 4 6 1 8’},1)

The code plays the desired tone on the doorbell, but it plays it several times (5-6), no matter which tone I select. I just want it to play once or twice… Does anyone have any ideas? Also, how do I control the volume of the tone being played in the scene?

Thanks!

Have you looked in Device Configs in the device’s control panel (in Vera web UI) to see what settings might be available? There is a tone repeat setting in their documentation.

I have looked there, nothing jumps out. I thought the last “1” in the luup code I used defined the number of times to play the defined mp3 file on the doorbell.

These are the two forum threads I was working off of…

http://forum.micasaverde.com/index.php/topic,50540.msg335250.html#msg335250
http://forum.micasaverde.com/index.php/topic,35027.msg258227.html#msg258227

That thread you linked has this as a source thread: The complete Vera Home Automation Security System | Experts Exchange

The first code fragment in there tells you how to set the play count to 1/once. Scroll down to where it says “LUUP Codes”.

That helped, thank you! I was thinking everything was set in one line, I added a second line to set the number and I’m good now. Thanks again!