@switchbot/homebridge-switchbot 4.3.2-beta.8 → 4.3.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/.github/copilot-instructions.md +328 -0
- package/.github/scripts/npm-version-script-esm-auto.js +207 -0
- package/.github/workflows/beta-release.yml +8 -12
- package/.github/workflows/release.yml +54 -22
- package/CHANGELOG.md +1 -1
- package/README.md +13 -10
- package/config.schema.json +2 -2
- package/coverage/base.css +224 -0
- package/coverage/block-navigation.js +87 -0
- package/coverage/clover.xml +15847 -0
- package/coverage/coverage-final.json +42 -0
- package/coverage/docs/assets/dmt/dmt-component-data.js.html +85 -0
- package/coverage/docs/assets/dmt/dmt-components.js.html +286 -0
- package/coverage/docs/assets/dmt/index.html +131 -0
- package/coverage/docs/assets/hierarchy.js.html +85 -0
- package/coverage/docs/assets/icons.js.html +136 -0
- package/coverage/docs/assets/index.html +146 -0
- package/coverage/docs/assets/main.js.html +265 -0
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +191 -0
- package/coverage/prettify.css +1 -0
- package/coverage/prettify.js +2 -0
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +196 -0
- package/coverage/src/device/blindtilt.ts.html +3238 -0
- package/coverage/src/device/bot.ts.html +2803 -0
- package/coverage/src/device/ceilinglight.ts.html +2338 -0
- package/coverage/src/device/colorbulb.ts.html +2824 -0
- package/coverage/src/device/contact.ts.html +1465 -0
- package/coverage/src/device/curtain.ts.html +2869 -0
- package/coverage/src/device/device.ts.html +2500 -0
- package/coverage/src/device/fan.ts.html +2242 -0
- package/coverage/src/device/hub.ts.html +1408 -0
- package/coverage/src/device/humidifier.ts.html +2116 -0
- package/coverage/src/device/index.html +416 -0
- package/coverage/src/device/iosensor.ts.html +1375 -0
- package/coverage/src/device/lightstrip.ts.html +2617 -0
- package/coverage/src/device/lock.ts.html +1963 -0
- package/coverage/src/device/meter.ts.html +1372 -0
- package/coverage/src/device/meterplus.ts.html +1384 -0
- package/coverage/src/device/meterpro.ts.html +1618 -0
- package/coverage/src/device/motion.ts.html +1264 -0
- package/coverage/src/device/plug.ts.html +1372 -0
- package/coverage/src/device/relayswitch.ts.html +2284 -0
- package/coverage/src/device/robotvacuumcleaner.ts.html +1810 -0
- package/coverage/src/device/waterdetector.ts.html +1294 -0
- package/coverage/src/homebridge-ui/index.html +116 -0
- package/coverage/src/homebridge-ui/server.ts.html +229 -0
- package/coverage/src/index.html +161 -0
- package/coverage/src/index.ts.html +124 -0
- package/coverage/src/irdevice/airconditioner.ts.html +1687 -0
- package/coverage/src/irdevice/airpurifier.ts.html +844 -0
- package/coverage/src/irdevice/camera.ts.html +475 -0
- package/coverage/src/irdevice/fan.ts.html +766 -0
- package/coverage/src/irdevice/index.html +251 -0
- package/coverage/src/irdevice/irdevice.ts.html +1117 -0
- package/coverage/src/irdevice/light.ts.html +826 -0
- package/coverage/src/irdevice/other.ts.html +2458 -0
- package/coverage/src/irdevice/tv.ts.html +1222 -0
- package/coverage/src/irdevice/vacuumcleaner.ts.html +466 -0
- package/coverage/src/irdevice/waterheater.ts.html +469 -0
- package/coverage/src/platform.ts.html +8776 -0
- package/coverage/src/settings.ts.html +934 -0
- package/coverage/src/utils.ts.html +2092 -0
- package/dist/device/blindtilt.d.ts.map +1 -1
- package/dist/device/blindtilt.js +12 -4
- package/dist/device/blindtilt.js.map +1 -1
- package/dist/device/bot.d.ts.map +1 -1
- package/dist/device/bot.js +12 -4
- package/dist/device/bot.js.map +1 -1
- package/dist/device/ceilinglight.d.ts.map +1 -1
- package/dist/device/ceilinglight.js +18 -7
- package/dist/device/ceilinglight.js.map +1 -1
- package/dist/device/colorbulb.d.ts.map +1 -1
- package/dist/device/colorbulb.js +18 -7
- package/dist/device/colorbulb.js.map +1 -1
- package/dist/device/contact.d.ts.map +1 -1
- package/dist/device/contact.js +6 -2
- package/dist/device/contact.js.map +1 -1
- package/dist/device/curtain.d.ts.map +1 -1
- package/dist/device/curtain.js +12 -4
- package/dist/device/curtain.js.map +1 -1
- package/dist/device/device.d.ts +5 -7
- package/dist/device/device.d.ts.map +1 -1
- package/dist/device/device.js +11 -5
- package/dist/device/device.js.map +1 -1
- package/dist/device/fan.d.ts.map +1 -1
- package/dist/device/fan.js +16 -6
- package/dist/device/fan.js.map +1 -1
- package/dist/device/hub.d.ts +2 -2
- package/dist/device/hub.d.ts.map +1 -1
- package/dist/device/hub.js +8 -3
- package/dist/device/hub.js.map +1 -1
- package/dist/device/humidifier.d.ts.map +1 -1
- package/dist/device/humidifier.js +16 -6
- package/dist/device/humidifier.js.map +1 -1
- package/dist/device/iosensor.d.ts.map +1 -1
- package/dist/device/iosensor.js +6 -2
- package/dist/device/iosensor.js.map +1 -1
- package/dist/device/lightstrip.d.ts.map +1 -1
- package/dist/device/lightstrip.js +16 -6
- package/dist/device/lightstrip.js.map +1 -1
- package/dist/device/lock.d.ts.map +1 -1
- package/dist/device/lock.js +12 -4
- package/dist/device/lock.js.map +1 -1
- package/dist/device/meter.d.ts.map +1 -1
- package/dist/device/meter.js +6 -2
- package/dist/device/meter.js.map +1 -1
- package/dist/device/meterplus.d.ts.map +1 -1
- package/dist/device/meterplus.js +6 -2
- package/dist/device/meterplus.js.map +1 -1
- package/dist/device/meterpro.d.ts.map +1 -1
- package/dist/device/meterpro.js +7 -4
- package/dist/device/meterpro.js.map +1 -1
- package/dist/device/motion.d.ts.map +1 -1
- package/dist/device/motion.js +6 -2
- package/dist/device/motion.js.map +1 -1
- package/dist/device/occupancy.d.ts +42 -0
- package/dist/device/occupancy.d.ts.map +1 -0
- package/dist/device/occupancy.js +349 -0
- package/dist/device/occupancy.js.map +1 -0
- package/dist/device/plug.d.ts.map +1 -1
- package/dist/device/plug.js +12 -4
- package/dist/device/plug.js.map +1 -1
- package/dist/device/relayswitch.d.ts.map +1 -1
- package/dist/device/relayswitch.js +12 -4
- package/dist/device/relayswitch.js.map +1 -1
- package/dist/device/robotvacuumcleaner.d.ts.map +1 -1
- package/dist/device/robotvacuumcleaner.js +14 -5
- package/dist/device/robotvacuumcleaner.js.map +1 -1
- package/dist/device/waterdetector.d.ts.map +1 -1
- package/dist/device/waterdetector.js +6 -2
- package/dist/device/waterdetector.js.map +1 -1
- package/dist/homebridge-ui/public/index.html +1 -1
- package/dist/irdevice/airconditioner.d.ts.map +1 -1
- package/dist/irdevice/airconditioner.js +2 -1
- package/dist/irdevice/airconditioner.js.map +1 -1
- package/dist/irdevice/airpurifier.d.ts +1 -1
- package/dist/irdevice/airpurifier.d.ts.map +1 -1
- package/dist/irdevice/airpurifier.js +6 -5
- package/dist/irdevice/airpurifier.js.map +1 -1
- package/dist/irdevice/camera.d.ts.map +1 -1
- package/dist/irdevice/camera.js +2 -1
- package/dist/irdevice/camera.js.map +1 -1
- package/dist/irdevice/fan.d.ts.map +1 -1
- package/dist/irdevice/fan.js +2 -1
- package/dist/irdevice/fan.js.map +1 -1
- package/dist/irdevice/irdevice.d.ts +2 -6
- package/dist/irdevice/irdevice.d.ts.map +1 -1
- package/dist/irdevice/irdevice.js.map +1 -1
- package/dist/irdevice/light.d.ts.map +1 -1
- package/dist/irdevice/light.js +2 -1
- package/dist/irdevice/light.js.map +1 -1
- package/dist/irdevice/other.d.ts.map +1 -1
- package/dist/irdevice/other.js +2 -1
- package/dist/irdevice/other.js.map +1 -1
- package/dist/irdevice/tv.d.ts.map +1 -1
- package/dist/irdevice/tv.js +2 -1
- package/dist/irdevice/tv.js.map +1 -1
- package/dist/irdevice/vacuumcleaner.d.ts.map +1 -1
- package/dist/irdevice/vacuumcleaner.js +2 -1
- package/dist/irdevice/vacuumcleaner.js.map +1 -1
- package/dist/irdevice/waterheater.d.ts.map +1 -1
- package/dist/irdevice/waterheater.js +2 -1
- package/dist/irdevice/waterheater.js.map +1 -1
- package/dist/platform.d.ts +2 -2
- package/dist/platform.d.ts.map +1 -1
- package/dist/platform.js +77 -78
- package/dist/platform.js.map +1 -1
- package/dist/settings.d.ts +6 -0
- package/dist/settings.d.ts.map +1 -1
- package/dist/settings.js +1 -0
- package/dist/settings.js.map +1 -1
- package/docs/index.html +20 -11
- package/docs/variables/default.html +1 -1
- package/eslint.config.js +0 -1
- package/package.json +7 -8
- package/src/device/blindtilt.ts +10 -4
- package/src/device/bot.ts +10 -4
- package/src/device/ceilinglight.ts +16 -7
- package/src/device/colorbulb.ts +16 -7
- package/src/device/contact.ts +5 -2
- package/src/device/curtain.ts +12 -6
- package/src/device/device.ts +14 -8
- package/src/device/fan.ts +14 -6
- package/src/device/hub.ts +10 -6
- package/src/device/humidifier.ts +14 -6
- package/src/device/iosensor.ts +5 -2
- package/src/device/lightstrip.ts +14 -6
- package/src/device/lock.ts +10 -4
- package/src/device/meter.ts +6 -3
- package/src/device/meterplus.ts +5 -2
- package/src/device/meterpro.ts +7 -5
- package/src/device/motion.ts +5 -2
- package/src/device/occupancy.ts +393 -0
- package/src/device/plug.ts +10 -4
- package/src/device/relayswitch.ts +10 -4
- package/src/device/robotvacuumcleaner.ts +12 -5
- package/src/device/waterdetector.ts +5 -2
- package/src/homebridge-ui/public/index.html +1 -1
- package/src/irdevice/airconditioner.ts +2 -1
- package/src/irdevice/airpurifier.ts +6 -5
- package/src/irdevice/camera.ts +2 -1
- package/src/irdevice/fan.ts +2 -1
- package/src/irdevice/irdevice.ts +2 -2
- package/src/irdevice/light.ts +2 -1
- package/src/irdevice/other.ts +2 -1
- package/src/irdevice/tv.ts +2 -1
- package/src/irdevice/vacuumcleaner.ts +2 -1
- package/src/irdevice/waterheater.ts +2 -1
- package/src/platform.ts +80 -88
- package/src/settings.ts +7 -0
- package/.github/npm-version-script-esm.js +0 -97
- package/.github/workflows/build.yml +0 -18
- package/.github/workflows/changerelease.yml +0 -11
- package/.github/workflows/labeler.yml +0 -16
- package/.github/workflows/release-drafter.yml +0 -14
- package/dist/device/airpurifier.d.ts +0 -54
- package/dist/device/airpurifier.d.ts.map +0 -1
- package/dist/device/airpurifier.js +0 -527
- package/dist/device/airpurifier.js.map +0 -1
- package/src/device/airpurifier.ts +0 -563
package/dist/settings.d.ts
CHANGED
|
@@ -160,6 +160,12 @@ export interface motionConfig extends BaseDeviceConfig {
|
|
|
160
160
|
set_minLux?: number;
|
|
161
161
|
set_maxLux?: number;
|
|
162
162
|
}
|
|
163
|
+
export interface occupancyConfig extends BaseDeviceConfig {
|
|
164
|
+
configDeviceType: 'Occupancy Sensor';
|
|
165
|
+
hide_lightsensor?: boolean;
|
|
166
|
+
set_minLux?: number;
|
|
167
|
+
set_maxLux?: number;
|
|
168
|
+
}
|
|
163
169
|
export interface waterDetectorConfig extends BaseDeviceConfig {
|
|
164
170
|
configDeviceType: 'Water Detector';
|
|
165
171
|
hide_leak?: boolean;
|
package/dist/settings.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../src/settings.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAKhD,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,iBAAiB,EAAE,6BAA6B,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC/I;;GAEG;AACH,eAAO,MAAM,aAAa,cAAc,CAAA;AAExC;;GAEG;AACH,eAAO,MAAM,WAAW,oCAAoC,CAAA;AAG5D,MAAM,WAAW,uBAAwB,SAAQ,cAAc;IAC7D,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AACD,UAAU,WAAW;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,OAAO;IACtB,OAAO,CAAC,EAAE,aAAa,EAAE,CAAA;IACzB,YAAY,CAAC,EAAE;QAAE,C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,OAAO,CAAA;IACpB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,aAAc,SAAQ,kBAAkB;IACvD,gBAAgB,CAAC,EAAE,OAAO,GAAG,WAAW,CAAA;IACxC,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,MAAM,WAAW,WAAY,SAAQ,kBAAkB;IACrD,gBAAgB,CAAC,EAAE,iBAAiB,GAAG,qBAAqB,CAAA;IAC5D,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,aAAc,SAAQ,kBAAkB;IACvD,gBAAgB,CAAC,EAAE,QAAQ,CAAA;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAA;CACd"}
|
package/dist/settings.js
CHANGED
package/dist/settings.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../src/settings.ts"],"names":[],"mappings":"AAWA;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,WAAW,CAAA;AAExC;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,iCAAiC,CAAA;AAkC3D,CAAC;AA4CD,CAAC;AAMD,CAAC;AAMD,CAAC;AAOD,CAAC;AAQD,CAAC;AAOD,CAAC;AAOD,CAAC;AAcD,CAAC;AAeD,CAAC;AAQD,CAAC;AAOD,CAAC;AAMD,CAAC;AAID,CAAC;AAMD,CAAC;AAMD,CAAC;AAMD,CAAC;AAMD,CAAC;AAUD,CAAC;AAkCD,CAAC;AAKD,CAAC;AAYD,CAAC;AAKD,CAAC"}
|
|
1
|
+
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../src/settings.ts"],"names":[],"mappings":"AAWA;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,WAAW,CAAA;AAExC;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,iCAAiC,CAAA;AAkC3D,CAAC;AA4CD,CAAC;AAMD,CAAC;AAMD,CAAC;AAOD,CAAC;AAQD,CAAC;AAOD,CAAC;AAOD,CAAC;AAcD,CAAC;AAeD,CAAC;AAQD,CAAC;AAOD,CAAC;AAOD,CAAC;AAMD,CAAC;AAID,CAAC;AAMD,CAAC;AAMD,CAAC;AAMD,CAAC;AAMD,CAAC;AAUD,CAAC;AAkCD,CAAC;AAKD,CAAC;AAYD,CAAC;AAKD,CAAC"}
|
package/docs/index.html
CHANGED
|
@@ -113,7 +113,7 @@ Without this step, then you will receive the following error when the swichbot p
|
|
|
113
113
|
<li>Supports OpenAPI & Bluetooth Low Energy (BLE) Connections</li>
|
|
114
114
|
<li>If using OpenAPI:
|
|
115
115
|
<ul>
|
|
116
|
-
<li><a href="https://www.switch-bot.com/products/switchbot-hub-mini">SwitchBot Hub Mini</a> or <a href="https://us.switch-bot.com/products/switchbot-hub-
|
|
116
|
+
<li><a href="https://www.switch-bot.com/products/switchbot-hub-mini">SwitchBot Hub Mini</a>, <a href="https://us.switch-bot.com/products/switchbot-hub-2">SwitchBot Hub 2</a>, or <a href="https://us.switch-bot.com/products/switchbot-hub-3">SwitchBot Hub 3</a> Required</li>
|
|
117
117
|
<li>Enable Cloud Services for Device on SwitchBot App</li>
|
|
118
118
|
</ul>
|
|
119
119
|
</li>
|
|
@@ -130,7 +130,7 @@ Without this step, then you will receive the following error when the swichbot p
|
|
|
130
130
|
<li>Supports OpenAPI & Bluetooth Low Energy (BLE) Connections</li>
|
|
131
131
|
<li>If using OpenAPI:
|
|
132
132
|
<ul>
|
|
133
|
-
<li><a href="https://www.switch-bot.com/products/switchbot-hub-mini">SwitchBot Hub Mini</a> or <a href="https://us.switch-bot.com/products/switchbot-hub-
|
|
133
|
+
<li><a href="https://www.switch-bot.com/products/switchbot-hub-mini">SwitchBot Hub Mini</a>, <a href="https://us.switch-bot.com/products/switchbot-hub-2">SwitchBot Hub 2</a>, or <a href="https://us.switch-bot.com/products/switchbot-hub-3">SwitchBot Hub 3</a> Required</li>
|
|
134
134
|
<li>Enable Cloud Services for Device on SwitchBot App</li>
|
|
135
135
|
</ul>
|
|
136
136
|
</li>
|
|
@@ -147,7 +147,7 @@ Without this step, then you will receive the following error when the swichbot p
|
|
|
147
147
|
<li>Supports OpenAPI & Bluetooth Low Energy (BLE) Connections</li>
|
|
148
148
|
<li>If using OpenAPI:
|
|
149
149
|
<ul>
|
|
150
|
-
<li><a href="https://www.switch-bot.com/products/switchbot-hub-mini">SwitchBot Hub Mini</a> or <a href="https://us.switch-bot.com/products/switchbot-hub-
|
|
150
|
+
<li><a href="https://www.switch-bot.com/products/switchbot-hub-mini">SwitchBot Hub Mini</a>, <a href="https://us.switch-bot.com/products/switchbot-hub-2">SwitchBot Hub 2</a>, or <a href="https://us.switch-bot.com/products/switchbot-hub-3">SwitchBot Hub 3</a> Required</li>
|
|
151
151
|
<li>Enable Cloud Services for Device on SwitchBot App</li>
|
|
152
152
|
</ul>
|
|
153
153
|
</li>
|
|
@@ -165,7 +165,7 @@ Without this step, then you will receive the following error when the swichbot p
|
|
|
165
165
|
<li>Supports OpenAPI & Bluetooth Low Energy (BLE) Connections</li>
|
|
166
166
|
<li>If using OpenAPI:
|
|
167
167
|
<ul>
|
|
168
|
-
<li><a href="https://www.switch-bot.com/products/switchbot-hub-mini">SwitchBot Hub Mini</a> or <a href="https://us.switch-bot.com/products/switchbot-hub-
|
|
168
|
+
<li><a href="https://www.switch-bot.com/products/switchbot-hub-mini">SwitchBot Hub Mini</a>, <a href="https://us.switch-bot.com/products/switchbot-hub-2">SwitchBot Hub 2</a>, or <a href="https://us.switch-bot.com/products/switchbot-hub-3">SwitchBot Hub 3</a> Required</li>
|
|
169
169
|
<li>Enable Cloud Services for Device on SwitchBot App</li>
|
|
170
170
|
</ul>
|
|
171
171
|
</li>
|
|
@@ -182,7 +182,7 @@ Without this step, then you will receive the following error when the swichbot p
|
|
|
182
182
|
<li>Supports OpenAPI & partial Bluetooth Low Energy (BLE) Connections</li>
|
|
183
183
|
<li>If using OpenAPI:
|
|
184
184
|
<ul>
|
|
185
|
-
<li><a href="https://www.switch-bot.com/products/switchbot-hub-mini">SwitchBot Hub Mini</a> or <a href="https://us.switch-bot.com/products/switchbot-hub-
|
|
185
|
+
<li><a href="https://www.switch-bot.com/products/switchbot-hub-mini">SwitchBot Hub Mini</a>, <a href="https://us.switch-bot.com/products/switchbot-hub-2">SwitchBot Hub 2</a>, or <a href="https://us.switch-bot.com/products/switchbot-hub-3">SwitchBot Hub 3</a> Required</li>
|
|
186
186
|
<li>Enable Cloud Services for Device on SwitchBot App</li>
|
|
187
187
|
</ul>
|
|
188
188
|
</li>
|
|
@@ -196,7 +196,7 @@ Without this step, then you will receive the following error when the swichbot p
|
|
|
196
196
|
<li>Supports OpenAPI & partial Bluetooth Low Energy (BLE) Connections</li>
|
|
197
197
|
<li>If using OpenAPI:
|
|
198
198
|
<ul>
|
|
199
|
-
<li><a href="https://www.switch-bot.com/products/switchbot-hub-mini">SwitchBot Hub Mini</a> or <a href="https://us.switch-bot.com/products/switchbot-hub-
|
|
199
|
+
<li><a href="https://www.switch-bot.com/products/switchbot-hub-mini">SwitchBot Hub Mini</a>, <a href="https://us.switch-bot.com/products/switchbot-hub-2">SwitchBot Hub 2</a>, or <a href="https://us.switch-bot.com/products/switchbot-hub-3">SwitchBot Hub 3</a> Required</li>
|
|
200
200
|
<li>Enable Cloud Services for Device on SwitchBot App</li>
|
|
201
201
|
</ul>
|
|
202
202
|
</li>
|
|
@@ -208,7 +208,7 @@ Without this step, then you will receive the following error when the swichbot p
|
|
|
208
208
|
<li>Supports OpenAPI & Bluetooth Low Energy (BLE) Connections</li>
|
|
209
209
|
<li>If using OpenAPI:
|
|
210
210
|
<ul>
|
|
211
|
-
<li><a href="https://www.switch-bot.com/products/switchbot-hub-mini">SwitchBot Hub Mini</a> or <a href="https://us.switch-bot.com/products/switchbot-hub-
|
|
211
|
+
<li><a href="https://www.switch-bot.com/products/switchbot-hub-mini">SwitchBot Hub Mini</a>, <a href="https://us.switch-bot.com/products/switchbot-hub-2">SwitchBot Hub 2</a>, or <a href="https://us.switch-bot.com/products/switchbot-hub-3">SwitchBot Hub 3</a> Required</li>
|
|
212
212
|
<li>Enable Cloud Services for Device on SwitchBot App</li>
|
|
213
213
|
</ul>
|
|
214
214
|
</li>
|
|
@@ -229,7 +229,7 @@ Without this step, then you will receive the following error when the swichbot p
|
|
|
229
229
|
<li>Supports OpenAPI & Bluetooth Low Energy (BLE) Connections</li>
|
|
230
230
|
<li>If using OpenAPI:
|
|
231
231
|
<ul>
|
|
232
|
-
<li><a href="https://www.switch-bot.com/products/switchbot-hub-mini">SwitchBot Hub Mini</a> or <a href="https://us.switch-bot.com/products/switchbot-hub-
|
|
232
|
+
<li><a href="https://www.switch-bot.com/products/switchbot-hub-mini">SwitchBot Hub Mini</a>, <a href="https://us.switch-bot.com/products/switchbot-hub-2">SwitchBot Hub 2</a>, or <a href="https://us.switch-bot.com/products/switchbot-hub-3">SwitchBot Hub 3</a> Required</li>
|
|
233
233
|
<li>Enable Cloud Services for Device on SwitchBot App</li>
|
|
234
234
|
</ul>
|
|
235
235
|
</li>
|
|
@@ -240,7 +240,7 @@ Without this step, then you will receive the following error when the swichbot p
|
|
|
240
240
|
<li>Supports OpenAPI & Bluetooth Low Energy (BLE) Connections</li>
|
|
241
241
|
<li>If using OpenAPI:
|
|
242
242
|
<ul>
|
|
243
|
-
<li><a href="https://www.switch-bot.com/products/switchbot-hub-mini">SwitchBot Hub Mini</a> or <a href="https://us.switch-bot.com/products/switchbot-hub-
|
|
243
|
+
<li><a href="https://www.switch-bot.com/products/switchbot-hub-mini">SwitchBot Hub Mini</a>, <a href="https://us.switch-bot.com/products/switchbot-hub-2">SwitchBot Hub 2</a>, or <a href="https://us.switch-bot.com/products/switchbot-hub-3">SwitchBot Hub 3</a> Required</li>
|
|
244
244
|
<li>Enable Cloud Services for Device on SwitchBot App</li>
|
|
245
245
|
<li>You must set your Bot's Device ID for either Press Mode or Switch Mode in Plugin Config (SwitchBot Device Settings > Bot Settings)
|
|
246
246
|
<ul>
|
|
@@ -272,6 +272,15 @@ Without this step, then you will receive the following error when the swichbot p
|
|
|
272
272
|
</li>
|
|
273
273
|
</ul>
|
|
274
274
|
</li>
|
|
275
|
+
<li><a href="https://us.switch-bot.com/products/switchbot-hub-3">SwitchBot Hub 3</a>
|
|
276
|
+
<ul>
|
|
277
|
+
<li>Supports OpenAPI & Bluetooth Low Energy (BLE) Connections
|
|
278
|
+
<ul>
|
|
279
|
+
<li>Enables Humidity, Temperature, and Light Sensor</li>
|
|
280
|
+
</ul>
|
|
281
|
+
</li>
|
|
282
|
+
</ul>
|
|
283
|
+
</li>
|
|
275
284
|
<li><a href="https://us.switch-bot.com/products/switchbot-battery-circulator-fan">SwitchBot Battery Circulator Fan</a>
|
|
276
285
|
<ul>
|
|
277
286
|
<li>Supports OpenAPI Connection Only</li>
|
|
@@ -283,7 +292,7 @@ Without this step, then you will receive the following error when the swichbot p
|
|
|
283
292
|
</ul>
|
|
284
293
|
</li>
|
|
285
294
|
</ul>
|
|
286
|
-
<h2 id="supported-ir-devices" class="tsd-anchor-link">Supported IR Devices<a href="#supported-ir-devices" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h2><h3 id="all-ir-devices-require-switchbot-hub-2-or-hub-mini" class="tsd-anchor-link"><em>(All IR Devices require <a href="https://us.switch-bot.com/products/switchbot-hub-2">SwitchBot Hub 2</a> or <a href="https://www.switch-bot.com/products/switchbot-hub-mini">Hub Mini</a>)</em><a href="#all-ir-devices-require-switchbot-hub-2-or-hub-mini" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h3><ul>
|
|
295
|
+
<h2 id="supported-ir-devices" class="tsd-anchor-link">Supported IR Devices<a href="#supported-ir-devices" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h2><h3 id="all-ir-devices-require-switchbot-hub-2-switchbot-hub-3-or-hub-mini" class="tsd-anchor-link"><em>(All IR Devices require <a href="https://us.switch-bot.com/products/switchbot-hub-2">SwitchBot Hub 2</a>, <a href="https://us.switch-bot.com/products/switchbot-hub-3">SwitchBot Hub 3</a>, or <a href="https://www.switch-bot.com/products/switchbot-hub-mini">Hub Mini</a>)</em><a href="#all-ir-devices-require-switchbot-hub-2-switchbot-hub-3-or-hub-mini" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h3><ul>
|
|
287
296
|
<li>TV
|
|
288
297
|
<ul>
|
|
289
298
|
<li>Allows for On/Off and Volume Controls</li>
|
|
@@ -377,4 +386,4 @@ Without this step, then you will receive the following error when the swichbot p
|
|
|
377
386
|
<li><a href="https://www.facebook.com/SwitchBotRobot/">Facebook @SwitchBotRobot</a></li>
|
|
378
387
|
<li><a href="https://twitter.com/switchbot">Twitter @SwitchBot</a></li>
|
|
379
388
|
</ul>
|
|
380
|
-
</div></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg><h3>On This Page</h3></summary><div class="tsd-accordion-details"><a href="#switchbothomebridge-switchbot"><span>@switchbot/homebridge-<wbr/>switchbot</span></a><ul><li><a href="#installation"><span>Installation</span></a></li><li><a href="#configuration"><span>Configuration</span></a></li><li><ul><li><a href="#if-using-openapi-connection"><span>If using <wbr/>Open<wbr/>API <wbr/>Connection</span></a></li><li><a href="#if-using-ble-connection"><span>If using <wbr/>BLE <wbr/>Connection</span></a></li></ul></li><li><a href="#troubleshooting"><span>Troubleshooting</span></a></li><li><ul><li><a href="#if-using-linux--raspberry-pi-os"><span>If using <wbr/>Linux / <wbr/>Raspberry <wbr/>Pi <wbr/>OS</span></a></li><li><a href="#if-using-macos"><span>If using <wbr/>Mac<wbr/>OS</span></a></li></ul></li><li><a href="#supported-switchbot-devices"><span>Supported <wbr/>Switch<wbr/>Bot <wbr/>Devices</span></a></li><li><a href="#supported-ir-devices"><span>Supported <wbr/>IR <wbr/>Devices</span></a></li><li><ul><li><a href="#all-ir-devices-require-switchbot-hub-2-or-hub-mini"><span>(<wbr/>All <wbr/>IR <wbr/>Devices require <wbr/>Switch<wbr/>Bot <wbr/>Hub 2 or <wbr/>Hub <wbr/>Mini)</span></a></li></ul></li><li><a href="#switchbot-apis"><span>Switch<wbr/>Bot <wbr/>AP<wbr/>Is</span></a></li><li><a href="#community"><span>Community</span></a></li></ul></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="modules.html">@switchbot/homebridge-switchbot</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer></footer><div class="overlay"></div></body></html>
|
|
389
|
+
</div></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg><h3>On This Page</h3></summary><div class="tsd-accordion-details"><a href="#switchbothomebridge-switchbot"><span>@switchbot/homebridge-<wbr/>switchbot</span></a><ul><li><a href="#installation"><span>Installation</span></a></li><li><a href="#configuration"><span>Configuration</span></a></li><li><ul><li><a href="#if-using-openapi-connection"><span>If using <wbr/>Open<wbr/>API <wbr/>Connection</span></a></li><li><a href="#if-using-ble-connection"><span>If using <wbr/>BLE <wbr/>Connection</span></a></li></ul></li><li><a href="#troubleshooting"><span>Troubleshooting</span></a></li><li><ul><li><a href="#if-using-linux--raspberry-pi-os"><span>If using <wbr/>Linux / <wbr/>Raspberry <wbr/>Pi <wbr/>OS</span></a></li><li><a href="#if-using-macos"><span>If using <wbr/>Mac<wbr/>OS</span></a></li></ul></li><li><a href="#supported-switchbot-devices"><span>Supported <wbr/>Switch<wbr/>Bot <wbr/>Devices</span></a></li><li><a href="#supported-ir-devices"><span>Supported <wbr/>IR <wbr/>Devices</span></a></li><li><ul><li><a href="#all-ir-devices-require-switchbot-hub-2-switchbot-hub-3-or-hub-mini"><span>(<wbr/>All <wbr/>IR <wbr/>Devices require <wbr/>Switch<wbr/>Bot <wbr/>Hub 2, <wbr/>Switch<wbr/>Bot <wbr/>Hub 3, or <wbr/>Hub <wbr/>Mini)</span></a></li></ul></li><li><a href="#switchbot-apis"><span>Switch<wbr/>Bot <wbr/>AP<wbr/>Is</span></a></li><li><a href="#community"><span>Community</span></a></li></ul></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="modules.html">@switchbot/homebridge-switchbot</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer></footer><div class="overlay"></div></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>default | @switchbot/homebridge-switchbot</title><meta name="description" content="Documentation for @switchbot/homebridge-switchbot"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">@switchbot/homebridge-switchbot</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">default</a></li></ul><h1>Variable default</h1></div><div class="tsd-signature"><span class="tsd-kind-variable">default</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">api</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">API</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span></div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature" id="__type"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">api</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">API</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">api</span>: <span class="tsd-signature-type">API</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li></ul></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/homebridge-switchbot/blob/
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>default | @switchbot/homebridge-switchbot</title><meta name="description" content="Documentation for @switchbot/homebridge-switchbot"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">@switchbot/homebridge-switchbot</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">default</a></li></ul><h1>Variable default</h1></div><div class="tsd-signature"><span class="tsd-kind-variable">default</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">api</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">API</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span></div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature" id="__type"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">api</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">API</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">api</span>: <span class="tsd-signature-type">API</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li></ul></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/homebridge-switchbot/blob/169d0b25713dabf18ae722207af9b299d7da753c/src/index.ts#L11">index.ts:11</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@switchbot/homebridge-switchbot</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer></footer><div class="overlay"></div></body></html>
|
package/eslint.config.js
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@switchbot/homebridge-switchbot",
|
|
3
3
|
"displayName": "SwitchBot",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "4.3.2
|
|
5
|
+
"version": "4.3.2",
|
|
6
6
|
"description": "The SwitchBot plugin allows you to access your SwitchBot device(s) from HomeKit.",
|
|
7
7
|
"author": "SwitchBot <support@wondertechlabs.com> (https://github.com/SwitchBot)",
|
|
8
8
|
"contributors": [
|
|
@@ -82,11 +82,11 @@
|
|
|
82
82
|
"async-mqtt": "^2.6.3",
|
|
83
83
|
"fakegato-history": "^0.6.7",
|
|
84
84
|
"homebridge-lib": "^7.1.6",
|
|
85
|
-
"node-switchbot": "^3.6.
|
|
85
|
+
"node-switchbot": "^3.6.1",
|
|
86
86
|
"rxjs": "^7.8.2"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
|
-
"@antfu/eslint-config": "^5.
|
|
89
|
+
"@antfu/eslint-config": "^5.0.0",
|
|
90
90
|
"@types/aes-js": "^3.1.4",
|
|
91
91
|
"@types/debug": "^4.1.12",
|
|
92
92
|
"@types/fs-extra": "^11.0.4",
|
|
@@ -97,17 +97,16 @@
|
|
|
97
97
|
"@vitest/coverage-v8": "^3.2.4",
|
|
98
98
|
"eslint": "^9.32.0",
|
|
99
99
|
"eslint-plugin-format": "^1.0.1",
|
|
100
|
-
"eslint-plugin-import": "^2.32.0",
|
|
101
100
|
"homebridge": "^1.11.0",
|
|
102
|
-
"homebridge-config-ui-x": "5.
|
|
101
|
+
"homebridge-config-ui-x": "5.3.0",
|
|
103
102
|
"nodemon": "^3.1.10",
|
|
104
103
|
"shx": "^0.4.0",
|
|
105
104
|
"ts-node": "^10.9.2",
|
|
106
|
-
"typedoc": "^0.28.
|
|
107
|
-
"typescript": "^5.
|
|
105
|
+
"typedoc": "^0.28.7",
|
|
106
|
+
"typescript": "^5.8.3",
|
|
108
107
|
"vitest": "^3.2.4"
|
|
109
108
|
},
|
|
110
109
|
"directories": {
|
|
111
110
|
"doc": "docs"
|
|
112
111
|
}
|
|
113
|
-
}
|
|
112
|
+
}
|
package/src/device/blindtilt.ts
CHANGED
|
@@ -442,7 +442,9 @@ export class BlindTilt extends deviceBase {
|
|
|
442
442
|
* Asks the SwitchBot API for the latest device information
|
|
443
443
|
*/
|
|
444
444
|
async refreshStatus(): Promise<void> {
|
|
445
|
-
if (this.
|
|
445
|
+
if (!this.device.enableCloudService && this.OpenAPI) {
|
|
446
|
+
this.errorLog(`refreshStatus enableCloudService: ${this.device.enableCloudService}`)
|
|
447
|
+
} else if (this.BLE) {
|
|
446
448
|
await this.BLERefreshStatus()
|
|
447
449
|
} else if (this.OpenAPI && this.platform.config.credentials?.token) {
|
|
448
450
|
await this.openAPIRefreshStatus()
|
|
@@ -514,7 +516,8 @@ export class BlindTilt extends deviceBase {
|
|
|
514
516
|
async openAPIRefreshStatus(): Promise<void> {
|
|
515
517
|
this.debugLog('openAPIRefreshStatus')
|
|
516
518
|
try {
|
|
517
|
-
const
|
|
519
|
+
const response = await this.deviceRefreshStatus()
|
|
520
|
+
const deviceStatus: any = response.body
|
|
518
521
|
this.debugLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)
|
|
519
522
|
if (await this.successfulStatusCodes(deviceStatus)) {
|
|
520
523
|
this.debugSuccessLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)
|
|
@@ -553,7 +556,9 @@ export class BlindTilt extends deviceBase {
|
|
|
553
556
|
}
|
|
554
557
|
|
|
555
558
|
async pushChanges(): Promise<void> {
|
|
556
|
-
if (this.
|
|
559
|
+
if (!this.device.enableCloudService && this.OpenAPI) {
|
|
560
|
+
this.errorLog(`pushChanges enableCloudService: ${this.device.enableCloudService}`)
|
|
561
|
+
} else if (this.BLE) {
|
|
557
562
|
await this.BLEpushChanges()
|
|
558
563
|
} else if (this.OpenAPI && this.platform.config.credentials?.token) {
|
|
559
564
|
await this.openAPIpushChanges()
|
|
@@ -647,7 +652,8 @@ export class BlindTilt extends deviceBase {
|
|
|
647
652
|
}
|
|
648
653
|
this.debugLog(`SwitchBot OpenAPI bodyChange: ${JSON.stringify(bodyChange)}`)
|
|
649
654
|
try {
|
|
650
|
-
const
|
|
655
|
+
const response = await this.pushChangeRequest(bodyChange)
|
|
656
|
+
const deviceStatus: any = response.body
|
|
651
657
|
this.debugLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)
|
|
652
658
|
if (await this.successfulStatusCodes(deviceStatus)) {
|
|
653
659
|
this.debugSuccessLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)
|
package/src/device/bot.ts
CHANGED
|
@@ -358,7 +358,9 @@ export class Bot extends deviceBase {
|
|
|
358
358
|
* Asks the SwitchBot API for the latest device information
|
|
359
359
|
*/
|
|
360
360
|
async refreshStatus(): Promise<void> {
|
|
361
|
-
if (this.
|
|
361
|
+
if (!this.device.enableCloudService && this.OpenAPI) {
|
|
362
|
+
this.errorLog(`refreshStatus enableCloudService: ${this.device.enableCloudService}`)
|
|
363
|
+
} else if (this.BLE) {
|
|
362
364
|
await this.BLERefreshStatus()
|
|
363
365
|
} else if (this.OpenAPI && this.platform.config.credentials?.token) {
|
|
364
366
|
await this.openAPIRefreshStatus()
|
|
@@ -430,7 +432,8 @@ export class Bot extends deviceBase {
|
|
|
430
432
|
async openAPIRefreshStatus(): Promise<void> {
|
|
431
433
|
this.debugLog('openAPIRefreshStatus')
|
|
432
434
|
try {
|
|
433
|
-
const
|
|
435
|
+
const response = await this.deviceRefreshStatus()
|
|
436
|
+
const deviceStatus: any = response.body
|
|
434
437
|
this.debugLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)
|
|
435
438
|
if (await this.successfulStatusCodes(deviceStatus)) {
|
|
436
439
|
this.debugSuccessLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)
|
|
@@ -476,7 +479,9 @@ export class Bot extends deviceBase {
|
|
|
476
479
|
* Bot "command" "press" "default" = trigger press
|
|
477
480
|
*/
|
|
478
481
|
async pushChanges(): Promise<void> {
|
|
479
|
-
if (this.
|
|
482
|
+
if (!this.device.enableCloudService && this.OpenAPI) {
|
|
483
|
+
this.errorLog(`pushChanges enableCloudService: ${this.device.enableCloudService}`)
|
|
484
|
+
} else if (this.BLE) {
|
|
480
485
|
await this.BLEpushChanges()
|
|
481
486
|
} else if (this.OpenAPI && this.platform.config.credentials?.token) {
|
|
482
487
|
await this.openAPIpushChanges()
|
|
@@ -592,7 +597,8 @@ export class Bot extends deviceBase {
|
|
|
592
597
|
}
|
|
593
598
|
this.debugLog(`SwitchBot OpenAPI bodyChange: ${JSON.stringify(bodyChange)}`)
|
|
594
599
|
try {
|
|
595
|
-
const
|
|
600
|
+
const response = await this.pushChangeRequest(bodyChange)
|
|
601
|
+
const deviceStatus: any = response.body
|
|
596
602
|
this.debugLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)
|
|
597
603
|
if (await this.successfulStatusCodes(deviceStatus)) {
|
|
598
604
|
this.debugSuccessLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)
|
|
@@ -269,7 +269,9 @@ export class CeilingLight extends deviceBase {
|
|
|
269
269
|
* Asks the SwitchBot API for the latest device information
|
|
270
270
|
*/
|
|
271
271
|
async refreshStatus(): Promise<void> {
|
|
272
|
-
if (this.
|
|
272
|
+
if (!this.device.enableCloudService && this.OpenAPI) {
|
|
273
|
+
this.errorLog(`refreshStatus enableCloudService: ${this.device.enableCloudService}`)
|
|
274
|
+
} else if (this.BLE) {
|
|
273
275
|
await this.BLERefreshStatus()
|
|
274
276
|
} else if (this.OpenAPI && this.platform.config.credentials?.token) {
|
|
275
277
|
await this.openAPIRefreshStatus()
|
|
@@ -340,7 +342,8 @@ export class CeilingLight extends deviceBase {
|
|
|
340
342
|
async openAPIRefreshStatus(): Promise<void> {
|
|
341
343
|
this.debugLog('openAPIRefreshStatus')
|
|
342
344
|
try {
|
|
343
|
-
const
|
|
345
|
+
const response = await this.deviceRefreshStatus()
|
|
346
|
+
const deviceStatus: any = response.body
|
|
344
347
|
this.debugLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)
|
|
345
348
|
if (await this.successfulStatusCodes(deviceStatus)) {
|
|
346
349
|
this.debugSuccessLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)
|
|
@@ -390,7 +393,9 @@ export class CeilingLight extends deviceBase {
|
|
|
390
393
|
*
|
|
391
394
|
*/
|
|
392
395
|
async pushChanges(): Promise<void> {
|
|
393
|
-
if (this.
|
|
396
|
+
if (!this.device.enableCloudService && this.OpenAPI) {
|
|
397
|
+
this.errorLog(`pushChanges enableCloudService: ${this.device.enableCloudService}`)
|
|
398
|
+
} else if (this.BLE) {
|
|
394
399
|
await this.BLEpushChanges()
|
|
395
400
|
} else if (this.OpenAPI && this.platform.config.credentials?.token) {
|
|
396
401
|
await this.openAPIpushChanges()
|
|
@@ -479,7 +484,8 @@ export class CeilingLight extends deviceBase {
|
|
|
479
484
|
}
|
|
480
485
|
this.debugLog(`SwitchBot OpenAPI bodyChange: ${JSON.stringify(bodyChange)}`)
|
|
481
486
|
try {
|
|
482
|
-
const
|
|
487
|
+
const response = await this.pushChangeRequest(bodyChange)
|
|
488
|
+
const deviceStatus: any = response.body
|
|
483
489
|
this.debugLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)
|
|
484
490
|
if (await this.successfulStatusCodes(deviceStatus)) {
|
|
485
491
|
this.debugSuccessLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)
|
|
@@ -510,7 +516,8 @@ export class CeilingLight extends deviceBase {
|
|
|
510
516
|
}
|
|
511
517
|
this.debugLog(`(pushHueSaturationChanges) SwitchBot OpenAPI bodyChange: ${JSON.stringify(bodyChange)}`)
|
|
512
518
|
try {
|
|
513
|
-
const
|
|
519
|
+
const response = await this.pushChangeRequest(bodyChange)
|
|
520
|
+
const deviceStatus: any = response.body
|
|
514
521
|
this.debugLog(`(pushHueSaturationChanges) statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)
|
|
515
522
|
if (await this.successfulStatusCodes(deviceStatus)) {
|
|
516
523
|
this.debugSuccessLog(`(pushHueSaturationChanges) statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)
|
|
@@ -539,7 +546,8 @@ export class CeilingLight extends deviceBase {
|
|
|
539
546
|
}
|
|
540
547
|
this.debugLog(`(pushColorTemperatureChanges) SwitchBot OpenAPI bodyChange: ${JSON.stringify(bodyChange)}`)
|
|
541
548
|
try {
|
|
542
|
-
const
|
|
549
|
+
const response = await this.pushChangeRequest(bodyChange)
|
|
550
|
+
const deviceStatus: any = response.body
|
|
543
551
|
this.debugLog(`(pushColorTemperatureChanges) statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)
|
|
544
552
|
if (await this.successfulStatusCodes(deviceStatus)) {
|
|
545
553
|
this.debugSuccessLog(`(pushColorTemperatureChanges) statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)
|
|
@@ -566,7 +574,8 @@ export class CeilingLight extends deviceBase {
|
|
|
566
574
|
}
|
|
567
575
|
this.debugLog(`(pushBrightnessChanges) SwitchBot OpenAPI bodyChange: ${JSON.stringify(bodyChange)}`)
|
|
568
576
|
try {
|
|
569
|
-
const
|
|
577
|
+
const response = await this.pushChangeRequest(bodyChange)
|
|
578
|
+
const deviceStatus: any = response.body
|
|
570
579
|
this.debugLog(`(pushBrightnessChanges) statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)
|
|
571
580
|
if (await this.successfulStatusCodes(deviceStatus)) {
|
|
572
581
|
this.debugSuccessLog(`(pushBrightnessChanges) statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)
|
package/src/device/colorbulb.ts
CHANGED
|
@@ -303,7 +303,9 @@ export class ColorBulb extends deviceBase {
|
|
|
303
303
|
* Asks the SwitchBot API for the latest device information
|
|
304
304
|
*/
|
|
305
305
|
async refreshStatus(): Promise<void> {
|
|
306
|
-
if (this.
|
|
306
|
+
if (!this.device.enableCloudService && this.OpenAPI) {
|
|
307
|
+
this.errorLog(`refreshStatus enableCloudService: ${this.device.enableCloudService}`)
|
|
308
|
+
} else if (this.BLE) {
|
|
307
309
|
await this.BLERefreshStatus()
|
|
308
310
|
} else if (this.OpenAPI && this.platform.config.credentials?.token) {
|
|
309
311
|
await this.openAPIRefreshStatus()
|
|
@@ -375,7 +377,8 @@ export class ColorBulb extends deviceBase {
|
|
|
375
377
|
async openAPIRefreshStatus(): Promise<void> {
|
|
376
378
|
this.debugLog('openAPIRefreshStatus')
|
|
377
379
|
try {
|
|
378
|
-
const
|
|
380
|
+
const response = await this.deviceRefreshStatus()
|
|
381
|
+
const deviceStatus: any = response.body
|
|
379
382
|
this.debugLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)
|
|
380
383
|
if (await this.successfulStatusCodes(deviceStatus)) {
|
|
381
384
|
this.debugSuccessLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)
|
|
@@ -425,7 +428,9 @@ export class ColorBulb extends deviceBase {
|
|
|
425
428
|
*
|
|
426
429
|
*/
|
|
427
430
|
async pushChanges(): Promise<void> {
|
|
428
|
-
if (this.
|
|
431
|
+
if (!this.device.enableCloudService && this.OpenAPI) {
|
|
432
|
+
this.errorLog(`pushChanges enableCloudService: ${this.device.enableCloudService}`)
|
|
433
|
+
} else if (this.BLE) {
|
|
429
434
|
await this.BLEpushChanges()
|
|
430
435
|
if (this.LightBulb.On) {
|
|
431
436
|
// Push Brightness Update
|
|
@@ -641,7 +646,8 @@ export class ColorBulb extends deviceBase {
|
|
|
641
646
|
}
|
|
642
647
|
this.debugLog(`SwitchBot OpenAPI bodyChange: ${JSON.stringify(bodyChange)}`)
|
|
643
648
|
try {
|
|
644
|
-
const
|
|
649
|
+
const response = await this.pushChangeRequest(bodyChange)
|
|
650
|
+
const deviceStatus: any = response.body
|
|
645
651
|
this.debugLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)
|
|
646
652
|
if (await this.successfulStatusCodes(deviceStatus)) {
|
|
647
653
|
this.debugSuccessLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)
|
|
@@ -671,7 +677,8 @@ export class ColorBulb extends deviceBase {
|
|
|
671
677
|
}
|
|
672
678
|
this.debugLog(`SwitchBot OpenAPI bodyChange: ${JSON.stringify(bodyChange)}`)
|
|
673
679
|
try {
|
|
674
|
-
const
|
|
680
|
+
const response = await this.pushChangeRequest(bodyChange)
|
|
681
|
+
const deviceStatus: any = response.body
|
|
675
682
|
this.debugLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)
|
|
676
683
|
if (await this.successfulStatusCodes(deviceStatus)) {
|
|
677
684
|
this.debugSuccessLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)
|
|
@@ -700,7 +707,8 @@ export class ColorBulb extends deviceBase {
|
|
|
700
707
|
}
|
|
701
708
|
this.debugLog(`SwitchBot OpenAPI bodyChange: ${JSON.stringify(bodyChange)}`)
|
|
702
709
|
try {
|
|
703
|
-
const
|
|
710
|
+
const response = await this.pushChangeRequest(bodyChange)
|
|
711
|
+
const deviceStatus: any = response.body
|
|
704
712
|
this.debugLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)
|
|
705
713
|
if (await this.successfulStatusCodes(deviceStatus)) {
|
|
706
714
|
this.debugSuccessLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)
|
|
@@ -727,7 +735,8 @@ export class ColorBulb extends deviceBase {
|
|
|
727
735
|
}
|
|
728
736
|
this.debugLog(`SwitchBot OpenAPI bodyChange: ${JSON.stringify(bodyChange)}`)
|
|
729
737
|
try {
|
|
730
|
-
const
|
|
738
|
+
const response = await this.pushChangeRequest(bodyChange)
|
|
739
|
+
const deviceStatus: any = response.body
|
|
731
740
|
this.debugLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)
|
|
732
741
|
if (await this.successfulStatusCodes(deviceStatus)) {
|
|
733
742
|
this.debugSuccessLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)
|
package/src/device/contact.ts
CHANGED
|
@@ -284,7 +284,9 @@ export class Contact extends deviceBase {
|
|
|
284
284
|
* Asks the SwitchBot API for the latest device information
|
|
285
285
|
*/
|
|
286
286
|
async refreshStatus(): Promise<void> {
|
|
287
|
-
if (this.
|
|
287
|
+
if (!this.device.enableCloudService && this.OpenAPI) {
|
|
288
|
+
this.errorLog(`refreshStatus enableCloudService: ${this.device.enableCloudService}`)
|
|
289
|
+
} else if (this.BLE) {
|
|
288
290
|
await this.BLERefreshStatus()
|
|
289
291
|
} else if (this.OpenAPI && this.platform.config.credentials?.token) {
|
|
290
292
|
await this.openAPIRefreshStatus()
|
|
@@ -356,7 +358,8 @@ export class Contact extends deviceBase {
|
|
|
356
358
|
async openAPIRefreshStatus(): Promise<void> {
|
|
357
359
|
this.debugLog('openAPIRefreshStatus')
|
|
358
360
|
try {
|
|
359
|
-
const
|
|
361
|
+
const response = await this.deviceRefreshStatus()
|
|
362
|
+
const deviceStatus: any = response.body
|
|
360
363
|
this.debugLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)
|
|
361
364
|
if (await this.successfulStatusCodes(deviceStatus)) {
|
|
362
365
|
this.debugSuccessLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)
|
package/src/device/curtain.ts
CHANGED
|
@@ -332,8 +332,8 @@ export class Curtain extends deviceBase {
|
|
|
332
332
|
filename: `${hostname().split('.')[0]}_${this.device.bleMac}_persist.json`,
|
|
333
333
|
})
|
|
334
334
|
const motion: Service
|
|
335
|
-
|
|
336
|
-
|
|
335
|
+
= this.accessory.getService(this.hap.Service.MotionSensor)
|
|
336
|
+
|| this.accessory.addService(this.hap.Service.MotionSensor, 'Motion')
|
|
337
337
|
motion.addOptionalCharacteristic(this.platform.eve.Characteristics.LastActivation)
|
|
338
338
|
motion.getCharacteristic(this.platform.eve.Characteristics.LastActivation).onGet(() => {
|
|
339
339
|
const lastActivation = this.accessory.context.lastActivation
|
|
@@ -468,7 +468,9 @@ export class Curtain extends deviceBase {
|
|
|
468
468
|
* Asks the SwitchBot API for the latest device information
|
|
469
469
|
*/
|
|
470
470
|
async refreshStatus(): Promise<void> {
|
|
471
|
-
if (this.
|
|
471
|
+
if (!this.device.enableCloudService && this.OpenAPI) {
|
|
472
|
+
this.errorLog(`refreshStatus enableCloudService: ${this.device.enableCloudService}`)
|
|
473
|
+
} else if (this.BLE) {
|
|
472
474
|
await this.BLERefreshStatus()
|
|
473
475
|
} else if (this.OpenAPI && this.platform.config.credentials?.token) {
|
|
474
476
|
await this.openAPIRefreshStatus()
|
|
@@ -510,7 +512,8 @@ export class Curtain extends deviceBase {
|
|
|
510
512
|
async openAPIRefreshStatus(): Promise<void> {
|
|
511
513
|
this.debugLog('openAPIRefreshStatus')
|
|
512
514
|
try {
|
|
513
|
-
const
|
|
515
|
+
const { body } = await this.deviceRefreshStatus()
|
|
516
|
+
const deviceStatus: any = body
|
|
514
517
|
this.debugLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)
|
|
515
518
|
if (await this.successfulStatusCodes(deviceStatus)) {
|
|
516
519
|
this.debugSuccessLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)
|
|
@@ -583,7 +586,9 @@ export class Curtain extends deviceBase {
|
|
|
583
586
|
* Pushes the requested changes to the SwitchBot API
|
|
584
587
|
*/
|
|
585
588
|
async pushChanges(): Promise<void> {
|
|
586
|
-
if (this.
|
|
589
|
+
if (!this.device.enableCloudService && this.OpenAPI) {
|
|
590
|
+
this.errorLog(`pushChanges enableCloudService: ${this.device.enableCloudService}`)
|
|
591
|
+
} else if (this.BLE) {
|
|
587
592
|
await this.BLEpushChanges()
|
|
588
593
|
} else if (this.OpenAPI && this.platform.config.credentials?.token) {
|
|
589
594
|
await this.openAPIpushChanges()
|
|
@@ -668,7 +673,8 @@ export class Curtain extends deviceBase {
|
|
|
668
673
|
}
|
|
669
674
|
this.debugLog(`SwitchBot OpenAPI bodyChange: ${JSON.stringify(bodyChange)}`)
|
|
670
675
|
try {
|
|
671
|
-
const
|
|
676
|
+
const response = await this.pushChangeRequest(bodyChange)
|
|
677
|
+
const deviceStatus: any = response.body
|
|
672
678
|
this.debugLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)
|
|
673
679
|
if (await this.successfulStatusCodes(deviceStatus)) {
|
|
674
680
|
this.debugSuccessLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)
|