Page 1 of 1
BeNext Alarm Sound: Usage of the different sounds
Posted: Thursday 25 June 2015 10:47
by SilentNL
Hi,
I’m using Domoticz, and I’m really pleased about it. Keep up the good work!
But I have a question; I recently bought the BeNext Alarm Sound (
http://www.benext.eu/static/manual/alarmsound-nl.pdf). I want to setup an alarm system, with different types of alarm sounds. The BeNext Alarm Sound has six different sound types.
In Domoticz Hardware - Zwave - Setup - Benext Alarm Sound; I have the option to change the sound type:
- Domoticz Benext Alarm Sound01.png (23.55 KiB) Viewed 2456 times
And if I change the number between 1-6, and activate the BeNext Alarm switch in Domoticz, I get another sound. But how can I change this number in a script. For example with JSON? So I can create different Events in Domoticz, where I use the different sounds…
Not sure if 100% relevant; But here I found an example (They are talking about the Aeon Labs Siren, but the idea is the same) how to configure it with VERA:
http://www.vesternet.com/resources/appl ... es/apnt-90 In the chapter: “Fantastic, but I want to use the different sounds in Scenes!” But I don’t have clue how to do that in Domoticz…
Can someone help me with this?
Re: BeNext Alarm Sound: Usage of the different sounds
Posted: Monday 06 July 2015 14:18
by strebor
SilenNL, did you get any further on with your siren configuration?
I'm looking for the same information to configure the DSD31
Strebor
Re: BeNext Alarm Sound: Usage of the different sounds
Posted: Monday 13 July 2015 10:22
by SilentNL
strebor wrote:SilenNL, did you get any further on with your siren configuration?
I'm looking for the same information to configure the DSD31
Strebor
No, unfortunately not. But here is someone else, that is also requesting a feature like this:
http://www.domoticz.com/forum/viewtopic ... 10&p=48605
Re: BeNext Alarm Sound: Usage of the different sounds
Posted: Tuesday 14 July 2015 18:58
by strebor
SilentNL, such is the depth of my ignorance that I never entertained the idea that it might not be possible to programmatically change the sound settings of the siren. I would raise a tracker but I don't even have the language to ask the question. I think that without a tracker the issue is not going to be addressed by the devs.
Regards Strebor
Re: BeNext Alarm Sound: Usage of the different sounds
Posted: Wednesday 29 July 2015 9:36
by SilentNL
FYI:
I requested a new feature request in the tracker. Tracker ID is: 575
Re: BeNext Alarm Sound: Usage of the different sounds
Posted: Sunday 06 September 2015 12:41
by rvweert
Hey there,
While the feature hasn't been implemented you might also want to try this:
curl '
http://localhost:8080/json.htm?type=ope ... odes&idx=2'
curl '
http://localhost:8080/ozwcp/valuepost.html' --data '15-CONFIGURATION-config-byte-1-19=99' -v
15 = device index
19 = parameter
99 = value
Works for me!;-)
Cheers, Rene
Re: BeNext Alarm Sound: Usage of the different sounds
Posted: Saturday 17 October 2015 19:20
by SilentNL
@ Rene: Thanks! That was the information that i needed.
I created a script (My first LUA script. I'm not familiar with the LUA script langauge) that change a setting of the BeNext Alarm device, and after that activated the BeNext Alarm device.
So I can use this in Events, and activate a different sound.
Perhaps is this script usefull for other people.
Code: Select all
-- This script change a value of a Zwave (alarm) device. And after that it activates the Zwave (alarm) device. So it can be triggered in a Event.
-- How to:
-- Create a virtual on/off device
-- This script has to be named like the the new virtual device in the folder: ~/domoticz/scripts/lua for example "script_device_BeNext-Alarm-Sound-02.lua"
-- With the following command you can get the Zwave device information: "curl 'http://localhost:8080/json.htm?type=openzwavenodes&idx=2'"
-- (2 = The Zwave device number, that you can find Setup --> Hardware)
-- With the following command you can test a Zwave config change: "curl 'http://localhost:8080/ozwcp/valuepost.html' --data '39-CONFIGURATION-config-byte-1-7=3' -v"
-- (39 = device index, 7 = index, 3 = value you want to set)
local VirtualDevice = 'BeNext-Alarm-Sound-02' -- Name of your new Virtual Device Name.
local AlarmDevice = 'BeNext Alarm Sound' -- Name of the Zwave (alarm) device.
local nodeID = ('39') -- nodeID of the Zwave (alarm) device.
local index = ('7') -- The setting that you want to change
local clock = os.clock
function sleep(n) -- seconds
local t0 = clock()
while clock() - t0 <= n do
end
end
commandArray = {}
if (devicechanged[VirtualDevice] == 'On') then
local indexvalue = ('2') -- The value you want to set for the setting
os.execute ("curl 'http://localhost:8080/ozwcp/valuepost.html' --data '" .. nodeID .. "-CONFIGURATION-config-byte-1-" .. index .. "=" .. indexvalue .. "'&")
print("Change " .. AlarmDevice .. " parameter: " .. index .. " to " .. indexvalue)
commandArray[AlarmDevice]='On'
end
if (devicechanged[VirtualDevice] == 'Off') then
commandArray[AlarmDevice]='Off'
sleep(1)
local indexvalue = ('3') -- The value you want to set for the setting
os.execute ("curl 'http://localhost:8080/ozwcp/valuepost.html' --data '" .. nodeID .. "-CONFIGURATION-config-byte-1-" .. index .. "=" .. indexvalue .. "'&")
print("Change " .. AlarmDevice .. " parameter: " .. index .. " to " .. indexvalue)
end
return commandArray
Re: BeNext Alarm Sound: Usage of the different sounds
Posted: Monday 23 May 2016 20:35
by juankar
Interesting question. I would like Domoticz could do so: modify parameters via script.
Any news?