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:
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?
BeNext Alarm Sound: Usage of the different sounds
Moderator: leecollings
-
- Posts: 10
- Joined: Thursday 18 December 2014 17:41
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 8007
- Location: France
- Contact:
Re: BeNext Alarm Sound: Usage of the different sounds
SilenNL, did you get any further on with your siren configuration?
I'm looking for the same information to configure the DSD31
Strebor
I'm looking for the same information to configure the DSD31
Strebor
-
- Posts: 6
- Joined: Thursday 25 June 2015 10:08
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Contact:
Re: BeNext Alarm Sound: Usage of the different sounds
No, unfortunately not. But here is someone else, that is also requesting a feature like this: http://www.domoticz.com/forum/viewtopic ... 10&p=48605strebor wrote:SilenNL, did you get any further on with your siren configuration?
I'm looking for the same information to configure the DSD31
Strebor
-
- Posts: 10
- Joined: Thursday 18 December 2014 17:41
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 8007
- Location: France
- Contact:
Re: BeNext Alarm Sound: Usage of the different sounds
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
Regards Strebor
-
- Posts: 6
- Joined: Thursday 25 June 2015 10:08
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Contact:
Re: BeNext Alarm Sound: Usage of the different sounds
FYI:
I requested a new feature request in the tracker. Tracker ID is: 575
I requested a new feature request in the tracker. Tracker ID is: 575
Re: BeNext Alarm Sound: Usage of the different sounds
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
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
-
- Posts: 6
- Joined: Thursday 25 June 2015 10:08
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Contact:
Re: BeNext Alarm Sound: Usage of the different sounds
@ Rene: Thanks! That was the information that i needed.rvweert wrote: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
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
-
- Posts: 221
- Joined: Saturday 30 August 2014 20:20
- Target OS: Linux
- Domoticz version: 4.
- Location: Spain
- Contact:
Re: BeNext Alarm Sound: Usage of the different sounds
Interesting question. I would like Domoticz could do so: modify parameters via script.
Any news?
Any news?
Who is online
Users browsing this forum: No registered users and 1 guest