Skip to content

Commit

Permalink
Merge pull request #123 from mrjackyliang/ts-rewrite
Browse files Browse the repository at this point in the history
Version 3 Beta 1 Release Merge
  • Loading branch information
mrjackyliang authored Dec 16, 2023
2 parents a6c0b0f + 456a949 commit 55cf5a2
Show file tree
Hide file tree
Showing 26 changed files with 10,116 additions and 2,540 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,9 @@ ij_html_do_not_indent_children_of_tags = none
ij_html_space_inside_empty_tag = true
ij_html_text_wrap = off

[*.php]
indent_size = 4
indent_style = tab

[{*.markdown,*.md}]
ij_markdown_max_lines_around_block_elements = 0
95 changes: 66 additions & 29 deletions .eslintrc.json
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
}
]
}
}
55 changes: 45 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
### macOS ###
###############
#### macOS ####
###############
.DS_Store
.AppleDouble
.LSOverride
Expand All @@ -15,29 +17,62 @@
Network Trash Folder
Temporary Items
.apdisk
Icon

### Linux ###
###############
#### Linux ####
###############
*~
.fuse_hidden*
.directory
.Trash-*
.nfs*

### Windows ###
#################
#### Windows ####
#################
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
Desktop.ini
*.stackdump
[Dd]esktop.ini
$RECYCLE.BIN/
*.cab
*.msi
*.msix
*.msm
*.msp
*.lnk

### Node Stack ###
################
#### NodeJS ####
################
node_modules/
build/
package-lock.json
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

### WebStorm+all Patch ###
#################
#### Next.js ####
#################
.next/

##################
#### Firebase ####
##################
**/.firebase
**/.firebaserc

###################
#### JetBrains ####
###################
.idea/
*.iml
modules.xml
.idea/misc.xml
*.ipr

##########################
#### Project Excludes ####
##########################
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ISC License

Copyright (c) 2019, Jacky Liang
Copyright (c) 2023, Jacky Liang

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
Expand Down
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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": "...",
Expand Down
Loading

0 comments on commit 55cf5a2

Please sign in to comment.