homebridge-tuya-plus 4.3.0 → 4.4.0-dev.116
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/test.yml +5 -1
- package/AGENTS.md +1 -1
- package/Changelog.md +1 -0
- package/package.json +2 -2
|
@@ -9,13 +9,17 @@ on:
|
|
|
9
9
|
jobs:
|
|
10
10
|
test:
|
|
11
11
|
runs-on: ubuntu-latest
|
|
12
|
+
strategy:
|
|
13
|
+
fail-fast: false
|
|
14
|
+
matrix:
|
|
15
|
+
node-version: ["20", "22", "24", "26"]
|
|
12
16
|
steps:
|
|
13
17
|
- uses: actions/checkout@v4
|
|
14
18
|
|
|
15
19
|
- name: Use Node.js
|
|
16
20
|
uses: actions/setup-node@v4
|
|
17
21
|
with:
|
|
18
|
-
node-version:
|
|
22
|
+
node-version: ${{ matrix.node-version }}
|
|
19
23
|
|
|
20
24
|
- run: npm ci
|
|
21
25
|
|
package/AGENTS.md
CHANGED
|
@@ -20,7 +20,7 @@ software with a large existing install base.**
|
|
|
20
20
|
|
|
21
21
|
- **Node.js, CommonJS** (`require`/`module.exports`). No TypeScript, no build
|
|
22
22
|
step — the source that ships is the source in the repo.
|
|
23
|
-
- Target runtimes: Node `^20.18 || ^22.10 || ^24`, Homebridge `^1.8 || ^2.0`
|
|
23
|
+
- Target runtimes: Node `^20.18 || ^22.10 || ^24 || ^26`, Homebridge `^1.8 || ^2.0`
|
|
24
24
|
(see `engines` in `package.json`). Keep changes compatible with both
|
|
25
25
|
Homebridge 1.x and 2.x.
|
|
26
26
|
|
package/Changelog.md
CHANGED
|
@@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file. This projec
|
|
|
4
4
|
|
|
5
5
|
## Unreleased
|
|
6
6
|
|
|
7
|
+
* [*] **Declare Node.js 26 support.** The `engines.node` range now includes `^26.0.0`, so Homebridge no longer flags the plugin as incompatible on Node 26. The test workflow now runs on Node 20, 22, 24 and 26.
|
|
7
8
|
* [+] **PercentBlinds: animate Opening/Closing mid-travel via an optional work-state data-point.** Many Tuya curtain/roller motors report their position (`dpPercentState`) only once travel finishes, so the Home app jumped straight to the target instead of showing "Opening…"/"Closing…". Set `"dpWorkState"` (Tuya `work_state`/`control`, usually `7`) and the accessory drives HomeKit's `PositionState` from the live direction the motor reports (`opening`/`closing`, with `open`/`up` and `close`/`down` also recognised, overridable via `opening`/`closing`), then settles to STOPPED when the position report arrives. `flipState` inverts the direction to match a flipped position range. Purely opt-in: with no `dpWorkState` the behaviour is unchanged. Also adds `PercentBlinds`, its `dpPercentControl`/`dpPercentState`/`flipState`/`dpWorkState` options, and the new work-state values to `config.schema.json` (the type existed in code but was missing from the Config UI form).
|
|
8
9
|
* [+] **Garage door: support DASPI "Passage" openers.** Set `"manufacturer": "Daspi"` on a `GarageDoor` device to select its data-points (`dpAction` `1`, `dpStatus` `7`, still overridable). DASPI reports state as strings on DP `7` (`full_opened`/`opening`/`open_softstop`/`full_closed`/`closing`/`close_softstop`) and takes capitalized `Open`/`Close` commands on DP `1`; the soft-stop phases map to HomeKit's Opening/Closing so the tile animates correctly mid-travel.
|
|
9
10
|
* [+] **Tuya Cloud is now a transparent, global fallback for every device.** What started as an experiment to reach battery-powered "sleepy" irrigation timers (which never appear on the LAN) is now a general, optional fallback: add a top-level `cloud` credentials block once and the plugin keeps a single Tuya Cloud/MQTT session alive in the background, falling back to it whenever a device can't be reached on the LAN — a flaky moment, or hardware that's never local. The plugin stays **LAN-first** (local is always tried first and preferred) and cloud remains **strictly opt-in** (nothing runs unless credentials are present).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-tuya-plus",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0-dev.116",
|
|
4
4
|
"description": "A community-maintained Homebridge plugin for controlling Tuya devices locally over LAN, with an optional Tuya Cloud fallback for whatever the LAN can't reach. Includes new features, fixes, and updated device support. PRs welcome: if it runs, it ships (almost).",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
],
|
|
44
44
|
"engines": {
|
|
45
45
|
"homebridge": "^1.8.0 || ^2.0.0-beta.0",
|
|
46
|
-
"node": "^20.18.0 || ^22.10.0 || ^24.0.0"
|
|
46
|
+
"node": "^20.18.0 || ^22.10.0 || ^24.0.0 || ^26.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@eslint/js": "^9.30.1",
|