Skip to content

Commit 4b5b4e9

Browse files
committed
v3.2.1
## [3.2.1](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v3.2.1) (2024-10-21) ### What's Changed - Add more Meter Pro types - Housekeeping and update dependencies **Full Changelog**: v3.2.0...v3.2.1
1 parent a24f3ab commit 4b5b4e9

File tree

7 files changed

+27
-3
lines changed

7 files changed

+27
-3
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,20 @@
22

33
All notable changes to this project will be documented in this file. This project uses [Semantic Versioning](https://semver.org/)
44

5+
## [3.2.1](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v3.2.1) (2024-10-21)
6+
7+
### What's Changed
8+
- Add more Meter Pro types
9+
- Housekeeping and update dependencies
10+
11+
**Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v3.2.0...v3.2.1
12+
513
## [3.2.0](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v3.2.0) (2024-10-21)
614

715
### What's Changed
816
- Add basic support for Meter Pro
917
- Fix Noble import issue
18+
- Housekeeping and update dependencies
1019

1120
**Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v3.1.1...v3.2.0
1221

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "node-switchbot",
33
"type": "module",
4-
"version": "3.2.0",
4+
"version": "3.2.1",
55
"description": "The node-switchbot is a Node.js module which allows you to control your Switchbot Devices through Bluetooth (BLE).",
66
"author": "OpenWonderLabs (https://github.com/OpenWonderLabs)",
77
"license": "MIT",

src/types/devicelist.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ export type meter = device & {}
3939

4040
export type meterPlus = device & {}
4141

42+
export type meterPro = device & {}
43+
4244
export type outdoorMeter = device & {}
4345

4446
export type lock = device & {

src/types/devicestatus.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ export type meterPlusStatus = deviceStatus & {
4545
humidity: number
4646
}
4747

48+
export type meterProStatus = deviceStatus & {
49+
temperature: number
50+
battery: number
51+
humidity: number
52+
}
53+
4854
export type outdoorMeterStatus = deviceStatus & {
4955
battery: number
5056
temperature: number

src/types/devicewebhookstatus.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ export type meterPlusWebhookContext = deviceWebhookContext & {
103103
humidity: number
104104
}
105105

106+
export type meterProWebhookContext = deviceWebhookContext & {
107+
temperature: number
108+
scale: 'CELSIUS' | 'FAHRENHEIT'
109+
humidity: number
110+
}
111+
106112
export type outdoorMeterWebhookContext = deviceWebhookContext & {
107113
temperature: number
108114
scale: 'CELSIUS' | 'FAHRENHEIT'

src/types/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export declare interface SwitchBotBLEDevice {
2222
Humidifier: DeviceInfo
2323
Meter: DeviceInfo
2424
MeterPlus: DeviceInfo
25+
MeterPro: DeviceInfo
2526
Hub2: DeviceInfo
2627
OutdoorMeter: DeviceInfo
2728
MotionSensor: DeviceInfo

0 commit comments

Comments
 (0)