Author Topic: How To: Send Vera Alert from ELK M1 via M1XEP  (Read 2984 times)

Offline big517

  • Moderator
  • Hero Member
  • *****
  • Posts: 576
  • Karma: +1/-4
How To: Send Vera Alert from ELK M1 via M1XEP
« on: July 08, 2013, 02:33:27 pm »
Sticky with link to Original Post

Please reply to original thread here;
http://forum.micasaverde.com/index.php/topic,14032.msg105964.html#msg105964

It's possible to use your ELK to send alerts Directly to your Android Phone over the Local Network!

First make sure your VeraAlert app is configured with local port (we'll use 1024 for now).  Also ensure your phone has a static IP within your network we'll use 192.168.1.5)

Step 1.
in ELKRP to to Telephones -> Right Click -> New Telephone...  and create as many as you want.  Lets say you create 5 telephones, we'll use #5 for this example

Step 2.
Click on Telephone 5, there is a box on the right that says "Reporting Format" Change this to "6 = Ethernet M1XEP".   Since this Telephone Number cannot be used for reporting alarms and other events MAKE certain to uncheck all Area blocks as well as the Events to be reported blocks on this screen.  Name the telephone whatever you want, I named it "Vera Alerts"

Step 3.  Click on the M1XEP Setup button the right.  Within the M1XEP Setup click on Central Station.  You should see "CS5" for the 5th phone. 
Receiver type is set to "G.E. OH2000..." 
Account# =  Blank
IP Addresss or URL = 192.168.1.5
IP Port = 1024

Click SEND and OK to Update and Reboot the device.  After Reboot Reconnect..

Step 4.
Create a TEXT string and store it in the M1‟s Automation/Text section:

00APxDDDD?{up to 200 ASCII chars here}CRLF

00 - two zeros. Any two digits will work, but they are ignored.

AP - Command to send text string.

x - ASCII "1" - "8". This tells the M1XEP which Central Station IP address to use. Corresponds to Telephone 1-8.  (We are using Telephone 5 so we will replace "x" with 5)

DDDD? - ASCII text data (Message that VeraAlerts will Read)

CRLF - Carriage Return/Line Feed

EXAMPLE: 00AP5Hello Vera Alerts {tone:1}^M^J Build a text string and store in the M1‟s Automation/Text section using ELKRP. ?^M^J? is a carriage return/line feed.

The example will send ?Hello Vera Alerts {tone:1}? to the IP address programmed as telephone number 5.

Step 5.

Write a RULE to send this text string out serial port 0. When the M1XEP receives it, it will look up the specified Central Station IP address/port and send only the ASCII message in a TCP packet to that address/port. Note that the text string has two parts, a command and a message. 00AP5 is the command and the rest is the message. The M1XEP splits the message from the command and forwards the message part only. Therefore, if you are receiving the message at another M1, the string to match is the message part only. In the example above, that would be Hello Vera Alerts {tone:1}^M^J. So to receive this message at another M1, simply create a text string with Hello Vera Alerts {tone:1}^M^J and write a RULE to perform some action when that text string is received through serial port 0.

Step 6.
Execute Rule and enjoy