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?
Incremental Siren Volume
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
Ok this’ll be the first time doing something like this and to be honest I’m not even sure where to begin.
Do you have a current piston for your alarm already? Would be easier than starting from scratch
I’ll be starting from scratch because all I’ve been using so far is SHM and triggering the siren that way.
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.
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?
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?
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.
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
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.
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
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.
You would need a different device type handler for that device then if want to be able to control the volume progamatically.