node-switchbot 3.6.5 → 4.0.0-beta.0
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/.github/npm-version-script-esm.js +97 -0
- package/CHANGELOG.md +586 -0
- package/PRODUCTION_READY.md +135 -0
- package/README.md +92 -0
- package/dist/api.d.ts +130 -0
- package/dist/api.d.ts.map +1 -0
- package/dist/api.js +286 -0
- package/dist/api.js.map +1 -0
- package/dist/ble.d.ts +116 -0
- package/dist/ble.d.ts.map +1 -0
- package/dist/ble.js +430 -0
- package/dist/ble.js.map +1 -0
- package/dist/devices/base.d.ts +146 -0
- package/dist/devices/base.d.ts.map +1 -0
- package/dist/devices/base.js +324 -0
- package/dist/devices/base.js.map +1 -0
- package/dist/devices/index.d.ts +30 -0
- package/dist/devices/index.d.ts.map +1 -0
- package/dist/devices/index.js +34 -0
- package/dist/devices/index.js.map +1 -0
- package/dist/devices/wo-air-purifier-table.d.ts +8 -0
- package/dist/devices/wo-air-purifier-table.d.ts.map +1 -0
- package/dist/devices/wo-air-purifier-table.js +12 -0
- package/dist/devices/wo-air-purifier-table.js.map +1 -0
- package/dist/devices/wo-air-purifier.d.ts +28 -0
- package/dist/devices/wo-air-purifier.d.ts.map +1 -0
- package/dist/devices/wo-air-purifier.js +105 -0
- package/dist/devices/wo-air-purifier.js.map +1 -0
- package/dist/devices/wo-blind-tilt.d.ts +36 -0
- package/dist/devices/wo-blind-tilt.d.ts.map +1 -0
- package/dist/devices/wo-blind-tilt.js +95 -0
- package/dist/devices/wo-blind-tilt.js.map +1 -0
- package/dist/devices/wo-bulb.d.ts +32 -0
- package/dist/devices/wo-bulb.d.ts.map +1 -0
- package/dist/devices/wo-bulb.js +109 -0
- package/dist/devices/wo-bulb.js.map +1 -0
- package/dist/devices/wo-ceiling-light.d.ts +8 -0
- package/dist/devices/wo-ceiling-light.d.ts.map +1 -0
- package/dist/devices/wo-ceiling-light.js +12 -0
- package/dist/devices/wo-ceiling-light.js.map +1 -0
- package/dist/devices/wo-contact.d.ts +12 -0
- package/dist/devices/wo-contact.d.ts.map +1 -0
- package/dist/devices/wo-contact.js +50 -0
- package/dist/devices/wo-contact.js.map +1 -0
- package/dist/devices/wo-curtain.d.ts +28 -0
- package/dist/devices/wo-curtain.d.ts.map +1 -0
- package/dist/devices/wo-curtain.js +82 -0
- package/dist/devices/wo-curtain.js.map +1 -0
- package/dist/devices/wo-hand.d.ts +24 -0
- package/dist/devices/wo-hand.d.ts.map +1 -0
- package/dist/devices/wo-hand.js +70 -0
- package/dist/devices/wo-hand.js.map +1 -0
- package/dist/devices/wo-hub2.d.ts +12 -0
- package/dist/devices/wo-hub2.d.ts.map +1 -0
- package/dist/devices/wo-hub2.js +48 -0
- package/dist/devices/wo-hub2.js.map +1 -0
- package/dist/devices/wo-hub3.d.ts +8 -0
- package/dist/devices/wo-hub3.d.ts.map +1 -0
- package/dist/devices/wo-hub3.js +12 -0
- package/dist/devices/wo-hub3.js.map +1 -0
- package/dist/devices/wo-humi.d.ts +28 -0
- package/dist/devices/wo-humi.d.ts.map +1 -0
- package/dist/devices/wo-humi.js +91 -0
- package/dist/devices/wo-humi.js.map +1 -0
- package/dist/devices/wo-humi2.d.ts +8 -0
- package/dist/devices/wo-humi2.d.ts.map +1 -0
- package/dist/devices/wo-humi2.js +12 -0
- package/dist/devices/wo-humi2.js.map +1 -0
- package/dist/devices/wo-io-sensor-th.d.ts +8 -0
- package/dist/devices/wo-io-sensor-th.d.ts.map +1 -0
- package/dist/devices/wo-io-sensor-th.js +12 -0
- package/dist/devices/wo-io-sensor-th.js.map +1 -0
- package/dist/devices/wo-keypad.d.ts +13 -0
- package/dist/devices/wo-keypad.d.ts.map +1 -0
- package/dist/devices/wo-keypad.js +46 -0
- package/dist/devices/wo-keypad.js.map +1 -0
- package/dist/devices/wo-leak.d.ts +12 -0
- package/dist/devices/wo-leak.d.ts.map +1 -0
- package/dist/devices/wo-leak.js +46 -0
- package/dist/devices/wo-leak.js.map +1 -0
- package/dist/devices/wo-lock-pro.d.ts +24 -0
- package/dist/devices/wo-lock-pro.d.ts.map +1 -0
- package/dist/devices/wo-lock-pro.js +72 -0
- package/dist/devices/wo-lock-pro.js.map +1 -0
- package/dist/devices/wo-lock.d.ts +20 -0
- package/dist/devices/wo-lock.d.ts.map +1 -0
- package/dist/devices/wo-lock.js +64 -0
- package/dist/devices/wo-lock.js.map +1 -0
- package/dist/devices/wo-plug-mini-jp.d.ts +8 -0
- package/dist/devices/wo-plug-mini-jp.d.ts.map +1 -0
- package/dist/devices/wo-plug-mini-jp.js +12 -0
- package/dist/devices/wo-plug-mini-jp.js.map +1 -0
- package/dist/devices/wo-plug-mini-us.d.ts +24 -0
- package/dist/devices/wo-plug-mini-us.d.ts.map +1 -0
- package/dist/devices/wo-plug-mini-us.js +70 -0
- package/dist/devices/wo-plug-mini-us.js.map +1 -0
- package/dist/devices/wo-presence.d.ts +12 -0
- package/dist/devices/wo-presence.d.ts.map +1 -0
- package/dist/devices/wo-presence.js +48 -0
- package/dist/devices/wo-presence.js.map +1 -0
- package/dist/devices/wo-relay-switch-1.d.ts +24 -0
- package/dist/devices/wo-relay-switch-1.d.ts.map +1 -0
- package/dist/devices/wo-relay-switch-1.js +70 -0
- package/dist/devices/wo-relay-switch-1.js.map +1 -0
- package/dist/devices/wo-relay-switch-1pm.d.ts +8 -0
- package/dist/devices/wo-relay-switch-1pm.d.ts.map +1 -0
- package/dist/devices/wo-relay-switch-1pm.js +12 -0
- package/dist/devices/wo-relay-switch-1pm.js.map +1 -0
- package/dist/devices/wo-remote.d.ts +13 -0
- package/dist/devices/wo-remote.d.ts.map +1 -0
- package/dist/devices/wo-remote.js +45 -0
- package/dist/devices/wo-remote.js.map +1 -0
- package/dist/devices/wo-sensor-th-plus.d.ts +8 -0
- package/dist/devices/wo-sensor-th-plus.d.ts.map +1 -0
- package/dist/devices/wo-sensor-th-plus.js +12 -0
- package/dist/devices/wo-sensor-th-plus.js.map +1 -0
- package/dist/devices/wo-sensor-th-pro-co2.d.ts +8 -0
- package/dist/devices/wo-sensor-th-pro-co2.d.ts.map +1 -0
- package/dist/devices/wo-sensor-th-pro-co2.js +12 -0
- package/dist/devices/wo-sensor-th-pro-co2.js.map +1 -0
- package/dist/devices/wo-sensor-th-pro.d.ts +8 -0
- package/dist/devices/wo-sensor-th-pro.d.ts.map +1 -0
- package/dist/devices/wo-sensor-th-pro.js +12 -0
- package/dist/devices/wo-sensor-th-pro.js.map +1 -0
- package/dist/devices/wo-sensor-th.d.ts +12 -0
- package/dist/devices/wo-sensor-th.d.ts.map +1 -0
- package/dist/devices/wo-sensor-th.js +49 -0
- package/dist/devices/wo-sensor-th.js.map +1 -0
- package/dist/devices/wo-strip.d.ts +8 -0
- package/dist/devices/wo-strip.d.ts.map +1 -0
- package/dist/devices/wo-strip.js +12 -0
- package/dist/devices/wo-strip.js.map +1 -0
- package/dist/errors.d.ts +63 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +103 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +10 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -10
- package/dist/index.js.map +1 -1
- package/dist/settings.d.ts +126 -47
- package/dist/settings.d.ts.map +1 -1
- package/dist/settings.js +214 -64
- package/dist/settings.js.map +1 -1
- package/dist/switchbot.d.ts +80 -0
- package/dist/switchbot.d.ts.map +1 -0
- package/dist/switchbot.js +376 -0
- package/dist/switchbot.js.map +1 -0
- package/dist/types/api.d.ts +187 -0
- package/dist/types/api.d.ts.map +1 -0
- package/dist/types/api.js +6 -0
- package/dist/types/api.js.map +1 -0
- package/dist/types/ble.d.ts +246 -343
- package/dist/types/ble.d.ts.map +1 -1
- package/dist/types/ble.js +94 -1
- package/dist/types/ble.js.map +1 -1
- package/dist/types/device.d.ts +209 -0
- package/dist/types/device.d.ts.map +1 -0
- package/dist/types/device.js +6 -0
- package/dist/types/device.js.map +1 -0
- package/dist/types/index.d.ts +115 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +19 -0
- package/dist/types/index.js.map +1 -0
- package/dist/utils/index.d.ts +97 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +206 -0
- package/dist/utils/index.js.map +1 -0
- package/docs/assets/hierarchy.js +1 -1
- package/docs/assets/highlight.css +20 -6
- package/docs/assets/icons.js +1 -1
- package/docs/assets/icons.svg +1 -1
- package/docs/assets/main.js +2 -2
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/assets/style.css +3 -3
- package/docs/classes/APIError.html +6 -0
- package/docs/classes/APINotAvailableError.html +4 -0
- package/docs/classes/BLEConnection.html +17 -0
- package/docs/classes/BLENotAvailableError.html +4 -0
- package/docs/classes/BLEScanner.html +15 -0
- package/docs/classes/CommandFailedError.html +6 -0
- package/docs/classes/ConnectionTimeoutError.html +5 -0
- package/docs/classes/DeviceManager.html +25 -0
- package/docs/classes/DeviceNotFoundError.html +4 -0
- package/docs/classes/DiscoveryError.html +5 -0
- package/docs/classes/OpenAPIClient.html +66 -0
- package/docs/classes/SwitchBot.html +21 -0
- package/docs/classes/SwitchBotDevice.html +28 -0
- package/docs/classes/SwitchBotError.html +4 -0
- package/docs/classes/ValidationError.html +5 -0
- package/docs/classes/WoAirPurifier.html +32 -80
- package/docs/classes/WoAirPurifierTable.html +36 -83
- package/docs/classes/WoBlindTilt.html +34 -73
- package/docs/classes/WoBulb.html +33 -85
- package/docs/classes/WoCeilingLight.html +38 -107
- package/docs/classes/WoContact.html +27 -52
- package/docs/classes/WoCurtain.html +32 -69
- package/docs/classes/WoHand.html +30 -59
- package/docs/classes/WoHub2.html +27 -52
- package/docs/classes/WoHub3.html +28 -52
- package/docs/classes/WoHumi.html +33 -65
- package/docs/classes/WoHumi2.html +36 -67
- package/docs/classes/WoIOSensorTH.html +28 -53
- package/docs/classes/WoKeypad.html +28 -52
- package/docs/classes/WoLeak.html +27 -53
- package/docs/classes/WoPlugMiniJP.html +34 -78
- package/docs/classes/WoPlugMiniUS.html +30 -75
- package/docs/classes/WoPresence.html +27 -60
- package/docs/classes/WoRelaySwitch1.html +31 -55
- package/docs/classes/WoRelaySwitch1PM.html +34 -57
- package/docs/classes/WoRemote.html +28 -52
- package/docs/classes/WoSensorTH.html +27 -46
- package/docs/classes/WoSensorTHPlus.html +28 -46
- package/docs/classes/WoSensorTHPro.html +28 -46
- package/docs/classes/WoSensorTHProCO2.html +28 -46
- package/docs/classes/WoSmartLock.html +29 -111
- package/docs/classes/WoSmartLockPro.html +31 -111
- package/docs/classes/WoStrip.html +38 -94
- package/docs/enums/LogLevel.html +4 -7
- package/docs/enums/SwitchBotBLEModel.html +11 -5
- package/docs/enums/SwitchBotBLEModelName.html +13 -6
- package/docs/functions/updateBaseURL.html +3 -3
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +40 -6
- package/docs/interfaces/APICommandRequest.html +5 -0
- package/docs/interfaces/APICommandResponse.html +5 -0
- package/docs/interfaces/APIDevice.html +18 -0
- package/docs/interfaces/APIDeviceStatus.html +36 -0
- package/docs/interfaces/APIErrorResponse.html +5 -0
- package/docs/interfaces/APIResponse.html +5 -0
- package/docs/interfaces/AirPurifierCommands.html +5 -0
- package/docs/interfaces/AirPurifierServiceData.html +14 -0
- package/docs/interfaces/AirPurifierStatus.html +17 -0
- package/docs/interfaces/BLEAdvertisement.html +6 -0
- package/docs/interfaces/BLEScanOptions.html +10 -0
- package/docs/interfaces/BLEServiceData.html +10 -0
- package/docs/interfaces/BlindTiltCommands.html +7 -0
- package/docs/interfaces/BlindTiltServiceData.html +14 -0
- package/docs/interfaces/BlindTiltStatus.html +15 -0
- package/docs/interfaces/BotCommands.html +4 -0
- package/docs/interfaces/BotServiceData.html +12 -0
- package/docs/interfaces/BotStatus.html +14 -0
- package/docs/interfaces/BulbCommands.html +6 -0
- package/docs/interfaces/BulbServiceData.html +19 -0
- package/docs/interfaces/BulbStatus.html +16 -0
- package/docs/interfaces/CeilingLightCommands.html +6 -0
- package/docs/interfaces/CeilingLightServiceData.html +19 -0
- package/docs/interfaces/CeilingLightStatus.html +16 -0
- package/docs/interfaces/CommandResult.html +12 -0
- package/docs/interfaces/ContactServiceData.html +13 -0
- package/docs/interfaces/ContactStatus.html +15 -0
- package/docs/interfaces/CurtainCommands.html +5 -0
- package/docs/interfaces/CurtainServiceData.html +14 -0
- package/docs/interfaces/CurtainStatus.html +17 -0
- package/docs/interfaces/DeviceInfo.html +26 -0
- package/docs/interfaces/DeviceListResponse.html +4 -0
- package/docs/interfaces/DeviceStatus.html +12 -0
- package/docs/interfaces/DiscoveryOptions.html +14 -0
- package/docs/interfaces/HubServiceData.html +14 -0
- package/docs/interfaces/HubStatus.html +15 -0
- package/docs/interfaces/HumidifierCommands.html +5 -0
- package/docs/interfaces/HumidifierServiceData.html +14 -0
- package/docs/interfaces/HumidifierStatus.html +18 -0
- package/docs/interfaces/KeypadStatus.html +13 -0
- package/docs/interfaces/LeakServiceData.html +11 -0
- package/docs/interfaces/LeakStatus.html +13 -0
- package/docs/interfaces/LockCommands.html +3 -0
- package/docs/interfaces/LockServiceData.html +15 -0
- package/docs/interfaces/LockStatus.html +15 -0
- package/docs/interfaces/MeterServiceData.html +13 -0
- package/docs/interfaces/MeterStatus.html +15 -0
- package/docs/interfaces/MotionServiceData.html +13 -0
- package/docs/interfaces/MotionStatus.html +14 -0
- package/docs/interfaces/PlugCommands.html +4 -0
- package/docs/interfaces/PlugServiceData.html +17 -0
- package/docs/interfaces/PlugStatus.html +16 -0
- package/docs/interfaces/PresenceServiceData.html +12 -0
- package/docs/interfaces/PresenceStatus.html +14 -0
- package/docs/interfaces/RelaySwitchCommands.html +4 -0
- package/docs/interfaces/RelaySwitchServiceData.html +14 -0
- package/docs/interfaces/RelaySwitchStatus.html +16 -0
- package/docs/interfaces/RemoteStatus.html +12 -0
- package/docs/interfaces/SceneListResponse.html +3 -0
- package/docs/interfaces/StripCommands.html +6 -0
- package/docs/interfaces/StripServiceData.html +19 -0
- package/docs/interfaces/StripStatus.html +16 -0
- package/docs/interfaces/SwitchBotConfig.html +18 -0
- package/docs/interfaces/WebhookConfig.html +4 -0
- package/docs/interfaces/WebhookDetails.html +7 -0
- package/docs/interfaces/WebhookQueryResponse.html +5 -0
- package/docs/interfaces/WebhookSetupResponse.html +5 -0
- package/docs/modules.html +1 -1
- package/docs/types/ConnectionType.html +2 -0
- package/docs/types/PhysicalDeviceType.html +2 -0
- package/docs/types/VirtualDeviceType.html +2 -0
- package/docs/variables/urls.html +1 -1
- package/package.json +11 -20
- package/.github/scripts/npm-version-script-esm-auto.js +0 -207
- package/dist/device.d.ts +0 -1577
- package/dist/device.d.ts.map +0 -1
- package/dist/device.js +0 -3493
- package/dist/device.js.map +0 -1
- package/dist/device.test.d.ts +0 -2
- package/dist/device.test.d.ts.map +0 -1
- package/dist/device.test.js +0 -255
- package/dist/device.test.js.map +0 -1
- package/dist/index.test.d.ts +0 -2
- package/dist/index.test.d.ts.map +0 -1
- package/dist/index.test.js +0 -14
- package/dist/index.test.js.map +0 -1
- package/dist/parameter-checker.d.ts +0 -91
- package/dist/parameter-checker.d.ts.map +0 -1
- package/dist/parameter-checker.js +0 -262
- package/dist/parameter-checker.js.map +0 -1
- package/dist/parameter-checker.test.d.ts +0 -2
- package/dist/parameter-checker.test.d.ts.map +0 -1
- package/dist/parameter-checker.test.js +0 -56
- package/dist/parameter-checker.test.js.map +0 -1
- package/dist/settings.test.d.ts +0 -2
- package/dist/settings.test.d.ts.map +0 -1
- package/dist/settings.test.js +0 -61
- package/dist/settings.test.js.map +0 -1
- package/dist/switchbot-ble.d.ts +0 -89
- package/dist/switchbot-ble.d.ts.map +0 -1
- package/dist/switchbot-ble.js +0 -319
- package/dist/switchbot-ble.js.map +0 -1
- package/dist/switchbot-ble.test.d.ts +0 -2
- package/dist/switchbot-ble.test.d.ts.map +0 -1
- package/dist/switchbot-ble.test.js +0 -32
- package/dist/switchbot-ble.test.js.map +0 -1
- package/dist/switchbot-openapi.d.ts +0 -139
- package/dist/switchbot-openapi.d.ts.map +0 -1
- package/dist/switchbot-openapi.js +0 -375
- package/dist/switchbot-openapi.js.map +0 -1
- package/dist/switchbot-openapi.test.d.ts +0 -2
- package/dist/switchbot-openapi.test.d.ts.map +0 -1
- package/dist/switchbot-openapi.test.js +0 -36
- package/dist/switchbot-openapi.test.js.map +0 -1
- package/dist/types/ble-guards.d.ts +0 -12
- package/dist/types/ble-guards.d.ts.map +0 -1
- package/dist/types/ble-guards.js +0 -10
- package/dist/types/ble-guards.js.map +0 -1
- package/dist/types/ble-guards.test.d.ts +0 -2
- package/dist/types/ble-guards.test.d.ts.map +0 -1
- package/dist/types/ble-guards.test.js +0 -62
- package/dist/types/ble-guards.test.js.map +0 -1
- package/dist/types/openapi.d.ts +0 -635
- package/dist/types/openapi.d.ts.map +0 -1
- package/dist/types/openapi.js +0 -3
- package/dist/types/openapi.js.map +0 -1
- package/docs/classes/Advertising.html +0 -21
- package/docs/classes/ErrorUtils.html +0 -25
- package/docs/classes/ParameterChecker.html +0 -69
- package/docs/classes/SwitchBotBLE.html +0 -39
- package/docs/classes/SwitchBotOpenAPI.html +0 -57
- package/docs/classes/SwitchbotDevice.html +0 -47
- package/docs/classes/ValidationUtils.html +0 -51
- package/docs/classes/WoSmartLockUltra.html +0 -113
- package/docs/enums/SwitchBotBLEModelFriendlyName.html +0 -39
- package/docs/enums/SwitchBotModel.html +0 -52
- package/docs/interfaces/AdvertisementData.html +0 -3
- package/docs/interfaces/Chars.html +0 -4
- package/docs/interfaces/ColorLightServiceDataBase.html +0 -17
- package/docs/interfaces/ErrorObject.html +0 -3
- package/docs/interfaces/LockBaseServiceData.html +0 -15
- package/docs/interfaces/NobleTypes.html +0 -3
- package/docs/interfaces/Params.html +0 -6
- package/docs/interfaces/PlugMiniServiceDataBase.html +0 -12
- package/docs/interfaces/Rule.html +0 -9
- package/docs/interfaces/ServiceData.html +0 -2
- package/docs/interfaces/SwitchBotBLEDevice.html +0 -27
- package/docs/interfaces/SwitchBotScanner.html +0 -6
- package/docs/interfaces/TemperatureServiceDataBase.html +0 -10
- package/docs/interfaces/WebhookDetail.html +0 -6
- package/docs/interfaces/ad.html +0 -5
- package/docs/interfaces/body.html +0 -3
- package/docs/interfaces/bodyChange.html +0 -4
- package/docs/interfaces/deleteWebhookResponse.html +0 -4
- package/docs/interfaces/device.html +0 -7
- package/docs/interfaces/deviceList.html +0 -2
- package/docs/interfaces/deviceStatus.html +0 -7
- package/docs/interfaces/deviceStatusRequest.html +0 -4
- package/docs/interfaces/deviceWebhook.html +0 -4
- package/docs/interfaces/deviceWebhookContext.html +0 -4
- package/docs/interfaces/devices.html +0 -4
- package/docs/interfaces/infraredRemoteList.html +0 -2
- package/docs/interfaces/irdevice.html +0 -5
- package/docs/interfaces/pushRequest.html +0 -5
- package/docs/interfaces/pushResponse.html +0 -5
- package/docs/interfaces/pushResponseBody.html +0 -3
- package/docs/interfaces/queryWebhookResponse.html +0 -4
- package/docs/interfaces/setupWebhookResponse.html +0 -4
- package/docs/interfaces/updateWebhookResponse.html +0 -4
- package/docs/interfaces/webhookRequest.html +0 -4
- package/docs/types/BLEDeviceServiceData.html +0 -1
- package/docs/types/IndoorCam.html +0 -1
- package/docs/types/MacAddress.html +0 -1
- package/docs/types/airPurifier.html +0 -1
- package/docs/types/airPurifierPM25WebhookContext.html +0 -1
- package/docs/types/airPurifierServiceData.html +0 -1
- package/docs/types/airPurifierStatus.html +0 -1
- package/docs/types/airPurifierTable.html +0 -1
- package/docs/types/airPurifierTablePM25WebhookContext.html +0 -1
- package/docs/types/airPurifierTableServiceData.html +0 -1
- package/docs/types/airPurifierTableStatus.html +0 -1
- package/docs/types/airPurifierTableVOC.html +0 -1
- package/docs/types/airPurifierTableVOCStatus.html +0 -1
- package/docs/types/airPurifierTableVOCWebhookContext.html +0 -1
- package/docs/types/airPurifierTableWebhookContext.html +0 -1
- package/docs/types/airPurifierVOC.html +0 -1
- package/docs/types/airPurifierVOCStatus.html +0 -1
- package/docs/types/airPurifierVOCWebhookContext.html +0 -1
- package/docs/types/airPurifierWebhookContext.html +0 -1
- package/docs/types/batteryCirculatorFan.html +0 -1
- package/docs/types/batteryCirculatorFanServiceData.html +0 -1
- package/docs/types/batteryCirculatorFanStatus.html +0 -1
- package/docs/types/batteryCirculatorFanWebhookContext.html +0 -1
- package/docs/types/blindTilt.html +0 -1
- package/docs/types/blindTiltServiceData.html +0 -1
- package/docs/types/blindTiltStatus.html +0 -1
- package/docs/types/blindTiltWebhookContext.html +0 -1
- package/docs/types/bot.html +0 -1
- package/docs/types/botServiceData.html +0 -1
- package/docs/types/botStatus.html +0 -1
- package/docs/types/botWebhookContext.html +0 -1
- package/docs/types/ceilingLight.html +0 -1
- package/docs/types/ceilingLightPro.html +0 -1
- package/docs/types/ceilingLightProServiceData.html +0 -1
- package/docs/types/ceilingLightProStatus.html +0 -1
- package/docs/types/ceilingLightProWebhookContext.html +0 -1
- package/docs/types/ceilingLightServiceData.html +0 -1
- package/docs/types/ceilingLightStatus.html +0 -1
- package/docs/types/ceilingLightWebhookContext.html +0 -1
- package/docs/types/circulatorFanStatus.html +0 -1
- package/docs/types/circulatorFanWebhookContext.html +0 -1
- package/docs/types/colorBulb.html +0 -1
- package/docs/types/colorBulbServiceData.html +0 -1
- package/docs/types/colorBulbStatus.html +0 -1
- package/docs/types/colorBulbWebhookContext.html +0 -1
- package/docs/types/commandType.html +0 -2
- package/docs/types/contactSensor.html +0 -1
- package/docs/types/contactSensorServiceData.html +0 -1
- package/docs/types/contactSensorStatus.html +0 -1
- package/docs/types/contactSensorWebhookContext.html +0 -1
- package/docs/types/curtain.html +0 -1
- package/docs/types/curtain3.html +0 -1
- package/docs/types/curtain3ServiceData.html +0 -1
- package/docs/types/curtain3WebhookContext.html +0 -1
- package/docs/types/curtainServiceData.html +0 -1
- package/docs/types/curtainStatus.html +0 -1
- package/docs/types/curtainWebhookContext.html +0 -1
- package/docs/types/floorCleaningRobotS10.html +0 -1
- package/docs/types/floorCleaningRobotS10Status.html +0 -1
- package/docs/types/floorCleaningRobotS10WebhookContext.html +0 -1
- package/docs/types/hub2.html +0 -1
- package/docs/types/hub2ServiceData.html +0 -1
- package/docs/types/hub2Status.html +0 -1
- package/docs/types/hub2WebhookContext.html +0 -1
- package/docs/types/hub3ServiceData.html +0 -1
- package/docs/types/humidifier.html +0 -1
- package/docs/types/humidifier2ServiceData.html +0 -1
- package/docs/types/humidifier2Status.html +0 -1
- package/docs/types/humidifier2WebhookContext.html +0 -1
- package/docs/types/humidifierServiceData.html +0 -1
- package/docs/types/humidifierStatus.html +0 -1
- package/docs/types/humidifierWebhookContext.html +0 -1
- package/docs/types/indoorCameraWebhookContext.html +0 -1
- package/docs/types/keypad.html +0 -1
- package/docs/types/keypadDetectorServiceData.html +0 -1
- package/docs/types/keypadTouch.html +0 -1
- package/docs/types/keypadTouchWebhookContext.html +0 -1
- package/docs/types/keypadWebhookContext.html +0 -1
- package/docs/types/lock.html +0 -1
- package/docs/types/lockPro.html +0 -1
- package/docs/types/lockProServiceData.html +0 -1
- package/docs/types/lockProStatus.html +0 -1
- package/docs/types/lockProWebhookContext.html +0 -1
- package/docs/types/lockServiceData.html +0 -1
- package/docs/types/lockStatus.html +0 -1
- package/docs/types/lockWebhookContext.html +0 -1
- package/docs/types/meter.html +0 -1
- package/docs/types/meterPlus.html +0 -1
- package/docs/types/meterPlusServiceData.html +0 -1
- package/docs/types/meterPlusStatus.html +0 -1
- package/docs/types/meterPlusWebhookContext.html +0 -1
- package/docs/types/meterPro.html +0 -1
- package/docs/types/meterProCO2ServiceData.html +0 -1
- package/docs/types/meterProCO2Status.html +0 -1
- package/docs/types/meterProCO2WebhookContext.html +0 -1
- package/docs/types/meterProServiceData.html +0 -1
- package/docs/types/meterProStatus.html +0 -1
- package/docs/types/meterProWebhookContext.html +0 -1
- package/docs/types/meterServiceData.html +0 -1
- package/docs/types/meterStatus.html +0 -1
- package/docs/types/meterWebhookContext.html +0 -1
- package/docs/types/motionSensor.html +0 -1
- package/docs/types/motionSensorServiceData.html +0 -1
- package/docs/types/motionSensorStatus.html +0 -1
- package/docs/types/motionSensorWebhookContext.html +0 -1
- package/docs/types/onadvertisement.html +0 -1
- package/docs/types/ondiscover.html +0 -1
- package/docs/types/outdoorMeter.html +0 -1
- package/docs/types/outdoorMeterServiceData.html +0 -1
- package/docs/types/outdoorMeterStatus.html +0 -1
- package/docs/types/outdoorMeterWebhookContext.html +0 -1
- package/docs/types/panTiltCamWebhookContext.html +0 -1
- package/docs/types/pantiltCam.html +0 -1
- package/docs/types/pantiltCam2k.html +0 -1
- package/docs/types/plug.html +0 -1
- package/docs/types/plugMini.html +0 -1
- package/docs/types/plugMiniJPServiceData.html +0 -1
- package/docs/types/plugMiniJPWebhookContext.html +0 -1
- package/docs/types/plugMiniStatus.html +0 -1
- package/docs/types/plugMiniUSServiceData.html +0 -1
- package/docs/types/plugMiniUSWebhookContext.html +0 -1
- package/docs/types/plugStatus.html +0 -1
- package/docs/types/plugWebhookContext.html +0 -1
- package/docs/types/presenceSensor.html +0 -1
- package/docs/types/presenceSensorServiceData.html +0 -1
- package/docs/types/presenceSensorStatus.html +0 -1
- package/docs/types/presenceSensorWebhookContext.html +0 -1
- package/docs/types/relaySwitch1Context.html +0 -1
- package/docs/types/relaySwitch1PMContext.html +0 -1
- package/docs/types/relaySwitch1PMServiceData.html +0 -1
- package/docs/types/relaySwitch1PMStatus.html +0 -1
- package/docs/types/relaySwitch1ServiceData.html +0 -1
- package/docs/types/relaySwitch1Status.html +0 -1
- package/docs/types/remote.html +0 -1
- package/docs/types/remoteServiceData.html +0 -1
- package/docs/types/robotVacuumCleanerS1.html +0 -1
- package/docs/types/robotVacuumCleanerS1Plus.html +0 -1
- package/docs/types/robotVacuumCleanerS1PlusStatus.html +0 -1
- package/docs/types/robotVacuumCleanerS1PlusWebhookContext.html +0 -1
- package/docs/types/robotVacuumCleanerS1Status.html +0 -1
- package/docs/types/robotVacuumCleanerS1WebhookContext.html +0 -1
- package/docs/types/robotVacuumCleanerServiceData.html +0 -1
- package/docs/types/stripLight.html +0 -1
- package/docs/types/stripLightServiceData.html +0 -1
- package/docs/types/stripLightStatus.html +0 -1
- package/docs/types/stripLightWebhookContext.html +0 -1
- package/docs/types/waterLeakDetector.html +0 -1
- package/docs/types/waterLeakDetectorServiceData.html +0 -1
- package/docs/types/waterLeakDetectorStatus.html +0 -1
- package/docs/types/waterLeakDetectorWebhookContext.html +0 -1
- package/docs/variables/parameterChecker.html +0 -1
- package/eslint.config.js +0 -48
- package/typedoc.json +0 -17
package/dist/settings.js
CHANGED
|
@@ -1,80 +1,230 @@
|
|
|
1
|
-
|
|
2
|
-
* Switchbot BLE API registration settings.
|
|
1
|
+
/* Copyright(C) 2024-2026, donavanbecker (https://github.com/donavanbecker). All rights reserved.
|
|
3
2
|
*
|
|
4
|
-
*
|
|
3
|
+
* settings.ts: SwitchBot v4.0.0 - Configuration and Constants
|
|
4
|
+
*/
|
|
5
|
+
import process from 'node:process';
|
|
6
|
+
/**
|
|
7
|
+
* OpenAPI Configuration
|
|
5
8
|
*/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
|
|
9
|
+
export const DEFAULT_BASE_URL = 'https://api.switch-bot.com';
|
|
10
|
+
export const API_VERSION = 'v1.1';
|
|
11
|
+
export const urls = {
|
|
12
|
+
base: DEFAULT_BASE_URL,
|
|
13
|
+
devices: `${DEFAULT_BASE_URL}/${API_VERSION}/devices`,
|
|
14
|
+
scenes: `${DEFAULT_BASE_URL}/${API_VERSION}/scenes`,
|
|
15
|
+
webhook: `${DEFAULT_BASE_URL}/${API_VERSION}/webhook`,
|
|
16
|
+
};
|
|
10
17
|
/**
|
|
11
|
-
*
|
|
12
|
-
* @param
|
|
18
|
+
* Update the base URL for all API endpoints
|
|
19
|
+
* @param newBaseURL - The new base URL to use
|
|
13
20
|
*/
|
|
14
21
|
export function updateBaseURL(newBaseURL) {
|
|
15
|
-
|
|
22
|
+
urls.base = newBaseURL;
|
|
23
|
+
urls.devices = `${newBaseURL}/${API_VERSION}/devices`;
|
|
24
|
+
urls.scenes = `${newBaseURL}/${API_VERSION}/scenes`;
|
|
25
|
+
urls.webhook = `${newBaseURL}/${API_VERSION}/webhook`;
|
|
16
26
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
27
|
+
/**
|
|
28
|
+
* BLE Configuration
|
|
29
|
+
*/
|
|
30
|
+
export const BLE_SERVICE_UUID = 'cba20d00224d11e69fb80002a5d5c51b';
|
|
31
|
+
export const BLE_WRITE_CHARACTERISTIC_UUID = 'cba20002224d11e69fb80002a5d5c51b';
|
|
32
|
+
export const BLE_NOTIFY_CHARACTERISTIC_UUID = 'cba20003224d11e69fb80002a5d5c51b';
|
|
33
|
+
// Alternative UUIDs for specific devices
|
|
34
|
+
export const SERV_UUID_PRIMARY = 'cba20d00-224d-11e6-9fb8-0002a5d5c51b';
|
|
35
|
+
export const CHAR_UUID_WRITE = 'cba20002-224d-11e6-9fb8-0002a5d5c51b';
|
|
36
|
+
export const CHAR_UUID_NOTIFY = 'cba20003-224d-11e6-9fb8-0002a5d5c51b';
|
|
37
|
+
export const CHAR_UUID_DEVICE = 'cba20d00-224d-11e6-9fb8-0002a5d5c51b';
|
|
38
|
+
/**
|
|
39
|
+
* BLE Timeouts (in milliseconds)
|
|
40
|
+
*/
|
|
41
|
+
export const BLE_SCAN_TIMEOUT = 10000;
|
|
42
|
+
export const BLE_CONNECT_TIMEOUT = 10000;
|
|
43
|
+
export const BLE_COMMAND_TIMEOUT = 5000;
|
|
44
|
+
export const READ_TIMEOUT_MSEC = 10000;
|
|
45
|
+
export const WRITE_TIMEOUT_MSEC = 10000;
|
|
46
|
+
/**
|
|
47
|
+
* Device Command Constants
|
|
48
|
+
*/
|
|
49
|
+
export const DEVICE_COMMANDS = {
|
|
50
|
+
// Bot (WoHand)
|
|
51
|
+
BOT: {
|
|
52
|
+
PRESS: [0x57, 0x01, 0x00],
|
|
53
|
+
TURN_ON: [0x57, 0x01, 0x01],
|
|
54
|
+
TURN_OFF: [0x57, 0x01, 0x02],
|
|
55
|
+
DOWN: [0x57, 0x01, 0x01],
|
|
56
|
+
UP: [0x57, 0x01, 0x02],
|
|
20
57
|
},
|
|
21
|
-
|
|
22
|
-
|
|
58
|
+
// Curtain (WoCurtain)
|
|
59
|
+
CURTAIN: {
|
|
60
|
+
OPEN: [0x57, 0x0F, 0x45, 0x01, 0x05, 0xFF, 0x00],
|
|
61
|
+
CLOSE: [0x57, 0x0F, 0x45, 0x01, 0x05, 0xFF, 0x64],
|
|
62
|
+
PAUSE: [0x57, 0x0F, 0x45, 0x01, 0x00, 0xFF],
|
|
63
|
+
POSITION: [0x57, 0x0F, 0x45, 0x01, 0x05, 0xFF], // Add position byte
|
|
23
64
|
},
|
|
24
|
-
|
|
25
|
-
|
|
65
|
+
// Blind Tilt
|
|
66
|
+
BLIND_TILT: {
|
|
67
|
+
OPEN: [0x57, 0x0F, 0x45, 0x01, 0x05, 0xFF, 0x32],
|
|
68
|
+
CLOSE_UP: [0x57, 0x0F, 0x45, 0x01, 0x05, 0xFF, 0x64],
|
|
69
|
+
CLOSE_DOWN: [0x57, 0x0F, 0x45, 0x01, 0x05, 0xFF, 0x00],
|
|
70
|
+
PAUSE: [0x57, 0x0F, 0x45, 0x01, 0x00, 0xFF],
|
|
26
71
|
},
|
|
27
|
-
|
|
28
|
-
|
|
72
|
+
// Bulb (WoBulb)
|
|
73
|
+
BULB: {
|
|
74
|
+
BASE: [0x57, 0x0F, 0x47, 0x01],
|
|
75
|
+
READ_STATE: [0x57, 0x0F, 0x48, 0x01],
|
|
76
|
+
TURN_ON: [0x01, 0x01],
|
|
77
|
+
TURN_OFF: [0x01, 0x02],
|
|
78
|
+
SET_BRIGHTNESS: [0x02, 0x14], // Add brightness byte
|
|
79
|
+
SET_COLOR_TEMP: [0x02, 0x17], // Add temp bytes
|
|
80
|
+
SET_RGB: [0x02, 0x12], // Add RGB bytes
|
|
29
81
|
},
|
|
30
|
-
|
|
31
|
-
|
|
82
|
+
// Humidifier
|
|
83
|
+
HUMIDIFIER: {
|
|
84
|
+
HEADER: '5701',
|
|
85
|
+
TURN_ON: '570101',
|
|
86
|
+
TURN_OFF: '570102',
|
|
87
|
+
INCREASE: '570103',
|
|
88
|
+
DECREASE: '570104',
|
|
89
|
+
SET_AUTO_MODE: '570105',
|
|
90
|
+
SET_MANUAL_MODE: '570106',
|
|
32
91
|
},
|
|
33
|
-
|
|
34
|
-
|
|
92
|
+
// Air Purifier
|
|
93
|
+
AIR_PURIFIER: {
|
|
94
|
+
TURN_ON: [0x57, 0x01, 0x01],
|
|
95
|
+
TURN_OFF: [0x57, 0x01, 0x02],
|
|
96
|
+
SET_MODE: [0x57, 0x02], // Add mode byte
|
|
97
|
+
SET_SPEED: [0x57, 0x03], // Add speed byte
|
|
35
98
|
},
|
|
99
|
+
// Plug
|
|
100
|
+
PLUG: {
|
|
101
|
+
TURN_ON: [0x57, 0x0F, 0x50, 0x01, 0x01],
|
|
102
|
+
TURN_OFF: [0x57, 0x0F, 0x50, 0x01, 0x02],
|
|
103
|
+
TOGGLE: [0x57, 0x0F, 0x50, 0x01, 0x00],
|
|
104
|
+
},
|
|
105
|
+
// Common commands
|
|
106
|
+
COMMON: {
|
|
107
|
+
POWER_ON: [0x57, 0x01, 0x01],
|
|
108
|
+
POWER_OFF: [0x57, 0x01, 0x02],
|
|
109
|
+
},
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* Lock Command Constants (WoSmartLock)
|
|
113
|
+
*/
|
|
114
|
+
export const WoSmartLockCommands = {
|
|
115
|
+
LOCK: [0x57, 0x0F, 0x4E, 0x01, 0x00],
|
|
116
|
+
UNLOCK: [0x57, 0x0F, 0x4E, 0x01, 0x01],
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* Lock Pro Command Constants (WoSmartLockPro)
|
|
120
|
+
*/
|
|
121
|
+
export const WoSmartLockProCommands = {
|
|
122
|
+
LOCK: [0x57, 0x0F, 0x4F, 0x01, 0x00],
|
|
123
|
+
UNLOCK: [0x57, 0x0F, 0x4F, 0x01, 0x01],
|
|
124
|
+
UNLATCH: [0x57, 0x0F, 0x4F, 0x01, 0x02],
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* Device Model to Type Mapping
|
|
128
|
+
*/
|
|
129
|
+
export const DEVICE_MODEL_MAP = {
|
|
130
|
+
'H': 'Bot',
|
|
131
|
+
'c': 'Curtain',
|
|
132
|
+
'{': 'Curtain3',
|
|
133
|
+
'g': 'Plug',
|
|
134
|
+
'j': 'Plug Mini (US)',
|
|
135
|
+
'T': 'Meter',
|
|
136
|
+
'i': 'Meter Plus',
|
|
137
|
+
'o': 'Lock',
|
|
138
|
+
'\x11': 'Lock Pro',
|
|
139
|
+
'k': 'Keypad',
|
|
140
|
+
'\x0B': 'Keypad Touch',
|
|
141
|
+
's': 'Motion Sensor',
|
|
142
|
+
'd': 'Contact Sensor',
|
|
143
|
+
'q': 'Ceiling Light',
|
|
144
|
+
'r': 'Ceiling Light Pro',
|
|
145
|
+
'p': 'Strip Light',
|
|
146
|
+
'u': 'Color Bulb',
|
|
147
|
+
'\x0A': 'Robot Vacuum Cleaner S1',
|
|
148
|
+
'\x0C': 'Robot Vacuum Cleaner S1 Plus',
|
|
149
|
+
'\x0F': 'Robot Vacuum Cleaner K10 Plus',
|
|
150
|
+
'e': 'Humidifier',
|
|
151
|
+
'\x07': 'Humidifier 2',
|
|
152
|
+
'x': 'Blind Tilt',
|
|
153
|
+
'\x01': 'Hub 2',
|
|
154
|
+
'\x02': 'Hub 3',
|
|
155
|
+
'\x05': 'Remote',
|
|
156
|
+
'\x04': 'Battery Circulator Fan',
|
|
157
|
+
'\x08': 'Air Purifier',
|
|
158
|
+
'\x09': 'Air Purifier Table',
|
|
159
|
+
'y': 'Water Leak Detector',
|
|
160
|
+
'\x06': 'Presence Sensor',
|
|
161
|
+
'\x0D': 'Relay Switch 1PM',
|
|
162
|
+
'\x0E': 'Relay Switch 1',
|
|
163
|
+
'\x10': 'K10+ Pro Combo',
|
|
164
|
+
'w': 'Meter Pro (CO2)',
|
|
165
|
+
'n': 'Outdoor Meter',
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* Device Type to Class Name Mapping
|
|
169
|
+
*/
|
|
170
|
+
export const DEVICE_CLASS_MAP = {
|
|
171
|
+
'Bot': 'WoHand',
|
|
172
|
+
'Curtain': 'WoCurtain',
|
|
173
|
+
'Curtain3': 'WoCurtain',
|
|
174
|
+
'Plug': 'WoPlugUS',
|
|
175
|
+
'Plug Mini (US)': 'WoPlugMiniUS',
|
|
176
|
+
'Plug Mini (JP)': 'WoPlugMiniJP',
|
|
177
|
+
'Plug Mini (EU)': 'WoPlugMiniEU',
|
|
178
|
+
'Meter': 'WoSensorTH',
|
|
179
|
+
'Meter Plus': 'WoSensorTHPlus',
|
|
180
|
+
'Meter Pro': 'WoSensorTHPro',
|
|
181
|
+
'Meter Pro (CO2)': 'WoSensorTHProCO2',
|
|
182
|
+
'Outdoor Meter': 'WoIOSensorTH',
|
|
183
|
+
'Lock': 'WoSmartLock',
|
|
184
|
+
'Lock Pro': 'WoSmartLockPro',
|
|
185
|
+
'Keypad': 'WoKeypad',
|
|
186
|
+
'Keypad Touch': 'WoKeypad',
|
|
187
|
+
'Motion Sensor': 'WoPresence',
|
|
188
|
+
'Contact Sensor': 'WoContact',
|
|
189
|
+
'Ceiling Light': 'WoCeilingLight',
|
|
190
|
+
'Ceiling Light Pro': 'WoCeilingLight',
|
|
191
|
+
'Strip Light': 'WoStrip',
|
|
192
|
+
'Color Bulb': 'WoBulb',
|
|
193
|
+
'Robot Vacuum Cleaner S1': 'WoVacuum',
|
|
194
|
+
'Robot Vacuum Cleaner S1 Plus': 'WoVacuum',
|
|
195
|
+
'Robot Vacuum Cleaner K10 Plus': 'WoVacuum',
|
|
196
|
+
'Humidifier': 'WoHumi',
|
|
197
|
+
'Humidifier 2': 'WoHumi2',
|
|
198
|
+
'Blind Tilt': 'WoBlindTilt',
|
|
199
|
+
'Hub 2': 'WoHub2',
|
|
200
|
+
'Hub 3': 'WoHub3',
|
|
201
|
+
'Hub Mini': 'WoHub2',
|
|
202
|
+
'Hub Plus': 'WoHub2',
|
|
203
|
+
'Remote': 'WoRemote',
|
|
204
|
+
'Battery Circulator Fan': 'WoFan',
|
|
205
|
+
'Air Purifier': 'WoAirPurifier',
|
|
206
|
+
'Air Purifier Table': 'WoAirPurifierTable',
|
|
207
|
+
'Water Leak Detector': 'WoLeak',
|
|
208
|
+
'Presence Sensor': 'WoPresence',
|
|
209
|
+
'Relay Switch 1PM': 'WoRelaySwitch1PM',
|
|
210
|
+
'Relay Switch 1': 'WoRelaySwitch1',
|
|
211
|
+
'K10+ Pro Combo': 'WoVacuum',
|
|
212
|
+
};
|
|
213
|
+
/**
|
|
214
|
+
* Default configuration values
|
|
215
|
+
*/
|
|
216
|
+
export const DEFAULTS = {
|
|
217
|
+
logLevel: 2, // WARN
|
|
218
|
+
scanTimeout: BLE_SCAN_TIMEOUT,
|
|
219
|
+
connectTimeout: BLE_CONNECT_TIMEOUT,
|
|
220
|
+
commandTimeout: BLE_COMMAND_TIMEOUT,
|
|
221
|
+
enableBLE: true,
|
|
222
|
+
enableFallback: true,
|
|
223
|
+
baseURL: DEFAULT_BASE_URL,
|
|
36
224
|
};
|
|
37
225
|
/**
|
|
38
|
-
*
|
|
226
|
+
* Platform detection
|
|
39
227
|
*/
|
|
40
|
-
export const
|
|
41
|
-
export const
|
|
42
|
-
export const CHAR_UUID_NOTIFY = 'cba20003224d11e69fb80002a5d5c51b';
|
|
43
|
-
export const CHAR_UUID_DEVICE = '2a00';
|
|
44
|
-
export const READ_TIMEOUT_MSEC = 3000;
|
|
45
|
-
export const WRITE_TIMEOUT_MSEC = 3000;
|
|
46
|
-
export const COMMAND_TIMEOUT_MSEC = 3000;
|
|
47
|
-
export const DEFAULT_DISCOVERY_DURATION = 5000;
|
|
48
|
-
export const PRIMARY_SERVICE_UUID_LIST = [];
|
|
49
|
-
export var WoSmartLockProCommands;
|
|
50
|
-
(function (WoSmartLockProCommands) {
|
|
51
|
-
WoSmartLockProCommands["GET_CKIV"] = "570f2103";
|
|
52
|
-
WoSmartLockProCommands["LOCK_INFO"] = "570f4f8102";
|
|
53
|
-
WoSmartLockProCommands["UNLOCK"] = "570f4e0101000080";
|
|
54
|
-
WoSmartLockProCommands["UNLOCK_NO_UNLATCH"] = "570f4e01010000a0";
|
|
55
|
-
WoSmartLockProCommands["LOCK"] = "570f4e0101000000";
|
|
56
|
-
WoSmartLockProCommands["ENABLE_NOTIFICATIONS"] = "570e01001e00008101";
|
|
57
|
-
WoSmartLockProCommands["DISABLE_NOTIFICATIONS"] = "570e00";
|
|
58
|
-
})(WoSmartLockProCommands || (WoSmartLockProCommands = {}));
|
|
59
|
-
export var WoSmartLockCommands;
|
|
60
|
-
(function (WoSmartLockCommands) {
|
|
61
|
-
WoSmartLockCommands["GET_CKIV"] = "570f2103";
|
|
62
|
-
WoSmartLockCommands["LOCK_INFO"] = "570f4f8101";
|
|
63
|
-
WoSmartLockCommands["UNLOCK"] = "570f4e01011080";
|
|
64
|
-
WoSmartLockCommands["UNLOCK_NO_UNLATCH"] = "570f4e010110a0";
|
|
65
|
-
WoSmartLockCommands["LOCK"] = "570f4e01011000";
|
|
66
|
-
WoSmartLockCommands["ENABLE_NOTIFICATIONS"] = "570e01001e00008101";
|
|
67
|
-
WoSmartLockCommands["DISABLE_NOTIFICATIONS"] = "570e00";
|
|
68
|
-
})(WoSmartLockCommands || (WoSmartLockCommands = {}));
|
|
69
|
-
// Lock Ultra uses the same command structure as Lock Pro (AES/IV based).
|
|
70
|
-
export var WoSmartLockUltraCommands;
|
|
71
|
-
(function (WoSmartLockUltraCommands) {
|
|
72
|
-
WoSmartLockUltraCommands["GET_CKIV"] = "570f2103";
|
|
73
|
-
WoSmartLockUltraCommands["LOCK_INFO"] = "570f4f8102";
|
|
74
|
-
WoSmartLockUltraCommands["UNLOCK"] = "570f4e0101000080";
|
|
75
|
-
WoSmartLockUltraCommands["UNLOCK_NO_UNLATCH"] = "570f4e01010000a0";
|
|
76
|
-
WoSmartLockUltraCommands["LOCK"] = "570f4e0101000000";
|
|
77
|
-
WoSmartLockUltraCommands["ENABLE_NOTIFICATIONS"] = "570e01001e00008101";
|
|
78
|
-
WoSmartLockUltraCommands["DISABLE_NOTIFICATIONS"] = "570e00";
|
|
79
|
-
})(WoSmartLockUltraCommands || (WoSmartLockUltraCommands = {}));
|
|
228
|
+
export const IS_LINUX = process.platform === 'linux';
|
|
229
|
+
export const BLE_SUPPORTED = IS_LINUX;
|
|
80
230
|
//# sourceMappingURL=settings.js.map
|
package/dist/settings.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../src/settings.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../src/settings.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,OAAO,MAAM,cAAc,CAAA;AAElC;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,4BAA4B,CAAA;AAC5D,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAA;AAEjC,MAAM,CAAC,MAAM,IAAI,GAKb;IACF,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,GAAG,gBAAgB,IAAI,WAAW,UAAU;IACrD,MAAM,EAAE,GAAG,gBAAgB,IAAI,WAAW,SAAS;IACnD,OAAO,EAAE,GAAG,gBAAgB,IAAI,WAAW,UAAU;CACtD,CAAA;AAED;;;GAGG;AACH,MAAM,UAAU,aAAa,CAAC,UAAkB;IAC9C,IAAI,CAAC,IAAI,GAAG,UAAU,CAAA;IACtB,IAAI,CAAC,OAAO,GAAG,GAAG,UAAU,IAAI,WAAW,UAAU,CAAA;IACrD,IAAI,CAAC,MAAM,GAAG,GAAG,UAAU,IAAI,WAAW,SAAS,CAAA;IACnD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G;IACtB,QAAQ,EAAE,CAAC,EAAE,OAAO;IACpB,WAAW,EAAE,gBAAgB;IAC7B,cAAc,EAAE,mBAAmB;IACnC,cAAc,EAAE,mBAAmB;IACnC,SAAS,EAAE,IAAI;IACf,cAAc,EAAE,IAAI;IACpB,OAAO,EAAE,gBAAgB;CACjB,CAAA;AAEV;;GAEG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAA;AACpD,MAAM,CAAC,MAAM,aAAa,GAAG,QAAQ,CAAA"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { SwitchBotDevice } from './devices/base.js';
|
|
2
|
+
import type { DiscoveryOptions, LogLevel, SwitchBotConfig } from './types/index.js';
|
|
3
|
+
import { EventEmitter } from 'node:events';
|
|
4
|
+
import { OpenAPIClient } from './api.js';
|
|
5
|
+
import { BLEScanner } from './ble.js';
|
|
6
|
+
import { DeviceManager } from './devices/base.js';
|
|
7
|
+
/**
|
|
8
|
+
* Main SwitchBot class - Hybrid BLE/API with automatic fallback
|
|
9
|
+
*/
|
|
10
|
+
export declare class SwitchBot extends EventEmitter {
|
|
11
|
+
private config;
|
|
12
|
+
private logger;
|
|
13
|
+
private bleScanner?;
|
|
14
|
+
private bleConnection?;
|
|
15
|
+
private apiClient?;
|
|
16
|
+
private deviceManager;
|
|
17
|
+
private initialized;
|
|
18
|
+
constructor(config?: SwitchBotConfig);
|
|
19
|
+
/**
|
|
20
|
+
* Initialize BLE and API clients
|
|
21
|
+
*/
|
|
22
|
+
private initialize;
|
|
23
|
+
/**
|
|
24
|
+
* Discover devices (BLE + OpenAPI)
|
|
25
|
+
*/
|
|
26
|
+
discover(options?: DiscoveryOptions): Promise<SwitchBotDevice[]>;
|
|
27
|
+
/**
|
|
28
|
+
* Discover devices via BLE
|
|
29
|
+
*/
|
|
30
|
+
private discoverBLE;
|
|
31
|
+
/**
|
|
32
|
+
* Handle BLE device discovery
|
|
33
|
+
*/
|
|
34
|
+
private handleBLEDiscovery;
|
|
35
|
+
/**
|
|
36
|
+
* Discover devices via OpenAPI
|
|
37
|
+
*/
|
|
38
|
+
private discoverAPI;
|
|
39
|
+
/**
|
|
40
|
+
* Handle API device discovery
|
|
41
|
+
*/
|
|
42
|
+
private handleAPIDiscovery;
|
|
43
|
+
/**
|
|
44
|
+
* Create device instance
|
|
45
|
+
*/
|
|
46
|
+
private createDevice;
|
|
47
|
+
/**
|
|
48
|
+
* Get device manager (for accessing devices)
|
|
49
|
+
*/
|
|
50
|
+
get devices(): DeviceManager;
|
|
51
|
+
/**
|
|
52
|
+
* Get BLE scanner (if available)
|
|
53
|
+
*/
|
|
54
|
+
getBLEScanner(): BLEScanner | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* Get API client (if available)
|
|
57
|
+
*/
|
|
58
|
+
getAPIClient(): OpenAPIClient | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* Get configuration
|
|
61
|
+
*/
|
|
62
|
+
getConfig(): Required<SwitchBotConfig>;
|
|
63
|
+
/**
|
|
64
|
+
* Set log level
|
|
65
|
+
*/
|
|
66
|
+
setLogLevel(level: LogLevel): void;
|
|
67
|
+
/**
|
|
68
|
+
* Check if BLE is available
|
|
69
|
+
*/
|
|
70
|
+
isBLEAvailable(): boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Check if API is available
|
|
73
|
+
*/
|
|
74
|
+
isAPIAvailable(): boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Cleanup and disconnect
|
|
77
|
+
*/
|
|
78
|
+
cleanup(): Promise<void>;
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=switchbot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switchbot.d.ts","sourceRoot":"","sources":["../src/switchbot.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACxD,OAAO,KAAK,EAAkB,gBAAgB,EAAE,QAAQ,E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