Author Topic: Simple Alarm Plugin  (Read 25217 times)

Offline empuk

  • Sr. Newbie
  • *
  • Posts: 20
  • Karma: +3/-0
Re: Simple Alarm Plugin
« Reply #15 on: March 21, 2014, 06:40:03 am »
This is really an awesome plugin for the dyi guys that want to build their own alarm.

I believe there are standard interface for alarm panel that home automation supports ( or other third party software down the road for that matter).   Maybe that's another option to pursue if you have the time :)

I don't know if there are standards for alarm panel, I just developped this plugin with my own needs for the moment.
The next step will probably be to send events when the status change, so that scenes should be triggered by the device.

Offline garrettwp

  • Beta Testers
  • Master Member
  • *****
  • Posts: 6371
  • Karma: +227/-128
  • Vera 3, Lite, ISY994
Re: Simple Alarm Plugin
« Reply #16 on: March 21, 2014, 06:55:46 am »
There are standards that were developed and used by all of the alarm panel plugins for Vera. Hare a look here:

http://code.mios.com

Look at the following:

Common Alarm Panel Plugin Files
DSC Alarm Panel
Elk M1 Alarm Panel
Paradox Alarm Plugin
GE Caddx
and so on

- Garrett

Offline BulldogLowell

  • Hero Member
  • *****
  • Posts: 1576
  • Karma: +191/-85
Re: Simple Alarm Plugin
« Reply #17 on: March 21, 2014, 07:04:30 am »
There are standards that were developed and used by all of the alarm panel plugins for Vera. Hare a look here:

http://code.mios.com

Look at the following:

Common Alarm Panel Plugin Files
DSC Alarm Panel
Elk M1 Alarm Panel
Paradox Alarm Plugin
GE Caddx
and so on

- Garrett

and using them will allow the remote app developers to easily integrate your plugin into their apps.
« Last Edit: March 21, 2014, 07:10:09 am by Bulldoglowell »

Offline empuk

  • Sr. Newbie
  • *
  • Posts: 20
  • Karma: +3/-0
Re: Simple Alarm Plugin
« Reply #18 on: March 21, 2014, 07:12:12 am »
Ok, I'll have a look at this  ;)

Offline garrettwp

  • Beta Testers
  • Master Member
  • *****
  • Posts: 6371
  • Karma: +227/-128
  • Vera 3, Lite, ISY994
Re: Simple Alarm Plugin
« Reply #19 on: March 21, 2014, 08:33:28 am »
If you have any questions, please let us know and we will try and help you.

- Garrett

Offline wolfgangm

  • Jr. Member
  • **
  • Posts: 67
  • Karma: +1/-0
Re: Simple Alarm Plugin
« Reply #20 on: March 27, 2014, 06:55:27 pm »
What about a device which sends out the warning before the real sirene goes off? By default you have 30s before the alarm goes off. But it would be nice to get reminded that this 30s are counting down. This could be done with a notification device which gets switched on.

Offline empuk

  • Sr. Newbie
  • *
  • Posts: 20
  • Karma: +3/-0
Re: Simple Alarm Plugin
« Reply #21 on: March 28, 2014, 06:12:38 am »
What about a device which sends out the warning before the real sirene goes off? By default you have 30s before the alarm goes off. But it would be nice to get reminded that this 30s are counting down. This could be done with a notification device which gets switched on.

In fact, if you try the xendapp notifications, you will receive an alert when the status become "Intrusion Detected" and the counter is starting.

I'm working on sending events when the status change, so that scenes should be triggered by the device. When this will be ok, it will be possible to start a scenario for each status.

Offline Aaron

  • Hero Member
  • *****
  • Posts: 1985
  • Karma: +61/-193
Re: Simple Alarm Plugin
« Reply #22 on: March 30, 2014, 03:17:39 pm »
This is a nice plugin. Will you be extending it to add more options?

Some of us have complex Security scenes (what you are calling Zones) - I have 7 security scenes (more coming soon)...
  • Away - Panic; any breach or motion triggers panic and notifications
  • Vacation - Panic; like Away mode but adds a few more notifications
  • Guest - no Panic; polite notifications if door sensors tripped  (used for friends, house keepers, etc)
  • Guest Secure - no Panic; loud notifications door sensors tripped for office, master bedroom, etc  (used for Baby Sitters, etc)
  • Stay - no Panic; all entry point door sensors trigger polite audio notifications
  • Stay Secure - no Panic; all entry point door sensors trigger loud audio notifications  (helps when little kids are awake in the mornings)

