node-switchbot 6.1.1 → 6.1.3
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 +18 -0
- package/dist/ble.d.ts.map +1 -1
- package/dist/ble.js +21 -10
- package/dist/ble.js.map +1 -1
- package/dist/devices/index.d.ts +8 -2
- package/dist/devices/index.d.ts.map +1 -1
- package/dist/devices/index.js +4 -2
- package/dist/devices/index.js.map +1 -1
- package/dist/devices/wo-art-frame2.d.ts +65 -0
- package/dist/devices/wo-art-frame2.d.ts.map +1 -0
- package/dist/devices/wo-art-frame2.js +195 -0
- package/dist/devices/wo-art-frame2.js.map +1 -0
- package/dist/devices/wo-e-ink-photo-magnet.d.ts +8 -0
- package/dist/devices/wo-e-ink-photo-magnet.d.ts.map +1 -0
- package/dist/devices/wo-e-ink-photo-magnet.js +12 -0
- package/dist/devices/wo-e-ink-photo-magnet.js.map +1 -0
- package/dist/devices/wo-lock-pro.d.ts +15 -0
- package/dist/devices/wo-lock-pro.d.ts.map +1 -1
- package/dist/devices/wo-lock-pro.js +34 -0
- package/dist/devices/wo-lock-pro.js.map +1 -1
- package/dist/devices/wo-roller-shade.d.ts +27 -1
- package/dist/devices/wo-roller-shade.d.ts.map +1 -1
- package/dist/devices/wo-roller-shade.js +49 -1
- package/dist/devices/wo-roller-shade.js.map +1 -1
- package/dist/devices/wo-sensor-th-pro-co2.d.ts +50 -2
- package/dist/devices/wo-sensor-th-pro-co2.d.ts.map +1 -1
- package/dist/devices/wo-sensor-th-pro-co2.js +106 -2
- package/dist/devices/wo-sensor-th-pro-co2.js.map +1 -1
- package/dist/devices/wo-sensor-th-pro.d.ts +255 -1
- package/dist/devices/wo-sensor-th-pro.d.ts.map +1 -1
- package/dist/devices/wo-sensor-th-pro.js +556 -1
- package/dist/devices/wo-sensor-th-pro.js.map +1 -1
- package/dist/index.d.ts +7 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/settings.d.ts +7 -0
- package/dist/settings.d.ts.map +1 -1
- package/dist/settings.js +16 -1
- package/dist/settings.js.map +1 -1
- package/dist/switchbot.d.ts.map +1 -1
- package/dist/switchbot.js +4 -0
- package/dist/switchbot.js.map +1 -1
- package/dist/types/device.d.ts +13 -0
- package/dist/types/device.d.ts.map +1 -1
- package/dist/utils/curtain-advertisement.d.ts +21 -0
- package/dist/utils/curtain-advertisement.d.ts.map +1 -0
- package/dist/utils/curtain-advertisement.js +42 -0
- package/dist/utils/curtain-advertisement.js.map +1 -0
- package/dist/utils/image-frame-advertisement.d.ts +25 -0
- package/dist/utils/image-frame-advertisement.d.ts.map +1 -0
- package/dist/utils/image-frame-advertisement.js +31 -0
- package/dist/utils/image-frame-advertisement.js.map +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +2 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/lock-advertisement.d.ts +11 -2
- package/dist/utils/lock-advertisement.d.ts.map +1 -1
- package/dist/utils/lock-advertisement.js +20 -3
- package/dist/utils/lock-advertisement.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,21 @@
|
|
|
2
2
|
*
|
|
3
3
|
* devices/wo-sensor-th-pro-co2.ts: SwitchBot v4.0.0 - Meter Pro CO2
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
5
|
+
import { isInteger, WoSensorTHPro } from './wo-sensor-th-pro.js';
|
|
6
|
+
// BLE commands (pySwitchbot switchbot/devices/meter_pro.py)
|
|
7
|
+
const COMMAND_TRIGGER_CO2_SAMPLING = '570f680b04';
|
|
8
|
+
const COMMAND_START_CO2_CALIBRATION = '570f680b02';
|
|
9
|
+
const COMMAND_GET_USB_POWER_STATE = '570f690b02';
|
|
10
|
+
const COMMAND_GET_CO2_USB_UPDATE_INTERVAL = '570f690b03';
|
|
11
|
+
const COMMAND_SET_CO2_USB_UPDATE_INTERVAL = '570f680b01';
|
|
12
|
+
const COMMAND_GET_CO2_BATTERY_UPDATE_INTERVAL = '570f690b04';
|
|
13
|
+
const COMMAND_SET_CO2_BATTERY_UPDATE_INTERVAL = '570f680b06';
|
|
14
|
+
const COMMAND_GET_CO2_ALARM = '570f69020301';
|
|
15
|
+
const COMMAND_SET_CO2_ALARM = '570f68020301';
|
|
16
|
+
const COMMAND_GET_CO2_LEVEL_THRESHOLDS = '570f69020302';
|
|
17
|
+
const COMMAND_SET_CO2_LEVEL_THRESHOLDS = '570f68020302';
|
|
18
|
+
const u16 = (value) => value.toString(16).padStart(4, '0');
|
|
19
|
+
const isUint16 = (value) => isInteger(value) && value >= 0 && value <= 0xFFFF;
|
|
6
20
|
/**
|
|
7
21
|
* Meter Pro CO2 (Temperature/Humidity/CO2 Sensor)
|
|
8
22
|
*
|
|
@@ -14,8 +28,98 @@ import { WoSensorTH } from './wo-sensor-th.js';
|
|
|
14
28
|
* omitted on the BLE path rather than reported as 0 - a real reading of 0 ppm
|
|
15
29
|
* is not physically meaningful, and a placeholder would be indistinguishable
|
|
16
30
|
* from a working sensor.
|
|
31
|
+
*
|
|
32
|
+
* It has every Meter Pro setting, plus the CO2 controls of pySwitchbot's
|
|
33
|
+
* SwitchbotMeterProCO2 (3.13.0, 3.15.0), which are BLE only.
|
|
17
34
|
*/
|
|
18
|
-
export class WoSensorTHProCO2 extends
|
|
35
|
+
export class WoSensorTHProCO2 extends WoSensorTHPro {
|
|
36
|
+
/** Request a CO2 sample; sent once (pySwitchbot 3.13.0) */
|
|
37
|
+
async triggerCo2Sampling() {
|
|
38
|
+
await this.meterCommand(COMMAND_TRIGGER_CO2_SAMPLING, 'triggerCo2Sampling', { retry: false });
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Start manual CO2 calibration; sent once (pySwitchbot 3.13.0). Place the meter outdoors in a
|
|
42
|
+
* well-ventilated area for one minute first, and keep it still during the five-minute
|
|
43
|
+
* calibration.
|
|
44
|
+
*/
|
|
45
|
+
async startCo2Calibration() {
|
|
46
|
+
await this.meterCommand(COMMAND_START_CO2_CALIBRATION, 'startCo2Calibration', { retry: false });
|
|
47
|
+
}
|
|
48
|
+
/** Whether USB-C power is connected (pySwitchbot 3.13.0) */
|
|
49
|
+
async isUsbPowered() {
|
|
50
|
+
const data = await this.meterCommand(COMMAND_GET_USB_POWER_STATE, 'isUsbPowered', { minLength: 2 });
|
|
51
|
+
if (data[1] !== 0 && data[1] !== 1) {
|
|
52
|
+
throw this.operationError(`Unexpected USB power state ${data[1].toString(16).padStart(2, '0')}`);
|
|
53
|
+
}
|
|
54
|
+
return data[1] === 1;
|
|
55
|
+
}
|
|
56
|
+
/** The CO2 update interval on battery power, in seconds (pySwitchbot 3.13.0) */
|
|
57
|
+
async getCo2BatteryUpdateInterval() {
|
|
58
|
+
return this.getCo2UpdateInterval(COMMAND_GET_CO2_BATTERY_UPDATE_INTERVAL, 'getCo2BatteryUpdateInterval');
|
|
59
|
+
}
|
|
60
|
+
/** Set the CO2 update interval on battery power, 1-65535 seconds (pySwitchbot 3.13.0) */
|
|
61
|
+
async setCo2BatteryUpdateInterval(seconds) {
|
|
62
|
+
await this.setCo2UpdateInterval(COMMAND_SET_CO2_BATTERY_UPDATE_INTERVAL, 'setCo2BatteryUpdateInterval', seconds);
|
|
63
|
+
}
|
|
64
|
+
/** The CO2 update interval on USB power, in seconds (pySwitchbot 3.13.0) */
|
|
65
|
+
async getCo2UsbUpdateInterval() {
|
|
66
|
+
return this.getCo2UpdateInterval(COMMAND_GET_CO2_USB_UPDATE_INTERVAL, 'getCo2UsbUpdateInterval');
|
|
67
|
+
}
|
|
68
|
+
/** Set the CO2 update interval on USB power, 1-65535 seconds (pySwitchbot 3.13.0) */
|
|
69
|
+
async setCo2UsbUpdateInterval(seconds) {
|
|
70
|
+
await this.setCo2UpdateInterval(COMMAND_SET_CO2_USB_UPDATE_INTERVAL, 'setCo2UsbUpdateInterval', seconds);
|
|
71
|
+
}
|
|
72
|
+
async getCo2UpdateInterval(command, operation) {
|
|
73
|
+
const data = await this.meterCommand(command, operation, { minLength: 3 });
|
|
74
|
+
return data.readUInt16BE(1);
|
|
75
|
+
}
|
|
76
|
+
async setCo2UpdateInterval(command, operation, seconds) {
|
|
77
|
+
if (!isInteger(seconds) || seconds < 1 || seconds > 0xFFFF) {
|
|
78
|
+
throw this.operationError('CO2 update interval must be an integer from 1 to 65535 seconds');
|
|
79
|
+
}
|
|
80
|
+
await this.meterCommand(`${command}${u16(seconds)}`, operation);
|
|
81
|
+
}
|
|
82
|
+
/** Read the CO2 alarm conditions, limits in ppm and current alarm status (pySwitchbot 3.15.0) */
|
|
83
|
+
async getCo2Alarm() {
|
|
84
|
+
const data = await this.meterCommand(COMMAND_GET_CO2_ALARM, 'getCo2Alarm', { minLength: 7 });
|
|
85
|
+
return {
|
|
86
|
+
mode: data[1],
|
|
87
|
+
highPpm: data.readUInt16BE(2),
|
|
88
|
+
lowPpm: data.readUInt16BE(4),
|
|
89
|
+
status: data[6] & 0x03,
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Set the CO2 alarm conditions (MeterProCO2AlarmMode flags) and limits in ppm (pySwitchbot
|
|
94
|
+
* 3.15.0). Pass the existing limits when disabling an alarm to keep them configured.
|
|
95
|
+
*/
|
|
96
|
+
async setCo2Alarm(mode, lowPpm, highPpm) {
|
|
97
|
+
if (!isInteger(mode) || mode < 0 || (mode & ~0x0F) !== 0) {
|
|
98
|
+
throw this.operationError(`Invalid CO2 alarm mode ${JSON.stringify(mode)}`);
|
|
99
|
+
}
|
|
100
|
+
if (!isUint16(lowPpm) || !isUint16(highPpm)) {
|
|
101
|
+
throw this.operationError('CO2 alarm limits must be unsigned 16-bit integers');
|
|
102
|
+
}
|
|
103
|
+
if (lowPpm > highPpm) {
|
|
104
|
+
throw this.operationError('Lower CO2 alarm limit must not exceed the upper limit');
|
|
105
|
+
}
|
|
106
|
+
await this.meterCommand(`${COMMAND_SET_CO2_ALARM}${mode.toString(16).padStart(2, '0')}${u16(highPpm)}${u16(lowPpm)}`, 'setCo2Alarm');
|
|
107
|
+
}
|
|
108
|
+
/** Read the green-to-yellow and yellow-to-red CO2 thresholds in ppm (pySwitchbot 3.13.0) */
|
|
109
|
+
async getCo2LevelThresholds() {
|
|
110
|
+
const data = await this.meterCommand(COMMAND_GET_CO2_LEVEL_THRESHOLDS, 'getCo2LevelThresholds', { minLength: 5 });
|
|
111
|
+
return { greenToYellowPpm: data.readUInt16BE(1), yellowToRedPpm: data.readUInt16BE(3) };
|
|
112
|
+
}
|
|
113
|
+
/** Set the green-to-yellow and yellow-to-red CO2 thresholds, in 100 ppm steps (pySwitchbot 3.13.0) */
|
|
114
|
+
async setCo2LevelThresholds(greenToYellowPpm, yellowToRedPpm) {
|
|
115
|
+
if ([greenToYellowPpm, yellowToRedPpm].some(threshold => !isUint16(threshold) || threshold % 100 !== 0)) {
|
|
116
|
+
throw this.operationError('CO2 level thresholds must be unsigned 16-bit integers in 100 ppm steps');
|
|
117
|
+
}
|
|
118
|
+
if (greenToYellowPpm >= yellowToRedPpm) {
|
|
119
|
+
throw this.operationError('The green-to-yellow CO2 threshold must be below the yellow-to-red threshold');
|
|
120
|
+
}
|
|
121
|
+
await this.meterCommand(`${COMMAND_SET_CO2_LEVEL_THRESHOLDS}${u16(greenToYellowPpm)}${u16(yellowToRedPpm)}`, 'setCo2LevelThresholds');
|
|
122
|
+
}
|
|
19
123
|
/**
|
|
20
124
|
* Get device status (BLE-first, API-fallback)
|
|
21
125
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wo-sensor-th-pro-co2.js","sourceRoot":"","sources":["../../src/devices/wo-sensor-th-pro-co2.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"wo-sensor-th-pro-co2.js","sourceRoot":"","sources":["../../src/devices/wo-sensor-th-pro-co2.ts"],"names":[],"mappings":"AAAA;;;GAGG;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;gBACrC,SAAS,EAAE,IAAI,IAAI,EAAE;aACtB,CAAA;QACH,CAAC,CACF,CAAA;IACH,CAAC;CACF"}
|
|
@@ -1,8 +1,262 @@
|
|
|
1
|
+
import { Buffer } from 'node:buffer';
|
|
2
|
+
import { SwitchbotOperationError } from '../errors.js';
|
|
1
3
|
import { WoSensorTH } from './wo-sensor-th.js';
|
|
4
|
+
/** Weather icons on the Meter Pro and Meter Pro CO2 screen (pySwitchbot MeterProWeatherIcon) */
|
|
5
|
+
export declare enum MeterProWeatherIcon {
|
|
6
|
+
None = 0,
|
|
7
|
+
Sunny = 1,
|
|
8
|
+
Cloudy = 2,
|
|
9
|
+
Overcast = 3,
|
|
10
|
+
LightRain = 4,
|
|
11
|
+
HeavyRain = 5,
|
|
12
|
+
LightSnow = 6,
|
|
13
|
+
HeavySnow = 7
|
|
14
|
+
}
|
|
15
|
+
/** Configurable areas of the Meter Pro screen (pySwitchbot MeterProDisplayZone) */
|
|
16
|
+
export declare enum MeterProDisplayZone {
|
|
17
|
+
Middle = 1,
|
|
18
|
+
Bottom = 2
|
|
19
|
+
}
|
|
20
|
+
/** Icon shown next to a display zone (pySwitchbot MeterProZoneIcon) */
|
|
21
|
+
export declare enum MeterProZoneIcon {
|
|
22
|
+
Indoor = 1,
|
|
23
|
+
Outdoor = 2
|
|
24
|
+
}
|
|
25
|
+
/** Where a display zone takes its temperature and humidity from (pySwitchbot MeterProDisplaySource) */
|
|
26
|
+
export declare enum MeterProDisplaySource {
|
|
27
|
+
None = 0,
|
|
28
|
+
Meter = 1,
|
|
29
|
+
MeterPlus = 2,
|
|
30
|
+
IndoorOutdoorMeter = 3,
|
|
31
|
+
/** Hub 2 and Hub Mini Matter */
|
|
32
|
+
Hub = 4,
|
|
33
|
+
/** This device when the MAC is empty, else another Meter Pro */
|
|
34
|
+
MeterPro = 5,
|
|
35
|
+
/** Values written with setWeather */
|
|
36
|
+
Network = 6,
|
|
37
|
+
WeatherStation = 8,
|
|
38
|
+
Hub3 = 9
|
|
39
|
+
}
|
|
40
|
+
/** Date layout on the screen (pySwitchbot MeterProDateFormat) */
|
|
41
|
+
export declare enum MeterProDateFormat {
|
|
42
|
+
MonthDay = 0,
|
|
43
|
+
DayMonth = 1
|
|
44
|
+
}
|
|
45
|
+
/** Current temperature and humidity comfort status (pySwitchbot MeterProComfortStatus) */
|
|
46
|
+
export declare enum MeterProComfortStatus {
|
|
47
|
+
Comfortable = 0,
|
|
48
|
+
Dry = 1,
|
|
49
|
+
Wet = 2,
|
|
50
|
+
Unavailable = 3
|
|
51
|
+
}
|
|
52
|
+
/** How the meter signals a local threshold alarm (pySwitchbot MeterProAlarmMode) */
|
|
53
|
+
export declare enum MeterProAlarmMode {
|
|
54
|
+
Disabled = 0,
|
|
55
|
+
FlashOnly = 1,
|
|
56
|
+
SoundAndFlash = 2
|
|
57
|
+
}
|
|
58
|
+
/** Alarm buzzer volume (pySwitchbot MeterProAlarmVolume) */
|
|
59
|
+
export declare enum MeterProAlarmVolume {
|
|
60
|
+
Off = 1,
|
|
61
|
+
Low = 2,
|
|
62
|
+
Medium = 3,
|
|
63
|
+
High = 4
|
|
64
|
+
}
|
|
65
|
+
/** CO2 alarm conditions, combined as bit flags, and the protocol's custom-setting bit (pySwitchbot MeterProCO2AlarmMode) */
|
|
66
|
+
export declare enum MeterProCO2AlarmMode {
|
|
67
|
+
Disabled = 0,
|
|
68
|
+
Low = 1,
|
|
69
|
+
High = 2,
|
|
70
|
+
InRange = 4,
|
|
71
|
+
Custom = 8
|
|
72
|
+
}
|
|
73
|
+
/** Current CO2 alarm (pySwitchbot MeterProCO2AlarmStatus) */
|
|
74
|
+
export declare enum MeterProCO2AlarmStatus {
|
|
75
|
+
None = 0,
|
|
76
|
+
Low = 1,
|
|
77
|
+
High = 2,
|
|
78
|
+
InRange = 3
|
|
79
|
+
}
|
|
80
|
+
/** Local alarm conditions for the temperature and humidity limits, combined as bit flags (pySwitchbot MeterProTemperatureHumidityAlarmMode) */
|
|
81
|
+
export declare enum MeterProTemperatureHumidityAlarmMode {
|
|
82
|
+
Disabled = 0,
|
|
83
|
+
TemperatureLow = 1,
|
|
84
|
+
TemperatureHigh = 2,
|
|
85
|
+
TemperatureInRange = 4,
|
|
86
|
+
HumidityLow = 16,
|
|
87
|
+
HumidityHigh = 32,
|
|
88
|
+
HumidityInRange = 64
|
|
89
|
+
}
|
|
90
|
+
/** Current alarm state of the temperature or humidity measurement (pySwitchbot MeterProTemperatureHumidityAlarmStatus) */
|
|
91
|
+
export declare enum MeterProTemperatureHumidityAlarmStatus {
|
|
92
|
+
None = 0,
|
|
93
|
+
Low = 1,
|
|
94
|
+
High = 2,
|
|
95
|
+
InRange = 3
|
|
96
|
+
}
|
|
97
|
+
/** Comfort mode, limits and status (getComfortLevel) */
|
|
98
|
+
export interface MeterProComfortLevel {
|
|
99
|
+
/** Custom limits; false for the default comfort mode */
|
|
100
|
+
custom: boolean;
|
|
101
|
+
temperatureLowC: number;
|
|
102
|
+
temperatureHighC: number;
|
|
103
|
+
humidityLow: number;
|
|
104
|
+
humidityHigh: number;
|
|
105
|
+
status: MeterProComfortStatus;
|
|
106
|
+
}
|
|
107
|
+
/** Local temperature and humidity alarm (getTemperatureHumidityAlarm) */
|
|
108
|
+
export interface MeterProTemperatureHumidityAlarm {
|
|
109
|
+
/** MeterProTemperatureHumidityAlarmMode flags */
|
|
110
|
+
mode: number;
|
|
111
|
+
temperatureLowC: number;
|
|
112
|
+
temperatureHighC: number;
|
|
113
|
+
humidityLow: number;
|
|
114
|
+
humidityHigh: number;
|
|
115
|
+
temperatureStatus: MeterProTemperatureHumidityAlarmStatus;
|
|
116
|
+
humidityStatus: MeterProTemperatureHumidityAlarmStatus;
|
|
117
|
+
}
|
|
118
|
+
/** Local alarm signalling (getAlarmSettings); volume undefined for an unrecognised value */
|
|
119
|
+
export interface MeterProAlarmSettings {
|
|
120
|
+
mode: MeterProAlarmMode;
|
|
121
|
+
volume?: MeterProAlarmVolume;
|
|
122
|
+
}
|
|
123
|
+
/** Temperature (C) and humidity (%RH) corrections (getCalibration) */
|
|
124
|
+
export interface MeterProCalibration {
|
|
125
|
+
temperature: number;
|
|
126
|
+
humidity: number;
|
|
127
|
+
}
|
|
128
|
+
/** One display zone (getDisplaySettings) */
|
|
129
|
+
export interface MeterProZoneSettings {
|
|
130
|
+
/** undefined when unset or held; an unknown code is kept as its number */
|
|
131
|
+
icon?: MeterProZoneIcon | number;
|
|
132
|
+
/** An unknown code is kept as its number */
|
|
133
|
+
source: MeterProDisplaySource | number;
|
|
134
|
+
/** undefined when the zone shows this device or network data */
|
|
135
|
+
sourceMac?: string;
|
|
136
|
+
}
|
|
137
|
+
/** Screen settings (getDisplaySettings); missing or unknown values are undefined */
|
|
138
|
+
export interface MeterProDisplaySettings {
|
|
139
|
+
middle: MeterProZoneSettings;
|
|
140
|
+
bottom: MeterProZoneSettings;
|
|
141
|
+
dataUpdateInterval?: number;
|
|
142
|
+
dateFormat?: MeterProDateFormat;
|
|
143
|
+
batteryIconAlways?: boolean;
|
|
144
|
+
}
|
|
145
|
+
/** Button functions (getButtonFunctions); undefined for reserved or unknown values */
|
|
146
|
+
export interface MeterProButtonFunctions {
|
|
147
|
+
/** The button switches the temperature unit */
|
|
148
|
+
unitSwitch?: boolean;
|
|
149
|
+
/** The button switches the display source */
|
|
150
|
+
sourceSwitch?: boolean;
|
|
151
|
+
}
|
|
152
|
+
/** Network weather shown on the screen (getWeather) */
|
|
153
|
+
export interface MeterProWeather {
|
|
154
|
+
icon: MeterProWeatherIcon;
|
|
155
|
+
temperatureC: number;
|
|
156
|
+
/** undefined when unset */
|
|
157
|
+
humidity?: number;
|
|
158
|
+
fahrenheitDisplay: boolean;
|
|
159
|
+
}
|
|
160
|
+
/** Weather fields to write (setWeather); omitted fields keep their current value */
|
|
161
|
+
export interface MeterProWeatherUpdate {
|
|
162
|
+
icon?: MeterProWeatherIcon | number;
|
|
163
|
+
/** Celsius, -127.9..127.9, rounded half up to tenths */
|
|
164
|
+
temperatureC?: number;
|
|
165
|
+
/** %RH, 1..99, rounded half up */
|
|
166
|
+
humidity?: number;
|
|
167
|
+
}
|
|
168
|
+
/** An integer, not a boolean or a fractional number */
|
|
169
|
+
export declare function isInteger(value: unknown): value is number;
|
|
170
|
+
/**
|
|
171
|
+
* Encode a Celsius temperature as the meter's two bytes, [tenths, sign << 7 | degrees], with
|
|
172
|
+
* the sign bit set for a positive value (pySwitchbot `_encode_weather_temperature`).
|
|
173
|
+
*/
|
|
174
|
+
export declare function encodeMeterProTemperature(temperatureC: number): [number, number];
|
|
175
|
+
/** Check that a value is one of a numeric enum's values */
|
|
176
|
+
export declare function coerceEnum<E extends Record<string, string | number>>(enumObject: E, value: unknown, name: string, enumName: string): E[keyof E];
|
|
2
177
|
/**
|
|
3
178
|
* Meter Pro (Advanced Temperature/Humidity Sensor)
|
|
4
|
-
*
|
|
179
|
+
*
|
|
180
|
+
* Status comes from advertisements, as for the standard Meter. The settings commands are ported
|
|
181
|
+
* from pySwitchbot's SwitchbotMeterPro (3.12.0-3.15.1) and are BLE only; each throws a
|
|
182
|
+
* SwitchbotOperationError when the meter refuses the command or its reply is invalid. Input is
|
|
183
|
+
* checked before anything is sent.
|
|
5
184
|
*/
|
|
6
185
|
export declare class WoSensorTHPro extends WoSensorTH {
|
|
186
|
+
private weatherQueue;
|
|
187
|
+
/** Throw a SwitchbotOperationError naming this device */
|
|
188
|
+
protected operationError(message: string): SwitchbotOperationError;
|
|
189
|
+
/** Run a check, turning its TypeError/RangeError into a SwitchbotOperationError */
|
|
190
|
+
protected checked<T>(check: () => T): T;
|
|
191
|
+
protected checkBoolean(value: unknown, name: string): void;
|
|
192
|
+
/**
|
|
193
|
+
* Send a meter command and check its reply (pySwitchbot `_validate_result`): status byte 0x01
|
|
194
|
+
* and at least `minLength` bytes. `retry: false` sends once.
|
|
195
|
+
*/
|
|
196
|
+
protected meterCommand(command: string, operation: string, options?: {
|
|
197
|
+
minLength?: number;
|
|
198
|
+
retry?: boolean;
|
|
199
|
+
}): Promise<Buffer>;
|
|
200
|
+
/** Read the comfort mode, limits in C and %RH, and current status (pySwitchbot 3.15.0) */
|
|
201
|
+
getComfortLevel(): Promise<MeterProComfortLevel>;
|
|
202
|
+
/**
|
|
203
|
+
* Set comfort limits in C (rounded half up to tenths) and %RH, or with `custom: false` select
|
|
204
|
+
* the default comfort mode (pySwitchbot 3.15.0)
|
|
205
|
+
*/
|
|
206
|
+
setComfortLevel(temperatureLowC: number, temperatureHighC: number, humidityLow: number, humidityHigh: number, options?: {
|
|
207
|
+
custom?: boolean;
|
|
208
|
+
}): Promise<void>;
|
|
209
|
+
/** Read the local alarm conditions, limits in C and %RH, and both alarm states (pySwitchbot 3.15.0) */
|
|
210
|
+
getTemperatureHumidityAlarm(): Promise<MeterProTemperatureHumidityAlarm>;
|
|
211
|
+
/**
|
|
212
|
+
* Set both sets of local alarm limits and the enabled conditions together (pySwitchbot
|
|
213
|
+
* 3.15.0). `mode` combines MeterProTemperatureHumidityAlarmMode flags.
|
|
214
|
+
*/
|
|
215
|
+
setTemperatureHumidityAlarm(mode: number, temperatureLowC: number, temperatureHighC: number, humidityLow: number, humidityHigh: number): Promise<void>;
|
|
216
|
+
/** Read the local alarm mode and buzzer volume (pySwitchbot 3.15.0) */
|
|
217
|
+
getAlarmSettings(): Promise<MeterProAlarmSettings>;
|
|
218
|
+
/** Set the local alarm mode and, when given, the buzzer volume (pySwitchbot 3.15.0) */
|
|
219
|
+
setAlarmSettings(mode: MeterProAlarmMode, volume?: MeterProAlarmVolume): Promise<void>;
|
|
220
|
+
/** Read the temperature (C) and humidity (%RH) corrections (pySwitchbot 3.14.0) */
|
|
221
|
+
getCalibration(): Promise<MeterProCalibration>;
|
|
222
|
+
/** Set the temperature (C, rounded half up to tenths) and humidity (%RH) corrections (pySwitchbot 3.14.0) */
|
|
223
|
+
setCalibration(temperature: number, humidity: number): Promise<void>;
|
|
224
|
+
/**
|
|
225
|
+
* Read the display zones, data update interval, date format and battery icon (pySwitchbot
|
|
226
|
+
* 3.14.0). Older firmware stops after the MAC addresses; the later fields are then undefined.
|
|
227
|
+
*/
|
|
228
|
+
getDisplaySettings(): Promise<MeterProDisplaySettings>;
|
|
229
|
+
/**
|
|
230
|
+
* Choose what a screen zone shows; an undefined icon keeps the current icon (pySwitchbot
|
|
231
|
+
* 3.14.0). The meter reads the source thermometer over BLE itself. `Network` shows the values
|
|
232
|
+
* written by setWeather; `MeterPro` without a MAC is this meter. The screen applies the change
|
|
233
|
+
* at its next data update.
|
|
234
|
+
*/
|
|
235
|
+
setDisplayZone(zone: MeterProDisplayZone, source: MeterProDisplaySource, sourceMac?: string, icon?: MeterProZoneIcon): Promise<void>;
|
|
236
|
+
/** Set the indoor/outdoor icons of both zones; undefined keeps an icon (pySwitchbot 3.14.0) */
|
|
237
|
+
setZoneIcons(middle?: MeterProZoneIcon, bottom?: MeterProZoneIcon): Promise<void>;
|
|
238
|
+
/** Set the temperature and humidity update interval in seconds; the app offers 300, 600 and 1800 (pySwitchbot 3.14.0) */
|
|
239
|
+
setDataUpdateInterval(seconds: number): Promise<void>;
|
|
240
|
+
/** Set the date format; the app offers it from firmware 1.5 (pySwitchbot 3.14.0) */
|
|
241
|
+
setDateFormat(dateFormat: MeterProDateFormat): Promise<void>;
|
|
242
|
+
/** Show the battery icon always, or only when the battery is low (pySwitchbot 3.14.0) */
|
|
243
|
+
setBatteryIcon(always: boolean): Promise<void>;
|
|
244
|
+
/** Set the default temperature unit shown on the screen (pySwitchbot 3.14.0) */
|
|
245
|
+
setTemperatureUnit(fahrenheit: boolean): Promise<void>;
|
|
246
|
+
/** Read which button actions are allowed (pySwitchbot 3.14.0) */
|
|
247
|
+
getButtonFunctions(): Promise<MeterProButtonFunctions>;
|
|
248
|
+
/** Allow or forbid the button actions; undefined keeps one as is (pySwitchbot 3.14.0) */
|
|
249
|
+
setButtonFunctions(unitSwitch?: boolean, sourceSwitch?: boolean): Promise<void>;
|
|
250
|
+
/** [status][icon][tenths][sign << 7 | degrees][fahrenheit << 7 | humidity]; later bytes are ignored */
|
|
251
|
+
private parseWeather;
|
|
252
|
+
private readWeather;
|
|
253
|
+
/** Read the network weather shown on the screen (pySwitchbot 3.12.0) */
|
|
254
|
+
getWeather(): Promise<MeterProWeather>;
|
|
255
|
+
/**
|
|
256
|
+
* Write the given weather fields and verify them by reading back; omitted fields keep their
|
|
257
|
+
* value (pySwitchbot 3.12.0). This does not change display sources. The read, write and
|
|
258
|
+
* read-back of concurrent calls do not interleave; the write is sent once, never retried.
|
|
259
|
+
*/
|
|
260
|
+
setWeather(update: MeterProWeatherUpdate): Promise<void>;
|
|
7
261
|
}
|
|
8
262
|
//# sourceMappingURL=wo-sensor-th-pro.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wo-sensor-th-pro.d.ts","sourceRoot":"","sources":["../../src/devices/wo-sensor-th-pro.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAE9C;;;GAGG;AACH,qBAAa,aAAc,SAAQ,UAAU;
|
|
1
|
+
{"version":3,"file":"wo-sensor-th-pro.d.ts","sourceRoot":"","sources":["../../src/devices/wo-sensor-th-pro.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEpC,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAA;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAE9C,gGAAgG;AAChG,oBAAY,mBAAmB;IAC7B,IAAI,IAAI;IACR,KAAK,IAAI;IACT,MAAM,IAAI;IACV,QAAQ,IAAI;IACZ,SAAS,IAAI;IACb,SAAS,IAAI;IACb,SAAS,IAAI;IACb,SAAS,IAAI;CACd;AAED,mFAAmF;AACnF,oBAAY,mBAAmB;IAC7B,MAAM,IAAI;IACV,MAAM,IAAI;CACX;AAED,uEAAuE;AACvE,oBAAY,gBAAgB;IAC1B,MAAM,IAAI;IACV,OAAO,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