Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
donavanbecker authored and banboobee committed Mar 1, 2024
1 parent 3af8d02 commit 2c61315
Show file tree
Hide file tree
Showing 39 changed files with 582 additions and 539 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/beta-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Node-CI Beta
on:
push:
branches: [beta-*.*.*, beta]
release:
types: [prereleased]
workflow_dispatch:

jobs:
Expand All @@ -29,3 +31,14 @@ jobs:
pre_id: 'beta'
secrets:
npm_auth_token: ${{ secrets.npm_token }}

github-releases-to-discord:
needs: publish

if: ${{ github.repository == 'OpenWonderLabs/homebridge-switchbot' && github.event.release.prerelease == true }}

uses: OpenWonderLabs/.github/.github/workflows/discord-webhooks.yml@latest
with:
footer_title: "SwitchBot"
secrets:
DISCORD_WEBHOOK_URL_BETA: ${{ secrets.DISCORD_WEBHOOK_URL_BETA }}
14 changes: 6 additions & 8 deletions .github/workflows/changerelease.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
name: Changelog to Release

on:
workflow_dispatch:
push:
paths: [CHANGELOG.md]
branches: [latest]
release:
types: [published]

jobs:
changerelease:
uses: OpenWonderLabs/.github/.github/workflows/changerelease.yml@latest
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
changerelease:
uses: OpenWonderLabs/.github/.github/workflows/changerelease.yml@latest
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
10 changes: 3 additions & 7 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@ name: AutoDependabot

on:
pull_request:
branches:
- beta
- latest
branches: [ beta, latest ]
pull_request_target:
branches:
- beta
- latest
branches: [ beta, latest ]

jobs:
label:
dependabot:
uses: OpenWonderLabs/.github/.github/workflows/dependabot.yml@latest
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

name: Labeler

on: [pull_request]
on: pull_request_target

jobs:
label:
labeler:
uses: OpenWonderLabs/.github/.github/workflows/labeler.yml@latest
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
workflow_dispatch:

jobs:
stale:
release-drafter:
uses: OpenWonderLabs/.github/.github/workflows/release-drafter.yml@latest
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
7 changes: 2 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: Node Release

on:
push:
tags:
- 'v*.*.*'
workflow_dispatch:
release:
types: [published]

jobs:
build_and_test:
Expand Down Expand Up @@ -33,7 +31,6 @@ jobs:
footer_title: "SwitchBot"
secrets:
DISCORD_WEBHOOK_URL_LATEST: ${{ secrets.DISCORD_WEBHOOK_URL_LATEST }}
DISCORD_WEBHOOK_URL_BETA: ${{ secrets.DISCORD_WEBHOOK_URL_BETA }}



Expand Down
93 changes: 50 additions & 43 deletions CHANGELOG.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
- [SwitchBot Humidifier](https://www.switch-bot.com/products/switchbot-smart-humidifier)
- Supports OpenAPI & Bluetooth Low Energy (BLE) Connections
- Can Push Updates over OpenAPI
- Can Receive Udpates over BLE and OpenAPI
- Can Receive Updates over BLE and OpenAPI
- [SwitchBot Meter](https://www.switch-bot.com/products/switchbot-meter)
- [SwitchBot Meter Plus (US)](https://www.switch-bot.com/products/switchbot-meter-plus)
- [SwitchBot Meter Plus (JP)](https://www.switchbot.jp/products/switchbot-meter-plus)
Expand Down Expand Up @@ -178,7 +178,7 @@
- Water Heaters
- Allows for On/Off Controls
- Others
- Option to Dispaly as differenet Device Type
- Option to Display as differenet Device Type
- Supports Fan Device Type
- Allows for On/Off Controls

Expand Down
2 changes: 1 addition & 1 deletion config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"singular": true,
"customUi": true,
"customUiPath": "./dist/homebridge-ui",
"headerDisplay": "<p align='center'><img width='100px' src='https://user-images.githubusercontent.com/9875439/102681754-ac2eb800-4189-11eb-8e17-7c47c804484b.png'></p>\n\nThe **SwitchBot** plugin allows you to control SwitchBot Devices. \n\nTo get started link your SwitchBot account.\n\n1. Download SwitchBot App on App Store or Google Play Store.\n\n2. Register a SwitchBot account and log in into your account.\n\n3. Generate an Open Token within the App.\n\n4. Input your `Open Token` into the paramter below.",
"headerDisplay": "<p align='center'><img width='100px' src='https://user-images.githubusercontent.com/9875439/102681754-ac2eb800-4189-11eb-8e17-7c47c804484b.png'></p>\n\nThe **SwitchBot** plugin allows you to control SwitchBot Devices. \n\nTo get started link your SwitchBot account.\n\n1. Download SwitchBot App on App Store or Google Play Store.\n\n2. Register a SwitchBot account and log in into your account.\n\n3. Generate an Open Token within the App.\n\n4. Input your `Open Token` into the parameter below.",
"footerDisplay": "Please raise any issues on our [project page](https://github.com/OpenWonderLabs/homebridge-switchbot/issues).\n\nIf you would like to have other SwitchBot Devices added to this plugin fill out [Feature Request Form](https://github.com/OpenWonderLabs/homebridge-switchbot/issues/new?assignees=&labels=&template=feature_request.md).\n\n[SwitchBot Website](https://www.switch-bot.com)",
"schema": {
"type": "object",
Expand Down
Loading

0 comments on commit 2c61315

Please sign in to comment.