Incremental Siren Volume


#1

Does anyone know of a way to increment the volume of an Arlo siren when it gets set off in SmartThings so it starts off low then gets louder?


#2

Define an integer variable. Don’t initially set it. When your alarm goes active set it to whatever you want.

Then set up a while loop.

While alarm is active
Using siren at {sireVolume}
Wait xx time
Set variable {sirenVolume} = {sirenVolume} + xx
End while


#3

Ok this’ll be the first time doing something like this and to be honest I’m not even sure where to begin.


#4

Do you have a current piston for your alarm already? Would be easier than starting from scratch


#5

I’ll be starting from scratch because all I’ve been using so far is SHM and triggering the siren that way.


#6

Haha well ok not a problem. Go ahead and get started on the skeleton of this piston. IE how or what is going to trigger this piston. When you get to the siren part try implementing what I suggested above. When you get stuck post here with what you got.


#7

Ok here’s what I’ve got so far and one other thing I’m curious about when it comes to using sirens in webCoRE is do you use the siren command or turn on command? What’s the difference?


#8

I do not know this answer. I do not have a siren or anything to replicate this device.

As far as what we were discussing earlier. How do you want this to check if it should keep going. When the contact goes back to closed?


#9

What do you mean? I’d like to start off simple at first with the siren being triggered by the contact sensor changing to open whenever SHM is armed in away mode.


#10

Do you want the siren to shut off when that door goes back to closed? If so then add a while loop like I mentioned above


#11

Yeah that sounds fine - where do I find the option for adding the whole loop anyway?


#12

Sorry, the options on the left side of the piston editor you can enable advanced statements. This will add 6 more statement types when you click add a statement.


#13

I do t see anything about siren volume in the options though.


#14

I would assume that you need to use an action to see the volume. The part you are doing needs to be the door not being closed


#15

Duh my bad. Here’s the piston now, but still don’t see or understand how to set siren volume.


#16

I was under the impression that you could control the volume of the siren. Or that you already knew you could. It would appear as there is no volume control.


#17

In the device settings there’s an option for controlling siren volume and timeout length.


#18

If you look at the device from the SmartThings ide. What are the current states?


#19

Current States
switch: off
alarm: off
DeviceWatch-DeviceStatus: online


#20

You would need a different device type handler for that device then if want to be able to control the volume progamatically.