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

v1.13.0 #341

Merged
merged 56 commits into from
May 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
201d046
update dependencies
donavanbecker Mar 8, 2022
c993858
update dependencies
donavanbecker Mar 9, 2022
f7ab149
update dependencies
donavanbecker Mar 17, 2022
898d74d
v1.12.8
donavanbecker Mar 19, 2022
58432f7
add options for set position mode
donavanbecker Mar 31, 2022
fae6506
a few more fixes
donavanbecker Mar 31, 2022
0a4f911
fixes
donavanbecker Apr 1, 2022
bd9cec3
log mode
donavanbecker Apr 1, 2022
10700c7
Update config.schema.json
donavanbecker Apr 1, 2022
cde210e
lock fix
donavanbecker Apr 2, 2022
61f7dab
more lock fixes
donavanbecker Apr 2, 2022
d079a1a
firmware override
donavanbecker Apr 2, 2022
00d2fc6
default version
donavanbecker Apr 3, 2022
e615d1b
updateValue FirmwareRevision
donavanbecker Apr 3, 2022
8eb8bf1
firmware version
donavanbecker Apr 4, 2022
ff8f6a9
firmware
donavanbecker Apr 4, 2022
4f87668
Update colorbulb.ts
donavanbecker Apr 4, 2022
bc9d336
more custom firmware changes
donavanbecker Apr 4, 2022
e608831
Create dependabot.yml
donavanbecker Apr 11, 2022
3e0c666
Update dependabot.yml
donavanbecker Apr 11, 2022
4ce2a87
merge dependabot pull requests
donavanbecker Apr 11, 2022
6431e95
update
donavanbecker Apr 11, 2022
274edef
update
donavanbecker Apr 11, 2022
7bc8fbd
Bump eslint from 8.12.0 to 8.13.0 (#309)
dependabot[bot] Apr 11, 2022
98f3784
Bump @typescript-eslint/parser from 5.17.0 to 5.18.0 (#305)
dependabot[bot] Apr 11, 2022
c166ef8
Bump @typescript-eslint/eslint-plugin from 5.17.0 to 5.18.0 (#304)
dependabot[bot] Apr 11, 2022
1d95a72
Bump npm-check-updates from 12.5.7 to 12.5.8 (#308)
dependabot[bot] Apr 11, 2022
22a5c43
update
donavanbecker Apr 11, 2022
9b5b1fd
Merge branch 'beta' of https://github.com/OpenWonderLabs/homebridge-s…
donavanbecker Apr 11, 2022
d381d13
update
donavanbecker Apr 11, 2022
486b5b2
Update dependabot.yml
donavanbecker Apr 11, 2022
0f94f1f
Update dependabot.yml
donavanbecker Apr 11, 2022
3ff63c6
Merge branch 'beta' of https://github.com/OpenWonderLabs/homebridge-s…
donavanbecker Apr 11, 2022
ded92e3
Update dependabot.yml
donavanbecker Apr 11, 2022
c5072b9
Fixes #310 "Other" IR Devices send commandOn and commandOff at revers…
jonzhan Apr 12, 2022
5e8c4cc
update dependencies
donavanbecker Apr 12, 2022
ba2de39
Bump @typescript-eslint/eslint-plugin from 5.19.0 to 5.20.0
dependabot[bot] Apr 19, 2022
bdf2c42
Bump @typescript-eslint/parser from 5.19.0 to 5.20.0
dependabot[bot] Apr 19, 2022
a989284
Fixes #314 "Other" IR devices which are already off will now not togg…
jonzhan Apr 20, 2022
dfaa41e
Avoid sending redundant commands to "Other" IR devices (#323)
jonzhan Apr 20, 2022
52c933c
Update dependabot.yml
donavanbecker Apr 23, 2022
ccf9ede
Update dependabot.yml
donavanbecker Apr 23, 2022
753ae0d
:twisted_rightwards_arrows: Merge #321 (Bump @typescript-eslint/parse…
github-actions[bot] Apr 23, 2022
ceddcfd
:twisted_rightwards_arrows: Merge #320 (Bump @typescript-eslint/eslin…
github-actions[bot] Apr 23, 2022
c864a69
Bump npm-check-updates from 12.5.8 to 12.5.9 (#312)
dependabot[bot] Apr 23, 2022
974497a
Bump @typescript-eslint/parser from 5.20.0 to 5.22.0
dependabot[bot] May 3, 2022
fb77b78
Bump @typescript-eslint/eslint-plugin from 5.20.0 to 5.22.0
dependabot[bot] May 3, 2022
0aa00c7
Eve history features for meter devices. (#338)
banboobee May 3, 2022
202cf4c
:twisted_rightwards_arrows: Merge #340 (Bump @typescript-eslint/eslin…
github-actions[bot] May 3, 2022
b56baa1
:twisted_rightwards_arrows: Merge #339 (Bump @typescript-eslint/parse…
github-actions[bot] May 3, 2022
96899b2
MQTT support for meter and curtain devices. (#337)
banboobee May 3, 2022
2ba4c77
update dependencies
donavanbecker May 3, 2022
c5d055a
Bump github/codeql-action from 1 to 2 (#325)
dependabot[bot] May 3, 2022
49c8b57
v1.13.0
donavanbecker May 4, 2022
af4ffe3
Merge branch 'latest' into beta
donavanbecker May 4, 2022
4dc1e6e
Update package-lock.json
donavanbecker May 4, 2022
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
7 changes: 6 additions & 1 deletion .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ name: Bug-Report
description: Report a Bug to help us improve
title: 'Bug: '
labels: [bug]
assignees: 'donavanbecker'
assignees:
- donavanbecker
- SwitchBot
- SwitchBot-Wonderlabs
- Minsheng
- Devin-Wonderlabs
body:
- type: markdown
attributes:
Expand Down
7 changes: 6 additions & 1 deletion .github/ISSUE_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ name: Feature Request
description: Suggest an idea for this project
title: 'Feature Request: '
labels: [enhancement]
assignees: 'donavanbecker'
assignees:
- donavanbecker
- SwitchBot
- SwitchBot-Wonderlabs
- Minsheng
- Devin-Wonderlabs
body:
- type: markdown
attributes:
Expand Down
7 changes: 6 additions & 1 deletion .github/ISSUE_TEMPLATE/support-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ name: Support Request
description: Need help?
title: 'Support Request: '
labels: [question]
assignees: 'donavanbecker'
assignees:
- donavanbecker
- SwitchBot
- SwitchBot-Wonderlabs
- Minsheng
- Devin-Wonderlabs
body:
- type: markdown
attributes:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -54,7 +54,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -68,4 +68,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
17 changes: 17 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: AutoDependabot

on:
pull_request:
push:
branches:
- beta

jobs:
automerge:
name: Auto-merge dependabot updates
runs-on: ubuntu-latest
steps:
- uses: mitto98/dependabot-automerge-action@master
with:
token: ${{ github.token }}
merge: true
3 changes: 0 additions & 3 deletions .github/workflows/nodejs-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,8 @@ jobs:

publish-npm:
if: github.repository == 'openwonderlabs/homebridge-switchbot'

needs: build

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,8 @@ jobs:
publish-npm:
# publish only if we are on our own repo, event was 'release' (a tag was created) and the tag starts with "v" (aka version tag)
if: github.repository == 'openwonderlabs/homebridge-switchbot' && github.event_name == 'release' && startsWith(github.ref, 'refs/tags/v')

needs: build # only run if build succeeds

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand Down
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

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

## [Version 1.13.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.13.0) (2022-05-04)

## What's Changed

- Added MQTT support for Meter and Curtain devices. Thanks [banboobee](https://github.com/banboobee)[#337](https://github.com/OpenWonderLabs/homebridge-switchbot/pull/337)
- Added Eve history features for meter devices. Thanks [banboobee](https://github.com/banboobee) [#338](https://github.com/OpenWonderLabs/homebridge-switchbot/pull/338)
- Added Config `setOpenMode` and `setCloseMode` so that you can set mode to be Performance or Silent.
- Added Config to allow manually setting firmware version.
- Fixed Smart Lock Display state status.
- Still unable to control Locks because of API limitations.
- Housekeeping and updated dependencies.

**Full Changelog**: https://github.com/OpenWonderLabs/homebridge-switchbot/compare/v1.12.8...v1.13.0

## [Version 1.12.8](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.12.8) (2022-03-19)

## What's Changed
Expand Down
62 changes: 62 additions & 0 deletions config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,48 @@
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].configDeviceType === 'Curtain' && model.options.devices[arrayIndices].deviceId);"
}
},
"setOpenMode": {
"title": "Curtain's Opening Mode",
"type": "string",
"oneOf": [
{
"title": "Performance Mode",
"enum": [
"0"
]
},
{
"title": "Silent Mode",
"enum": [
"1"
]
}
],
"condition": {
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].configDeviceType === 'Curtain' && model.options.devices[arrayIndices].deviceId);"
}
},
"setCloseMode": {
"title": "Curtain's Closing Mode",
"type": "string",
"oneOf": [
{
"title": "Performance Mode",
"enum": [
"0"
]
},
{
"title": "Silent Mode",
"enum": [
"1"
]
}
],
"condition": {
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].configDeviceType === 'Curtain' && model.options.devices[arrayIndices].deviceId);"
}
},
"hide_lightsensor": {
"title": "Hide Curtain's Light Sensor",
"type": "boolean",
Expand Down Expand Up @@ -521,6 +563,14 @@
}
}
},
"firmware": {
"title": "Firmware Override",
"type": "string",
"placeholder": "1.2.8",
"condition": {
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].deviceId);"
}
},
"refreshRate": {
"title": "Device Refresh Rate",
"type": "number",
Expand Down Expand Up @@ -579,6 +629,14 @@
"type": "string",
"placeholder": "81F3UT59513F"
},
"configDeviceName": {
"title": "Device Name",
"type": "string",
"placeholder": "SwitchBot",
"condition": {
"functionBody": "return (model.options && model.options.irdevices && model.options.irdevices[arrayIndices].deviceId);"
}
},
"hide_device": {
"title": "Hide Device",
"type": "boolean",
Expand Down Expand Up @@ -993,6 +1051,8 @@
"options.devices[].curtain.set_minStep",
"options.devices[].curtain.set_min",
"options.devices[].curtain.set_max",
"options.devices[].curtain.setOpenMode",
"options.devices[].curtain.setCloseMode",
"options.devices[].curtain.updateRate",
"options.devices[].curtain.disable_group",
"options.devices[].curtain.hide_lightsensor",
Expand All @@ -1008,6 +1068,7 @@
"options.devices[].colorbulb.set_minStep",
"options.devices[].colorbulb.adaptiveLightingShift",
"options.devices[].lock.hide_contactsensor",
"options.devices[].firmware",
"options.devices[].refreshRate",
"options.devices[].logging"
]
Expand All @@ -1029,6 +1090,7 @@
"expanded": false,
"orderable": false,
"items": [
"options.irdevices[].configDeviceName",
"options.irdevices[].deviceId",
"options.irdevices[].hide_device",
"options.irdevices[].configRemoteType",
Expand Down
Loading