Page 1 of 1

Aeotec (siren) DSD31 as HTTP Device

Posted: 14 Nov 2015 21:47
by norperu
Hello,
I would like some assistance to generate a HTTP Device that will allow me to use an AEOTEC siren in two different scenarios.
1. Door/ Windows notifier with a specific siren and volume
2. Alarm/Panic with a specific siren and volume

As per some of the documentation I can run the following on my web browser:

Door / Window notifier
http://RazberryIP:8083/ZWaveAPI/Run/dev ... (37,257,2)

Panic Alarm
http://RazberryIP:8083/ZWaveAPI/Run/dev ... 37,1027,2)

The device description is found here:
http://pepper1.net/zwavedb/device/596

Also here are some of the settings for this siren:

Siren 1 88 dB - 257
Siren 1 100 dB - 258
Siren 1 105 dB - 259

Siren 2 88 dB - 513
Siren 2 100 dB - 514
Siren 2 105 dB - 515

Siren 3 88 dB - 769
Siren 3 100 dB - 770
Siren 3 105 dB - 771

Siren 4 88 dB - 1025
Siren 4 100 dB - 1026
Siren 4 105 dB - 1027

Siren 5 88 dB - 1281
Siren 5 100 dB - 1282
Siren 5 105 dB - 1283

I appreciate any help on this matter.

Re: Aeotec (siren) DSD31 as HTTP Device

Posted: 15 Nov 2015 02:16
by PoltoS
I would suggest a code device instead with the following code:
On: zway.devices[20].Configuration.Set(37,257,2); zway.devices[20].SwitchBinary.Set(255)
Off: zway.devices[20].SwitchBinary.Set(0)

Re: Aeotec (siren) DSD31 as HTTP Device

Posted: 15 Nov 2015 03:17
by norperu
Thank you very much for your fast response.

I do not know if the latest version 2.1.1 has a code device.
I remember seeing it before, but never ventured that way.

Could you point me to the new APP I need to use?

Thank you in advance.

Re: Aeotec (siren) DSD31 as HTTP Device

Posted: 16 Nov 2015 06:56
by norperu
Poltos,
Any ideas?

Re: Aeotec (siren) DSD31 as HTTP Device

Posted: 16 Nov 2015 12:46
by remoticz
Have enabled under "My Settings" the box before Show System Apps

Re: Aeotec (siren) DSD31 as HTTP Device

Posted: 16 Nov 2015 17:28
by norperu
Thank you so much.
As you already figure it out I am not that expirienced on this razzberry.

Have a great day.

Re: Aeotec (siren) DSD31 as HTTP Device

Posted: 16 Nov 2015 18:23
by remoticz
This setting was recently introduced with the v2.1.x versions. I also stumbled on it at first :)

Re: Aeotec (siren) DSD31 as HTTP Device

Posted: 17 Nov 2015 09:21
by norperu
There most be something wrong with my implementation of the code device or maybe something wrong with my system.
The code device automatically turns on every 5 minutes or so.
I used the binary sensor type and the statement :
zway.devices[20].Configuration.Set(37,257,2); zway.devices[20].SwitchBinary.Set(255)

Any ideas what could be going on? Or am I missing something?

Also, how do I trigger it once I create it?

Re: Aeotec (siren) DSD31 as HTTP Device

Posted: 17 Nov 2015 23:29
by PoltoS
Code device should create a switch in the UI. You should press it. Note, use Code Device App, not Execute JS Code App.

May be you have some schedule running it every 5 minutes?

Re: Aeotec (siren) DSD31 as HTTP Device

Posted: 20 Nov 2015 04:32
by norperu
Thank you both for assisting on this.
It was a rookie mistake, I chose binary sensor not switch.
Therefore it was polled every 5 minutes and also why I did not get an on/off button.