Greetings for the SimpleAlarm plug-in! Simple but efficient.
I’ve motion detectors attached to it, and I’ve noted a lot of these messages in the log:
50 08/16/14 13:12:49.780 luup_log:372: SimpleAlarm(100-0)::Watched variable changed: 207 urn:micasaverde-com:serviceId:SecuritySensor1 Tripped from 0 to 1 <0x317cd680>
50 08/16/14 13:12:49.781 luup_log:372: SimpleAlarm(100-0)::data.status=0 <0x317cd680>
The sensor is not armed, neither the alarm, we are at home.
Is it possible to prevent the plugin from watching these variables, it seems to generate a lot of traffic?
Great app. an indeed it does honor it’s name.
I’m using version 1.10.
The only feature I miss is that I can also have a timer on ArmHome so both ArmAway and ArmHome do have a timer to leave. Reason is that I use ArmHome as night mode, so all sensors, except for the 2nd and 3rd floor do work. Now the children need time to arm the alarm and get upstairs.
That just would make it perfect for my use.
Thanks.
After pushing “Arm Away” will be good if we can break the countdown and Disarm immediately after pushing “Disarm”.
I have problems, because I need to disarm quickly, sometimes before Arm…
In case someone interested… I created a lua function that reports in what sensors are tripped and the time they were tripped. It checks all the sensors associated with the Simple Alarm device. I use it whenever there is a panic to format the text for a a SMS message.
[code]function sensorReport(alarmDevNo)
local SAL_SID = “urn:upnp-empuk-net:serviceId:SimpleAlarm1”
local SES_SID = “urn:micasaverde-com:serviceId:SecuritySensor1”
local DELAY = 600 – Seconds
local devicelist = luup.variable_get(SAL_SID, "AwaySensorsDeviceList", alarmDevNo)
local deviceTable={} ; i=1 ; infoStr = ""
for str in string.gmatch(devicelist, "([^,]+)") do
deviceTable[i] = str
i = i + 1
end
for i = 1, #deviceTable do
local lastTrip = luup.variable_get(SES_SID, "LastTrip", tonumber(deviceTable[i])) or 1
luup.log("deviceTable: " .. deviceTable[i])
if (os.time() - lastTrip <= DELAY) then
local devName = luup.attr_get("name", tonumber(deviceTable[i]))
infoStr = infoStr .. devName .. " " .. ( deviceTable[i] ) .. " tripped at " .. os.date("%H:%M", lastTrip) .. ". "
end
end
return infoStr
So have been using this plugin for about 4 months now and it has been working pretty good.
But like other have mentioned in (home) mode I would want the timer to be different from (away) mode. So either a different timer or a list of devices that will arm the alarm right away. So I thought a list of devices that were allowed to be tripped for the incoming timer.
I was looking at function intrusion() wanted to put something like if incomingdevicelist was device tripped then StartTimer(data.incomingtimer)
else if not then Function panic()
not sure how to do this I would need to know how to get the id of the device that was tripped. I was looking at farang’s code and it looks like it might hold the secret…
Farang,
I would like to use the fuction, but how I use it.
I put this lua code in a scene, or I have to make a txt file and upload it to vera.
How can I send the text to vera alert?
Thanks
Willy
[quote=“farang, post:66, topic:180140”]In case someone interested… I created a lua function that reports in what sensors are tripped and the time they were tripped. It checks all the sensors associated with the Simple Alarm device. I use it whenever there is a panic to format the text for a a SMS message.
[code]function sensorReport(alarmDevNo)
local SAL_SID = “urn:upnp-empuk-net:serviceId:SimpleAlarm1”
local SES_SID = “urn:micasaverde-com:serviceId:SecuritySensor1”
local DELAY = 600 – Seconds
local devicelist = luup.variable_get(SAL_SID, "AwaySensorsDeviceList", alarmDevNo)
local deviceTable={} ; i=1 ; infoStr = ""
for str in string.gmatch(devicelist, "([^,]+)") do
deviceTable[i] = str
i = i + 1
end
for i = 1, #deviceTable do
local lastTrip = luup.variable_get(SES_SID, "LastTrip", tonumber(deviceTable[i])) or 1
luup.log("deviceTable: " .. deviceTable[i])
if (os.time() - lastTrip <= DELAY) then
local devName = luup.attr_get("name", tonumber(deviceTable[i]))
infoStr = infoStr .. devName .. " " .. ( deviceTable[i] ) .. " tripped at " .. os.date("%H:%M", lastTrip) .. ". "
end
end
return infoStr
Firstly thank you for a great app!!! I have it working, My only issue is that if I disarm then re-arm while the motion has been detected the alarm triggers straight away, Sorry if this is a stupid question but how long does it take for a sensor to complete a detection, From initial detection to back to no motion detected.
If i was to walk past a sensor on my way to the door then i arm the Alarm it will go off as soon as the count down is finished.
Could someone help me set this up, not sure what I’m doing wrong but SimpleAlarm doesn’t seem to get triggered.
I assume you have to create new variables for:
AwaySensorsDeviceList
XendAppActive
XendAppUsername
XendAppPassword
XendAppChannel
which I have. I have put the Vera Device numbers for my sensors, not the Z-wave device numbers, e.g. 71,4,63,65.
I have no devices in HomeSensorsDeviceList or PanicDeviceList, as I don’t want a Home alarm scenario, and I don’t have a siren.
I have put in my Xend username, password, and the channel ID, not the channel name.
I have set the Debug variable to 1.
But I am not getting anything from the alarm in Away mode. There is nothing in the logs for SimpleAlarm except this which happens at start up:
09 01/13/15 8:57:59.539 JobHandler_LuaUPnP::Run device 109 Simple Alarm room 0 type urn:schemas-empuk-net:device:SimpleAlarm:1 id parent 0/0x7d0218 upnp: 0 <0x2b0ad000>
So weird question. I just upgraded the app and I see that the notifications tab has gone away. Its not a huge deal, but I have notifications entries stuck in Vera that I can’t seem to change. Did I have a bad install or did that tab go away. If so, any idea how to get rid of the old notifications?
I have this working on UI7 on an Edge. It works fine for me but i would like to add some features if possible.
I have an Everspring Indoor Siren and would like to turn it On and Off repeatedly for the period of the “Away Delay”, to mimic a standard burglar alarm (On for 1 second, off for 1 second and so on).
There is a section of the code in the LUA file which is a function for the “away_delay”. Could i somehow add a piece of code to acheive this in there?
Also i think it would be useful for a variable to add devices to, which would “when armed and tripped” activate the “panic delay” prior to setting off the main sirens, and for example once again, make the indoor siren beep on and off until the timer is reached/the alarm is disarmed. However the remaining sensors in the “away devices list” would set of the alarm instantly when armed and tripped.
I.E. i would like to enhance the entry and exit modes to be more similar to a traditional alarm - i hope the above makes sense.
I have never seen any LUA until today and have no idea where to start.
just to prevent anyone duplicating effort - i’ve managed to tweak the code to acheive the above extra features however my devices are hard coded atm, when i figure out how to add variables so its easier to set which device(s) set the panic mode, or which call the intrusion function i’ll upload more details around the changes and also the lua file
Following on from the above, although i’ve made progress I’m struggling with a few “bugs” and unwanted behaviour. I’ve created a seperate topic for this as this thread seems to be a bit quiet atm, but if anyone has any advice my queries are described at the location below…
Dear empuk
Thanks for the plugin
If you add a timer for Siren that act like below it will be great
when Siren goes off the timer starts and when counting is finished the plugin turn off the siren and act as if there was no intrusion.
Thanks
Does anyone using this plugin still use these forums??
I’d like to know if it triggers the alarm with a single sensor or multiple sensors?
I don’t want my alarm going off if a single sensor detects, incase of false alarms.
I want it to be a combination of a couple of sensors within a time frame.
I installed the plugin quite a long time back, and now, I need to add some devices and make some changes in the plugin configuration, but the links for documentation for the plugin is not available.
Anyone using it had downloaded the doc and can provide it?