Aeotec (siren) DSD31 as HTTP Device

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
norperu
Posts: 13
Joined: 14 Nov 2015 21:35

Aeotec (siren) DSD31 as HTTP Device

Post 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.
Last edited by norperu on 16 Nov 2015 06:55, edited 1 time in total.
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: Aeotec (siren) DSD31 as HTTP Device

Post 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)
norperu
Posts: 13
Joined: 14 Nov 2015 21:35

Re: Aeotec (siren) DSD31 as HTTP Device

Post 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.
norperu
Posts: 13
Joined: 14 Nov 2015 21:35

Re: Aeotec (siren) DSD31 as HTTP Device

Post by norperu »

Poltos,
Any ideas?
remoticz
Posts: 45
Joined: 07 Oct 2015 20:35
Location: no

Re: Aeotec (siren) DSD31 as HTTP Device

Post by remoticz »

Have enabled under "My Settings" the box before Show System Apps
v2.1.1 raspi2
norperu
Posts: 13
Joined: 14 Nov 2015 21:35

Re: Aeotec (siren) DSD31 as HTTP Device

Post by norperu »

Thank you so much.
As you already figure it out I am not that expirienced on this razzberry.

Have a great day.
remoticz
Posts: 45
Joined: 07 Oct 2015 20:35
Location: no

Re: Aeotec (siren) DSD31 as HTTP Device

Post by remoticz »

This setting was recently introduced with the v2.1.x versions. I also stumbled on it at first :)
v2.1.1 raspi2
norperu
Posts: 13
Joined: 14 Nov 2015 21:35

Re: Aeotec (siren) DSD31 as HTTP Device

Post 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?
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: Aeotec (siren) DSD31 as HTTP Device

Post 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?
norperu
Posts: 13
Joined: 14 Nov 2015 21:35

Re: Aeotec (siren) DSD31 as HTTP Device

Post 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.
Post Reply