[quote=“dbmccallum, post:19, topic:190330”]FYI,
I have been able to create some lua code to change the parameters. Use at your own risk…
I run a scene triggered by change of value for the siren on off switch. I plan to add more sirens and have too alarm modes, one party which will alarm rooms and areas people are not suppose to be and strobe in the kitchen. the other when I am away or at night and have it sound off.
any improvement ideas to the code would be much appreciated.
local dID1 = 140 – Device ID of your siren
local dID2 = 273 – Device ID of your siren on off virtual switch
local siren = luup.variable_get(“urn:upnp-org:serviceId:VSwitch1”,“Status”,dID2)
– 0 is off, 1 is on
– parameter 0 values 0 = siren and strobe, 1 = just siren, 2 = just strobe
– parameter 1 values 0 = 30 secs, 1 = 60 secs, 2 = 120 secs, 3 must be turned off
– I am just turning off the siren and leaving the length at 120 secs
if (siren == “0”) then
luup.variable_set(“urn:micasaverde-com:serviceId:ZWaveDevice1”,“VariablesSet”,“0,1d,2,1,1d,2”,dID1)
luup.variable_set(“urn:micasaverde-com:serviceId:ZWaveDevice1”,“VariablesGet”,“0,2,1,2,”,dID1)
luup.variable_set(“urn:micasaverde-com:serviceId:ZWaveDevice1”,“ConfiguredVariable”,“0,1d,2,1,1d,2”,dID1)
else
luup.variable_set(“urn:micasaverde-com:serviceId:ZWaveDevice1”,“VariablesSet”,“0,1d,0,1,1d,2”,dID1)
luup.variable_set(“urn:micasaverde-com:serviceId:ZWaveDevice1”,“VariablesGet”,“0,0,1,2,”,dID1)
luup.variable_set(“urn:micasaverde-com:serviceId:ZWaveDevice1”,“ConfiguredVariable”,“0,1d,0,1,1d,2”,dID1)
end[/quote]
I have nothing to offer but thanks for this. I may use it later. Appreciate the work.