Skip to content

Commit

Permalink
Code enhancements
Browse files Browse the repository at this point in the history
ADDED
- [Main script] Support for "Kitchen Left/Right Back/Side" door sensors
  • Loading branch information
mrjackyliang committed Aug 12, 2020
1 parent 82f03c8 commit a110a1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion api.js
Original file line number Diff line number Diff line change
Expand Up @@ -597,12 +597,13 @@ Pulse.prototype.getZoneStatus = function getZoneStatus() {
theTag = 'sensor,fire';
} else if (theNameLowercase.match(/^(.*)(door|window|dr|win|slider)(.*)$/g) !== null) {
theTag = 'sensor,doorWindow';
} else if (theNameLowercase.match(/^(kitchen nook)|(z[0-9]{2} service)$/g) !== null) {
} else if (theNameLowercase.match(/^(kitchen nook)|(z[0-9]{2} service|kitchen (left|right) (back|side))$/g) !== null) {
/**
* GitHub users with special naming configurations.
*
* @Glitch482 - "KITCHEN NOOK"
* @w1llf0rd - "Z** Service"
* @tjclayton - "Kitchen Left/Right Back/Side"
*/
theTag = 'sensor,doorWindow';
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "homebridge-adt-pulse",
"displayName": "Homebridge ADT Pulse",
"version": "1.8.12",
"version": "1.8.13",
"description": "Homebridge security system platform for ADT Pulse",
"main": "index.js",
"private": false,
Expand Down

0 comments on commit a110a1e

Please sign in to comment.