'********************************************************************************'
'*                  Napco Gemini Plug-in for HomeSeer                           *'
'*                                                                              *'
'* Copyright  2017 Kazteel, LLC                                                *'
'* Written by Nathan Robertson                                                  *'
'* All rights reserved.                                                         *'
'*                                                                              *'
'* Redistribution and use in source and binary forms, with or without           *'
'* modification is not permitted without the authors express written            *'
'* consent.                                                                     *'
'*                                                                              *'
'* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND       *'
'* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE        *'
'* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE   *'
'* ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE      *'
'* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL   *'
'* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS      *'
'* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)        *'
'* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT   *'
'* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY    *'
'* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF       *'
'* SUCH DAMAGE.                                                                 *'
'********************************************************************************'

Version 3.0.2.1 (11/17/2017)
Do not update timestamp on HS3 device for every area status update from the keypad bus


Version 3.0.2.0 (6/12/2016)
Added several global variables that can be referenced in event actions via the $$GLOBALVAR method
These can also be reviewed via the web GUI under Tools->Global Variables, Timers & Counters->Global Variables TAB
These are created when the plugin complets a full successful startup.

$$GLOBALVAR:NapcoGemini_LastZoneName:
$$GLOBALVAR:NapcoGemini_LastZoneNumber:
$$GLOBALVAR:NapcoGemini_LastZoneEvent:
$$GLOBALVAR:NapcoGemini_LastZoneTime:
$$GLOBALVAR:NapcoGemini_LastAreaNumber:
$$GLOBALVAR:NapcoGemini_LastAreaEvent:
$$GLOBALVAR:NapcoGemini_LastAreaUser:
$$GLOBALVAR:NapcoGemini_LastAreaTime:
$$GLOBALVAR:NapcoGemini_LastAlarm:


Also added the ability to arm the panel in Away (the previous only option and default) or in Stay mode


Version 3.0.1.9 (6/11/2016)

Fixed a couple issues introduced when adding Linux support


Version 3.0.1.8 (4/24/2016)

Linux support 


Version 3.0.1.3 (2/20/2016)
Fix issue with not being able to complete Alarm trigger event definition


Version 3.0.1.2 (2/1/2016)
Adjust zone to area logic slightly:
  An armed area zone trip only updates the zone that was tripped, not every zone associated to the area
  Zones go armed/disarmed following the area they are associated to but don't update the HS3 device updated timestamp as that masks real zone status change times

Register help link with HS3


Version 3.0.1.0 (6/12/2015)

Compiled against HS3 3.0.0.181.  Removed error log about external function call (log spam).  


Version 3.0.0.5 (6/16/2014)

Added better protections to serial port data/error routines


Version 3.0.0.4 (6/6/2014)

Improved handling of bad COM port at start up.  Plugin will now remain up and issue a CRITICAL status so config page can be updated.


Version 3.0.0.3 (5/10/2014)

Fixed bug with some triggers not matching to HS3 events


Version 3.0.0.2 (3/28/2014)

Fixed updater issue


Version 3.0.0.1 (1/28/2014)

New support forum link 
http://board.homeseer.com/forumdisplay.php?f=1182


Version 3.0.0.0 (1/17/2014)

Initial release