Also, it would be great to be able to have the Sirens chirp during IncomingTimerDuration.

I'm also an AuthomationHD user so when Garrett adds it that will be a bonus, but I could use it even without... just by using Multi-Switch to emulate.

thanks for contributing to the community!


Offline wolfgangm

  • Jr. Member
  • **
  • Posts: 67
  • Karma: +1/-0
Re: Simple Alarm Plugin
« Reply #23 on: March 30, 2014, 03:42:39 pm »
Quote
Also, it would be great to be able to have the Sirens chirp during IncomingTimerDuration.

I think that's more of a siren feature not controllable with the plugin. Maybe a second siren which is dedicated just for "chripping" ? Is this even a word :-) ?

Offline empuk

  • Sr. Newbie
  • *
  • Posts: 20
  • Karma: +3/-0
Re: Simple Alarm Plugin
« Reply #24 on: April 01, 2014, 04:54:05 am »
Hi,

A new version has been approved (1.7).
I added events when the alarm status change. You can now create a scene and add a trigger for these events.

If the plugin is already installed, you'll have to force the plugin update because I didn't cheched the auto-update option when I created the plugin : http://Vera_IP:3480/data_request?id=update_plugin&Plugin=6036
If you prefer, you can do this from the marketplace, there is a french howto : http://sbdomotique.wordpress.com/2012/07/12/forcer-mise-a-jour-plugin/

More information :
http:/empuk-blog.berriau.com/index.php/domotic-articles-en/9-domotic-en/4-veralite-simple-alarm-plugin-advanced-scenarii
http://empuk-blog.berriau.com/index.php/8-domotique/5-veralite-simple-alarm-plugin-scenarios-avances (french)

eMpuk
« Last Edit: August 04, 2014, 08:19:55 am by empuk »

Offline empuk

  • Sr. Newbie
  • *
  • Posts: 20
  • Karma: +3/-0
Re: Simple Alarm Plugin
« Reply #25 on: April 01, 2014, 04:58:03 am »
This is a nice plugin. Will you be extending it to add more options?

For the moment I don't have a lot of time to do this but I will save all the good ideas and, in the future I'll try to extend the plugin.

Offline pingmustard

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: Simple Alarm Plugin
« Reply #26 on: April 03, 2014, 02:35:27 am »
Great enhancement with the events added. 

For those that might have updated recently before 4/1, your plugin may also say 1.7.  I just forced the update as op suggested and now it's updated!

Great plugin!

Offline pingmustard

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: Simple Alarm Plugin
« Reply #27 on: April 03, 2014, 02:36:56 am »
This is a nice plugin. Will you be extending it to add more options?
...

I'm also an AuthomationHD user so when Garrett adds it that will be a bonus, but I could use it even without... just by using Multi-Switch to emulate.


Could I ask how your using Multi-Switch to show status on AutomationHD?   Mine just shows "?".. is there some trick I'm overlooking?? :)

Offline pikasso

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
Re: Simple Alarm Plugin
« Reply #28 on: April 03, 2014, 03:12:04 am »
This is great ! Neeat addition ..

Because I want my blinders to go dowm and disable more plugs, so far, I do control the alarm plugin by running HTTP Calls

example :
    luup.inet.wget("http://VERAIP:3480/data_request?id=action&DeviceNum=94&serviceId=urn:upnp-empuk-net:serviceId:SimpleAlarm1&action=Disarm

This works well though this is not perfect and specially to check the status of the alarm I do have to store the actual state before calling the HTTP command..

Would you know an easy way to get the status by checking with LUA ?

Thanks

Offline empuk

  • Sr. Newbie
  • *
  • Posts: 20
  • Karma: +3/-0
Re: Simple Alarm Plugin
« Reply #29 on: April 03, 2014, 03:41:58 am »
To get the status via http, you can do this :
http://VERAIP:3480/data_request?id=variableget&DeviceNum=30&serviceId=urn:upnp-empuk-net:serviceId:SimpleAlarm1&Variable=Status
or to get the status label :
http://VERAIP:3480/data_request?id=variableget&DeviceNum=30&serviceId=urn:upnp-empuk-net:serviceId:SimpleAlarm1&Variable=StatusLabel

And with lua :
local status = luup.variable_get("urn:upnp-empuk-net:serviceId:SimpleAlarm1", "Status",  SimpleAlarmDeviceId)
local status_label = luup.variable_get("urn:upnp-empuk-net:serviceId:SimpleAlarm1", "StatusLabel",  SimpleAlarmDeviceId)