@switchbot/homebridge-switchbot 2.1.0 → 2.1.1-beta.1
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.js +81 -0
- package/CHANGELOG.md +9 -0
- package/dist/irdevice/airconditioner.d.ts.map +1 -1
- package/dist/irdevice/airconditioner.js +2 -2
- package/dist/irdevice/airconditioner.js.map +1 -1
- package/dist/irdevice/airpurifier.d.ts.map +1 -1
- package/dist/irdevice/airpurifier.js +2 -2
- package/dist/irdevice/airpurifier.js.map +1 -1
- package/dist/irdevice/camera.d.ts.map +1 -1
- package/dist/irdevice/camera.js +2 -2
- package/dist/irdevice/camera.js.map +1 -1
- package/dist/irdevice/fan.d.ts.map +1 -1
- package/dist/irdevice/fan.js +2 -2
- package/dist/irdevice/fan.js.map +1 -1
- package/dist/irdevice/light.d.ts.map +1 -1
- package/dist/irdevice/light.js +2 -2
- package/dist/irdevice/light.js.map +1 -1
- package/dist/irdevice/other.d.ts.map +1 -1
- package/dist/irdevice/other.js +8 -4
- package/dist/irdevice/other.js.map +1 -1
- package/dist/irdevice/tv.d.ts.map +1 -1
- package/dist/irdevice/tv.js +2 -2
- package/dist/irdevice/tv.js.map +1 -1
- package/dist/irdevice/vacuumcleaner.d.ts.map +1 -1
- package/dist/irdevice/vacuumcleaner.js +2 -2
- package/dist/irdevice/vacuumcleaner.js.map +1 -1
- package/dist/irdevice/waterheater.d.ts.map +1 -1
- package/dist/irdevice/waterheater.js +2 -2
- package/dist/irdevice/waterheater.js.map +1 -1
- package/dist/platform.js +2 -2
- package/dist/platform.js.map +1 -1
- package/package.json +1 -1
- package/src/irdevice/airconditioner.ts +5 -5
- package/src/irdevice/airpurifier.ts +5 -5
- package/src/irdevice/camera.ts +5 -5
- package/src/irdevice/fan.ts +5 -5
- package/src/irdevice/light.ts +5 -5
- package/src/irdevice/other.ts +14 -7
- package/src/irdevice/tv.ts +5 -5
- package/src/irdevice/vacuumcleaner.ts +5 -5
- package/src/irdevice/waterheater.ts +5 -5
- package/src/platform.ts +2 -2
|
@@ -161,7 +161,7 @@ export class VacuumCleaner {
|
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
async commandType() {
|
|
164
|
+
async commandType(): Promise<string> {
|
|
165
165
|
let commandType: string;
|
|
166
166
|
if (this.device.customize) {
|
|
167
167
|
commandType = 'customize';
|
|
@@ -171,7 +171,7 @@ export class VacuumCleaner {
|
|
|
171
171
|
return commandType;
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
async commandOn() {
|
|
174
|
+
async commandOn(): Promise<string> {
|
|
175
175
|
let command: string;
|
|
176
176
|
if (this.device.customize && this.device.customOn) {
|
|
177
177
|
command = this.device.customOn;
|
|
@@ -181,10 +181,10 @@ export class VacuumCleaner {
|
|
|
181
181
|
return command;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
async commandOff() {
|
|
184
|
+
async commandOff(): Promise<string> {
|
|
185
185
|
let command: string;
|
|
186
|
-
if (this.device.customize && this.device.
|
|
187
|
-
command = this.device.
|
|
186
|
+
if (this.device.customize && this.device.customOff) {
|
|
187
|
+
command = this.device.customOff;
|
|
188
188
|
} else {
|
|
189
189
|
command = 'turnOff';
|
|
190
190
|
}
|
|
@@ -164,7 +164,7 @@ export class WaterHeater {
|
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
async commandType() {
|
|
167
|
+
async commandType(): Promise<string> {
|
|
168
168
|
let commandType: string;
|
|
169
169
|
if (this.device.customize) {
|
|
170
170
|
commandType = 'customize';
|
|
@@ -174,7 +174,7 @@ export class WaterHeater {
|
|
|
174
174
|
return commandType;
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
-
async commandOn() {
|
|
177
|
+
async commandOn(): Promise<string> {
|
|
178
178
|
let command: string;
|
|
179
179
|
if (this.device.customize && this.device.customOn) {
|
|
180
180
|
command = this.device.customOn;
|
|
@@ -184,10 +184,10 @@ export class WaterHeater {
|
|
|
184
184
|
return command;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
async commandOff() {
|
|
187
|
+
async commandOff(): Promise<string> {
|
|
188
188
|
let command: string;
|
|
189
|
-
if (this.device.customize && this.device.
|
|
190
|
-
command = this.device.
|
|
189
|
+
if (this.device.customize && this.device.customOff) {
|
|
190
|
+
command = this.device.customOff;
|
|
191
191
|
} else {
|
|
192
192
|
command = 'turnOff';
|
|
193
193
|
}
|
package/src/platform.ts
CHANGED
|
@@ -910,8 +910,8 @@ export class SwitchBotPlatform implements DynamicPlatformPlugin {
|
|
|
910
910
|
}
|
|
911
911
|
|
|
912
912
|
if (device.group && !device.curtain?.disable_group) {
|
|
913
|
-
this.debugLog(
|
|
914
|
-
|
|
913
|
+
this.debugLog('Your Curtains are grouped, '
|
|
914
|
+
+ `, Secondary curtain automatically hidden. Main Curtain: ${device.deviceName}, DeviceID: ${device.deviceId}`);
|
|
915
915
|
} else {
|
|
916
916
|
if (device.master) {
|
|
917
917
|
this.warnLog(`Main Curtain: ${device.deviceName}, DeviceID: ${device.deviceId}`);
|