The Vera Community forums have moved!

General => Remote Control => VeraAlerts => Topic started by: ragmondo on March 15, 2011, 09:09:58 pm

Title: New Android App for IMMEDIATE ALERTING from Vera.
Post by: ragmondo 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.
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: computerjohn on March 19, 2011, 12:29:20 am
So, this will by-pass the 20 text limit that MiOS has correct?
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: ragmondo 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 :-(

Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: pgrover516 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
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: ragmondo 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...
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: pgrover516 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
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: ragmondo 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 :-(
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: napolitano172 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?
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: Les F 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!

Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: ragmondo 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 !!
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: ragmondo 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 :-(
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: 325xi 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?
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: ragmondo 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.
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: 325xi on March 26, 2011, 10:47:24 pm
Very interesting... I thought building something like that using a platform like Tropo or Twillio...
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: ragmondo 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.
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: ragmondo on March 28, 2011, 10:39:33 am
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?

I've reconsidered. I can use other alerting mechanisms such as google talk for phones that are not 2.2 yet... Do you use google talk ? If so I'll put together an alternative alerting mech for that.
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: napolitano172 on March 28, 2011, 11:49:50 am
I do use google talk as well as google voice.
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: ragmondo on March 28, 2011, 12:39:29 pm
Ok I'll throw something in over the next few days and let you know when it's ready!
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: dcowan on March 28, 2011, 10:37:16 pm
The speed that this works at is awesome.  Much much better than the built in vera notification which has always been delayed, but lately has been completely unreliable.  The one thing I would like to see is some better way to view incoming notifications.  Like SMS with history.  Also the time received.  Being able to get the alert data like you get via sms would be nice also.  Is there any way to hook this into the existing notification tab on scenes?
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: ragmondo on March 29, 2011, 04:55:13 am
The speed that this works at is awesome.  Much much better than the built in vera notification which has always been delayed, but lately has been completely unreliable.  The one thing I would like to see is some better way to view incoming notifications.  Like SMS with history.  Also the time received.  Being able to get the alert data like you get via sms would be nice also.  Is there any way to hook this into the existing notification tab on scenes?

Hi there,

All very good ideas. History of alerts in the app and date/time triggered would not be a problem (I could use vera time, which I hope is synced every so often), I just haven't put a datastore for alerts created yet, but that would be fairly trivial.

I do like the idea of hooking into the notification tab, but I have no idea where to start with that ... would anybody else care to help with that bit ?!
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: iflyM3 on March 29, 2011, 07:10:52 pm
@ ragmondo

hmm... do you know if this should work with Android 2.2.1?  I tried with my MyTouch4G and it doesn't appear to be working.  It could be something that I did wrong.  I'll try again later tonight.  Do you know if the phone has to be connected within the same network or does this also work remotely?
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: ragmondo on March 29, 2011, 07:34:44 pm
definitely works with 2.2 and above. email me your "alert id" and I'll take a look - richardagreen on gmail.com
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: ragmondo on April 03, 2011, 07:25:02 pm
For followers of the alerting app, you can now view your historical alerts using a url of the form :

http://vera-alert.appspot.com/list?recipient=xxxxxx

where xxxx is obviously your alert ID. These will be flushed from time to time but I intend to keep at least one month of alerts for all users. Obviously I am working on security etc etc but this may help you see alerts in the past.

Usual "freemium" rules will probably apply, ie for free you get 1 week of alerts, for $$$ you'll get a year or whatever it works out to be. EDIT: Sorry this applies just for ALERT HISTORY, not alerts in general.

I'll be updating the app over the next few days so these will be visible from the "main"  screen in that too.
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: iflyM3 on April 03, 2011, 09:59:19 pm
@ ragmondo


just an update, this is indeed working and WOW!  I don't know how you did it but WOW, this is uber fast at Alerting.  MUCH faster then the alert or notifications from Mios.  Thank you so much!!!
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: michaelk on April 04, 2011, 01:13:50 pm
thanks for sharing-

I plan to play when i get some time at home.
 :)
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: ragmondo on April 04, 2011, 06:21:11 pm
NEW UPDATE **** FOR USERS OF ANDROID < 2.2 (and also just google talk users in general - no phone needed!)

I have made an update to the server side so that you do not need a later version of android, or in fact any phone at all.

When setting up the Vera Alert virtual device, you just put your google email address as the "ALERT ID" recipient instead of the alert ID generated by the app.

The message is sent via the "google talk" protocol, so the first time you will be invited that "VeraAlert@vera-alert.appspotchat.com" wants to talk to you - you MUST accept this or you won't receive any messages.

From then on , messages will be sent as if someone is talking to you

Happy messaging !!
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: napolitano172 on April 04, 2011, 08:43:03 pm
I was going to wait until tomorrow but I just couldn't - it is installed and working - as I open the door I'm getting the alert - extremely fast!  This is wonderful - thank you.
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: iflyM3 on April 04, 2011, 11:12:17 pm
@ragmondo

Thank you so much for creating this very wonderful, extremely fast, alerting plugin for Vera.  This is awesome, you've now made my Vera able to chat with me. hehe.  Keep up the good work!!!


 ;D
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: aschwalb on April 06, 2011, 02:15:47 pm
@ragmondo

Sorry, I don't know how to
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 !!
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: markbannister on April 06, 2011, 02:36:14 pm
gave it a try
Very nice.
It did take me a minute to figure out that to get the event to trigger I had to go to the Advance tab of the new scene, pick a device, add it select toggle state. 
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: ragmondo on April 07, 2011, 10:29:12 am
@ragmondo

Sorry, I don't know how to
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 !!

Have you downloaded those 4 files ? Go into your vera / development window (normally the top row). Get hold of me - richardagreen (funny a symbol) gmail.com and I'll help you through it. Maybe time to do a youtube install video ??

Richard.
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: myhomeserver on April 07, 2011, 10:58:07 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 :-(



I havent tried this yet, but I use the SMTP Luup code to send a note to my droid, and I use Handsent SMS and change the FROM address for each message. Then in Handcent I can setup different notifications on differnt contacts, so I have a contact for DoorUnlock@..... that beeps 2X, turns the LED Red, DoorLock@....has the Locked message, and beeps and plays a Lock sound, then turns the LED Green to signify OK.

If your app can change the "fron" address for each message, you can give more flexibility to the users this way if they use Handcent...
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: michaelk on April 07, 2011, 07:21:48 pm
GREAT little app (or plugin?)

couple things for suggestion
- obviously would be nice if the boxes for id and message on the vera were labeled.
- I'm using the googletalk function. For ID can is it possible to put multiple gmail's like "user1@gmail.com; user2@gmail.com" so that multiple people can get an alert for the same event?

I experimented and for others who care you CAN just make a second device (vera alert2 as an example) and then it will send 2 messages by google talk.

Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: michaelk on April 07, 2011, 07:23:39 pm
one question-

with the google talk version- does that go through the server or straight from the vera to google's server?

mostly curious.
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: ragmondo on April 07, 2011, 07:28:52 pm
one question-

with the google talk version- does that go through the server or straight from the vera to google's server?

mostly curious.

All events go [ Your Vera ]  --- > [ vera-alert.appspot.com ]  < --  >  [ google talk ] or  [ android ]

Vera can't talk xmpp - well it probably can - but I use a common account to talk to all gtalk recipients for simplicity. The recipient ID is looked at in a very basic fashion - if it contains an "@" then it presumes its a google talk address, if not, then it must be an android phone.

Technically, it would be possible that you could actually "chat" back to your vera via google talk, but I think that opens up too greater possibility of a breach if people used their vera as an intrusion alarm. Perhaps if there is enough interest then there could be certain allowed functions depending.... Anyway - let me know !
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: michaelk on April 07, 2011, 07:36:40 pm
one question-

with the google talk version- does that go through the server or straight from the vera to google's server?

mostly curious.

All events go [ Your Vera ]  --- > [ vera-alert.appspot.com ]  < --  >  [ google talk ] or  [ android ]

Vera can't talk xmpp - well it probably can - but I use a common account to talk to all gtalk recipients for simplicity. The recipient ID is looked at in a very basic fashion - if it contains an "@" then it presumes its a google talk address, if not, then it must be an android phone.

Technically, it would be possible that you could actually "chat" back to your vera via google talk, but I think that opens up too greater possibility of a breach if people used their vera as an intrusion alarm. Perhaps if there is enough interest then there could be certain allowed functions depending.... Anyway - let me know !


hmmm- interesting thought about "talking" back to vera and triggering commands that way. Maybe your on to a whole better way to do remote control. Both Home Buddy and the smartphone interface have something of a lag (I think to refresh?) before you get status. Maybe the "big boys" have something to learn from you.    ;D

Also- maybe you should cross post this to another section of the forum. I have android stuff so i saw it- but i decided to to use the gtalk so it would ding my pc's too. But with the gtalk bits it works for anyone i'd guess (I think there's also googletalk for iphone plus the obvious PC use like i have setup)
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: michaelk on April 08, 2011, 05:04:29 pm
not sure if it's on my end of something on the server end-

installed 2 instances of the device.

I can set a scene to trigger vera alert 1 and vera alert 2.

If I put my gmail in either or both I get teh google talk messages.

But I can't seem to get my wifes gmail to work for either.

I tried my email first- is it possible that the server only likes the first gmail address you give it?

Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: VeraUser on April 11, 2011, 07:54:24 am
Started using it yesterday (using Andori notification) and it works very well!

Would like to see the different notification sounds for different messages i.e. a doorbell sound when some approaches the front of the house.

Toby
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: ragmondo on April 15, 2011, 03:32:30 pm
not sure if it's on my end of something on the server end-

installed 2 instances of the device.

I can set a scene to trigger vera alert 1 and vera alert 2.

If I put my gmail in either or both I get teh google talk messages.

But I can't seem to get my wifes gmail to work for either.

I tried my email first- is it possible that the server only likes the first gmail address you give it?



Ok - your wife is not accepting the initial talk request - this is a mandatory step that google have implemented to prevent people using chat for spam messages (ie people could just set up a fake chat account and spam loads of people various web site links) .... so.... it appears as if she's ignored it. At this point, google won't allow the server to talk to your wife. What she will need to do is initiate a conversation on google talk to the chat address and all will be well !
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: ragmondo on April 15, 2011, 03:33:11 pm
Started using it yesterday (using Andori notification) and it works very well!

Would like to see the different notification sounds for different messages i.e. a doorbell sound when some approaches the front of the house.

Toby

Yes I am working on a number of alert levels. I hadn't thought of a door bell noise though. Keep the ideas coming !!
Title: Doesn't work for me -- How do I recover my Vera?
Post by: waltbru on April 20, 2011, 01:54:07 pm
I really appreciate the attempt, as a Vera alerting app to Android smartphones is sorely needed.  However, it did not work for me and now my Vera controller is not working correctly.  The four Luup modules you supplied did NOT create a device and now they can't be removed from my Vera box's list of Luup code.

A screenshot of the messed-up list of custom Luup modules is attached.
Here's the text of them, scraped directly off my Vera screen:

C%3A%5Cinstall%5CVera2%5CVeralert%20Plugins%5CD_VeraAlert.json View download
C%3A%5Cinstall%5CVera2%5CVeralert%20Plugins%5CD_VeraAlert.xml View download
C%3A%5Cinstall%5CVera2%5CVeralert%20Plugins%5CI_VeraAlert.xml View download
C%3A%5Cinstall%5CVera2%5CVeralert%20Plugins%5CS_VeraAlert.xml View download
D_AvMisc1.xml View download
D_BinaryLight1.json View download
D_BinaryLight1.xml View download
.....

Until the kinks get sorted out, this one should be in the "hobbyist" category, IMHO not ready for prime-time just yet.  If I can't recover this Vera box, I'll buy another one.
I encourage you to get it working as then it will be very useful.

Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: mikea9999 on April 20, 2011, 03:31:30 pm
The same thing happened to me.  The file names have the drive letter and path attached to the file names.

I SSH'd into vera and moved (unix mv command) the incorrect file name to the correct file name and all is well.

Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: waltbru on April 26, 2011, 12:14:21 pm
Outstanding help, Mike9999.  Your fix worked for me too and I'm grateful.  
The app now alerts my Android version 2.2 on my Galaxy S Vibrant phone.  Lag time is a few seconds to my Gmail ID using Meebo as an IM client.
This app is now a winner and I retract what I said about it being not ready.  This is worth the time it takes to set up and the author is to be commended.
He has done the Vera community a great service.

Here are the details I found:

  1. Log in to the Vera box with SSH
  2. Locate the LuuP files with this command:  find / -name *VeraAlert.*
  3. The files end in ".lzo" not ".xml" as they might appear
  4. The directory is:  "/etc/cmh-ludl"
  5. These commands did the rename for me but they will differ for others:

 mv C\:\\install\\Vera2\\Veralert\ Plugins\\D_VeraAlert.json.lzo D_VeraAlert.json.lzo
 mv C\:\\install\\Vera2\\Veralert\ Plugins\\D_VeraAlert.xml.lzo D_VeraAlert.xml.lzo
 mv C\:\\install\\Vera2\\Veralert\ Plugins\\S_VeraAlert.xml.lzo S_VeraAlert.xml.lzo
 mv C\:\\install\\Vera2\\Veralert\ Plugins\\I_VeraAlert.xml.lzo I_VeraAlert.xml.lzo

Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: mikea9999 on April 26, 2011, 03:14:43 pm
Happy to help!
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: ragmondo on April 27, 2011, 06:52:53 am
Hi there - what do I need to do to avoid this again? Create a different download file suffix?
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: waltbru on April 27, 2011, 12:21:46 pm
My guess is that the cause of the file renaming has something to do with the browser upload mechanism.   Somehow, the DOS path information is getting stored with the file name as it gets uploaded to Unix.  A trial of different browsers for uploading might detect the differences.  I use Firefox and MS-IE on my Windows 7-64 PC, although I don't remember which one I used when I uploaded these four .xml files for VeraAlert.

Here's the fundamental issue:

  Why does this filename:  "C\:\\install\\Vera2\\Veralert\ Plugins\\D_VeraAlert.json.lzo" get stored on Unix when the name should be:  "D_VeraAlert.json.lzo"  ?

Apparently -- The upload mechanism of some browsers stores the entire DOS path as the file name.  Smarter minds than me can explain why.

BTW, I finally have the alerting mechanism I always wanted for my Vera.  It used to do home control but now it does home monitoring as well.  If I leave my house, it will alert me if an internal motion detector trips, or the furnace fails, or an outside door is opened, or the batteries in the remote units get low, or a pipe breaks and water floods, or the temperature falls outside limits, or a code is entered in my Schlage electronic locks, etc.   This is a fundamental, not incremental, extension of Vera's usefulness.  Kudos to the brain who built this app.
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: ragmondo on April 27, 2011, 12:26:38 pm
Kudos to the brain who built this app.

Ahhh shucks - I'm blushing !!
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: ragmondo on May 09, 2011, 07:13:32 pm
Just for the followers of this thread, I've updated the app now so it has 5 different alert types you can set. See the thread http://forum.micasaverde.com/index.php?topic=6509.0 for more details.
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: akashk on June 22, 2011, 08:25:09 pm
Awesome work ragmondo!!!
Just installed it and already loving it. I am an iPhone convert to Android and was missing the Prowl notifications on my Samsung Infuse. Your app has filled in the gap wonderfully. Notifications are almost instantaneous.
Wonder if a GUI interface is possible.
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: worried_guy on June 25, 2011, 06:08:45 pm
Wow... thanks very much for this plugin! I really like the google talk functionality even though I have an android phone recent enough to be able to run the app.

One request though -- would it be possible to make the google talk messages still work even when the recipient is invisible? I am receiving them fine if I'm visible, so I suspect maybe your server does not send them when the recipient appears not to be online?

Thanks again -- I'm hoping this would be a simple thing to fix, as I like to sit around invisible at times.
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: rogerdata on July 11, 2011, 09:10:45 pm
I installed this today and set up an alert when my security system alarms. It took at least 10 minutes for me to get the alert!
I have a Motorola Axim running 2.2.2. I am on AT&T. I also have an alert programmed through Mios and I got that within 2 Min.
I also failed to say I am running beta version 1.1.1298 on the vera
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: cap10ray on July 15, 2011, 10:26:18 am


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 !!


Can you tell me how to do this?  I currently have Vera sending SMS's, but would like to use this app.  I installed it on my Android ok, but don't know how to complete Step 2.

Thanks
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: oTi@ on July 15, 2011, 10:37:51 am
@cap10ray,

Welcome!

[...]Upload all of them to your vera !! [...]Can you tell me how to do this? [...]
Take a look at this Wiki page (http://wiki.micasaverde.com/index.php/Install_LUUP_Plugins).

You're looking to do step 2 I think. Then continue with step 3 in @ragmondo's instructions (http://forum.micasaverde.com/index.php?topic=5957.msg35199#msg35199).
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: kd5ftn on November 14, 2011, 10:53:33 am
I just found this app yesterday, but I wanted to let the dev (and other users) know how great it is! Installation was pretty simple, and the alarms are very cool.

The custom alerts are excellent, I use a TTS voice to says "Welcome Home" and "Lights Off" for my various scenes that fire automatically when my phone is within bluetooth proximity of my home.
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: Michele on November 23, 2011, 12:33:19 pm
This looked intriguing so I thought I'd give it a shot.  I got the app running on my tablet and it gives me an id.  Then I followed the directions for adding the files to Vera and that all worked. 

And I think I finally figured out how to create the scene, but I'm not getting any alerts.  I checked that the veralert app is running on my tablet.  In UI4 I have a plugin called Vera Alert with two tabs, Settings and Advanced.  I have not touched anything there.

Ntext I have a wireless door sensor which I know is working because the little guy turns red in UI4 when the door opens.  I have ot made any changes to any tabs for that device.

And finally I have a scene called "Door open".  In the Commands tab, I have the Vera Alert device and it is checked.  The top box has the name of the alert I want to see ("door opened") and the bottom box has my Alert id from the app.  One odd thing - the names of both of those boxes is "undefined".  Is that right?

From the dropdown to the right of those boxes it says "and leave it", so I left it.

Then in the Advanced tab it says "Scene is active" and that dropdown says "when all devices in the scene are properly set".  Under that it says "Pick a device".  I pick the Vera Alert device and check SendAlert.  The I close the tab and hit Save on the Dashboard.

Then I open the door with the tablet in my hand and ... nothing. No alert.

What am I doing wrong?

Update:

I hate answering my own questions but since no one else did, I simply had not set an Event for the scene.  Adding the door sensor under the Events tab fixed that problem.  And BTW, you also have to set "Tripped?" to Yes to get the alert when the door is opened.  Otherwise it only alerts when the door is closed.

Anyway, this whole package is way cool! I get the alert in about one second on my tablet.  I have one of my motion detectors programmed too now, though that one for some reason takes about three seconds to deliver the alert.

One last question though: I see that veralert can receive five different alerts?  What do I need to set in the scenes to make that happen?  Right now both devices generate an "Alert 1".
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: michaelk on November 29, 2011, 08:35:01 pm
for the newbies- just a reminder you dont even need to install anything on your tablet or phone unless you want to.  You can also just use the built in google talk app- IF you only care for text alerts. For the identifier you just enter your gmail address you use for google talk.
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: michaelk on November 29, 2011, 08:36:31 pm
...
And finally I have a scene called "Door open".  In the Commands tab, I have the Vera Alert device and it is checked.  The top box has the name of the alert I want to see ("door opened") and the bottom box has my Alert id from the app.  One odd thing - the names of both of those boxes is "undefined".  Is that right?

From the dropdown to the right of those boxes it says "and leave it", so I left it.

Then in the Advanced tab it says "Scene is active" and that dropdown says "when all devices in the scene are properly set".  Under that it says "Pick a device".  I pick the Vera Alert device and check SendAlert.  ...

Just FYI for new things you might set up-
you actually only need to use the advanced tab bit of send alert.
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: Michele on November 30, 2011, 05:13:31 pm
Thanks - that's handy to know.

I did figure out that to use a different alert tone you have to set "AlertTone2" as the message to be displayed (or some other number up to 5).  But now, there's no notification text on the tablet and the alert only rings once.

There are times when that's good but there are other times when I'd like the alert to keep sounding until I dismiss it.  Could we have that as a feature?  Pretty please?
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: Kyle on December 13, 2011, 04:27:54 pm
Any chance of getting your app working on UI5?
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: mcvflorin on December 14, 2011, 03:01:13 am
Hi Kyle,

Can you try the plugin I attached?
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: Kyle on December 14, 2011, 10:20:14 am
Hi Kyle,

Can you try the plugin I attached?

Florin,

I had to downgrade back to UI4.. I was having too many problems with my scenes not running properly.
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: LG on December 21, 2011, 04:12:17 am
Hi Florin,

I've tested the plugin under VERA2 UI5 1.5.236, it was not working.
It seems that the command http.request() is broken. Using luup.inet.wget() instead of http.request() solves the issue.
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: kartcon on December 24, 2011, 10:18:57 pm
Great work Ragmondo,

I installed this without any problems and it works great, and extremely fast. One thig I did change in your JSON code was to add my registration number to the 'defaultvalue' variable under sceneList, argument_2. This then automatically populates the second user input box with my registration code. Very easy fix and also very useful.

I'm not a very good Lua programmer yet, but I will keep tinkering until I understand it more. One thing I tried to fix, but couldn't was the 'name' variables in the scene section. It seems that neither of those variables are being passed to the spot. Maybe one of the guru's here can spot the problem for newbies like me.

Thanks for all your efforts. I really like your code.
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: ehome on January 07, 2012, 12:40:25 am
I am getting Error "vera alert"
                              Startup Lua Failed"

Please give me the solution.
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: garrettwp on January 07, 2012, 08:01:02 am
We would gladly like to help you with your problem, however you need to provide us with more information. The more information you can provide us, the better we can figure out what is going on.

What vera unit do you have?
What firmware are you running? UI4 or UI5?
How did you install the plugin?

- Garrett
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: ehome on January 10, 2012, 01:18:17 am
What vera unit do you have? ---->Vera 2
What firmware are you running? UI4 or UI5?----> UI4
How did you install the plugin?----> Uploaded all the required files from the link and create a device vera alert with the same process.

Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: ehome on January 11, 2012, 02:49:53 am
Any Luck Dear!!!
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: ehome on January 12, 2012, 06:05:08 am
Issue Resolved!!!

There was a firewall in the Network which was blocking application to communicate.
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: ragmondo on January 28, 2012, 06:13:00 am
Hi Kyle,

Can you try the plugin I attached?

I hope you don't mind but I have uploaded these files to http://www.fawepark.com/android-software/veralertfiles
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: bigmanvstrashman on February 18, 2012, 03:06:44 am
Hi,

Firstly, thanks for this useful app !

I test this app few days ago, i notice that sometimes the server is out.
it's maybe about some overquota on my ID

here the last line when i check on a http request with a browser :
OverQuotaError: The API call datastore_v3.RunQuery() required more quota than is available.

How many messages can we send ?


Thanks a lot.


Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: 325xi on March 12, 2012, 11:26:56 pm
Great service!
Is there any way to send variables - for example if I send temperature related event I'd like to have the temperature included as part of the message
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: lolodomo on March 14, 2012, 07:46:19 am
I was able to use Vera Alert with the UI5 package. It is working.


Regarding the Android application, it looks like there is a bug: I am not able to delete messages. The application systematically crashes.
Am I alone to notice that ?
My Android version is 2.3.x.


Regarding the Vera part, is it possible to generate an alert from the luup code of a scene, just calling a function ?
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: Da_JoJo on March 14, 2012, 07:55:09 am
great plugin , it could use a little bit update and enhancement though. then it would be the best plugin. very usefull.
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: lolodomo on March 14, 2012, 04:15:00 pm
Regarding the Vera part, is it possible to generate an alert from the luup code of a scene, just calling a function ?

I answer to myself. It can be done just by copying code from the I_VeraAlert.xml file.
Putting these few lines of code in the start lua file should then allow to call the SendAlert from anywhere.


So, my only problem is how can I delete the messages without the crash of the Android application ?
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: RichardTSchaefer on March 15, 2012, 10:19:23 am
If you are on Vera2 see:
http://forum.micasaverde.com/index.php/topic,9596.0.html (http://forum.micasaverde.com/index.php/topic,9596.0.html)n
I plan to upgrade this to Vera3.
It allows you to leave the Android VeraAlert Token out of your code ... You set it once as property on the VeraAlert device. In fact you can set it to multiple VeraAlert Tokens ... then when you send a VeraAlert it will go to all listed phones.

I would luv to make this available through normal notifications. If you think that would be nice then chime in at: http://forum.micasaverde.com/index.php/topic,9525.0.html (http://forum.micasaverde.com/index.php/topic,9525.0.html)
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: Da_JoJo on March 15, 2012, 10:26:05 am
hell yeah
imma give it a try :)
edit: i was ahead of myself lol..  been there, done complaint lol
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: lolodomo on March 21, 2012, 09:13:35 pm
The application is working well when my Android phone is connected at home using WiFi.
When I am outside my home using 3G, it looks like I am receiving no notification. When I come back to home and enable the WiFi, the last notification arrives immediately.

Is it something that you notice ?
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: RichardTSchaefer on March 22, 2012, 02:57:11 pm
lolodomo -
   Regarding the crash when deleting ...
   I did the last mods for VeraAlert on the Android ... The code I released to Richard does not have the crash ... I think he runs the code through a code mangling tool ... and that tool does not handle things properly (Processes only Java files and not the corresponding XML files).  It's an easy fix ... (moving about 4 lines of code from XML files to java file) ... but I think Richard does not have much time to work on this ... I aslo sent him a bunch of images to update the Android Market.

    Regarding the delay when switching between Wifi and 3G --- I have seen that as well. I was going to look into it ... I think the Phone registers with the Alert Server when it is booted ... and will only get messages from that connection ... I think a mod to detect a change in the network will fix that. I will try to look into this and post a message back later about this.
 
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: lolodomo on March 22, 2012, 04:25:20 pm
lolodomo -
   Regarding the crash when deleting ...
   I did the last mods for VeraAlert on the Android ... The code I released to Richard does not have the crash ... I think he runs the code through a code mangling tool ... and that tool does not handle things properly (Processes only Java files and not the corresponding XML files).  It's an easy fix ... (moving about 4 lines of code from XML files to java file) ... but I think Richard does not have much time to work on this ... I aslo sent him a bunch of images to update the Android Market.

Ok. Hope that the fix could be put on the Android Market one day.

Quote
Regarding the delay when switching between Wifi and 3G --- I have seen that as well. I was going to look into it ... I think the Phone registers with the Alert Server when it is booted ... and will only get messages from that connection ... I think a mod to detect a change in the network will fix that. I will try to look into this and post a message back later about this.

Interesting. I will verify that.
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: lolodomo on March 22, 2012, 07:19:25 pm
Quote
Regarding the delay when switching between Wifi and 3G --- I have seen that as well. I was going to look into it ... I think the Phone registers with the Alert Server when it is booted ... and will only get messages from that connection ... I think a mod to detect a change in the network will fix that. I will try to look into this and post a message back later about this.

Interesting. I will verify that.

No, it does not work even if I start in 3G mode.
What is a little strange is that I am almost certain that it worked at least one time. But now it never works.
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: lolodomo on March 23, 2012, 09:14:05 am
The poroblem might be that the connection has to be very stable.
In my case, it switches regularly between 3G and 3G+, depending on where I am.
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: lolodomo on March 24, 2012, 12:58:55 pm
lolodomo -
   Regarding the crash when deleting ...
   I did the last mods for VeraAlert on the Android ... The code I released to Richard does not have the crash ... I think he runs the code through a code mangling tool ... and that tool does not handle things properly (Processes only Java files and not the corresponding XML files).  It's an easy fix ... (moving about 4 lines of code from XML files to java file) ... but I think Richard does not have much time to work on this ... I aslo sent him a bunch of images to update the Android Market.

Could you provide an apk file correcting the crash problem ?
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: wxben on March 30, 2012, 02:18:37 pm
Do you have the step by step instructions on getting this installed on Vera 3? I'm new and the alerts built into Vera 3 don't seem to work, unless I'm setting up something wrong.

I'd like to try out your program in Vera 3 if it will work with that, but I can't seem to find where to install a virtual device... HELP!

Thanks
-Ben
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: wxben on March 30, 2012, 03:12:28 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.


How do you get this to work with Vera 3? Do you have instructions for that?

Thank you so much!
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: galwaymark on April 22, 2012, 06:54:12 am
Fantastic!!! Well done!
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: lolodomo on May 17, 2012, 05:02:07 am
Quote
Regarding the delay when switching between Wifi and 3G --- I have seen that as well. I was going to look into it ... I think the Phone registers with the Alert Server when it is booted ... and will only get messages from that connection ... I think a mod to detect a change in the network will fix that. I will try to look into this and post a message back later about this.

Interesting. I will verify that.

No, it does not work even if I start in 3G mode.
What is a little strange is that I am almost certain that it worked at least one time. But now it never works.

Finally, this is working well now since few weeks. The problem was not the application but certainly my phone operator.
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: ehome on May 24, 2012, 05:35:21 am
Hi,

I am not able to create scene with vera alert device in UI5, can you please tell me how can i configure the same.

Thank You.
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: pieterb on May 24, 2012, 06:41:51 am
First make sure you have added the VeraAlert device successfully (Devices, category Other)

Then create a new scene and navigate to the advanced tab.
There at 'Pick a device', pick your VeraAlert device and press 'Add'.
In the dropdown box select the action you want to execute on VeraAlert and specify the arguments.
The first argument is the message you want to send, the second is the VeraAlertId from your Android app.

Confirm the changes and press the red 'Save' button.

Then, when you trigger the scene, the alert should be sent.

FYI, there is an improved VeraAlert plugin for UI5, but that is not published yet.
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: asma on June 07, 2012, 02:29:36 am
I am not able to create vera alert in  UI5.Pls help me out.
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: garrettwp on June 07, 2012, 04:00:49 am
A more detailed description of your problem would go a long way for us to help you out.

- Garrett
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: asma on June 07, 2012, 07:03:05 am
We have Vera 2 with UI5 running with 1.5.346  firmware.
I downloaded Vera alert files from following site: http://www.fawepark.com/android-software/veralertfiles/instructions
And follow the steps as per instruction.
But its not happening.
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: garrettwp on June 07, 2012, 08:41:41 am
Have a look at this post for UI5 version of the plugin:

http://forum.micasaverde.com/index.php/topic,5957.msg56026.html#msg56026

- Garrett
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: pieterb on June 08, 2012, 05:49:27 pm
There is also a UI5 version of the plugin at Github:

https://github.com/ragmondo/Veralert/tree/master/pluginUI5

- Pieter

Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: jackpot on August 24, 2012, 01:31:45 pm
Anyone able to figure out how to delete the Alerts that are received on my Android device without the App crashing ? Otherwise it works great !

Vera 3 UI5...  .408
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: knarf057gizmo on September 05, 2012, 10:12:09 am
Issue Resolved!!!

There was a firewall in the Network which was blocking application to communicate.

Which ports did you open up to get it to work?
Title: Re: New Android App for IMMEDIATE ALERTING from Vera.
Post by: garrettwp on September 05, 2012, 10:27:57 am
You might want to look at the new push notification plugin that works with iOS and android.

- Garrett