Author Topic: TEXECOM Premier Elite Plugin  (Read 1324 times)

Offline samyoue

  • Jr. Member
  • **
  • Posts: 58
  • Karma: +3/-3
TEXECOM Premier Elite Plugin
« on: March 30, 2018, 09:44:24 pm »
This is a reworked version of racarters plugin, developed with his permission.
Work on the Texecom Connect version is now under way (planning on releasing under the same plugin and automatically working out which version to use).

V2.84
Uses Texecom Simple Protocol via IP or serial connection.  Supports  the following:
  • Arm up to 2 Areas
  • Part-arm up to 2 Areas
  • Disarm up to 2 Areas
  • Control of PC Outputs 1-4
  • Creates Child Devices representing your Texecom Zones
  • Polls zones every ~0.6s
  • Automatically gathers Zone Names and types
  • Manual override of Zone Text (That appears in Vera) and Zone Icon (eg. Door/ PIR/Smoke)
  • Reports partition status (including Exit/Entry started)
  • Reads Control and Control battery voltages/Current
  • Virtual Keypad in Vera
  • Displays System Flags (eg. battery fail, PSU mains fault etc)
  • 3 Notification Options for User defineable System Flags
  • Support for notifications upon zone active when zone is armed (Entry circuits only cause notification if Area assigned is in alarm) using any or all of the following platforms:
    • Push notifications via Pushover.net
    • Text Messaging (UK numbers only at present) via Clickatell.com
    • Email via SMTP2GO.com
  • Comms status and auto attempts reconnection/reports failures
                                           
Polling is  sequentially done in the following order:
  • Zones
  • Areas
  • Zones
  • Output Status
  • Zones
  • Areas
  • Zones
  • Keypad Display
  • Zones
  • Areas
  • Zones
  • System Flags
  • Zones
  • Areas
  • Zones
  • System Voltages
  • Back to start
                       

Poll times depend on your Vera, mine averages a poll every 0.286s therefore my zones are updated every approx 0.572s (2x0.286s), my areas are updated every approx 1.144s (4x0.286s) and everything else approx every 4.576s (16x0.286s)

Copyright 2017-2027 Sam Youe


Notes:      This plug-in requires the Texecom Premier Elite firmware v1.0+ although it may work on Premier firmware version 9.06 or   later.  Earlier versions may not work correctly or at all. If your firmware version   is older than this you must flash the panel to upgrade to the latest firmware.
         
