Author Topic: New Android App for IMMEDIATE ALERTING from Vera.  (Read 43894 times)

Offline ragmondo

  • Moderator
  • Jr. Member
  • *****
  • Posts: 51
  • Karma: +0/-0
New Android App for IMMEDIATE ALERTING from Vera.
« on: March 15, 2011, 09:09:58 pm »
Hi there,

I've written a teeny Android App and would like your feedback on it.

It is NOT a controller - I'm leaving that business to the "big boys" around here.

It is JUST an alerter - so you can set up alerts / notifications to go straight to your 2.2 and above Android phone.

Requirements:

A) Vera

B) Android phone running 2.2 or above (sorry - not my restriction). See settings -> about phone -> Android version to confirm what you have.

C) Not scared of uploading a few things in the "developer" mode.

You will need to do a few things to get this running

1) Install the "Veralert" app from : http://www.fawepark.com/android-software/veralertfiles (the 1st link). If you are unsure how to get this onto your phone, just use your phone as a browser to navigate to the ".apk" file

2) Install a "virtual device" in your vera software using files from the link above (the 2nd link down). There will be 4 of them, "D_VeraAlert.xml, I_VeraAlert.xml, S_VeraAlert.xml and D_VeraAlert.json". Upload all of them to you vera !!

3) Now create a device in Vera using Mios Developers -> create device. Just put description as "vera alert" and UpnpDevFilename as D_VeraAlert.xml and UpnpImplFilename as I_VeraAlert.xml

Now the fun bit...

Run the app on your phone - it won't say much - it will just display something like "ALERT ID: xxyyzz" - this code is what you will put into your scene so that the vera-alert knows which phone to send the message too.

Create a scene ; for example I have one "front door open" - now the important thing here is that under "commands" your "Vera alert" device will appear. Choose "Send Alert" from the dropdown, put the text you want to receive in the TOP BOX and your ALERT ID ( from the previous step ) in the bottom box. It has to be EXACT or you will not get the messages.

That's it !!

Happy tinkering. I will be updating the app over the next few weeks so let me know how you get on. I am also after any help possible in making my vera xml / jsons files a bit more efficient / ergonomic. All help gratefully received !!

Lastly - feel free to contact me directly - richardagreen -you know the sign - gmail.com

Regards,

Richard.

Offline computerjohn

  • Full Member
  • ***
  • Posts: 189
  • Karma: +0/-0
Re: New Android App for IMMEDIATE ALERTING from Vera.
« Reply #1 on: March 19, 2011, 12:29:20 am »
So, this will by-pass the 20 text limit that MiOS has correct?
Vera2 UI4 (1.1.1245), IT-100, 2x Trane Thermostats, 6x Intermatic HA03 Lamp Modules, 1x Intermatic HA07 Remote, 4x GE 45613 3-way Dimmer Switches, 13x GE45606 Dimmers Switches, 2x GE 45605 Receptacles, 16x GE 45604 Outdoor Modules, 3x GE 45603 Appliance Modules, Automated Saltwater Reef System

Offline ragmondo

  • Moderator
  • Jr. Member
  • *****
  • Posts: 51
  • Karma: +0/-0
Re: New Android App for IMMEDIATE ALERTING from Vera.
« Reply #2 on: March 21, 2011, 10:06:24 am »
I didn't know there was a 20 text limit...

It works via using a server which is running 24/7 which vera talks to, sending the alert id ( ie the phone ) and the alert message (which can be pretty much any length I think).

I am going to enhance it so there are several alert levels - ie "info, warning and GET OUT OF BED NOW" kind of alerts - as well as maybe a few user set ones so that you can have the phone  remain silent, or flash flash BLEEP BLEEP etc etc if you're on holiday and suddenly you find your back door is open.

