node-switchbot 3.6.0-beta.0 → 3.6.0-beta.2
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 +26 -0
- package/dist/device.d.ts +158 -53
- package/dist/device.d.ts.map +1 -1
- package/dist/device.js +319 -100
- package/dist/device.js.map +1 -1
- package/dist/device.test.d.ts +2 -0
- package/dist/device.test.d.ts.map +1 -0
- package/dist/device.test.js +152 -0
- package/dist/device.test.js.map +1 -0
- package/dist/index.d.ts +4 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -7
- package/dist/index.js.map +1 -1
- package/dist/parameter-checker.d.ts +1 -0
- package/dist/parameter-checker.d.ts.map +1 -1
- package/dist/parameter-checker.js +19 -11
- package/dist/parameter-checker.js.map +1 -1
- package/dist/parameter-checker.test.d.ts +2 -0
- package/dist/parameter-checker.test.d.ts.map +1 -0
- package/dist/parameter-checker.test.js +56 -0
- package/dist/parameter-checker.test.js.map +1 -0
- package/dist/settings.d.ts.map +1 -1
- package/dist/settings.js +21 -16
- package/dist/settings.js.map +1 -1
- package/dist/settings.test.js +13 -1
- package/dist/settings.test.js.map +1 -1
- package/dist/switchbot-ble.d.ts +7 -4
- package/dist/switchbot-ble.d.ts.map +1 -1
- package/dist/switchbot-ble.js +77 -37
- package/dist/switchbot-ble.js.map +1 -1
- package/dist/switchbot-ble.test.d.ts +2 -0
- package/dist/switchbot-ble.test.d.ts.map +1 -0
- package/dist/switchbot-ble.test.js +32 -0
- package/dist/switchbot-ble.test.js.map +1 -0
- package/dist/switchbot-openapi.d.ts +4 -7
- package/dist/switchbot-openapi.d.ts.map +1 -1
- package/dist/switchbot-openapi.js +19 -10
- package/dist/switchbot-openapi.js.map +1 -1
- package/dist/switchbot-openapi.test.d.ts +2 -0
- package/dist/switchbot-openapi.test.d.ts.map +1 -0
- package/dist/switchbot-openapi.test.js +36 -0
- package/dist/switchbot-openapi.test.js.map +1 -0
- package/dist/types/ble-guards.d.ts +12 -0
- package/dist/types/ble-guards.d.ts.map +1 -0
- package/dist/types/ble-guards.js +10 -0
- package/dist/types/ble-guards.js.map +1 -0
- package/dist/types/ble-guards.test.d.ts +2 -0
- package/dist/types/ble-guards.test.d.ts.map +1 -0
- package/dist/types/ble-guards.test.js +62 -0
- package/dist/types/ble-guards.test.js.map +1 -0
- package/dist/types/{bledevicestatus.d.ts → ble.d.ts} +97 -116
- package/dist/types/ble.d.ts.map +1 -0
- package/dist/types/ble.js +2 -0
- package/dist/types/ble.js.map +1 -0
- package/dist/types/openapi.d.ts +560 -0
- package/dist/types/openapi.d.ts.map +1 -0
- package/dist/types/openapi.js +3 -0
- package/dist/types/openapi.js.map +1 -0
- package/docs/assets/hierarchy.js +1 -1
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/Advertising.html +4 -4
- package/docs/classes/ErrorUtils.html +25 -0
- package/docs/classes/ParameterChecker.html +69 -0
- package/docs/classes/SwitchBotBLE.html +8 -10
- package/docs/classes/SwitchBotOpenAPI.html +9 -9
- package/docs/classes/SwitchbotDevice.html +12 -12
- package/docs/classes/ValidationUtils.html +51 -0
- package/docs/classes/WoBlindTilt.html +22 -22
- package/docs/classes/WoBulb.html +20 -20
- package/docs/classes/WoCeilingLight.html +24 -24
- package/docs/classes/WoContact.html +14 -14
- package/docs/classes/WoCurtain.html +19 -19
- package/docs/classes/WoHand.html +19 -19
- package/docs/classes/WoHub2.html +14 -14
- package/docs/classes/WoHumi.html +21 -21
- package/docs/classes/WoHumi2.html +21 -21
- package/docs/classes/WoIOSensorTH.html +14 -14
- package/docs/classes/WoKeypad.html +14 -14
- package/docs/classes/WoLeak.html +14 -14
- package/docs/classes/WoPlugMiniJP.html +19 -19
- package/docs/classes/WoPlugMiniUS.html +19 -19
- package/docs/classes/WoPresence.html +14 -14
- package/docs/classes/WoRelaySwitch1.html +16 -16
- package/docs/classes/WoRelaySwitch1PM.html +16 -16
- package/docs/classes/WoRemote.html +14 -14
- package/docs/classes/WoSensorTH.html +12 -12
- package/docs/classes/WoSensorTHPlus.html +12 -12
- package/docs/classes/WoSensorTHPro.html +12 -12
- package/docs/classes/WoSensorTHProCO2.html +12 -12
- package/docs/classes/WoSmartLock.html +24 -24
- package/docs/classes/WoSmartLockPro.html +24 -24
- package/docs/classes/WoStrip.html +21 -21
- package/docs/enums/LogLevel.html +2 -2
- package/docs/enums/SwitchBotBLEModel.html +2 -2
- package/docs/enums/SwitchBotBLEModelFriendlyName.html +2 -2
- package/docs/enums/SwitchBotBLEModelName.html +2 -2
- package/docs/enums/SwitchBotModel.html +2 -2
- package/docs/functions/updateBaseURL.html +3 -0
- package/docs/hierarchy.html +1 -1
- package/docs/interfaces/AdvertisementData.html +2 -2
- package/docs/interfaces/Chars.html +2 -2
- package/docs/interfaces/ColorLightServiceDataBase.html +17 -0
- package/docs/interfaces/Device.html +7 -0
- package/docs/interfaces/DeviceList.html +2 -0
- package/docs/interfaces/ErrorObject.html +2 -2
- package/docs/interfaces/LockBaseServiceData.html +15 -0
- package/docs/interfaces/NobleTypes.html +2 -2
- package/docs/interfaces/Params.html +2 -2
- package/docs/interfaces/PlugMiniServiceDataBase.html +12 -0
- package/docs/interfaces/PushRequest.html +5 -0
- package/docs/interfaces/{pushResponse.html → PushResponse.html} +3 -2
- package/docs/interfaces/PushResponseBody.html +3 -0
- package/docs/interfaces/Rule.html +2 -2
- package/docs/interfaces/ServiceData.html +2 -2
- package/docs/interfaces/SwitchBotBLEDevice.html +2 -2
- package/docs/interfaces/SwitchBotScanner.html +6 -0
- package/docs/interfaces/TemperatureServiceDataBase.html +10 -0
- package/docs/interfaces/WebhookDetail.html +2 -2
- package/docs/interfaces/ad.html +2 -2
- package/docs/interfaces/body.html +2 -2
- package/docs/interfaces/deleteWebhookResponse.html +2 -2
- package/docs/interfaces/deviceStatus.html +2 -2
- package/docs/interfaces/deviceStatusRequest.html +2 -2
- package/docs/interfaces/deviceWebhook.html +2 -2
- package/docs/interfaces/deviceWebhookContext.html +2 -2
- package/docs/interfaces/devices.html +2 -2
- package/docs/interfaces/infraredRemoteList.html +2 -2
- package/docs/interfaces/irdevice.html +2 -2
- package/docs/interfaces/queryWebhookResponse.html +2 -2
- package/docs/interfaces/setupWebhookResponse.html +2 -2
- package/docs/interfaces/updateWebhookResponse.html +2 -2
- package/docs/interfaces/webhookRequest.html +2 -2
- package/docs/modules.html +1 -1
- package/docs/types/BLEDeviceServiceData.html +1 -0
- package/docs/types/BatteryCirculatorFan.html +1 -0
- package/docs/types/BatteryCirculatorFanServiceData.html +1 -0
- package/docs/types/{batteryCirculatorFanStatus.html → BatteryCirculatorFanStatus.html} +1 -1
- package/docs/types/{blindTilt.html → BlindTilt.html} +1 -1
- package/docs/types/BlindTiltServiceData.html +1 -0
- package/docs/types/{blindTiltStatus.html → BlindTiltStatus.html} +1 -1
- package/docs/types/{bot.html → Bot.html} +1 -1
- package/docs/types/BotServiceData.html +1 -0
- package/docs/types/{ceilingLight.html → CeilingLight.html} +1 -1
- package/docs/types/{ceilingLightPro.html → CeilingLightPro.html} +1 -1
- package/docs/types/CeilingLightProServiceData.html +1 -0
- package/docs/types/CeilingLightServiceData.html +1 -0
- package/docs/types/{circulatorFanStatus.html → CirculatorFanStatus.html} +1 -1
- package/docs/types/{colorBulb.html → ColorBulb.html} +1 -1
- package/docs/types/ColorBulbServiceData.html +1 -0
- package/docs/types/CommandType.html +2 -0
- package/docs/types/{contactSensor.html → ContactSensor.html} +1 -1
- package/docs/types/ContactSensorServiceData.html +1 -0
- package/docs/types/{curtain.html → Curtain.html} +1 -1
- package/docs/types/{curtain3.html → Curtain3.html} +1 -1
- package/docs/types/Curtain3ServiceData.html +1 -0
- package/docs/types/CurtainServiceData.html +1 -0
- package/docs/types/{floorCleaningRobotS10.html → FloorCleaningRobotS10.html} +1 -1
- package/docs/types/{hub2.html → Hub2.html} +1 -1
- package/docs/types/Hub2ServiceData.html +1 -0
- package/docs/types/{hub2Status.html → Hub2Status.html} +1 -1
- package/docs/types/{stripLight.html → Humidifier.html} +1 -1
- package/docs/types/Humidifier2ServiceData.html +1 -0
- package/docs/types/{humidifier2Status.html → Humidifier2Status.html} +1 -1
- package/docs/types/HumidifierServiceData.html +1 -0
- package/docs/types/{humidifierStatus.html → HumidifierStatus.html} +1 -1
- package/docs/types/{indoorCam.html → IndoorCam.html} +1 -1
- package/docs/types/{keypad.html → Keypad.html} +1 -1
- package/docs/types/KeypadDetectorServiceData.html +1 -0
- package/docs/types/{keypadTouch.html → KeypadTouch.html} +1 -1
- package/docs/types/{lock.html → Lock.html} +1 -1
- package/docs/types/{lockPro.html → LockPro.html} +1 -1
- package/docs/types/LockProServiceData.html +1 -0
- package/docs/types/LockServiceData.html +1 -0
- package/docs/types/MacAddress.html +1 -1
- package/docs/types/{meter.html → Meter.html} +1 -1
- package/docs/types/{meterPlus.html → MeterPlus.html} +1 -1
- package/docs/types/MeterPlusServiceData.html +1 -0
- package/docs/types/{meterPro.html → MeterPro.html} +1 -1
- package/docs/types/MeterProCO2ServiceData.html +1 -0
- package/docs/types/MeterProServiceData.html +1 -0
- package/docs/types/MeterServiceData.html +1 -0
- package/docs/types/{motionSensor.html → MotionSensor.html} +1 -1
- package/docs/types/MotionSensorServiceData.html +1 -0
- package/docs/types/{outdoorMeter.html → OutdoorMeter.html} +1 -1
- package/docs/types/OutdoorMeterServiceData.html +1 -0
- package/docs/types/{humidifier.html → PantiltCam.html} +1 -1
- package/docs/types/{pantiltCam2k.html → PantiltCam2k.html} +1 -1
- package/docs/types/{plug.html → Plug.html} +1 -1
- package/docs/types/{plugMini.html → PlugMini.html} +1 -1
- package/docs/types/PlugMiniJPServiceData.html +1 -0
- package/docs/types/PlugMiniUSServiceData.html +1 -0
- package/docs/types/RelaySwitch1PMServiceData.html +1 -0
- package/docs/types/RelaySwitch1ServiceData.html +1 -0
- package/docs/types/{remote.html → Remote.html} +1 -1
- package/docs/types/RemoteServiceData.html +1 -0
- package/docs/types/RobotVacuumCleanerS1.html +1 -0
- package/docs/types/{robotVacuumCleanerS1Plus.html → RobotVacuumCleanerS1Plus.html} +1 -1
- package/docs/types/RobotVacuumCleanerServiceData.html +1 -0
- package/docs/types/{pantiltCam.html → StripLight.html} +1 -1
- package/docs/types/StripLightServiceData.html +1 -0
- package/docs/types/{waterLeakDetector.html → WaterLeakDetector.html} +1 -1
- package/docs/types/WaterLeakDetectorServiceData.html +1 -0
- package/docs/types/batteryCirculatorFanWebhookContext.html +1 -1
- package/docs/types/blindTiltWebhookContext.html +1 -1
- package/docs/types/botStatus.html +1 -1
- package/docs/types/botWebhookContext.html +1 -1
- package/docs/types/ceilingLightProStatus.html +1 -1
- package/docs/types/ceilingLightProWebhookContext.html +1 -1
- package/docs/types/ceilingLightStatus.html +1 -1
- package/docs/types/ceilingLightWebhookContext.html +1 -1
- package/docs/types/circulatorFanWebhookContext.html +1 -1
- package/docs/types/colorBulbStatus.html +1 -1
- package/docs/types/colorBulbWebhookContext.html +1 -1
- package/docs/types/contactSensorStatus.html +1 -1
- package/docs/types/contactSensorWebhookContext.html +1 -1
- package/docs/types/curtain3WebhookContext.html +1 -1
- package/docs/types/curtainStatus.html +1 -1
- package/docs/types/curtainWebhookContext.html +1 -1
- package/docs/types/floorCleaningRobotS10Status.html +1 -1
- package/docs/types/floorCleaningRobotS10WebhookContext.html +1 -1
- package/docs/types/hub2WebhookContext.html +1 -1
- package/docs/types/humidifier2WebhookContext.html +1 -1
- package/docs/types/humidifierWebhookContext.html +1 -1
- package/docs/types/indoorCameraWebhookContext.html +1 -1
- package/docs/types/keypadTouchWebhookContext.html +1 -1
- package/docs/types/keypadWebhookContext.html +1 -1
- package/docs/types/lockProStatus.html +1 -1
- package/docs/types/lockProWebhookContext.html +1 -1
- package/docs/types/lockStatus.html +1 -1
- package/docs/types/lockWebhookContext.html +1 -1
- package/docs/types/meterPlusStatus.html +1 -1
- package/docs/types/meterPlusWebhookContext.html +1 -1
- package/docs/types/meterProCO2Status.html +1 -1
- package/docs/types/meterProCO2WebhookContext.html +1 -1
- package/docs/types/meterProStatus.html +1 -1
- package/docs/types/meterProWebhookContext.html +1 -1
- package/docs/types/meterStatus.html +1 -1
- package/docs/types/meterWebhookContext.html +1 -1
- package/docs/types/motionSensorStatus.html +1 -1
- package/docs/types/motionSensorWebhookContext.html +1 -1
- package/docs/types/onadvertisement.html +1 -1
- package/docs/types/ondiscover.html +1 -1
- package/docs/types/outdoorMeterStatus.html +1 -1
- package/docs/types/outdoorMeterWebhookContext.html +1 -1
- package/docs/types/panTiltCamWebhookContext.html +1 -1
- package/docs/types/plugMiniJPWebhookContext.html +1 -1
- package/docs/types/plugMiniStatus.html +1 -1
- package/docs/types/plugMiniUSWebhookContext.html +1 -1
- package/docs/types/plugStatus.html +1 -1
- package/docs/types/plugWebhookContext.html +1 -1
- package/docs/types/relaySwitch1Context.html +1 -1
- package/docs/types/relaySwitch1PMContext.html +1 -1
- package/docs/types/relaySwitch1PMStatus.html +1 -1
- package/docs/types/relaySwitch1Status.html +1 -1
- package/docs/types/robotVacuumCleanerS1PlusStatus.html +1 -1
- package/docs/types/robotVacuumCleanerS1PlusWebhookContext.html +1 -1
- package/docs/types/robotVacuumCleanerS1Status.html +1 -1
- package/docs/types/robotVacuumCleanerS1WebhookContext.html +1 -1
- package/docs/types/stripLightStatus.html +1 -1
- package/docs/types/stripLightWebhookContext.html +1 -1
- package/docs/types/waterLeakDetectorStatus.html +1 -1
- package/docs/types/waterLeakDetectorWebhookContext.html +1 -1
- package/docs/variables/parameterChecker.html +1 -0
- package/docs/variables/urls.html +1 -0
- package/package.json +6 -6
- package/dist/types/bledevicestatus.d.ts.map +0 -1
- package/dist/types/bledevicestatus.js +0 -2
- package/dist/types/bledevicestatus.js.map +0 -1
- package/dist/types/devicelist.d.ts +0 -90
- package/dist/types/devicelist.d.ts.map +0 -1
- package/dist/types/devicelist.js +0 -2
- package/dist/types/devicelist.js.map +0 -1
- package/dist/types/devicepush.d.ts +0 -13
- package/dist/types/devicepush.d.ts.map +0 -1
- package/dist/types/devicepush.js +0 -2
- package/dist/types/devicepush.js.map +0 -1
- package/dist/types/deviceresponse.d.ts +0 -12
- package/dist/types/deviceresponse.d.ts.map +0 -1
- package/dist/types/deviceresponse.js +0 -2
- package/dist/types/deviceresponse.js.map +0 -1
- package/dist/types/devicestatus.d.ts +0 -194
- package/dist/types/devicestatus.d.ts.map +0 -1
- package/dist/types/devicestatus.js +0 -3
- package/dist/types/devicestatus.js.map +0 -1
- package/dist/types/devicewebhookstatus.d.ts +0 -236
- package/dist/types/devicewebhookstatus.d.ts.map +0 -1
- package/dist/types/devicewebhookstatus.js +0 -2
- package/dist/types/devicewebhookstatus.js.map +0 -1
- package/dist/types/irdevicelist.d.ts +0 -10
- package/dist/types/irdevicelist.d.ts.map +0 -1
- package/dist/types/irdevicelist.js +0 -2
- package/dist/types/irdevicelist.js.map +0 -1
- package/docs/interfaces/bodyChange.html +0 -4
- package/docs/interfaces/device.html +0 -7
- package/docs/interfaces/deviceList.html +0 -2
- package/docs/interfaces/switchbot.html +0 -3
- package/docs/types/batteryCirculatorFan.html +0 -1
- package/docs/types/batteryCirculatorFanServiceData.html +0 -1
- package/docs/types/blindTiltServiceData.html +0 -1
- package/docs/types/botServiceData.html +0 -1
- package/docs/types/ceilingLightProServiceData.html +0 -1
- package/docs/types/ceilingLightServiceData.html +0 -1
- package/docs/types/colorBulbServiceData.html +0 -1
- package/docs/types/contactSensorServiceData.html +0 -1
- package/docs/types/curtain3ServiceData.html +0 -1
- package/docs/types/curtainServiceData.html +0 -1
- package/docs/types/hub2ServiceData.html +0 -1
- package/docs/types/humidifier2ServiceData.html +0 -1
- package/docs/types/humidifierServiceData.html +0 -1
- package/docs/types/keypadDetectorServiceData.html +0 -1
- package/docs/types/lockProServiceData.html +0 -1
- package/docs/types/lockServiceData.html +0 -1
- package/docs/types/meterPlusServiceData.html +0 -1
- package/docs/types/meterProCO2ServiceData.html +0 -1
- package/docs/types/meterProServiceData.html +0 -1
- package/docs/types/meterServiceData.html +0 -1
- package/docs/types/motionSensorServiceData.html +0 -1
- package/docs/types/outdoorMeterServiceData.html +0 -1
- package/docs/types/plugMiniJPServiceData.html +0 -1
- package/docs/types/plugMiniUSServiceData.html +0 -1
- package/docs/types/relaySwitch1PMServiceData.html +0 -1
- package/docs/types/relaySwitch1ServiceData.html +0 -1
- package/docs/types/remoteServiceData.html +0 -1
- package/docs/types/robotVacuumCleanerS1.html +0 -1
- package/docs/types/robotVacuumCleanerServiceData.html +0 -1
- package/docs/types/stripLightServiceData.html +0 -1
- package/docs/types/waterLeakDetectorServiceData.html +0 -1
- package/jest.config.js +0 -3
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import type { MacAddress, SwitchBotBLEModel, SwitchBotBLEModelFriendlyName, SwitchBotBLEModelName } from '../device.js';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
/**
|
|
3
|
+
* BLE discovery and wait methods for SwitchBot devices.
|
|
4
|
+
*/
|
|
5
|
+
export interface SwitchBotScanner {
|
|
6
|
+
/** Discover BLE devices based on filter criteria */
|
|
7
|
+
discover: (args: {
|
|
8
|
+
duration?: number;
|
|
5
9
|
model: string;
|
|
6
10
|
quick: boolean;
|
|
7
11
|
id?: MacAddress;
|
|
8
|
-
}) => Promise<
|
|
9
|
-
|
|
12
|
+
}) => Promise<unknown>;
|
|
13
|
+
/** Wait for given milliseconds */
|
|
14
|
+
wait: (ms: number) => void;
|
|
10
15
|
}
|
|
11
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Common service data across BLE devices.
|
|
18
|
+
*/
|
|
19
|
+
interface BLEServiceData {
|
|
12
20
|
model: SwitchBotBLEModel;
|
|
13
21
|
modelName: SwitchBotBLEModelName;
|
|
14
22
|
modelFriendlyName: SwitchBotBLEModelFriendlyName;
|
|
15
23
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
mode: boolean;
|
|
21
|
-
state: boolean;
|
|
22
|
-
battery: number;
|
|
23
|
-
};
|
|
24
|
-
export type colorBulbServiceData = serviceData & {
|
|
25
|
-
model: SwitchBotBLEModel.ColorBulb;
|
|
26
|
-
modelName: SwitchBotBLEModelName.ColorBulb;
|
|
27
|
-
modelFriendlyName: SwitchBotBLEModelFriendlyName.ColorBulb;
|
|
24
|
+
/**
|
|
25
|
+
* Base interface for color-controllable devices.
|
|
26
|
+
*/
|
|
27
|
+
export interface ColorLightServiceDataBase extends BLEServiceData {
|
|
28
28
|
color_temperature: number;
|
|
29
29
|
power: boolean;
|
|
30
30
|
state: boolean;
|
|
@@ -37,8 +37,58 @@ export type colorBulbServiceData = serviceData & {
|
|
|
37
37
|
color_mode: number;
|
|
38
38
|
speed: number;
|
|
39
39
|
loop_index: number;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Base interface for temperature-humidity meter devices.
|
|
43
|
+
*/
|
|
44
|
+
export interface TemperatureServiceDataBase extends BLEServiceData {
|
|
45
|
+
celsius: number;
|
|
46
|
+
fahrenheit: number;
|
|
47
|
+
fahrenheit_mode: boolean;
|
|
48
|
+
humidity: number;
|
|
49
|
+
battery: number;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Base interface for mini plug devices (US/JP share same schema).
|
|
53
|
+
*/
|
|
54
|
+
export interface PlugMiniServiceDataBase extends BLEServiceData {
|
|
55
|
+
state: string;
|
|
56
|
+
delay: boolean;
|
|
57
|
+
timer: boolean;
|
|
58
|
+
syncUtcTime: boolean;
|
|
59
|
+
wifiRssi: number;
|
|
60
|
+
overload: boolean;
|
|
61
|
+
currentPower: number;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Base interface for lock-style devices.
|
|
65
|
+
*/
|
|
66
|
+
export interface LockBaseServiceData extends BLEServiceData {
|
|
67
|
+
battery: number;
|
|
68
|
+
calibration: boolean;
|
|
69
|
+
status: string;
|
|
70
|
+
update_from_secondary_lock: boolean;
|
|
71
|
+
door_open: boolean;
|
|
72
|
+
double_lock_mode: boolean;
|
|
73
|
+
unclosed_alarm: boolean;
|
|
74
|
+
unlocked_alarm: boolean;
|
|
75
|
+
auto_lock_paused: boolean;
|
|
76
|
+
night_latch: boolean;
|
|
77
|
+
}
|
|
78
|
+
export type BotServiceData = BLEServiceData & {
|
|
79
|
+
model: SwitchBotBLEModel.Bot;
|
|
80
|
+
modelName: SwitchBotBLEModelName.Bot;
|
|
81
|
+
modelFriendlyName: SwitchBotBLEModelFriendlyName.Bot;
|
|
82
|
+
mode: boolean;
|
|
83
|
+
state: boolean;
|
|
84
|
+
battery: number;
|
|
40
85
|
};
|
|
41
|
-
export type
|
|
86
|
+
export type ColorBulbServiceData = ColorLightServiceDataBase & {
|
|
87
|
+
model: SwitchBotBLEModel.ColorBulb;
|
|
88
|
+
modelName: SwitchBotBLEModelName.ColorBulb;
|
|
89
|
+
modelFriendlyName: SwitchBotBLEModelFriendlyName.ColorBulb;
|
|
90
|
+
};
|
|
91
|
+
export type ContactSensorServiceData = BLEServiceData & {
|
|
42
92
|
model: SwitchBotBLEModel.ContactSensor;
|
|
43
93
|
modelName: SwitchBotBLEModelName.ContactSensor;
|
|
44
94
|
modelFriendlyName: SwitchBotBLEModelFriendlyName.ContactSensor;
|
|
@@ -51,7 +101,7 @@ export type contactSensorServiceData = serviceData & {
|
|
|
51
101
|
button_count: number;
|
|
52
102
|
doorState: string;
|
|
53
103
|
};
|
|
54
|
-
export type
|
|
104
|
+
export type CurtainServiceData = BLEServiceData & {
|
|
55
105
|
model: SwitchBotBLEModel.Curtain;
|
|
56
106
|
modelName: SwitchBotBLEModelName.Curtain;
|
|
57
107
|
modelFriendlyName: SwitchBotBLEModelFriendlyName.Curtain;
|
|
@@ -62,7 +112,7 @@ export type curtainServiceData = serviceData & {
|
|
|
62
112
|
lightLevel: number;
|
|
63
113
|
deviceChain: number;
|
|
64
114
|
};
|
|
65
|
-
export type
|
|
115
|
+
export type Curtain3ServiceData = BLEServiceData & {
|
|
66
116
|
model: SwitchBotBLEModel.Curtain3;
|
|
67
117
|
modelName: SwitchBotBLEModelName.Curtain3;
|
|
68
118
|
modelFriendlyName: SwitchBotBLEModelFriendlyName.Curtain3;
|
|
@@ -73,104 +123,48 @@ export type curtain3ServiceData = serviceData & {
|
|
|
73
123
|
lightLevel: number;
|
|
74
124
|
deviceChain: number;
|
|
75
125
|
};
|
|
76
|
-
export type
|
|
126
|
+
export type StripLightServiceData = ColorLightServiceDataBase & {
|
|
77
127
|
model: SwitchBotBLEModel.StripLight;
|
|
78
128
|
modelName: SwitchBotBLEModelName.StripLight;
|
|
79
129
|
modelFriendlyName: SwitchBotBLEModelFriendlyName.StripLight;
|
|
80
|
-
power: boolean;
|
|
81
|
-
state: boolean;
|
|
82
|
-
red: number;
|
|
83
|
-
green: number;
|
|
84
|
-
blue: number;
|
|
85
|
-
brightness: number;
|
|
86
|
-
delay: number;
|
|
87
|
-
preset: number;
|
|
88
|
-
color_mode: number;
|
|
89
|
-
speed: number;
|
|
90
|
-
loop_index: number;
|
|
91
130
|
};
|
|
92
|
-
export type
|
|
131
|
+
export type LockServiceData = LockBaseServiceData & {
|
|
93
132
|
model: SwitchBotBLEModel.Lock;
|
|
94
133
|
modelName: SwitchBotBLEModelName.Lock;
|
|
95
134
|
modelFriendlyName: SwitchBotBLEModelFriendlyName.Lock;
|
|
96
|
-
battery: number;
|
|
97
|
-
calibration: boolean;
|
|
98
|
-
status: string;
|
|
99
|
-
update_from_secondary_lock: boolean;
|
|
100
|
-
door_open: boolean;
|
|
101
|
-
double_lock_mode: boolean;
|
|
102
|
-
unclosed_alarm: boolean;
|
|
103
|
-
unlocked_alarm: boolean;
|
|
104
|
-
auto_lock_paused: boolean;
|
|
105
|
-
night_latch: boolean;
|
|
106
135
|
};
|
|
107
|
-
export type
|
|
136
|
+
export type LockProServiceData = LockBaseServiceData & {
|
|
108
137
|
model: SwitchBotBLEModel.LockPro;
|
|
109
138
|
modelName: SwitchBotBLEModelName.LockPro;
|
|
110
139
|
modelFriendlyName: SwitchBotBLEModelFriendlyName.LockPro;
|
|
111
|
-
battery: number;
|
|
112
|
-
calibration: boolean;
|
|
113
|
-
status: string;
|
|
114
|
-
update_from_secondary_lock: boolean;
|
|
115
|
-
door_open: boolean;
|
|
116
|
-
double_lock_mode: boolean;
|
|
117
|
-
unclosed_alarm: boolean;
|
|
118
|
-
unlocked_alarm: boolean;
|
|
119
|
-
auto_lock_paused: boolean;
|
|
120
|
-
night_latch: boolean;
|
|
121
140
|
};
|
|
122
|
-
export type
|
|
141
|
+
export type MeterServiceData = TemperatureServiceDataBase & {
|
|
123
142
|
model: SwitchBotBLEModel.Meter;
|
|
124
143
|
modelName: SwitchBotBLEModelName.Meter;
|
|
125
144
|
modelFriendlyName: SwitchBotBLEModelFriendlyName.Meter;
|
|
126
|
-
celsius: number;
|
|
127
|
-
fahrenheit: number;
|
|
128
|
-
fahrenheit_mode: boolean;
|
|
129
|
-
humidity: number;
|
|
130
|
-
battery: number;
|
|
131
145
|
};
|
|
132
|
-
export type
|
|
146
|
+
export type MeterPlusServiceData = TemperatureServiceDataBase & {
|
|
133
147
|
model: SwitchBotBLEModel.MeterPlus;
|
|
134
148
|
modelName: SwitchBotBLEModelName.MeterPlus;
|
|
135
149
|
modelFriendlyName: SwitchBotBLEModelFriendlyName.MeterPlus;
|
|
136
|
-
celsius: number;
|
|
137
|
-
fahrenheit: number;
|
|
138
|
-
fahrenheit_mode: boolean;
|
|
139
|
-
humidity: number;
|
|
140
|
-
battery: number;
|
|
141
150
|
};
|
|
142
|
-
export type
|
|
151
|
+
export type MeterProServiceData = TemperatureServiceDataBase & {
|
|
143
152
|
model: SwitchBotBLEModel.MeterPro;
|
|
144
153
|
modelName: SwitchBotBLEModelName.MeterPro;
|
|
145
154
|
modelFriendlyName: SwitchBotBLEModelFriendlyName.MeterPro;
|
|
146
|
-
celsius: number;
|
|
147
|
-
fahrenheit: number;
|
|
148
|
-
fahrenheit_mode: boolean;
|
|
149
|
-
humidity: number;
|
|
150
|
-
battery: number;
|
|
151
155
|
};
|
|
152
|
-
export type
|
|
156
|
+
export type MeterProCO2ServiceData = TemperatureServiceDataBase & {
|
|
153
157
|
model: SwitchBotBLEModel.MeterProCO2;
|
|
154
158
|
modelName: SwitchBotBLEModelName.MeterProCO2;
|
|
155
159
|
modelFriendlyName: SwitchBotBLEModelFriendlyName.MeterProCO2;
|
|
156
|
-
celsius: number;
|
|
157
|
-
fahrenheit: number;
|
|
158
|
-
fahrenheit_mode: boolean;
|
|
159
|
-
humidity: number;
|
|
160
|
-
battery: number;
|
|
161
160
|
co2: number;
|
|
162
161
|
};
|
|
163
|
-
export type
|
|
162
|
+
export type OutdoorMeterServiceData = TemperatureServiceDataBase & {
|
|
164
163
|
model: SwitchBotBLEModel.OutdoorMeter;
|
|
165
164
|
modelName: SwitchBotBLEModelName.OutdoorMeter;
|
|
166
165
|
modelFriendlyName: SwitchBotBLEModelFriendlyName.OutdoorMeter;
|
|
167
|
-
celsius: number;
|
|
168
|
-
fahrenheit: number;
|
|
169
|
-
fahrenheit_mode: boolean;
|
|
170
|
-
humidity: number;
|
|
171
|
-
battery: number;
|
|
172
166
|
};
|
|
173
|
-
export type
|
|
167
|
+
export type MotionSensorServiceData = BLEServiceData & {
|
|
174
168
|
model: SwitchBotBLEModel.MotionSensor;
|
|
175
169
|
modelName: SwitchBotBLEModelName.MotionSensor;
|
|
176
170
|
modelFriendlyName: SwitchBotBLEModelFriendlyName.MotionSensor;
|
|
@@ -183,31 +177,17 @@ export type motionSensorServiceData = serviceData & {
|
|
|
183
177
|
lightLevel: string;
|
|
184
178
|
is_light: boolean;
|
|
185
179
|
};
|
|
186
|
-
export type
|
|
180
|
+
export type PlugMiniUSServiceData = PlugMiniServiceDataBase & {
|
|
187
181
|
model: SwitchBotBLEModel.PlugMiniUS;
|
|
188
182
|
modelName: SwitchBotBLEModelName.PlugMini;
|
|
189
183
|
modelFriendlyName: SwitchBotBLEModelFriendlyName.PlugMini;
|
|
190
|
-
state: string;
|
|
191
|
-
delay: boolean;
|
|
192
|
-
timer: boolean;
|
|
193
|
-
syncUtcTime: boolean;
|
|
194
|
-
wifiRssi: number;
|
|
195
|
-
overload: boolean;
|
|
196
|
-
currentPower: number;
|
|
197
184
|
};
|
|
198
|
-
export type
|
|
185
|
+
export type PlugMiniJPServiceData = PlugMiniServiceDataBase & {
|
|
199
186
|
model: SwitchBotBLEModel.PlugMiniJP;
|
|
200
187
|
modelName: SwitchBotBLEModelName.PlugMini;
|
|
201
188
|
modelFriendlyName: SwitchBotBLEModelFriendlyName.PlugMini;
|
|
202
|
-
state: string;
|
|
203
|
-
delay: boolean;
|
|
204
|
-
timer: boolean;
|
|
205
|
-
syncUtcTime: boolean;
|
|
206
|
-
wifiRssi: number;
|
|
207
|
-
overload: boolean;
|
|
208
|
-
currentPower: number;
|
|
209
189
|
};
|
|
210
|
-
export type
|
|
190
|
+
export type BlindTiltServiceData = BLEServiceData & {
|
|
211
191
|
model: SwitchBotBLEModel.BlindTilt;
|
|
212
192
|
modelName: SwitchBotBLEModelName.BlindTilt;
|
|
213
193
|
modelFriendlyName: SwitchBotBLEModelFriendlyName.BlindTilt;
|
|
@@ -218,7 +198,7 @@ export type blindTiltServiceData = serviceData & {
|
|
|
218
198
|
lightLevel: number;
|
|
219
199
|
sequenceNumber: number;
|
|
220
200
|
};
|
|
221
|
-
export type
|
|
201
|
+
export type CeilingLightServiceData = BLEServiceData & {
|
|
222
202
|
model: SwitchBotBLEModel.CeilingLight;
|
|
223
203
|
modelName: SwitchBotBLEModelName.CeilingLight;
|
|
224
204
|
modelFriendlyName: SwitchBotBLEModelFriendlyName.CeilingLight;
|
|
@@ -235,7 +215,7 @@ export type ceilingLightServiceData = serviceData & {
|
|
|
235
215
|
speed: number;
|
|
236
216
|
loop_index: number;
|
|
237
217
|
};
|
|
238
|
-
export type
|
|
218
|
+
export type CeilingLightProServiceData = BLEServiceData & {
|
|
239
219
|
model: SwitchBotBLEModel.CeilingLightPro;
|
|
240
220
|
modelName: SwitchBotBLEModelName.CeilingLightPro;
|
|
241
221
|
modelFriendlyName: SwitchBotBLEModelFriendlyName.CeilingLightPro;
|
|
@@ -252,7 +232,7 @@ export type ceilingLightProServiceData = serviceData & {
|
|
|
252
232
|
speed: number;
|
|
253
233
|
loop_index: number;
|
|
254
234
|
};
|
|
255
|
-
export type
|
|
235
|
+
export type Hub2ServiceData = BLEServiceData & {
|
|
256
236
|
model: SwitchBotBLEModel.Hub2;
|
|
257
237
|
modelName: SwitchBotBLEModelName.Hub2;
|
|
258
238
|
modelFriendlyName: SwitchBotBLEModelFriendlyName.Hub2;
|
|
@@ -262,14 +242,14 @@ export type hub2ServiceData = serviceData & {
|
|
|
262
242
|
humidity: number;
|
|
263
243
|
lightLevel: number;
|
|
264
244
|
};
|
|
265
|
-
export type
|
|
245
|
+
export type BatteryCirculatorFanServiceData = BLEServiceData & {
|
|
266
246
|
model: SwitchBotBLEModel.Unknown;
|
|
267
247
|
modelName: SwitchBotBLEModelName.Unknown;
|
|
268
248
|
modelFriendlyName: SwitchBotBLEModelFriendlyName.Unknown;
|
|
269
249
|
state: string;
|
|
270
250
|
fanSpeed: number;
|
|
271
251
|
};
|
|
272
|
-
export type
|
|
252
|
+
export type WaterLeakDetectorServiceData = BLEServiceData & {
|
|
273
253
|
model: SwitchBotBLEModel.Leak;
|
|
274
254
|
modelName: SwitchBotBLEModelName.Leak;
|
|
275
255
|
modelFriendlyName: SwitchBotBLEModelFriendlyName.Leak;
|
|
@@ -278,7 +258,7 @@ export type waterLeakDetectorServiceData = serviceData & {
|
|
|
278
258
|
battery: number;
|
|
279
259
|
low_battery: boolean;
|
|
280
260
|
};
|
|
281
|
-
export type
|
|
261
|
+
export type HumidifierServiceData = BLEServiceData & {
|
|
282
262
|
model: SwitchBotBLEModel.Humidifier;
|
|
283
263
|
modelName: SwitchBotBLEModelName.Humidifier;
|
|
284
264
|
modelFriendlyName: SwitchBotBLEModelFriendlyName.Humidifier;
|
|
@@ -287,7 +267,7 @@ export type humidifierServiceData = serviceData & {
|
|
|
287
267
|
percentage: number;
|
|
288
268
|
humidity: number;
|
|
289
269
|
};
|
|
290
|
-
export type
|
|
270
|
+
export type Humidifier2ServiceData = BLEServiceData & {
|
|
291
271
|
model: SwitchBotBLEModel.Humidifier2;
|
|
292
272
|
modelName: SwitchBotBLEModelName.Humidifier2;
|
|
293
273
|
modelFriendlyName: SwitchBotBLEModelFriendlyName.Humidifier2;
|
|
@@ -305,14 +285,14 @@ export type humidifier2ServiceData = serviceData & {
|
|
|
305
285
|
filterAlert: boolean;
|
|
306
286
|
waterLevel: number;
|
|
307
287
|
};
|
|
308
|
-
export type
|
|
288
|
+
export type RobotVacuumCleanerServiceData = BLEServiceData & {
|
|
309
289
|
model: SwitchBotBLEModel.Unknown;
|
|
310
290
|
modelName: SwitchBotBLEModelName.Unknown;
|
|
311
291
|
modelFriendlyName: SwitchBotBLEModelFriendlyName.Unknown;
|
|
312
292
|
state: string;
|
|
313
293
|
battery: number;
|
|
314
294
|
};
|
|
315
|
-
export type
|
|
295
|
+
export type KeypadDetectorServiceData = BLEServiceData & {
|
|
316
296
|
model: SwitchBotBLEModel.Keypad;
|
|
317
297
|
modelName: SwitchBotBLEModelName.Keypad;
|
|
318
298
|
modelFriendlyName: SwitchBotBLEModelFriendlyName.Keypad;
|
|
@@ -321,7 +301,7 @@ export type keypadDetectorServiceData = serviceData & {
|
|
|
321
301
|
battery: number;
|
|
322
302
|
low_battery: boolean;
|
|
323
303
|
};
|
|
324
|
-
export type
|
|
304
|
+
export type RelaySwitch1ServiceData = BLEServiceData & {
|
|
325
305
|
model: SwitchBotBLEModel.RelaySwitch1;
|
|
326
306
|
modelName: SwitchBotBLEModelName.RelaySwitch1;
|
|
327
307
|
modelFriendlyName: SwitchBotBLEModelFriendlyName.RelaySwitch1;
|
|
@@ -329,7 +309,7 @@ export type relaySwitch1ServiceData = serviceData & {
|
|
|
329
309
|
state: boolean;
|
|
330
310
|
sequence_number: number;
|
|
331
311
|
};
|
|
332
|
-
export type
|
|
312
|
+
export type RelaySwitch1PMServiceData = BLEServiceData & {
|
|
333
313
|
model: SwitchBotBLEModel.RelaySwitch1PM;
|
|
334
314
|
modelName: SwitchBotBLEModelName.RelaySwitch1PM;
|
|
335
315
|
modelFriendlyName: SwitchBotBLEModelFriendlyName.RelaySwitch1PM;
|
|
@@ -340,11 +320,12 @@ export type relaySwitch1PMServiceData = serviceData & {
|
|
|
340
320
|
voltage: number;
|
|
341
321
|
current: number;
|
|
342
322
|
};
|
|
343
|
-
export type
|
|
323
|
+
export type RemoteServiceData = BLEServiceData & {
|
|
344
324
|
model: SwitchBotBLEModel.Remote;
|
|
345
325
|
modelName: SwitchBotBLEModelName.Remote;
|
|
346
326
|
modelFriendlyName: SwitchBotBLEModelFriendlyName.Remote;
|
|
347
327
|
battery: number;
|
|
348
328
|
};
|
|
329
|
+
export type BLEDeviceServiceData = BatteryCirculatorFanServiceData | BlindTiltServiceData | BotServiceData | CeilingLightServiceData | CeilingLightProServiceData | ColorBulbServiceData | ContactSensorServiceData | Curtain3ServiceData | CurtainServiceData | Hub2ServiceData | KeypadDetectorServiceData | LockProServiceData | LockServiceData | MeterPlusServiceData | MeterProCO2ServiceData | MeterProServiceData | MeterServiceData | MotionSensorServiceData | OutdoorMeterServiceData | PlugMiniJPServiceData | PlugMiniUSServiceData | RelaySwitch1PMServiceData | RelaySwitch1ServiceData | RemoteServiceData | RobotVacuumCleanerServiceData | StripLightServiceData | WaterLeakDetectorServiceData | Humidifier2ServiceData | HumidifierServiceData;
|
|
349
330
|
export {};
|
|
350
|
-
//# sourceMappingURL=
|
|
331
|
+
//# sourceMappingURL=ble.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ble.d.ts","sourceRoot":"","sources":["../../src/types/ble.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,6BAA6B,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AAEvH;;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