Simple Alarm Plugin

Hi !

I created a plugin to manage a simple alam with my vera lite :
2 zones : “Away” to arm all sensors (motion and Door/window sensors), “Home” to only arm Door/window sensors
timer to arm “away” zone (so you can leave the house before arming sensors)
timer when intrusion detected (so you can disarm your alarm)
send messages to the smartphone with xendapp
activate sirens when an intrusion is comfirmed
visualize the alarm status

If you want more info : [url=http://empuk-blog.berriau.com/index.php/8-domotique/3-veralite-plugin-simplealarm-en]http://empuk-blog.berriau.com/index.php/8-domotique/3-veralite-plugin-simplealarm-en[/url]
or [url=http://empuk-blog.berriau.com/index.php/8-domotique/2-veralite-plugin-simplealarm]http://empuk-blog.berriau.com/index.php/8-domotique/2-veralite-plugin-simplealarm[/url] (in french)

I have a question : some users tell me they have an error after installing the plugin : “Simple Alarm Plugin : Lua error”
It’s my first plugin and with my vera lite, I don’t have this message. Can someome help me resolving this ?

Thanks,
Aymeric

[Edit 01/04/2014]
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.

More information :
[url=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/domotic-articles-en/9-domotic-en/4-veralite-simple-alarm-plugin-advanced-scenarii[/url]
http://empuk-blog.berriau.com/index.php/8-domotique/5-veralite-simple-alarm-plugin-scenarios-avances (french)

[quote=“empuk, post:1, topic:180140”]I have a question : some users tell me they have an error after installing the plugin : “Simple Alarm Plugin : Lua error”
It’s my first plugin and with my vera lite, I don’t have this message. Can someome help me resolving this ?

Thanks,
Aymeric[/quote]

Hi, i also have this error and my log file says…

“JobHandler_LuaUPnP::CreateLuaInterfaces can’t load plugin /etc/cmh-lu//L_MyAlarm1.lua <”

I can’t find the file “L_MyAlarm1.lua” in that folder.
I hope this helps you.

Best regards
Jesper

Vera 3 UI5 also getting Lua Error… how is the fix coming?

It’s very strange… when I started developping this plugin I called the file “L_MyAlarm1.lua”.
Then I changed the name of “MyAlarm” to “SimpleAlarm” in all the files.

In the implementation file, I now have “L_SimpleAlarm1.lua”

Can someone tell me the content of the file I_SimpleAlarm1.xml ?

This alarm plugin sounds awesome. Look forward to the eventual solution.

Where do i find the file “I_SimpleAlarm1.xml”?
I found a file called “I_SimpleAlarm1.xml.lzo”, is that the right one?

/Jesper

Yes, It’s that file. lzo means that it’s compressed (like zip but with another algorithm).

Ok I don’t know why ther is this problem but I found a way to bypass it : I created an empty L_MyAlarm1.lua file

I published a new version including this empty file. I think the new version will be approved soon.

Finally, my first bug fix hadn’t been approved to be realese on the MarketPlace.

I think the bug comes from the marketplace. In fact, ath the beginning of my developpment, I added the file “L_MyAlarm1.lua” with the role “Lua file” (it should be “Miscellaneous File”. I deleted this file but the “Lua” declaration for the plugin wasn’t refreshed :




So, I decided to delete the plugin and re-create it properly. The new plugin is in the approvement state.

Thank you for the hard work!!! I reloaded the app today and so far no errors with the Vera Web UI. Yay!!!

BUT… When I open Authomation HD the device appears as a “?” and this is a bummer because my home panel is an Android tablet using Authomation as the dashboard.

I doubt I am alone… any hope of changing it?

[quote=“chuck1026, post:10, topic:180140”]Thank you for the hard work!!! I reloaded the app today and so far no errors with the Vera Web UI. Yay!!!

BUT… When I open Authomation HD the device appears as a “?” and this is a bummer because my home panel is an Android tablet using Authomation as the dashboard.

I doubt I am alone… any hope of changing it?[/quote]

Thanks for your message !
About Authomation, I don’t know who is the developping this software. If you know him, I’m ok to give him all the information needed to add the support of this new device.

I am the developer of the app. Most if not all third party apps require to add support for the third party plug-ins. I’ll add to my list of plug-ins to support, but have no time frame when it will use supposed. I have other plug-ins on the list that need to be added and have been requested over time.

  • Garrett

You guys both rock! I know it will happen eventually.

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 :slight_smile:

Not sure how the plugin works but if it can match up with the standards used for the other alarm plug-ins, it should work with AutHomation.

  • Garrett

[quote=“pingmustard, post:14, topic:180140”]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 :)[/quote]

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.

There are standards that were developed and used by all of the alarm panel plugins for Vera. Hare a look here:

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

[quote=“garrettwp, post:17, topic:180140”]There are standards that were developed and used by all of the alarm panel plugins for Vera. Hare a look here:

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[/quote]

and using them will allow the remote app developers to easily integrate your plugin into their apps.

Ok, I’ll have a look at this :wink:

If you have any questions, please let us know and we will try and help you.

  • Garrett