I'm also toying with the idea of the sensors feeding the server details so you can graph stuff online too - but (unfortunately) I'm not getting much feedback on the app so far :-(


Offline pgrover516

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1013
  • Karma: +0/-0
Re: New Android App for IMMEDIATE ALERTING from Vera.
« Reply #3 on: March 22, 2011, 07:36:44 pm »
Sounds cool. I love that people like yourself are developing neat applications, but even as a computer savy guy much of what you programmers do is over my head, I think there are many like me here, if a particular installation is much tougher than installing a plugin, or if people dont understand how it functions, most will wait until it becomes mainstream, good luck, hope you keep on with your efforts
V1,V2,V3,VLite,Express Controls HSM-100,Intermatic HA20C, HA04C,HA02C,HA09, Leviton VRP15-1LW, VRS15-1LX,Home Manageables HM-TS001,Schlage FE599, Schlage BE369, Cooper RF9500, Aeon Labs Minimote, Schlage TZEMT400AB32MAA+more

Offline ragmondo

  • Moderator
  • Jr. Member
  • *****
  • Posts: 51
  • Karma: +0/-0
Re: New Android App for IMMEDIATE ALERTING from Vera.
« Reply #4 on: March 23, 2011, 12:56:07 pm »
Thanks - I will put a few more features on it (configurable alerts in terms of sound / volume/ colour etc) and a few stats pages on the cloud server it uses and maybe even create a quick youtube of how to set it up and then it in use and then see if it gets any bites.

One thing I can't stress enough though is how fast it is, literally open door and the alert gets to the phone and flashes the led before the doors stopped moving...

Offline pgrover516

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1013
  • Karma: +0/-0
Re: New Android App for IMMEDIATE ALERTING from Vera.
« Reply #5 on: March 24, 2011, 02:49:42 pm »
One thing I can't stress enough though is how fast it is, literally open door and the alert gets to the phone and flashes the led before the doors stopped moving...
awesome that would be a nice improvement
V1,V2,V3,VLite,Express Controls HSM-100,Intermatic HA20C, HA04C,HA02C,HA09, Leviton VRP15-1LW, VRS15-1LX,Home Manageables HM-TS001,Schlage FE599, Schlage BE369, Cooper RF9500, Aeon Labs Minimote, Schlage TZEMT400AB32MAA+more

Offline ragmondo

  • Moderator
  • Jr. Member
  • *****
  • Posts: 51
  • Karma: +0/-0
Re: New Android App for IMMEDIATE ALERTING from Vera.
« Reply #6 on: March 25, 2011, 11:28:37 am »
I do need to make a youtube of how this thing works though.. Not many people trying it yet :-(

Offline napolitano172

  • Jr. Member
  • **
  • Posts: 65
  • Karma: +0/-0
Re: New Android App for IMMEDIATE ALERTING from Vera.
« Reply #7 on: March 26, 2011, 12:43:52 pm »
I would love to try this but I'm running 2.1 with no ability to go to 2.2.  Thoughts on getting it to work on 2.1?

Offline Les F

  • Hero Member
  • *****
  • Posts: 566
  • Karma: +7/-0
Re: New Android App for IMMEDIATE ALERTING from Vera.
« Reply #8 on: March 26, 2011, 01:11:33 pm »
OMG that is a FAST alert.  I did the setup which wasn't too painful at all.

Pressed 'run' scene to trigger manually and by the time my finger came off the touchpad, the android was going off.  WOW!!! Nice!

Google+ http://bit.ly/2MAVlkR / Instagram: http://bit.ly/2lIcsFT / Pinterest http://bit.ly/2KCSYRm (Yes, Pinterest is for guys too! take a look)

Offline ragmondo

  • Moderator
  • Jr. Member
  • *****
  • Posts: 51
  • Karma: +0/-0
Re: New Android App for IMMEDIATE ALERTING from Vera.
« Reply #9 on: March 26, 2011, 01:15:28 pm »
Here's a link to the app now in the marketplace

https://market.android.com/details?id=com.fawepark.veralert

Happy Alerting !!

Offline ragmondo

  • Moderator
  • Jr. Member
  • *****
  • Posts: 51
  • Karma: +0/-0
Re: New Android App for IMMEDIATE ALERTING from Vera.
« Reply #10 on: March 26, 2011, 01:22:16 pm »
I would love to try this but I'm running 2.1 with no ability to go to 2.2.  Thoughts on getting it to work on 2.1?

Really sorry but the technique uses stuff that's only available on Android 2.2 and above. Sorry about that - it's not my restriction, it's the Android AP :-(

Offline 325xi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1101
  • Karma: +0/-0
  • V1, V2, still V2...
Re: New Android App for IMMEDIATE ALERTING from Vera.
« Reply #11 on: March 26, 2011, 05:41:00 pm »
Saw the video - WOW! Going to install it on my Captivate

I suppose it's a background process, how does it deal with battery?

Offline ragmondo

  • Moderator
  • Jr. Member
  • *****
  • Posts: 51
  • Karma: +0/-0
Re: New Android App for IMMEDIATE ALERTING from Vera.
« Reply #12 on: March 26, 2011, 06:17:04 pm »
It uses "cloud to device messaging" - which is basically the same thing that is used for email and other alerts. It doesn't actually all the time but the phone operating system wakes up and runs the app when the message is received .... so saying that, you shouldn't see any battery performance difference. If you do, let me know and I'll see if I can improve it.

Richard.

Offline 325xi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1101
  • Karma: +0/-0
  • V1, V2, still V2...
Re: New Android App for IMMEDIATE ALERTING from Vera.
« Reply #13 on: March 26, 2011, 10:47:24 pm »
Very interesting... I thought building something like that using a platform like Tropo or Twillio...

Offline ragmondo

  • Moderator
  • Jr. Member
  • *****
  • Posts: 51
  • Karma: +0/-0
Re: New Android App for IMMEDIATE ALERTING from Vera.
« Reply #14 on: March 28, 2011, 05:05:43 am »
Any chance of a child board so I can start soliciting for improvements / enhancements btw?

Thanks,

Richard.