matterbridge-bthome 1.0.0 → 1.0.1
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/CHANGELOG.md +13 -0
- package/bin/bthome.js +0 -1
- package/dist/module.js +3 -3
- package/npm-shrinkwrap.json +6 -6
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,19 @@ If you like this project and find it useful, please consider giving it a star on
|
|
|
8
8
|
<img src="bmc-button.svg" alt="Buy me a coffee" width="120">
|
|
9
9
|
</a>
|
|
10
10
|
|
|
11
|
+
## [1.0.1] - 2025-11-14
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- [package]: Updated dependencies.
|
|
16
|
+
- [package]: Bumped package to automator v.2.0.12.
|
|
17
|
+
- [package]: Updated to the current Matterbridge signatures.
|
|
18
|
+
- [jest]: Updated jestHelpers to v.1.0.12.
|
|
19
|
+
|
|
20
|
+
<a href="https://www.buymeacoffee.com/luligugithub">
|
|
21
|
+
<img src="bmc-button.svg" alt="Buy me a coffee" width="80">
|
|
22
|
+
</a>
|
|
23
|
+
|
|
11
24
|
## [1.0.0] - 2025-10-28
|
|
12
25
|
|
|
13
26
|
### Changed
|
package/bin/bthome.js
CHANGED
package/dist/module.js
CHANGED
|
@@ -111,7 +111,7 @@ export class Platform extends MatterbridgeDynamicPlatform {
|
|
|
111
111
|
this.setSelectDevice(device.mac, device.localName, undefined, 'ble');
|
|
112
112
|
if (!this.validateDevice(device.mac, true))
|
|
113
113
|
return;
|
|
114
|
-
const matterbridgeDevice = new MatterbridgeEndpoint([bridgedNode], {
|
|
114
|
+
const matterbridgeDevice = new MatterbridgeEndpoint([bridgedNode], { id: 'BTHome ' + device.mac }, this.config.debug).createDefaultBridgedDeviceBasicInformationClusterServer('BTHome ' + device.mac, device.mac, this.matterbridge.aggregatorVendorId, this.matterbridge.aggregatorVendorName, 'BTHomeDevice');
|
|
115
115
|
for (const property in device.data) {
|
|
116
116
|
const [name, index] = property.split(':');
|
|
117
117
|
const converter = this.converter.find((converter) => converter.reading === name);
|
|
@@ -119,11 +119,11 @@ export class Platform extends MatterbridgeDynamicPlatform {
|
|
|
119
119
|
this.setSelectDeviceEntity(device.mac, property, `${name}${index ? ' n. ' + index : ''}`, 'ble');
|
|
120
120
|
const child = matterbridgeDevice.addChildDeviceType(property, converter.deviceType, index
|
|
121
121
|
? {
|
|
122
|
-
|
|
122
|
+
id: property,
|
|
123
123
|
tagList: [{ mfgCode: null, namespaceId: NumberTag.Zero.namespaceId, tag: parseInt(index), label: null }],
|
|
124
124
|
}
|
|
125
125
|
: {
|
|
126
|
-
|
|
126
|
+
id: property,
|
|
127
127
|
});
|
|
128
128
|
if (converter.cluster === 'PowerSource')
|
|
129
129
|
child.createDefaultPowerSourceReplaceableBatteryClusterServer();
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge-bthome",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "matterbridge-bthome",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.1",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@stoprocent/noble": "2.3.
|
|
12
|
+
"@stoprocent/noble": "2.3.8",
|
|
13
13
|
"node-ansi-logger": "3.1.1",
|
|
14
14
|
"node-persist-manager": "2.0.0"
|
|
15
15
|
},
|
|
@@ -341,9 +341,9 @@
|
|
|
341
341
|
}
|
|
342
342
|
},
|
|
343
343
|
"node_modules/@stoprocent/noble": {
|
|
344
|
-
"version": "2.3.
|
|
345
|
-
"resolved": "https://registry.npmjs.org/@stoprocent/noble/-/noble-2.3.
|
|
346
|
-
"integrity": "sha512-
|
|
344
|
+
"version": "2.3.8",
|
|
345
|
+
"resolved": "https://registry.npmjs.org/@stoprocent/noble/-/noble-2.3.8.tgz",
|
|
346
|
+
"integrity": "sha512-lunSM1+Mfpfthe9fE8NQ/7rp/6fEvqLxzSPeqKR4j91QljtOd7SxxaWi7We2mIHbRDJ1joE7ydMRuaLvK5VMBw==",
|
|
347
347
|
"hasInstallScript": true,
|
|
348
348
|
"license": "MIT",
|
|
349
349
|
"dependencies": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge-bthome",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Matterbridge BTHome plugin",
|
|
5
5
|
"author": "https://github.com/Luligu",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"node": ">=20.0.0 <21.0.0 || >=22.0.0 <23.0.0 || >=24.0.0 <25.0.0"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@stoprocent/noble": "2.3.
|
|
60
|
+
"@stoprocent/noble": "2.3.8",
|
|
61
61
|
"node-ansi-logger": "3.1.1",
|
|
62
62
|
"node-persist-manager": "2.0.0"
|
|
63
63
|
}
|