Skip to content

Commit

Permalink
v3.2.1
Browse files Browse the repository at this point in the history
## [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
  • Loading branch information
donavanbecker committed Oct 22, 2024
1 parent a24f3ab commit 4b5b4e9
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 3 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,20 @@

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

## [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**: https://github.com/OpenWonderLabs/node-switchbot/compare/v3.2.0...v3.2.1

## [3.2.0](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v3.2.0) (2024-10-21)

### What's Changed
- Add basic support for Meter Pro
- Fix Noble import issue
- Housekeeping and update dependencies

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

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "node-switchbot",
"type": "module",
"version": "3.2.0",
"version": "3.2.1",
"description": "The node-switchbot is a Node.js module which allows you to control your Switchbot Devices through Bluetooth (BLE).",
"author": "OpenWonderLabs (https://github.com/OpenWonderLabs)",
"license": "MIT",
Expand Down
2 changes: 2 additions & 0 deletions src/types/devicelist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ export type meter = device & {}

export type meterPlus = device & {}

export type meterPro = device & {}

export type outdoorMeter = device & {}

export type lock = device & {
Expand Down
6 changes: 6 additions & 0 deletions src/types/devicestatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ export type meterPlusStatus = deviceStatus & {
humidity: number
}

export type meterProStatus = deviceStatus & {
temperature: number
battery: number
humidity: number
}

export type outdoorMeterStatus = deviceStatus & {
battery: number
temperature: number
Expand Down
6 changes: 6 additions & 0 deletions src/types/devicewebhookstatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ export type meterPlusWebhookContext = deviceWebhookContext & {
humidity: number
}

export type meterProWebhookContext = deviceWebhookContext & {
temperature: number
scale: 'CELSIUS' | 'FAHRENHEIT'
humidity: number
}

export type outdoorMeterWebhookContext = deviceWebhookContext & {
temperature: number
scale: 'CELSIUS' | 'FAHRENHEIT'
Expand Down
1 change: 1 addition & 0 deletions src/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export declare interface SwitchBotBLEDevice {
Humidifier: DeviceInfo
Meter: DeviceInfo
MeterPlus: DeviceInfo
MeterPro: DeviceInfo
Hub2: DeviceInfo
OutdoorMeter: DeviceInfo
MotionSensor: DeviceInfo
Expand Down

0 comments on commit 4b5b4e9

Please sign in to comment.