Siren/Chime

Submitted By Larry C.

Manufacturer: -Other (Specify in Notes)
Model #: DMS01

Compatible with Axial

This device is made by Dome. This device is one of the first to offer different siren sounds and a way to produce different chime sounds. It has 10 different sirens that you can choose from. It has 10 different chimes you can choose from. You can select whether you want it to produce a siren or a chime. You can also control the volume of the sirens and/or chimes from low, medium, or high. It is configured as a StandardSwitch which enables you to turn it on and off manually. You can also configure it as an Alarm if you do not want to worry about turning it on or off manually. It will turn itself off.

This device can be configured with parameter (7) to switch between a siren or a chime output. Once you decide which siren (parameter 5) or chime (parameter 6) to select you can then switch between them. You can use the following cs files in a scene (pre-script) to switch between them. The sounds for the siren and chime are the same 1-10 except for their "on" duration.

For Siren use: (You should copy and paste into notepad and save it as a .cs file like domesiren1.cs) (The 1 is for siren sound 1, there are 10) NOTE: Replace XX in ShortId with the ID of your unit before creating cs file. Double click siren/chime device box to get the ID number. Copy the script from the word 'using' down to the last bracket. Do not change any spacing.

using MLS.ZWave.Service.Rules;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MLS.HA.DeviceController.Common.Device.ZWave;

public class MyScript : ScriptBase, ScriptInterface {

public void runScript() {
var device = getNodeByShortId(XX);
byte paramNumber = 7;
int size = 01;
int paramValue = 1;
dm.setConfigurationParameter(device.deviceId, paramNumber, size, paramValue);
paramNumber = 5;
size = 01;
paramValue = 1; \\do not copy this, change this number to the sound you want 1-10
dm.setConfigurationParameter(device.deviceId, paramNumber, size, paramValue);
}

}


For Chime: (You should copy and paste into notepad and save it as a .cs file like domechime1.cs) (The 1 is for chime sound 1, there are 10) NOTE: Replace XX in ShortId with the ID of your unit before creating cs file. Double click siren/chime device box to get the ID number. Copy the script from the word 'using' down to the last bracket. Do not change any spacing.

using MLS.ZWave.Service.Rules;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MLS.HA.DeviceController.Common.Device.ZWave;

public class MyScript : ScriptBase, ScriptInterface {

public void runScript() {
var device = getNodeByShortId(XX);
byte paramNumber = 7;
int size = 01;
int paramValue = 2;
dm.setConfigurationParameter(device.deviceId, paramNumber, size, paramValue);
paramNumber = 6;
size = 01;
paramValue = 1; \\do not copy this, change this number to the sound you want 1-10
dm.setConfigurationParameter(device.deviceId, paramNumber, size, paramValue);

}

}

Place all files in the 'Script' Directory in Axial. Once scenes are created select browse for the 'pre-script' and select which file (siren or chime) you want the unit to change to. The chime output will produce a single chime for each time you activate it unless you change parameter 3. 1 for a single output, 2 for 2, etc. The siren output will produce a continuous siren for 30 sec (default) unless you change parameter 2. 1 for 30 sec, 2 for 1 min, 3 for 5 min. FF will be continuous until battery is depleted. You can change parameter 1 for siren volume, 1 low, 2 med, 3 high. You can change parameter 4 for the chime volume, 1 low, 2 med, 3 high.

Have Fun!!

COMMENTS

Login to Comment