Change device settings


(Eric) #1

I have an Aeotec Siren. Is it possible to change the volume and tone on the fly? In my smart app I would like to play different tones/volume for events. If not on the fly, can I add it twice, or is there another work around? Thanks


(Kevin) #2

[quote=“escherrer, post:1, topic:38910”]
Is it possible to change the volume and tone on the fly?
[/quote]It’s possible with the Aeotec Doorbell, but I don’t believe it’s possible with the Siren.


(Eric) #3

I tried with a custom device handler but not having any luck:

https://raw.githubusercontent.com/escherrer/SmartThingsPublic/master/devicetypes/smartthings/custom-aeon-siren.src/custom-aeon-siren.groovy


(Kevin) #4

I glanced at the code and I noticed a couple of potential problems, but since I don’t have a siren, trying to trouble shoot it would be a pain.

I was already planning on creating a new device handler for the Aeon Siren this weekend for testing purposes because I’m trying to figure out why the Aeon Doorbell has a 2-3 second delay with my device handler and not the siren’s.

While I’m doing that, I could take a stab at the features you’re requesting, but I would only be able to test certain parts of it because I do not have the Aeon Siren. It could take a lot of attempts to get it working correctly, but if you’re willing to do the testing, I’m willing to attempt building it.

Let me know if you’re interested.


(Eric) #5

Definitely interested, but I think it’s a lost cause. I kind of got it working but it seems that when I send the command to change the sound and volume the siren gives a confirmation beep with the new settings. This is a problem because I wanted to revert them back after the beep, but that would then trigger another beep.


(Kevin) #6

I glanced at the specs earlier and I think that can be turned off.


(Eric) #7

I’m a little burned out with this device at the moment. I have it working good enough, rather than change the tone I just beep it twice. Is this the spec you were talking about? I scanned it and did not see anything that would turn off the confirmation.

http://www.vesternet.com/downloads/dl/file/id/426/product/1311/z_wave_aeon_labs_siren_engineering_specification.pdf


(Kevin) #8

[quote=“escherrer, post:7, topic:38910”]
Is this the spec you were talking about?
[/quote]I thought setting the configuration parameter 80 to 0 might prevent that, but after taking a closer look at the code, I don’t believe that’s the problem.

If you’re burnt out on dealing with the device and you’re fine with how it’s working, I’ll move on to something else, but out of curiosity, is it turning on for about 1 second every time you change a setting and save from the mobile app?


(Eric) #9

Yep, it turns on for a brief second, but only if I change the sound of volume. Just curious, if I was to call this:

secure(zwave.basicV1.basicSet(value: 0xFF))

versus calling this:

on()

Does the first way go directly to the device, and the other go through the cloud? Just trying to determine what is the more reliable method since just now it got stuck in on and I guess the off() never made it to the device.


(Kevin) #10

[quote=“escherrer, post:9, topic:38910”]
Yep, it turns on for a brief second, but only if I change the sound of volume.
[/quote]When you save the settings, it checks the old values and if they’re the same it doesn’t perform the update.

The update part of the code has a line with “delay 1000”. If you remove that line, you shouldn’t hear the beep when you update the settings.

It’s possible, but unlikely that after removing that line, your settings won’t save, if that happens, add the line back, but change 1000 to 10. In theory, you won’t be able to hear the sound if it’s only on for 10ms.


(Eric) #11

Great minds think alike I guess, I tried that. It was inconsistent probably because of random network latency.Sometimes a quick blip, sometimes nothing, sometimes longer.


(Kevin) #12

[quote=“escherrer, post:11, topic:38910”]
Sometimes a quick blip, sometimes nothing, sometimes longer.
[/quote]I don’t have the device so I’m flying blind, but have you tried something like:

def chime(sound, volume, duration) {
    log.info "Chime with sound:$sound, volume:$volume, duration: ${duration}."        
    duration = duration ?: 0
    [
        secure(zwave.configurationV1.configurationSet(parameterNumber: 37, size: 2, configurationValue: [sound, volume])),
        on(),
        "delay ${duration}",
        off()
    ]
}

(Kevin) #13

[quote=“escherrer, post:1, topic:38910”]
I have an Aeotec Siren. Is it possible to change the volume and tone on the fly?
[/quote]I know you already found a solution, but in case you’re interested, I ended up purchasing the Siren and I just released a new device handler that supports this functionality.