-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #123 from mrjackyliang/ts-rewrite
Version 3 Beta 1 Release Merge
- Loading branch information
Showing
26 changed files
with
10,116 additions
and
2,540 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,69 @@ | ||
{ | ||
"env": { | ||
"node": true | ||
}, | ||
"extends": [ | ||
"airbnb-base" | ||
], | ||
"overrides": [ | ||
{ | ||
"files": [ | ||
"api.js" | ||
], | ||
"rules": { | ||
"no-irregular-whitespace": [ | ||
"error", | ||
{ | ||
"skipRegExps": true | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"root": true, | ||
"rules": { | ||
"max-len": [ | ||
"off" | ||
], | ||
"no-console": [ | ||
"off" | ||
"env": { | ||
"node": true | ||
}, | ||
"extends": [ | ||
"airbnb-base", | ||
"airbnb-typescript/base" | ||
], | ||
"ignorePatterns": [ | ||
"/build/**/*" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 2022, | ||
"project": "./tsconfig.json", | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"root": true, | ||
"rules": { | ||
"import/extensions": [ | ||
"error", | ||
"ignorePackages", | ||
{ | ||
"": "never" | ||
} | ||
], | ||
"import/no-default-export": [ | ||
"off" | ||
], | ||
"import/no-extraneous-dependencies": [ | ||
"error", | ||
{ | ||
"devDependencies": true | ||
} | ||
], | ||
"import/prefer-default-export": [ | ||
"off" | ||
], | ||
"max-len": [ | ||
"off" | ||
], | ||
"new-cap": [ | ||
"error", | ||
{ | ||
"newIsCapExceptions": [ | ||
"platformAccessory" | ||
] | ||
} | ||
} | ||
], | ||
"no-await-in-loop": [ | ||
"off" | ||
], | ||
"no-console": [ | ||
"off" | ||
], | ||
"no-continue": [ | ||
"off" | ||
], | ||
"no-irregular-whitespace": [ | ||
"error", | ||
{ | ||
"skipComments": true | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,11 @@ ADT Pulse for Homebridge | |
|
||
This is a [verified Homebridge plugin](https://github.com/homebridge/homebridge/wiki/verified-Plugins#verified-plugins) for ADT Pulse users that allow homeowners to control their security system and view sensor status through HomeKit. The API relies on the ADT Pulse Web Portal (by Icontrol One). | ||
|
||
# Please install the beta version! | ||
### This plugin is completely re-written from the ground up, and I need everyone on board! Please install the pre-release version, so I can quickly get a faster and more stable version to you! | ||
### Everything is still very sloppy, please bear with me, even the readme has to be re-written. | ||
### In the meantime, do not use the UI to configure your plugin (the latest config is below). The UI uses v2 (this is now v3) config. All sensors will now HAVE TO be added manually to prevent automatic-adding/removals if ADT strikes a bug to break things again. | ||
|
||
To use this plugin, here are three simple steps you need to follow: | ||
1. Run `npm install homebridge-adt-pulse` | ||
2. Configure the plugin using the [configuration example](#configuration) | ||
|
@@ -23,25 +28,20 @@ When configuring this plugin, simply add the platform to your existing `config.j | |
{ | ||
"platform": "ADTPulse", | ||
"name": "ADT Pulse", | ||
"subdomain": "CAN BE 'portal' (USA) or 'portal-ca' (Canada)", | ||
"username": "[email protected]", | ||
"password": "1234567890", | ||
"fingerprint": "abcdef1234567890=", | ||
"overrideSensors": [ | ||
{ | ||
"name": "Sample Sensor 1", | ||
"type": "sensor,doorWindow" | ||
}, | ||
"sensors": [ | ||
{ | ||
"name": "...", | ||
"type": "..." | ||
"name": "Lounge Smoke", | ||
"adtName": "Basement Smoke", | ||
"adtType": "fire", | ||
"adtZone": 1 | ||
} | ||
], | ||
"country": "us", | ||
"logLevel": 30, | ||
"logActivity": true, | ||
"removeObsoleteZones": true, | ||
"pausePlugin": false, | ||
"resetAll": false | ||
"pause": false, | ||
"reset": false | ||
}, | ||
{ | ||
"platform": "...", | ||
|
Oops, something went wrong.