-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathElk-M1-Application-beta
627 lines (559 loc) · 23.1 KB
/
Elk-M1-Application-beta
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
/***********************************************************************************************************************
*
* A Hubitat App for managing Elk M1 Integration
*
* License:
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU
* General Public License as published by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*
* Name: Elk M1 Application
*
* Special Thanks to Doug Beard for the framework of this application!
***See Release Notes at the bottom***
***********************************************************************************************************************/
//Adding thermostat support
public static String version() { return "v0.1.5" }
definition(
name: "Elk M1 Application",
namespace: "belk",
singleInstance: true,
author: "Mike Magrann",
description: "Integrate your Elk M1 Alarm system",
category: "My Apps",
iconUrl: "",
iconX2Url: "",
iconX3Url: "",
)
preferences {
page(name: "mainPage", nextPage: "zoneMapsPage")
page(name: "zoneMapsPage", nextPage: "mainPage")
page(name: "notificationPage", nextPage: "mainPage")
page(name: "lockPage", nextPage: "mainPage")
page(name: "defineZoneMap", nextPage: "zoneMapsPage")
page(name: "defineZoneMapImport", nextPage: "importZones")
page(name: "importZones", nextPage: "zoneMapsPage")
page(name: "editZoneMapPage", nextPage: "zoneMapsPage")
// page(name: "aboutPage", nextPage: "mainPage")
}
//App Pages/Views
def mainPage() {
ifDebug("Showing mainPage")
state.isDebug = isDebug
return dynamicPage(name: "mainPage", title: "", install: false, uninstall: true) {
if(!state.elkM1IntegrationInstalled && getChildDevices().size() == 0) {
section("Define your Elk M1 device") {
clearStateVariables()
input "elkM1Name", "text", title: "Elk M1 Name", required: true, multiple: false, defaultValue: "Elk M1", submitOnChange: false
input "elkM1IP", "text", title: "Elk M1 IP Address", required: true, multiple: false, defaultValue: "", submitOnChange: false
input "elkM1Port", "text", title: "Elk M1 Port", required: true, multiple: false, defaultValue: "2101", submitOnChange: false
input "elkM1Password", "text", title: "Elk M1 Password", required: true, multiple: false, defaultValue: "", submitOnChange: false
input "elkM1Code", "text", title: "Elk M1 Disarm Code", required: true, multiple: false, defaultValue: "", submitOnChange: false
}
}
else {
section("<h1>Device Mapping</h1>") {
href (name: "zoneMapsPage", title: "Devices",
description: "Create Virtual Devices and Map them to Existing Zones, Outputs, Tasks and/or Thermostats in your Elk M1 setup",
page: "zoneMapsPage")
// }
// section("<h1>Outputs</h1>") {
// href (name: "zoneMapsPage", title: "Outputs",
// description: "Create Virtual Switches and Map them to Existing Outputs in your Elk M1 setup",
// page: "outputMapsPage")
// href (name: "zoneMapsPage", title: "Tasks",
// description: "Create Virtual Switches and Map them to Existing Tasks in your Elk M1 setup",
// page: "outputMapsPage")
}
// section("<h1>Notifications</h1>") {
// href (name: "notificationPage", title: "Notifications",
// description: "Enable Push and TTS Messages",
// page: "notificationPage")
// }
section("<h1>Locks</h1>") {
href (name: "lockPage", title: "Locks",
description: "Integrate Locks",
page: "lockPage")
}
// state.enableHSM = enableHSM
// section("<h1>Safety Monitor</h1>") {
// paragraph "Enabling Hubitat Safety Monitor Integration will tie your Envisalink state to the state of HSM. Your Envisalink will receive the Arm Away, Arm Home and Disarm commands based on the HSM state. "
// input "enableHSM", "bool", title: "Enable HSM Integration", required: false, multiple: false, defaultValue: false, submitOnChange: true
// }
}
// section("<br/><br/>") {
// href (name: "aboutPage", title: "About",
// description: "Find out more about Elk M1 Application",
// page: "aboutPage")
// }
section("") {
input "isDebug", "bool", title: "Enable Debug Logging", required: false, multiple: false, defaultValue: false, submitOnChange: true
}
}
}
def aboutPage() {
ifDebug("Showing aboutPage")
dynamicPage(name: "aboutPage", title: none){
section("<h1>Introducing Elk M1 Integration</h1>"){
paragraph "Elk M1 module allows you to upgrade your existing security system with IP control ... " +
"EElk M1 Integration connects to your M1XEP module via Telnet, using Hubitat."
paragraph "Elk M1 Integration automates installation and configuration of the Elk M1 Driver" +
" as well as Virtual Contacts representing the dry contact zones and Virtual Motion Detection configured in your Elk M1 Alarm system."
paragraph "You must have the Hubitat Elk M1 driver already installed before making use of Elk M1 application "
paragraph "Currently, Elk M1 application and driver only work with Elk M1XEP"
paragraph "Special Thanks to Doug Beard."
}
}
}
def lockPage() {
ifDebug("Showing lockPage")
dynamicPage(name: "lockPage", title: none){
section("<h1>Locks</h1>"){
paragraph "Enable Lock Integration, selected locks will lock when armed and/or unlock when disarmed"
input "armLocks", "capability.lock", title: "Which locks to lock when armed?", required:false, multiple:true, submitOnChange:true
input "disarmLocks", "capability.lock", title: "Which locks to unlock when disarmed?", required:false, multiple:true, submitOnChange:true
}
}
}
def notificationPage(){
dynamicPage(name: "notificationPage", title: none){
section("<h1>Notifications</h1>"){
paragraph "Enable TTS and Notification integration will announcing arming and disarming over your supported audio and/or push enabled device"
paragraph "<h3><b>Notification Text</b></h2>"
input "armingHomeBool", "bool", title: "Enable Arming Home Notification", required: false, multiple: false, defaultValue: false, submitOnChange: true
if (armingHomeBool){
input "armingHomeText", "text", title: "Notification for Arming Home", required: false, multiple: false, defaultValue: "Arming Home", submitOnChange: false, visible: armingHomeBool
}
input "armingAwayBool", "bool", title: "Enable Arming Away Notification", required: false, multiple: false, defaultValue: false, submitOnChange: true
if (armingAwayBool){
input "armingAwayText", "text", title: "Notification for Arming Away", required: false, multiple: false, defaultValue: "Arming Away", submitOnChange: false
}
input "armingNightBool", "bool", title: "Enable Arming Night Notification", required: false, multiple: false, defaultValue: false, submitOnChange: true
if (armingNightBool){
input "armingNightText", "text", title: "Notification for Arming Night", required: false, multiple: false, defaultValue: "Arming Night", submitOnChange: false
}
input "armedBool", "bool", title: "Enable Armed Notification", required: false, multiple: false, defaultValue: false, submitOnChange: true
if (armedBool){
input "armedText", "text", title: "Notification for Armed", required: false, multiple: false, defaultValue: "Armed", submitOnChange: false
}
input "disarmingBool", "bool", title: "Enable Disarming Notification", required: false, multiple: false, defaultValue: false, submitOnChange: true
if (disarmingBool){
input "disarmingText", "text", title: "Notification for Disarming", required: false, multiple: false, defaultValue: "Disarming", submitOnChange: false
}
input "disarmedBool", "bool", title: "Enable Disarmed Notification", required: false, multiple: false, defaultValue: false, submitOnChange: true
if (disarmedBool){
input "disarmedText", "text", title: "Notification for Disarmed", required: false, multiple: false, defaultValue: "Disarmed", submitOnChange: false
}
input "entryDelayAlarmBool", "bool", title: "Enable Entry Delay Notification", required: false, multiple: false, defaultValue: false, submitOnChange: true
if (entryDelayAlarmBool){
input "entryDelayAlarmText", "text", title: "Notification for Entry Delay", required: false, multiple: false, defaultValue: "Entry Delay in Progress, Alarm eminent", submitOnChange: false
}
input "exitDelayAlarmBool", "bool", title: "Enable Exit Delay Notification", required: false, multiple: false, defaultValue: false, submitOnChange: true
if (exitDelayAlarmBool){
input "exitDelayAlarmText", "text", title: "Notification for Exit Delay", required: false, multiple: false, defaultValue: "", submitOnChange: false
}
input "alarmBool", "bool", title: "Enable Alarm Notification", required: false, multiple: false, defaultValue: false, submitOnChange: true
if (alarmBool){
input "alarmText", "text", title: "Notification for Alarm", required: false, multiple: false, defaultValue: "Alarm, Alarm, Alarm, Alarm, Alarm", submitOnChange: false
}
paragraph "<h3><b>Notification Devices</b></h2>"
input "speechDevices", "capability.speechSynthesis", title: "Which speech devices?", required:false, multiple:true, submitOnChange:true
input "notificationDevices", "capability.notification", title: "Which notification devices?", required:false, multiple:true, submitOnChange:true
}
}
}
def zoneMapsPage() {
ifDebug("Showing zoneMapsPage")
if (getChildDevices().size() == 0 && !state.elkM1IntegrationInstalled)
{
createElkM1ParentDevice()
}
if (state.creatingZone)
{
createZone()
}
dynamicPage(name: "zoneMapsPage", title: "", install: true, uninstall: false){
section("<h1>Device Maps</h1>"){
paragraph "The partition of your Elk M1 Installation may consist of Zones, Outputs, Tasks and Thermostats. You can choose to map the devices manually or use the import method. "
paragraph "You'll want to determine the device number as it is defined in your Elk M1 setup. " +
" Define a new device in Elk M1 application and the application will then create either a Virtual sensor component device or an Elk Child device , which will report the state of the Elk M1 device to which it is mapped. " +
" The devices can be used in Rule Machine or any other application that is capable of leveraging the devices capability. Elk M1 is capable of 208 zones, your zone map should correspond to the numeric representation of that zone."
}
section("<h2>Create New Devices</h2>"){
href (name: "createZoneImportPage", title: "Import Elk Devices",
description: "Click to import Elk devices",
page: "defineZoneMapImport")
}
section("") {
href (name: "createZoneMapPage", title: "Create a Device Map",
description: "Create a Virtual Device Manually",
page: "defineZoneMap")
}
section("<h2>Existing Devices</h2>"){
def deviceList = ""
getChildDevice(state.ElkM1DNI).getChildDevices().each{
href (name: "editZoneMapPage", title: "${it.label}",
description: "Device Details",
params: [deviceNetworkId: it.deviceNetworkId],
page: "editZoneMapPage")
}
}
}
}
def defineZoneMap() {
ifDebug("Showing defineZoneMap")
state.creatingZone = true;
dynamicPage(name: "defineZoneMap", title: ""){
section("<h1>Create a Device Map</h1>"){
paragraph "Create a Map for a device in Elk M1"
input "zoneName", "text", title: "Device Name", required: true, multiple: false, defaultValue: "Zone x", submitOnChange: false
input "zoneNumber", "number", title: "Which Device 1-208", required: true, multiple: false, defaultValue: 001, range: "1..208", submitOnChange: false
input "zoneType", "enum", title: "Motion, Contact, Output, Task or Thermostat Device?", required: true, multiple: false,
options: [['00':"Contact"],['01':"Motion"],['11':"Thermostat"],['04':"Output"],['05':"Task"]]
}
}
}
def defineZoneMapImport() {
ifDebug("Showing defineZoneMapImport")
getChildDevice(state.ElkM1DNI).initialize()
state.creatingZone = true;
dynamicPage(name: "defineZoneMapImport", title: ""){
section("<h1>Import Elk Zones</h1>"){
paragraph "Create a Map for a zone in Elk M1"
input "deviceType", "enum", title: "Select Device Type", required: true, multiple: false,
options: [['00':"Zones"],['11':"Thermostat"],['04':"Output"],['05':"Task"]]
// state.deviceType = deviceType;
}
}
// importZones(deviceType)
}
def editZoneMapPage(message) {
ifDebug("Showing editZoneMapPage")
ifDebug("editing ${message.deviceNetworkId}")
state.allZones = getChildDevice(state.ElkM1DNI).getChildDevices()
def zoneDevice = getChildDevice(state.ElkM1DNI).getChildDevice(message.deviceNetworkId)
def paragraphText = ""
state.editedZoneDNI = message.deviceNetworkId;
if (zoneDevice.capabilities.find { item -> item.name.startsWith('Motion')}){
paragraphText = paragraphText + "Motion Sensor\n"
}
if (zoneDevice.capabilities.find { item -> item.name.startsWith('Contact')}){
paragraphText = paragraphText + "Contact Sensor\n"
}
if (zoneDevice.capabilities.find { item -> item.name.startsWith('Thermostat')}){
paragraphText = paragraphText + "Thermostat\n"
}
if (zoneDevice.capabilities.find { item -> item.name.startsWith('Switch')}){
paragraphText = paragraphText + "Virtual Switch\n"
}
// if (zoneDevice.capabilities.find { item -> item.name.startsWith('Switch')}){
// paragraphText = paragraphText + "Virtual Switch\n"
// }
dynamicPage(name: "editZoneMapPage", title: ""){
section("<h1>${zoneDevice.label}</h1>"){
paragraph paragraphText
}
}
}
//End New Code Temp
def clearStateVariables(){
ifDebug("Clearing State Variables just in case.")
state.ElkM1DeviceName = null
state.ElkM1IP = null
state.ElkM1Port = null
state.ElkM1Password = null
state.ElkM1Code = null
}
def createElkM1ParentDevice(){
ifDebug("Creating Parent ElkM1 Device")
if (getChildDevice(state.ElkM1DNI) == null){
state.ElkM1DNI = UUID.randomUUID().toString()
ifDebug("Setting state.ElkM1DNI ${state.ElkM1DNI}")
addChildDevice("belk", "Elk M1 Driver", state.ElkM1DNI, null, [name: elkM1Name, isComponent: true, label: elkM1Name])
getChildDevice(state.ElkM1DNI).updateSetting("ip",[type:"text", value:elkM1IP])
getChildDevice(state.ElkM1DNI).updateSetting("port",[type:"text", value:elkM1Port])
getChildDevice(state.ElkM1DNI).updateSetting("passwd",[type:"text", value:elkM1Password])
getChildDevice(state.ElkM1DNI).updateSetting("code",[type:"text", value:elkM1Code])
castElkM1DeviceStates()
}
}
def castElkM1DeviceStates(){
ifDebug("Casting to State Variables")
state.ElkM1DeviceName = elkM1Name
ifDebug("Setting state.ElkM1DeviceName ${state.ElkM1DeviceName}")
state.ElkM1IP = elkM1IP
ifDebug("Setting state.ElkM1IP ${state.ElkM1IP}")
state.ElkM1Port = elkM1Port
ifDebug("Setting state.ElkM1Port ${state.ElkM1Port}")
state.ElkM1Password = elkM1Password
ifDebug("Setting state.ElkM1Password ${state.ElkM1Password}")
state.ElkM1Code = elkM1Code
ifDebug("Setting state.ElkM1Code ${state.ElkM1Code}")
if (getChildDevice(state.ElkM1DNI)){
ifDebug("Found a Child Elk M1 ${getChildDevice(state.ElkM1DNI).label}")
}
else{
ifDebug("Did not find a Parent Elk M1")
}
}
private generateChksum(String msg){
def msgArray = msg.toCharArray()
def msgSum = 0
msgArray.each { (msgSum += (int)it) }
msgSum = msgSum % 256;
msgSum = 256 - msgSum;
String chkSumStr = Integer.toHexString(msgSum);
chkSumStr = (chkSumStr.toUpperCase());
chkSumStr = (chkSumStr.padLeft(2,'0'));
}
def importZones(){
dynamicPage(name: "defineZoneMapImport", title: ""){
section("<h1>Import Elk Zones</h1>"){
paragraph "Finished importing zones for Elk M1 - Click Next to continue"
getChildDevice(state.ElkM1DNI).RequestTextDescriptions(deviceType)
state.creatingZone = false;
}
}
}
def createZone(){
ifDebug("Starting validation of ${zoneName} ZoneType: ${zoneType}")
String formatted = String.format("%03d", zoneNumber)
String formatted2 = String.format("%03d", zoneNumber)
String deviceNetworkId
if (zoneType == "05"){
deviceNetworkId = state.ElkM1DNI + "_K_" + formatted
}else
if (zoneType == "04"){
deviceNetworkId = state.ElkM1DNI + "_O_" + formatted
}else
if (zoneType == "11"){
deviceNetworkId = state.ElkM1DNI + "_T_" + formatted2
}else
if (zoneType == "00"){
deviceNetworkId = state.ElkM1DNI + "_C_" + formatted
}else{
deviceNetworkId = state.ElkM1DNI + "_M_" + formatted
}
ifDebug("Entered zoneNumber: ${zoneNumber} formatted as: ${formatted}")
getChildDevice(state.ElkM1DNI).createZone([zoneName: zoneName, deviceNetworkId: deviceNetworkId, zoneType: zoneType])
state.creatingZone = false;
}
def editZone(){
def childZone = getChildDevice(state.ElkM1DNI).getChildDevice(state.editedZoneDNI);
ifDebug("Starting validation of ${childZone.label}")
ifDebug("Attempting rename of zone to ${newZoneName}")
childZone.updateSetting("label",[type:"text", value:newZoneName])
newZoneName = null;
state.editingZone = false
state.editedZoneDNI = null;
}
private ifDebug(msg)
{
if (msg && state.isDebug) log.debug 'Elk M1 Module: ' + msg
}
//General App Events
def installed() {
state.ElkM1Installed = true
initialize()
}
def updated() {
log.info "updated"
unsubscribe()
initialize()
}
def initialize() {
log.info "initialize"
unsubscribe()
state.creatingZone = false;
subscribe(location, "hsmStatus", statusHandler)
}
def uninstalled() {
removeChildDevices(getChildDevices())
}
def statusHandler(evt) {
log.info "HSM Alert: $evt.value"
def lock
if (!lock){
lock = true
if (getChildDevice(state.ElkM1DNI).currentValue("Status") != "Exit Delay in Progress"
&& getChildDevice(state.ElkM1DNI).currentValue("Status") != "Entry Delay in Progress"
&& evt.value != "disarmed")
{
if (evt.value && state.enableHSM)
{
ifDebug("HSM is enabled")
switch(evt.value){
case "armedAway":
ifDebug("Sending Arm Away")
if (getChildDevice(state.ElkM1DNI).currentValue("Status") != "Armed")
{
speakArmingAway()
getChildDevice(state.ElkM1DNI).ArmAway()
}
break
case "armedHome":
ifDebug("Sending Arm Home")
if (getChildDevice(state.ElkM1DNI).currentValue("Status") != "Armed")
{
speakArmingHome()
getChildDevice(state.ElkM1DNI).ArmHome()
}
break
case "armedNight":
ifDebug("Sending Arm Home")
if (getChildDevice(state.ElkM1DNI).currentValue("Status") != "Armed")
{
speakArmingNight()
getChildDevice(state.EnvElkM1DNI).ArmHome()
}
break
}
}
} else {
if (evt.value == "disarmed")
{
if (state.enableHSM)
{
ifDebug("HSM is enabled")
ifDebug("Sending Disarm")
if (getChildDevice(state.ElkM1DNI).currentValue("Status") != "Ready")
{
speakDisarming()
getChildDevice(state.ElkM1DNI).Disarm()
}
}
}
}
lock = false;
}
}
def speakArmed(){
if (!armedBool) return
if (armedText != ""){
speakIt(armedText)
}
}
def speakArmingAway(){
if (!armingAwayBool) return
if (armingAwayText){
speakIt(armingAwayText)
} else {
speakIt("Arming Away")
}
}
def speakArmingHome(){
if (!armingHomeBool) return
if (armingHomeText != ""){
speakIt(armingHomeText)
}
}
def speakArmingNight(){
if (!armingNightBool) return
if (armingNightText != ""){
speakIt(armingNightText)
}
}
def speakDisarming(){
if (!disarmingBool) return
if (disarmedText){
speakIt(disarmingText)
} else {
speakIt("Disarming")
}
}
def speakDisarmed(){
if (!disarmedBool) return
if (disarmedText != ""){
speakIt(disarmedText)
}
}
def speakEntryDelay(){
if (!entryDelayAlarmBool) return
if (entryDelayAlarmText != ""){
speakIt(entryDelayAlarmText)
}
}
def speakExitDelay(){
if (!exitDelayAlarmBool) return
if (exitDelayAlarmText != ""){
speakIt(exitDelayAlarmText)
}
}
def speakAlarm(){
if (!alarmBool) return
if (alarmText != ""){
speakIt(alarmText)
}
}
private speakIt(str) {
ifDebug("TTS: $str")
if (state.speaking) {
ifDebug("Already Speaking")
runOnce(new Date(now() + 10000), speakRetry, [overwrite: false, data: [str: str]])
return
}
if (!speechDevices) return;
ifDebug("Found Speech Devices")
state.speaking = true
speechDevices.speak(str)
if (notificationDevices){
ifDebug("Found Notification Devices")
notificationDevices.deviceNotification(str)
}
state.speaking = false
}
private lockIt(){
ifDebug("Lock")
if (!armLocks) return
ifDebug("Found Lock")
armLocks.lock()
}
private unlockIt(){
ifDebug("Unlock")
if (!disarmLocks) return
ifDebug("Found Lock")
disarmLocks.unlock()
}
def speakRetry(data) {
if (data.str) speakIt(data.str);
}
private removeChildDevices(delete) {
delete.each {deleteChildDevice(it.deviceNetworkId)}
}
/***********************************************************************************************************************
/***********************************************************************************************************************
*
* Release Notes
*
* Version: 0.1.5
* Added support for manual inclusion of Elk M1 outputs and tasks
* Added support for importing Elk M1 outputs, tasks and thermostats
* Cleaned up app and related code
*
* Version: 0.1.4
* Added support for importing Elk M1 zones
*
* Version: 0.1.3
* Removed any unsupported features for now
*
* Version: 0.1.2
* Added thermostat support (data receipt only)
*
* Version: 0.1.1
* Ported code from Doug Beard Envisalink Integration
* HSM integration not currently supported
* All functionality not fully tested
*
***********************************************************************************************************************/
/***********************************************************************************************************************
*
*Feature Request & Known Issues
*
* I - Must initialize the Elk M1 Device prior to using the Elk M1 App Import Zone functions
* I - System configuration needs to be set up manually on the thermostat device page
*
*/