Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3.5.0 #975

Merged
merged 73 commits into from
May 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
57efa4a
v3.5.0
donavanbecker Feb 13, 2024
5ff417e
new node-switchbot beta
donavanbecker Feb 13, 2024
5c9bfaa
add leakdetector
donavanbecker Apr 4, 2024
fc46549
updated dependencies
donavanbecker Apr 4, 2024
a9ba039
add waterdetector to config
donavanbecker Apr 4, 2024
2af69d7
add k10+
donavanbecker Apr 9, 2024
d97470d
waterdetected added to api
donavanbecker Apr 10, 2024
3c2759b
Update waterdetector.ts
donavanbecker Apr 11, 2024
a12f279
remove temp and humid
donavanbecker Apr 11, 2024
fc3ce00
Update config.schema.json
donavanbecker Apr 11, 2024
e4f965f
success logs added
donavanbecker Apr 20, 2024
0c76e8d
Update package.json
donavanbecker Apr 20, 2024
5a5aa17
Update package.json
donavanbecker Apr 20, 2024
e55a965
Update package.json
donavanbecker Apr 20, 2024
6e5f51f
try another thing
donavanbecker Apr 20, 2024
1cd1e1a
engineStrict
donavanbecker Apr 20, 2024
84d6605
update dependenices
donavanbecker Apr 25, 2024
98ab32f
Update platform.ts
donavanbecker May 2, 2024
0adba8a
Update platform.ts
donavanbecker May 2, 2024
774fd07
Add Support for `maxRetries` and `delayBetweenRetries` on OpenAPI sta…
donavanbecker May 6, 2024
bab3e38
fix dependency
donavanbecker May 6, 2024
cd0bb88
add retry to platform
donavanbecker May 6, 2024
fa6fcbc
a few more changes
donavanbecker May 6, 2024
79afebb
fix lib again
donavanbecker May 6, 2024
a2a80ce
update node-switchbot beta
donavanbecker May 6, 2024
858db62
refactor deviceBases
donavanbecker May 14, 2024
c415ccb
revert hb-lib
donavanbecker May 14, 2024
7b40bcf
upgrade hb-lib
donavanbecker May 14, 2024
2258868
more fixes
donavanbecker May 15, 2024
7749696
Error logs to Success logs
donavanbecker May 15, 2024
caf4d84
more changes
donavanbecker May 17, 2024
93d7903
cleaner
donavanbecker May 17, 2024
799ba6a
override statusCode when Device is Hub
donavanbecker May 17, 2024
a47b52b
correct version info
donavanbecker May 17, 2024
ca6478d
fixes 971
donavanbecker May 17, 2024
846ca97
context.FirmwareRevision === undefined
donavanbecker May 17, 2024
159e65b
more version fixes
donavanbecker May 17, 2024
394e1f2
Update device.ts
donavanbecker May 17, 2024
eb4788b
only if version is available
donavanbecker May 17, 2024
642e166
Update device.ts
donavanbecker May 17, 2024
cc177a6
Update device.ts
donavanbecker May 17, 2024
ee1c176
more firmware version fixes
donavanbecker May 17, 2024
4b5e5ad
logging for firmware version
donavanbecker May 17, 2024
da3b647
version
donavanbecker May 17, 2024
3a3fdef
Update device.ts
donavanbecker May 17, 2024
aece274
version revision
donavanbecker May 17, 2024
798f127
fix statuscode issue
donavanbecker May 17, 2024
1b0eb0c
stringify
donavanbecker May 17, 2024
a7b7909
Update device.ts
donavanbecker May 17, 2024
908a196
Update device.ts
donavanbecker May 17, 2024
9f15d34
Update device.ts
donavanbecker May 17, 2024
0d4474a
Update platform.ts
donavanbecker May 17, 2024
1109f48
see if this fixes the version
donavanbecker May 17, 2024
b8d93c6
eslint
donavanbecker May 18, 2024
c2f61ca
less logs
donavanbecker May 18, 2024
f7e24b2
Update package-lock.json
donavanbecker May 18, 2024
5838f74
Update CHANGELOG.md
donavanbecker May 18, 2024
270bdab
fix linting
donavanbecker May 18, 2024
e487dd8
fix for #971
donavanbecker May 18, 2024
8ef9af8
more linting
donavanbecker May 19, 2024
43617bb
add Name Services
donavanbecker May 19, 2024
21339be
fixe name Characteristic
donavanbecker May 19, 2024
ed45876
Update colorbulb.ts
donavanbecker May 19, 2024
c2f7c83
Update platform.ts
donavanbecker May 19, 2024
33d5a36
add Name Characteristics to IR
donavanbecker May 20, 2024
1d618de
context
donavanbecker May 20, 2024
43faa3c
resolve more firmware issues
donavanbecker May 20, 2024
ca6b287
device version without periods
donavanbecker May 20, 2024
c3c400e
Update device.ts
donavanbecker May 20, 2024
4266a50
Update device.ts
donavanbecker May 20, 2024
0c6ec58
potentail fix for TypeError: Cannot set properties of undefined (sett…
donavanbecker May 21, 2024
4be6361
refine
donavanbecker May 21, 2024
2f7d615
v3.5.0
donavanbecker May 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,9 @@
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"codeQL.githubDatabase.update": "never"
"codeQL.githubDatabase.update": "never",
"codeQL.githubDatabase.download": "never",
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
}
}
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

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

