Skip to content

Commit 70013db

Browse files
Beta 0.2.0 - HB 2.0 Support (#51)
* Beta * Update TOC * Cleaning * WIP * Partial * WIP * Uuuugh fix lint * Custom Characteristics are broke * Broke * chatGpt * WIP * WIP * Half fixed * Working pre 2.0 * HB 2.0 * Prep for 2.0 * Pre HB 2.0 * Quotes * Added HAP-NodeJS * Working * WIP * Working * Nailed it * Update config.json * Revert "Update config.json" This reverts commit 93ade15. * Update package-lock.json * Update platform.ts * Revert "Update platform.ts" This reverts commit 526e68b. * Try again * Clean * Wip * WIP * Lint * Working * Build * WIP * Update package.json * Beta Test * Update eslint.config.js * Final --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent b4ca88d commit 70013db

34 files changed

+14761
-13356
lines changed

.eslintrc

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/workflows/Build and Publish.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,20 +80,24 @@ jobs:
8080
branch: ${{ github.ref }}
8181

8282
publish_prod_release:
83+
permissions:
84+
id-token: write
8385
needs: [get_tags, create_documentation]
8486
name: Publish Release Version
8587
if: ${{ needs.get_tags.outputs.BRANCH_NAME == 'main' }}
86-
uses: homebridge/.github/.github/workflows/npm-publish.yml@latest
88+
uses: homebridge/.github/.github/workflows/npm-publish-esm.yml@latest
8789
with:
8890
install_cmd: npm ci
8991
secrets:
9092
npm_auth_token: ${{ secrets.npm_token }}
9193

92-
publish_test_release:
94+
publish_test_release:
95+
permissions:
96+
id-token: write
9397
needs: [get_tags, create_documentation]
9498
name: Publish Test Version - ${{ needs.get_tags.outputs.BRANCH_NAME }}
9599
if: ${{ needs.get_tags.outputs.BRANCH_NAME != 'main' }}
96-
uses: homebridge/.github/.github/workflows/npm-publish.yml@latest
100+
uses: homebridge/.github/.github/workflows/npm-publish-esm.yml@latest
97101
with:
98102
tag: ${{ needs.get_tags.outputs.TARGET_IMAGE_TAG }}
99103
dynamically_adjust_version: true

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ jobs:
99
strategy:
1010
matrix:
1111
# the Node.js versions to build on
12-
node-version: [10.x, 12.x, 13.x]
12+
node-version: [lts/*, latest]
1313

1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v4
1616

1717
- name: Use Node.js ${{ matrix.node-version }}
18-
uses: actions/setup-node@v1
18+
uses: actions/setup-node@v4
1919
with:
2020
node-version: ${{ matrix.node-version }}
2121

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,8 @@ dist
122122
# Documentation files
123123

124124
DEVICES.md.orig.*
125-
DEVICES.md.toc.*
125+
DEVICES.md.toc.*
126+
127+
/test/hbConfig/accessories
128+
/test/hbConfig/backups
129+
/test/hbConfig/persist

.vscode/settings.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"files.eol": "\n",
33
"editor.codeActionsOnSave": {
4-
"source.fixAll.eslint": true
4+
"source.fixAll.eslint": "explicit"
55
},
6-
"editor.rulers": [ 140 ],
7-
"eslint.enable": true,
8-
"editor.tabSize": 2
6+
"editor.rulers": [
7+
140
8+
],
9+
"eslint.enable": true
910
}

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
All notable changes to this project will be documented in this file. This project uses [Semantic Versioning](https://semver.org/).
44

5+
## 0.2.0 (2024-12-10)
6+
7+
## [Version 0.1.12](https://github.com/northernman54/homebridge-tasmota/compare/v0.1.18...v0.1.12)
8+
9+
#### Changes
10+
11+
- Support for Homebridge 2.0
12+
- Minor exception fixes
13+
514
## 0.1.18 (2024-06-09)
615

716
## [Version 0.1.18](https://github.com/northernman54/homebridge-tasmota/compare/v0.1.16...v0.1.18)

DEVICES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
* [Internet Connection WatchDog](#internet-connection-watchdog)
4040
* [Version 1 ( Uses node-red to monitor google.com and turn off the plug )](#version-1--uses-node-red-to-monitor-googlecom-and-turn-off-the-plug-)
4141
* [Version 2](#version-2)
42+
* [Version 3 - Do three checks before rebooting](#version-3---do-three-checks-before-rebooting)
4243
<!--te-->
4344

4445
# My standard config after setting name and device configuration <!-- omit in toc -->

babel.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
presets: [
3+
['@babel/preset-env', { targets: { node: 'current' } }],
4+
],
5+
};

beta.sh

Lines changed: 0 additions & 21 deletions
This file was deleted.

config.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"type": "number",
4141
"required": false,
4242
"placeholder": 24,
43-
"description": "Cleanup of devices no longer connected too or responding on the network. Time is in hours, defaults to 1 Day."
43+
"description": "Cleanup of devices no longer connected too or responding on the network. Time is in hours, defaults to 1 Day. Maximum value is 596 hours ( 24 days )."
4444
},
4545
"debug": {
4646
"title": "Debug Logging",

0 commit comments

Comments
 (0)