@homebridge-wyze-node24/homebridge-wyze-node24 1.0.3 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -3
- package/README.md +3 -3
- package/package.json +15 -5
- package/.gitattributes +0 -2
- package/.github/ISSUE_TEMPLATE/bug-report.md +0 -44
- package/.github/ISSUE_TEMPLATE/config.yml +0 -5
- package/.github/ISSUE_TEMPLATE/feature-request.md +0 -23
- package/.github/ISSUE_TEMPLATE/support-request.md +0 -38
- package/.github/dependabot.yml +0 -12
- package/.github/workflows/codeql.yml +0 -72
- package/.github/workflows/greetings.yml +0 -16
- package/.github/workflows/publish.yml +0 -30
- package/.gitmodules +0 -4
- package/eslint.config.js +0 -34
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# homebridge-wyze-
|
|
1
|
+
# homebridge-wyze-node24
|
|
2
2
|
|
|
3
|
-
# Funding [](https://www.paypal.com/paypalme/
|
|
3
|
+
# Funding [](https://www.paypal.com/paypalme/rtrappman) [](https://account.venmo.com/u/Rhett-Trappman-1)
|
|
4
4
|
|
|
5
5
|
If you like what I have done here and want to help I would recommend that you firstly look into supporting Homebridge. None of this could happen without them.
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@ After you have done that if you feel like my work has been valuable to you I wel
|
|
|
8
8
|
|
|
9
9
|
## Releases
|
|
10
10
|
|
|
11
|
-
###
|
|
11
|
+
### v1.0.3
|
|
12
12
|
- Add support for Node.js v24.13.1 in the Homebridge plugin engine requirements
|
|
13
13
|
|
|
14
14
|
### v0.5.46
|
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ After you have done that if you feel like my work has been valuable to you I wel
|
|
|
26
26
|
For more information about our version updates, please check our [change log](CHANGELOG.md).
|
|
27
27
|
|
|
28
28
|
## Requirements
|
|
29
|
-
- Node.js
|
|
29
|
+
- Node.js 24.13.1+
|
|
30
30
|
- Homebridge 1.6.0+ (or 2.0.0 beta)
|
|
31
31
|
|
|
32
32
|
## Configuration
|
|
@@ -63,7 +63,7 @@ Supported devices will be discovered and added to Homebridge automatically.
|
|
|
63
63
|
* **`apiKey`** – Navigate to [this portal](https://developer-api-console.wyze.com/)
|
|
64
64
|
* **`keyId`** – Navigate to [this portal](https://developer-api-console.wyze.com/), and click Login to sign in to your Wyze account.
|
|
65
65
|
Note: Ensure that the login info you are using matches the info you use when logLevel into the Wyze app.
|
|
66
|
-
Once you
|
|
66
|
+
Once you've signed in, you'll be automatically redirected back to the developer page.
|
|
67
67
|
Click Create an API key for your API key to be created.
|
|
68
68
|
Once created, you can click view to see the entire key.
|
|
69
69
|
You should receive an email that a new API key has been generated.
|
|
@@ -95,4 +95,4 @@ Special thanks to the following projects for reference and inspiration:
|
|
|
95
95
|
|
|
96
96
|
Thanks to [misenhower](https://github.com/misenhower/homebridge-wyze-connected-home) for the original Wyze Homebridge plugin, and thanks to [contributors](https://github.com/misenhower/homebridge-wyze-connected-home/graphs/contributors) and [other developers who were not merged](https://github.com/misenhower/homebridge-wyze-connected-home/pulls) for volunteering their time to help fix bugs and add support for more devices and features.
|
|
97
97
|
|
|
98
|
-
This plugin is an actively maintained fork of misenhower's original [Wyze Homebridge Plugin](https://github.com/misenhower/homebridge-wyze-connected-home) project.
|
|
98
|
+
This plugin is an actively maintained fork of misenhower's original [Wyze Homebridge Plugin](https://github.com/misenhower/homebridge-wyze-connected-home) project.
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@homebridge-wyze-node24/homebridge-wyze-node24",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Wyze Smart Home plugin for Homebridge compatible with Node.JS 24",
|
|
5
5
|
"license": "MIT",
|
|
6
|
+
"type": "commonjs",
|
|
6
7
|
"main": "src/index.js",
|
|
7
8
|
"scripts": {
|
|
8
9
|
"lint": "eslint src/**.js --max-warnings=0"
|
|
@@ -22,8 +23,17 @@
|
|
|
22
23
|
},
|
|
23
24
|
"engines": {
|
|
24
25
|
"homebridge": "^1.6.0 || ^2.0.0-beta.0",
|
|
25
|
-
"node": "
|
|
26
|
+
"node": ">=24.13.1"
|
|
26
27
|
},
|
|
28
|
+
"files": [
|
|
29
|
+
"src/**/*",
|
|
30
|
+
"config.schema.json",
|
|
31
|
+
"configSample.json",
|
|
32
|
+
"README.md",
|
|
33
|
+
"CHANGELOG.md",
|
|
34
|
+
"license.txt",
|
|
35
|
+
"logo.png"
|
|
36
|
+
],
|
|
27
37
|
"dependencies": {
|
|
28
38
|
"aws-sdk": "2.1693.0",
|
|
29
39
|
"axios": "^1.5.0",
|
|
@@ -32,11 +42,11 @@
|
|
|
32
42
|
"crypto-js": "4.2.0",
|
|
33
43
|
"inherits": "2.0.4",
|
|
34
44
|
"md5": "^2.2.1",
|
|
35
|
-
"moment": "2.
|
|
45
|
+
"moment": "2.30.1",
|
|
36
46
|
"querystring": "0.2.1",
|
|
37
|
-
"urllib": "
|
|
47
|
+
"urllib": "4.9.0",
|
|
38
48
|
"utf8": "^3.0.0",
|
|
39
|
-
"uuid": "
|
|
49
|
+
"uuid": "13.0.0",
|
|
40
50
|
"uuid-by-string": "4.0.0",
|
|
41
51
|
"wyze-api": "1.1.7"
|
|
42
52
|
},
|
package/.gitattributes
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Bug Report
|
|
3
|
-
about: Create a report to help us improve
|
|
4
|
-
title: ''
|
|
5
|
-
labels: bug, question
|
|
6
|
-
assignees: ''
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
<!-- You must use the issue template below when submitting a bug -->
|
|
11
|
-
|
|
12
|
-
**Describe The Bug:**
|
|
13
|
-
<!-- A clear and concise description of what the bug is. -->
|
|
14
|
-
|
|
15
|
-
**To Reproduce:**
|
|
16
|
-
<!-- Steps to reproduce the behavior. -->
|
|
17
|
-
|
|
18
|
-
**Expected behavior:**
|
|
19
|
-
<!-- A clear and concise description of what you expected to happen. -->
|
|
20
|
-
|
|
21
|
-
**Logs:**
|
|
22
|
-
|
|
23
|
-
```
|
|
24
|
-
Show the Homebridge logs here, remove any sensitive information.
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
**Plugin Config:**
|
|
28
|
-
|
|
29
|
-
```json
|
|
30
|
-
Show your Homebridge config.json here, remove any sensitive information.
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
**Screenshots:**
|
|
34
|
-
<!-- If applicable, add screenshots to help explain your problem. -->
|
|
35
|
-
|
|
36
|
-
**Environment:**
|
|
37
|
-
|
|
38
|
-
* **Plugin Version**:
|
|
39
|
-
* **Homebridge Version**: <!-- homebridge -V -->
|
|
40
|
-
* **Node.js Version**: <!-- node -v -->
|
|
41
|
-
* **NPM Version**: <!-- npm -v -->
|
|
42
|
-
* **Operating System**: <!-- Raspbian / Ubuntu / Debian / Windows / macOS / Docker / hb-service -->
|
|
43
|
-
|
|
44
|
-
<!-- Click the "Preview" tab before you submit to ensure the formatting is correct. -->
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Feature Request
|
|
3
|
-
about: Suggest an idea for this project
|
|
4
|
-
title: ''
|
|
5
|
-
labels: enhancement
|
|
6
|
-
assignees: ''
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
**Is your feature request related to a problem? Please describe:**
|
|
11
|
-
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
|
|
12
|
-
|
|
13
|
-
**Describe the solution you'd like:**
|
|
14
|
-
<!-- A clear and concise description of what you want to happen. -->
|
|
15
|
-
|
|
16
|
-
**Describe alternatives you've considered:**
|
|
17
|
-
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
|
|
18
|
-
|
|
19
|
-
**Additional context:**
|
|
20
|
-
<!-- Add any other context or screenshots about the feature request here. -->
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<!-- Click the "Preview" tab before you submit to ensure the formatting is correct. -->
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Support Request
|
|
3
|
-
about: Need help?
|
|
4
|
-
title: ''
|
|
5
|
-
labels: question
|
|
6
|
-
assignees: ''
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
<!-- You must use the issue template below when submitting a support request -->
|
|
11
|
-
|
|
12
|
-
**Describe Your Problem:**
|
|
13
|
-
<!-- A clear and concise description of what problem you are trying to solve. -->
|
|
14
|
-
|
|
15
|
-
**Logs:**
|
|
16
|
-
|
|
17
|
-
```
|
|
18
|
-
Show the Homebridge logs here, remove any sensitive information.
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
**Plugin Config:**
|
|
22
|
-
|
|
23
|
-
```json
|
|
24
|
-
Show your Homebridge config.json here, remove any sensitive information.
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
**Screenshots:**
|
|
28
|
-
<!-- If applicable, add screenshots to help explain your problem. -->
|
|
29
|
-
|
|
30
|
-
**Environment:**
|
|
31
|
-
|
|
32
|
-
* **Plugin Version**:
|
|
33
|
-
* **Homebridge Version**: <!-- homebridge -V -->
|
|
34
|
-
* **Node.js Version**: <!-- node -v -->
|
|
35
|
-
* **NPM Version**: <!-- npm -v -->
|
|
36
|
-
* **Operating System**: <!-- Raspbian / Ubuntu / Debian / Windows / macOS / Docker / hb-service -->
|
|
37
|
-
|
|
38
|
-
<!-- Click the "Preview" tab before you submit to ensure the formatting is correct. -->
|
package/.github/dependabot.yml
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
# For most projects, this workflow file will not need changing; you simply need
|
|
2
|
-
# to commit it to your repository.
|
|
3
|
-
#
|
|
4
|
-
# You may wish to alter this file to override the set of languages analyzed,
|
|
5
|
-
# or to provide custom queries or build logic.
|
|
6
|
-
#
|
|
7
|
-
# ******** NOTE ********
|
|
8
|
-
# We have attempted to detect the languages in your repository. Please check
|
|
9
|
-
# the `language` matrix defined below to confirm you have the correct set of
|
|
10
|
-
# supported CodeQL languages.
|
|
11
|
-
#
|
|
12
|
-
name: "CodeQL"
|
|
13
|
-
|
|
14
|
-
on:
|
|
15
|
-
push:
|
|
16
|
-
branches: [ "main" ]
|
|
17
|
-
pull_request:
|
|
18
|
-
# The branches below must be a subset of the branches above
|
|
19
|
-
branches: [ "main" ]
|
|
20
|
-
schedule:
|
|
21
|
-
- cron: '36 13 * * 1'
|
|
22
|
-
|
|
23
|
-
jobs:
|
|
24
|
-
analyze:
|
|
25
|
-
name: Analyze
|
|
26
|
-
runs-on: ubuntu-latest
|
|
27
|
-
permissions:
|
|
28
|
-
actions: read
|
|
29
|
-
contents: read
|
|
30
|
-
security-events: write
|
|
31
|
-
|
|
32
|
-
strategy:
|
|
33
|
-
fail-fast: false
|
|
34
|
-
matrix:
|
|
35
|
-
language: [ 'Typescript' ]
|
|
36
|
-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
|
|
37
|
-
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
|
|
38
|
-
|
|
39
|
-
steps:
|
|
40
|
-
- name: Checkout repository
|
|
41
|
-
uses: actions/checkout@v4
|
|
42
|
-
|
|
43
|
-
# Initializes the CodeQL tools for scanning.
|
|
44
|
-
- name: Initialize CodeQL
|
|
45
|
-
uses: github/codeql-action/init@v4
|
|
46
|
-
with:
|
|
47
|
-
languages: ${{ matrix.language }}
|
|
48
|
-
# If you wish to specify custom queries, you can do so here or in a config file.
|
|
49
|
-
# By default, queries listed here will override any specified in a config file.
|
|
50
|
-
# Prefix the list here with "+" to use these queries and those in the config file.
|
|
51
|
-
|
|
52
|
-
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
|
|
53
|
-
# queries: security-extended,security-and-quality
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
|
57
|
-
# If this step fails, then you should remove it and run the build manually (see below)
|
|
58
|
-
- name: Autobuild
|
|
59
|
-
uses: github/codeql-action/autobuild@v4
|
|
60
|
-
|
|
61
|
-
# ℹ️ Command-line programs to run using the OS shell.
|
|
62
|
-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
|
|
63
|
-
|
|
64
|
-
# If the Autobuild fails above, remove it and uncomment the following three lines.
|
|
65
|
-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
|
|
66
|
-
|
|
67
|
-
# - run: |
|
|
68
|
-
# echo "Run, Build Application using script"
|
|
69
|
-
# ./location_of_script_within_repo/buildscript.sh
|
|
70
|
-
|
|
71
|
-
- name: Perform CodeQL Analysis
|
|
72
|
-
uses: github/codeql-action/analyze@v4
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
name: Greetings
|
|
2
|
-
|
|
3
|
-
on: [pull_request_target, issues]
|
|
4
|
-
|
|
5
|
-
jobs:
|
|
6
|
-
greeting:
|
|
7
|
-
runs-on: ubuntu-latest
|
|
8
|
-
permissions:
|
|
9
|
-
issues: write
|
|
10
|
-
pull-requests: write
|
|
11
|
-
steps:
|
|
12
|
-
- uses: actions/first-interaction@v1
|
|
13
|
-
with:
|
|
14
|
-
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
15
|
-
issue-message: "Message that will be displayed on users' first issue"
|
|
16
|
-
pr-message: "Message that will be displayed on users' first pull request"
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
name: Publish to npm
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
tags:
|
|
6
|
-
- "v*"
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
publish:
|
|
10
|
-
runs-on: ubuntu-latest
|
|
11
|
-
permissions:
|
|
12
|
-
contents: read
|
|
13
|
-
id-token: write # only needed if you use --provenance
|
|
14
|
-
|
|
15
|
-
steps:
|
|
16
|
-
- uses: actions/checkout@v4
|
|
17
|
-
|
|
18
|
-
- uses: actions/setup-node@v4
|
|
19
|
-
with:
|
|
20
|
-
node-version: 20
|
|
21
|
-
registry-url: "https://registry.npmjs.org"
|
|
22
|
-
|
|
23
|
-
- run: npm install
|
|
24
|
-
|
|
25
|
-
- run: npm run build --if-present
|
|
26
|
-
|
|
27
|
-
- name: Publish
|
|
28
|
-
run: npm publish --access public --provenance
|
|
29
|
-
env:
|
|
30
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/.gitmodules
DELETED
package/eslint.config.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
const eslint = require('@eslint/js')
|
|
2
|
-
|
|
3
|
-
module.exports = [
|
|
4
|
-
{
|
|
5
|
-
ignores: ['dist/**'],
|
|
6
|
-
},
|
|
7
|
-
{
|
|
8
|
-
files: ['src/**/*.js'],
|
|
9
|
-
...eslint.configs.recommended,
|
|
10
|
-
languageOptions: {
|
|
11
|
-
ecmaVersion: 2022,
|
|
12
|
-
sourceType: 'commonjs',
|
|
13
|
-
globals: {
|
|
14
|
-
module: 'readonly',
|
|
15
|
-
require: 'readonly',
|
|
16
|
-
__dirname: 'readonly',
|
|
17
|
-
process: 'readonly',
|
|
18
|
-
Buffer: 'readonly',
|
|
19
|
-
setTimeout: 'readonly',
|
|
20
|
-
clearTimeout: 'readonly',
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
rules: {
|
|
24
|
-
...eslint.configs.recommended.rules,
|
|
25
|
-
'no-console': 'off',
|
|
26
|
-
'no-empty': ['error', { allowEmptyCatch: true }],
|
|
27
|
-
curly: 'off',
|
|
28
|
-
'brace-style': 'off',
|
|
29
|
-
eqeqeq: 'off',
|
|
30
|
-
'max-len': 'off',
|
|
31
|
-
'no-fallthrough': 'off',
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
]
|