node-red-contrib-symi-mesh 1.9.11 → 1.9.12

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/README.md CHANGED
@@ -681,6 +681,14 @@ RS485通信桥接,支持Modbus协议透传与自定义指令映射。
681
681
 
682
682
  ## 更新日志
683
683
 
684
+ ### v1.9.12 (2026-04-10)
685
+
686
+ #### 安装兼容性修复(必须升级)
687
+ - 降低 `engines` 要求:`node >= 18.0.0`、`npm >= 8.0.0`、`node-red >= 3.0.0`(原 `node >= 22.0.0`、`npm >= 10.0.0`、`node-red >= 4.0.0`),解决 Node.js 20.x / Node-RED 3.x 环境下 `EBADENGINE` 安装失败问题。
688
+
689
+ #### RS485 同步节点修复
690
+ - 修复 `symi-rs485-sync` 节点 `gateway` 字段未初始化导致 `registerSyncDevice` 逻辑永远不执行的问题。
691
+
684
692
  ### v1.9.11 (2026-03-30)
685
693
 
686
694
  #### 关闭 KNX->Mesh 后的 Mesh->KNX 反写回
@@ -13,6 +13,7 @@ module.exports = function(RED) {
13
13
  silenceNode(node, { prefix: "RS485Sync" });
14
14
 
15
15
  node.name = config.name;
16
+ node.gateway = RED.nodes.getNode(config.gateway);
16
17
  node.rs485ConfigA = RED.nodes.getNode(config.rs485ConfigA);
17
18
  node.rs485ConfigB = RED.nodes.getNode(config.rs485ConfigB);
18
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-symi-mesh",
3
- "version": "1.9.11",
3
+ "version": "1.9.12",
4
4
  "description": "Node-RED节点集合,用于通过TCP/串口连接Symi蓝牙Mesh网关,支持Home Assistant MQTT Discovery自动发现和云端数据同步",
5
5
  "main": "nodes/symi-gateway.js",
6
6
  "scripts": {
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "license": "MIT",
38
38
  "node-red": {
39
- "version": ">=4.0.0",
39
+ "version": ">=3.0.0",
40
40
  "nodes": {
41
41
  "symi-gateway": "nodes/symi-gateway.js",
42
42
  "symi-device": "nodes/symi-device.js",
@@ -59,8 +59,8 @@
59
59
  "serialport": "^12.0.0"
60
60
  },
61
61
  "engines": {
62
- "node": ">=22.0.0",
63
- "npm": ">=10.0.0"
62
+ "node": ">=18.0.0",
63
+ "npm": ">=8.0.0"
64
64
  },
65
65
  "files": [
66
66
  "lib/",