Getting Started (UI7)
---------------------

  •    On the Vera dashboard menu on the left of the page select Apps -> Develop Apps -> Luup files,   then upload all files, ticking the box marked 'Restart Luup after upload'.
  •    On the Vera menu select Apps --> Develop Apps --> Create device, then in the field called 'Upnp Device Filename' enter D_Texecom.xml.  Save, Then Reload Luup. (Go to Test Lua Code and type "luup.reload()")
    •    For network comms you must use a Texecom COM IP/COM WIFI module connected to a Com port on the panel and programmed appropriately.
    •    For serial comms use a COM USB or PC COM lead connected to a Com port on the panel and programmed as nothing fitted. Within Vera you must configure a suitable serial port on Vera to 19200 Baud, 8 bits, no parity, 2 stop bits and assign it to the Texecom device (Apps>Develop Apps>Serial Port Configuration). Reload Luup again
  •    When Luup has restarted find the Texecom device block on the 'Devices' page on Vera dashboard, then click the right arrow and open the 'Setup' tab at the top.
  •    Click on Connection Setup and setup options as necessary, paying close attention to: 'Connection Type', 'Engineer Code' and 'UDL Code'. Once finished, Ensure Your alarm panel is not in Engineer Mode and Not Fully Set, click Save All and when prompted, click OK to restart Luup.
    • The plug-in will currently allow up to 48 zones, 4 PC controlled outputs, 2 Areas, 1 Part Set per area.
  • The plugin should create 1 or 2 partitions (as set out by you in the setup tab), as many zones as you have programmed in your panel and the 'PC Controlled output' Vera Switches.
  •    If you use Pushover messaging options, you will receive a notification on your phone or other Pushover-enabled device in an alarm state, detailing the zone that has tripped the alarm (or Set/Unset/Partset or Vera Restart notifications). If you specify a Device it will only deliver to that device. You must create your own Pushover App on the Pushover site and use the relevant user and app keys supplied by them.
  •    You can also specify which zone is armed by partset/fullset etc on the Setup page. NB. When a circuit is omitted for partset by your alarm system (eg. Landing PIR), Vera currently displays this as the same icon as if it were active at the moment (although no alerts will be generated...
   


Please note this has been designed for Vera UI7. It may work with UI5 and as such I have included the original setup instructions for UI5 for Racarters Texecom version that this is based upon although much of it has been changed, the setup procedure should be fairly similar, but if any steps do not seem right please adapt accordingly.
If it doesnt work with UI5 I have NO plans to convert it to work with UI5 nor any way to test on UI5 anyway...

Getting Started (UI5)
---------------------
Alan Carter February 2016

  •    On the Vera dashboard select APPS -> Develop Apps -> Luup files, then upload the 5 xml
       and 2 json files, ticking the box marked 'Restart Luup after upload'.
  •    On the Vera dashboard select APPS --> Develop Apps --> Create device, then in the field
       called 'Upnp Device Filename' enter D_Texecom.xml.  Save, and restart Luup.
  •    When Luup has restarted find the Texecom device block on the 'Devices' tab on Vera
       dashboard, then click the spanner and open the 'Advanced' tab.
  •    In the 'altid' field list the devices you wish to create, separated by commas.  For example,
       to create 8 zones enter Z01,Z02,Z03,Z04,Z05,Z06,Z07,Z08.  To create 3 Digicom outputs enter
       X01,X02,X03.  To create 2 programmable outputs enter P01,P02. The plug-in will currently
       allow up to 20 zones, up to 8 Digicom outputs and up to 2 programmable outputs.
  •    If you are using a network connection to the panel, enter IP address and port number
       in the 'ip' field, separated by a colon.  For example: 192.168.0.123:10001
  •    If you are using a serial connection to the panel you must configure a suitable serial port
       on Vera to 19200 Baud, 8 bits, no parity, 2 stop bits and assign it to the Texecom device.
  •    Restart Luup, after which the plug-in should create two partition devices and as many zone
       and output devices as specified in Step 4 above.  Partitions will be polled every 10 seconds
       and zones every 5 seconds.
  •    On the Texecom panel set the UDL password to 1234 via keypad or Wintex.  If you wish to use
       a different UDL password you must edit and re-upload I_Texecom.xml then restart Luup.
  •    For network comms you must use a Texecom COM IP module connected to the Com1 port on the panel.
  •    For serial comms use a COM USB or PC COM lead connected to the Com1 port on the panel.
  •    If you use Pushover messaging via the Vera 'Push Notification' app you can enter the
       Push Notification device number in the 'Vera Push Device' field, the Pushover Device
       name in the 'Pushover Device' field and the required sound in the 'Pushover Sound'
       field (in lower case).  You will then receive a notification on your phone or other
       Pushover-enabled device if the first line of the Texecom keypad display changes.
       (Since the second line of the keypad display often shows the time, only changes to the
       first line will generate a notification.)  If want the message sent to all of your
       Pushover devices, leave the 'Pushover Device' field blank.
  •    Zone device blocks have two variables called LatchStatus and LatchPeriod.  When a zone
       is tripped, if LatchPeriod is non-zero, LatchStatus will be set to '1'.  When no further
       trips have occurred for the number of minutes set in LatchPeriod, LatchStatus will be
       set to '0'.  This feature can be used in a Vera scene to switch off lights etc. after
       a period of no movement in a room.  Set LatchPeriod to zero to disable this feature.
   

Sam.

Please let me know if you get any problems/feedback and I'll try to resolve as quick as I can...

KNOWN BUG LIST:
- The parent device changes name when zone names are gathered (Should be fixed now)
- Zones omitted by the panel (eg. in part set) display as active in Vera UI (Purely visual bug)

IF you install this and you experience a bug which is listed as fixed or unlisted, please let me know.

https://github.com/Samyoue/TexecomVeraPlugin
« Last Edit: June 14, 2018, 03:44:16 pm by samyoue »

Offline goggles24

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
Re: TEXECOM Premier Elite Plugin
« Reply #1 on: May 08, 2018, 09:26:15 am »
Thanks samyoue! I have installed this and seems to be working perfectly so far! I'm waiting for the opportunity to do a bit more with it but it looks like it will be a useful addition to my setup.


Offline sups

  • Sr. Newbie
  • *
  • Posts: 29
  • Karma: +0/-0
Re: TEXECOM Premier Elite Plugin
« Reply #2 on: May 11, 2018, 02:54:36 am »
Hello all,

I'm currently using Racarters version on ui7, any idea what the upgrade process to this would be?

Sups


Offline samyoue

  • Jr. Member
  • **
  • Posts: 58
  • Karma: +3/-3
Re: TEXECOM Premier Elite Plugin
« Reply #3 on: May 11, 2018, 08:23:29 am »
@goggles: thanks! Let me know if you get any problems

@sups: In theory just upload the new files and that should be it as it is a massively reworked version of racarters one... but any problems try deleting the "parent" device and creating a new device,
Let me know how you get on

Sam

Offline pukka

  • Sr. Newbie
  • *
  • Posts: 26
  • Karma: +1/-0
Re: TEXECOM Premier Elite Plugin
« Reply #4 on: May 18, 2018, 03:58:06 pm »
Hi Sam,

I have been using Racarters plugin for a few years, I have just tried to upgrade to your plugin. I uploaded your files the plugin reports " Status: Requesting Access- 1234"

I have removed the master device and re added via "create device" but i am still seeing the same error, is they any logging I can look at?

Paul

Offline samyoue

  • Jr. Member
  • **
  • Posts: 58
  • Karma: +3/-3
Re: TEXECOM Premier Elite Plugin
« Reply #5 on: May 18, 2018, 04:03:07 pm »
I'm just in talks with sups atm as he has the same problem (which I'm struggling to replicate!) I take it you are connecting via comIP? I'm assuming your udl is 1234? Whats your vera version and panel type and version please