## [3.5.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v3.5.0) (2024-05-26)

### What's Changed
- Add Support for `Water Detector`
- Add Support for `Battery Circulator Fan`
- Add BLE support for `Smart Lock`
- Add `K10+` deviceType Support
- Add Support for `maxRetries` and `delayBetweenRetries` on OpenAPI status refreshes based on [#959](https://github.com/OpenWonderLabs/homebridge-switchbot/issues/959#issuecomment-2094879876), Thanks [@sametguzeldev](https://github.com/sametguzeldev)
- Major Refactoring of `device` and `irdevice` files.
- Housekeeping and updated dependencies.

**Full Changelog**: https://github.com/OpenWonderLabs/homebridge-switchbot/compare/v3.4.0...v3.5.0

## [3.4.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v3.4.0) (2024-02-11)

### What's Changed
Expand Down
227 changes: 195 additions & 32 deletions config.schema.json

Large diffs are not rendered by default.

96 changes: 96 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
import pluginJs from '@eslint/js';
import tseslint from 'typescript-eslint';
import stylistic from '@stylistic/eslint-plugin'


export default tseslint.config({
plugins: {
'@stylistic': stylistic,
'@typescript-eslint': tseslint.plugin,
},
languageOptions: {
parser: tseslint.parser,
parserOptions: {
project: true,
},
},
files: ['**/*.ts'],
ignores: ['.dist/*'],
extends: [
pluginJs.configs.recommended,
...tseslint.configs.recommended,
],
rules: {
'@typescript-eslint/array-type': 'error',
'@typescript-eslint/consistent-type-imports': 'error',
'@stylistic/type-annotation-spacing': 'error',
'@stylistic/quotes': [
'warn',
'single',
],
'@stylistic/indent': [
'warn',
2,
{
'SwitchCase': 1,
},
],
'@stylistic/linebreak-style': [
'warn',
'unix',
],
'@stylistic/semi': [
'warn',
'always',
],
'@stylistic/comma-dangle': [
'warn',
'always-multiline',
],
'@stylistic/dot-notation': 'off',
'eqeqeq': 'warn',
'curly': [
'warn',
'all',
],
'@stylistic/brace-style': [
'warn',
],
'prefer-arrow-callback': [
'warn',
],
'@stylistic/max-len': [
'warn',
150,
],
'no-console': [
'warn',
], // use the provided Homebridge log method instead
'no-non-null-assertion': [
'off',
],
'@stylistic/comma-spacing': [
'error',
],
'@stylistic/no-multi-spaces': [
'warn',
{
'ignoreEOLComments': true,
},
],
'@stylistic/no-trailing-spaces': [
'warn',
],
'@stylistic/lines-between-class-members': [
'warn',
'always',
{
'exceptAfterSingleLine': true,
},
],
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
},
});
Loading
Loading