Skip to content

Commit 528be19

Browse files
committed
convert to scoped repo inside homebridge-plugins org
1 parent faf46f2 commit 528be19

File tree

11 files changed

+75
-29
lines changed

11 files changed

+75
-29
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ body:
66
id: prerequisite
77
attributes:
88
label: Prerequisite
9-
description: Have you read the [Readme - FAQ](https://github.com/0x5e/homebridge-tuya-platform#faq) and [Readme - Troubleshooting](https://github.com/0x5e/homebridge-tuya-platform#troubleshooting) section?
9+
description: Have you read the [Readme - FAQ](https://github.com/homebridge-plugins/homebridge-tuya#faq) and [Readme - Troubleshooting](https://github.com/homebridge-plugins/homebridge-tuya#troubleshooting) section?
1010
options:
1111
- label: Yes, I've read the readme completely.
1212
required: true

.github/ISSUE_TEMPLATE/login_issue.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ body:
66
id: prerequisite
77
attributes:
88
label: Prerequisite
9-
description: Have you read the [Readme - FAQ](https://github.com/0x5e/homebridge-tuya-platform#faq) and [Readme - Troubleshooting](https://github.com/0x5e/homebridge-tuya-platform#troubleshooting) section?
9+
description: Have you read the [Readme - FAQ](https://github.com/homebridge-plugins/homebridge-tuya#faq) and [Readme - Troubleshooting](https://github.com/homebridge-plugins/homebridge-tuya#troubleshooting) section?
1010
options:
1111
- label: 'Yes'
1212
required: true
@@ -51,4 +51,3 @@ body:
5151
attributes:
5252
label: Other Infomations
5353
description: Any information might relate to this issue.
54-

.github/workflows/beta-release.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Beta Release
2+
3+
# To publish a new plugin version (to the npm 'beta' tag):
4+
# 1. Do not modify any versions in the package.json and package-lock.json
5+
# 2. Instead, create a branch with the name beta-X.Y.Z (e.g. beta-1.0.1, where 1.0.1 is the new version)
6+
# 3. Each commit to the branch will trigger this workflow, which will publish the beta version to npm
7+
# -> the first commit will publish as v1.0.1-beta.0, the second commit will publish as v1.0.1-beta.1, etc.
8+
9+
on:
10+
push:
11+
branches: [beta-*.*.*]
12+
workflow_dispatch:
13+
14+
jobs:
15+
publish:
16+
if: ${{ github.repository == 'homebridge-plugins/homebridge-tuya' }}
17+
permissions:
18+
id-token: write
19+
uses: homebridge/.github/.github/workflows/npm-publish-esm.yml@latest
20+
with:
21+
tag: 'beta'
22+
dynamically_adjust_version: true
23+
npm_version_command: 'pre'
24+
pre_id: 'beta'
25+
secrets:
26+
npm_auth_token: ${{ secrets.npm_token }}

.github/workflows/release.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Release
2+
3+
# To publish a new plugin version (to the npm 'latest' tag):
4+
# 1. Update the version in package.json and package-lock.json and commit to the 'latest' branch
5+
# 2. Create a new release on GitHub with the tag vX.Y.Z which points to the 'latest' branch
6+
# 3. The release will trigger this workflow, which will publish the new version to npm
7+
8+
on:
9+
release:
10+
types: [published]
11+
12+
jobs:
13+
publish:
14+
if: ${{ github.repository == 'homebridge-plugins/homebridge-tuya' }}
15+
permissions:
16+
id-token: write
17+
uses: homebridge/.github/.github/workflows/npm-publish-esm.yml@latest
18+
secrets:
19+
npm_auth_token: ${{ secrets.npm_token }}

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,4 +120,6 @@ dist
120120
.yarn/cache
121121
.yarn/unplugged
122122
.yarn/build-state.yml
123-
.pnp.*
123+
.pnp.*
124+
125+
.idea

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,6 @@ This version has been completely rewritten in TypeScript, brings a lot of bug fi
122122

123123

124124
### Removed
125-
- Remove `debug` option. Silence logs for users. For debugging, please refer to [troubleshooting](https://github.com/0x5e/homebridge-tuya-platform#troubleshooting).
125+
- Remove `debug` option. Silence logs for users. For debugging, please refer to [troubleshooting](https://github.com/homebridge-plugins/homebridge-tuya#troubleshooting).
126126
- Remove `lang` option.
127127
- Remove `username` and `password` options for `Custom` project. User will be created and authorized automatically. (#11)

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# @tassy-h/homebridge-tuya-platform
1+
# @homebridge-plugins/homebridge-tuya
22

3-
[![npm](https://badgen.net/npm/v/@tassy-h/homebridge-tuya-platform)](https://npmjs.com/package/@tassy-h/homebridge-tuya-platform)
4-
[![npm](https://badgen.net/npm/dt/@tassy-h/homebridge-tuya-platform)](https://npmjs.com/package/@tassy-h/homebridge-tuya-platform)
5-
[![mit-license](https://badgen.net/npm/license/@tassy-h/homebridge-tuya-platform)](https://github.com/tassy-h/homebridge-tuya-platform/blob/main/LICENSE)
6-
[![Build and Lint](https://github.com/tassy-h/homebridge-tuya-platform/actions/workflows/build.yml/badge.svg)](https://github.com/tassy-h/homebridge-tuya-platform/actions/workflows/build.yml)
3+
[![npm](https://badgen.net/npm/v/@homebridge-plugins/homebridge-tuya)](https://npmjs.com/package/@homebridge-plugins/homebridge-tuya)
4+
[![npm](https://badgen.net/npm/dt/@homebridge-plugins/homebridge-tuya)](https://npmjs.com/package/@homebridge-plugins/homebridge-tuya)
5+
[![mit-license](https://badgen.net/npm/license/@homebridge-plugins/homebridge-tuya)](https://github.com/homebridge-plugins/homebridge-tuya/blob/main/LICENSE)
6+
[![Build and Lint](https://github.com/homebridge-plugins/homebridge-tuya/actions/workflows/build.yml/badge.svg)](https://github.com/homebridge-plugins/homebridge-tuya/actions/workflows/build.yml)
77

88

9-
forked from 0x5e/homebridge-tuya-platform, with a focus on fixing bugs and adding new device support.
9+
Forked from 0x5e/homebridge-tuya-platform, with a focus on fixing bugs and adding new device support.
1010

1111

1212

@@ -35,14 +35,14 @@ See [CHANGELOG.md](./CHANGELOG.md)
3535
Before using this plugin, please make sure to uninstall `homebridge-tuya-platform` first as these two plugins cannot run simultaneously. However, the configuration files are compatible, so there's no need to delete them.
3636

3737
#### For Homebridge Web UI Users
38-
Go to plugin page, search for `@tassy-h/homebridge-tuya-platform` and install it.
38+
Go to plugin page, search for `@homebridge-plugins/homebridge-tuya` and install it.
3939

4040

4141
#### For Homebridge Command Line Users
4242

4343
Run the following command in the terminal:
4444
```
45-
npm install @tassy-h/homebridge-tuya-platform
45+
npm install @homebridge-plugins/homebridge-tuya
4646
```
4747

4848

@@ -102,7 +102,7 @@ See [ADVANCED_OPTIONS.md](./ADVANCED_OPTIONS.md)
102102
## Limitations
103103
- **⚠️Don't forget to extend the API trial period every 6 months. Maybe you can set up a reminder in calendar.**
104104
- Using the same app account for multiple Homebridge/HomeAssistant instances is not supported. Please use separate app accounts for each instance.
105-
- The plugin requires an internet connection to the Tuya Cloud and does not support the LAN protocol. See [#90](https://github.com/tassy-h/homebridge-tuya-platform/issues/90) for more information.
105+
- The plugin requires an internet connection to the Tuya Cloud and does not support the LAN protocol. See [#90](https://github.com/homebridge-plugins/homebridge-tuya/issues/90) for more information.
106106

107107
## FAQ
108108

@@ -145,7 +145,7 @@ Yes. The device must be listed in the support list and the following steps must
145145

146146

147147
#### Local support
148-
See [#90](https://github.com/tassy-h/homebridge-tuya-platform/issues/90).
148+
See [#90](https://github.com/homebridge-plugins/homebridge-tuya/issues/90).
149149

150150
Although the plugin didn't implemented tuya local protocol now, it still remains possibility in the future.
151151

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
2-
"name": "@tassy-h/homebridge-tuya-platform",
3-
"displayName": "TuyaHomebridge Tuya Platform Tassy-h",
4-
"version": "2.0.2-beta.2",
5-
"description": "forked from 0x5e/homebridge-tuya-platform, with a focus on fixing bugs and adding new device support.",
2+
"name": "@homebridge-plugins/homebridge-tuya",
3+
"displayName": "Homebridge Tuya",
4+
"version": "2.0.2-beta.3",
5+
"description": "Forked from 0x5e/homebridge-tuya-platform, with a focus on fixing bugs and adding new device support.",
66
"license": "MIT",
77
"repository": {
88
"type": "git",
9-
"url": "https://github.com/tassy-h/homebridge-tuya-platform"
9+
"url": "https://github.com/homebridge-plugins/homebridge-tuya"
1010
},
11-
"homepage": "https://github.com/tassy-h/homebridge-tuya-platform#readme",
11+
"homepage": "https://github.com/homebridge-plugins/homebridge-tuya#readme",
1212
"bugs": {
13-
"url": "https://github.com/tassy-h/homebridge-tuya-platform/issues"
13+
"url": "https://github.com/homebridge-plugins/homebridge-tuya/issues"
1414
},
1515
"funding": [
1616
{

src/accessory/AccessoryFactory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ function resolveAccessoryByCategory(platform: TuyaPlatform, accessory: PlatformA
271271
case 'qt':
272272
platform.log.debug('early product. add switch-case at function resolveAccessoryByProductID()');
273273
// eslint-disable-next-line max-len
274-
platform.log.warn('use plugin options and config category to another. https://github.com/0x5e/homebridge-tuya-platform/blob/develop_1.7.0/ADVANCED_OPTIONS.md https://github.com/0x5e/homebridge-tuya-platform/blob/develop_1.7.0/SUPPORTED_DEVICES.md');
274+
platform.log.warn('use plugin options and config category to another. https://github.com/homebridge-plugins/homebridge-tuya/blob/develop_1.7.0/ADVANCED_OPTIONS.md https://github.com/homebridge-plugins/homebridge-tuya/blob/develop_1.7.0/SUPPORTED_DEVICES.md');
275275
return undefined;
276276

277277
case 'infrared_tv':

0 commit comments

Comments
 (0)