Sam

Offline pukka

  • Sr. Newbie
  • *
  • Posts: 26
  • Karma: +1/-0
Re: TEXECOM Premier Elite Plugin
« Reply #6 on: May 18, 2018, 04:07:25 pm »
Hi Sam

Password is 1234
Premier Elite 48
Version 3.x

Vera 1.7.3831

Would it be worth while SSH in and deleting the old files?

Paul

Offline sups

  • Sr. Newbie
  • *
  • Posts: 29
  • Karma: +0/-0
Re: TEXECOM Premier Elite Plugin
« Reply #7 on: May 18, 2018, 05:08:12 pm »
Hi Sam

Password is 1234
Premier Elite 48
Version 3.x

Vera 1.7.3831

Would it be worth while SSH in and deleting the old files?

Paul

I've done that, thinking that perhaps one of the files didnt upload properly, unfortunately the problem persisted.

Offline samyoue

  • Jr. Member
  • **
  • Posts: 58
  • Karma: +3/-3
Re: TEXECOM Premier Elite Plugin
« Reply #8 on: May 18, 2018, 05:24:54 pm »
If i get a chance tonight I'll factory reset my second vera, install racarters version then mine and set that up via ip to see if i can emulate (and then fix!) the problem...

The only thing different to racarters version regarding the initial connection procedure is that my version can take a variable as the udl code instead of it being written in the lua code but since that works with mine and goggles via serial, there's no reason that should affect connection over ip as it is the same message being sent to the panel...   :-\

The good news is you have the same versions as me so it's not an incompatibility with v4...

Out of interest what ip is your com ip?

Sam

Offline pukka

  • Sr. Newbie
  • *
  • Posts: 26
  • Karma: +1/-0
Re: TEXECOM Premier Elite Plugin
« Reply #9 on: May 18, 2018, 05:30:31 pm »
Hi

Texecom IP 192.168.1.214:10001

I can login with wintex and the older plugin

Offline samyoue

  • Jr. Member
  • **
  • Posts: 58
  • Karma: +3/-3
Re: TEXECOM Premier Elite Plugin
« Reply #10 on: May 18, 2018, 05:36:07 pm »
yes that seems to be the same behaviour sups is experiencing...very strange indeed...

Sam

Offline samyoue

  • Jr. Member
  • **
  • Posts: 58
  • Karma: +3/-3
Re: TEXECOM Premier Elite Plugin
« Reply #11 on: May 18, 2018, 05:40:40 pm »
thanks, I'll install his first, get it going via IP then upgrade and see if i get the same issue...

Sam

EDIT:- OK so Ive installed the old one, got it working via IP then upgraded and I'm seeing the same problem you guys have seen so a fix should be coming soon just hold tight, I appreciate your patience
« Last Edit: May 18, 2018, 08:01:16 pm by samyoue »

Offline samyoue

  • Jr. Member
  • **
  • Posts: 58
  • Karma: +3/-3
Re: TEXECOM Premier Elite Plugin
« Reply #12 on: May 20, 2018, 06:32:10 pm »
OK so it seems IP connections were trying to initialise before the vera was quite ready. As such I've added a 5s delay for IP connections and that fixed it for my test unit and sups' installation.

Upgrading from Racarters plugin will require the following steps.
  • upload new files and restart luup
  • Click on parent device and click on setup page. Fill in these fields MINIMUM:
    • Connect Via:    
    • Connection Settings (ip:port):    (If via IP)
    • Panel UDL Code    
    • Panel Engineer Code
    • Panel Type    
  • Click Save Page/Save All
  • Click OK to restart Luup
  • Wait for restart to complete (If grabbing zone names, allow at least a minute after restarting before doing anything to allow the process to complete properly!!)

Offline pukka

  • Sr. Newbie
  • *
  • Posts: 26
  • Karma: +1/-0
Re: TEXECOM Premier Elite Plugin
« Reply #13 on: June 03, 2018, 10:40:40 am »
Just to report back, Plugin is working ok

Offline sups

  • Sr. Newbie
  • *
  • Posts: 29
  • Karma: +0/-0
Re: TEXECOM Premier Elite Plugin
« Reply #14 on: June 05, 2018, 03:56:40 pm »
Yes,
I've been using it for a while now and its working fine..
Just one thing I need to ask all users..
You arm your panel, and leave the house... But what happens when you return, open your door and disarm the panel.
What I get is first an email from Vera telling me that the front door is open, then an email telling me that the hallway PIR sensed motion... At the same time I have SMS messages sent to my phone telling me the same as the emails..
It's a bit annoying.. does anyone else have this problem, and/or does anyone know how to stop this happening.. all I want is an email/SMS only when the alarm is triggered...possibly with another email to tell me which zone triggered the alarm?

Sups