tsvesync 1.0.27 → 1.0.28

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.
@@ -63,7 +63,7 @@ class VeSyncAirBypass extends vesyncFan_1.VeSyncFan {
63
63
  * Turn device on
64
64
  */
65
65
  async turnOn() {
66
- logger_1.logger.debug(`Turning on device: ${this.deviceName}`);
66
+ logger_1.logger.info(`Turning on device: ${this.deviceName}`);
67
67
  const [response, status] = await this.callApi('/cloud/v2/deviceManaged/bypassV2', 'post', {
68
68
  ...helpers_1.Helpers.reqBody(this.manager, 'bypassV2'),
69
69
  cid: this.cid,
@@ -87,7 +87,7 @@ class VeSyncAirBypass extends vesyncFan_1.VeSyncFan {
87
87
  * Turn device off
88
88
  */
89
89
  async turnOff() {
90
- logger_1.logger.debug(`Turning off device: ${this.deviceName}`);
90
+ logger_1.logger.info(`Turning off device: ${this.deviceName}`);
91
91
  const [response, status] = await this.callApi('/cloud/v2/deviceManaged/bypassV2', 'post', {
92
92
  ...helpers_1.Helpers.reqBody(this.manager, 'bypassV2'),
93
93
  cid: this.cid,
@@ -116,7 +116,7 @@ class VeSyncAirBypass extends vesyncFan_1.VeSyncFan {
116
116
  logger_1.logger.error(`${error} for device: ${this.deviceName}`);
117
117
  throw new Error(error);
118
118
  }
119
- logger_1.logger.debug(`Changing fan speed to ${speed} for device: ${this.deviceName}`);
119
+ logger_1.logger.info(`Changing fan speed to ${speed} for device: ${this.deviceName}`);
120
120
  const [response, status] = await this.callApi('/cloud/v2/deviceManaged/bypassV2', 'post', {
121
121
  ...helpers_1.Helpers.reqBody(this.manager, 'bypassV2'),
122
122
  cid: this.cid,
@@ -420,7 +420,7 @@ class VeSyncHumidifier extends vesyncFan_1.VeSyncFan {
420
420
  * Turn device on
421
421
  */
422
422
  async turnOn() {
423
- logger_1.logger.debug(`Turning on device: ${this.deviceName}`);
423
+ logger_1.logger.info(`Turning on device: ${this.deviceName}`);
424
424
  const [response, status] = await this.callApi('/cloud/v2/deviceManaged/bypassV2', 'post', {
425
425
  ...helpers_1.Helpers.reqBody(this.manager, 'bypassV2'),
426
426
  cid: this.cid,
@@ -444,7 +444,7 @@ class VeSyncHumidifier extends vesyncFan_1.VeSyncFan {
444
444
  * Turn device off
445
445
  */
446
446
  async turnOff() {
447
- logger_1.logger.debug(`Turning off device: ${this.deviceName}`);
447
+ logger_1.logger.info(`Turning off device: ${this.deviceName}`);
448
448
  const [response, status] = await this.callApi('/cloud/v2/deviceManaged/bypassV2', 'post', {
449
449
  ...helpers_1.Helpers.reqBody(this.manager, 'bypassV2'),
450
450
  cid: this.cid,
@@ -473,7 +473,7 @@ class VeSyncHumidifier extends vesyncFan_1.VeSyncFan {
473
473
  logger_1.logger.error(`${error} for device: ${this.deviceName}`);
474
474
  throw new Error(error);
475
475
  }
476
- logger_1.logger.debug(`Changing fan speed to ${speed} for device: ${this.deviceName}`);
476
+ logger_1.logger.info(`Changing fan speed to ${speed} for device: ${this.deviceName}`);
477
477
  const [response, status] = await this.callApi('/cloud/v2/deviceManaged/bypassV2', 'post', {
478
478
  ...helpers_1.Helpers.reqBody(this.manager, 'bypassV2'),
479
479
  cid: this.cid,
@@ -59,7 +59,7 @@ class VeSyncWallSwitch extends vesyncSwitch_1.VeSyncSwitch {
59
59
  * Turn off wall switch
60
60
  */
61
61
  async turnOff() {
62
- logger_1.logger.debug(`Turning off device: ${this.deviceName}`);
62
+ logger_1.logger.info(`Turning off device: ${this.deviceName}`);
63
63
  const body = {
64
64
  ...helpers_1.Helpers.reqBody(this.manager, 'devicestatus'),
65
65
  status: 'off',
@@ -78,7 +78,7 @@ class VeSyncWallSwitch extends vesyncSwitch_1.VeSyncSwitch {
78
78
  * Turn on wall switch
79
79
  */
80
80
  async turnOn() {
81
- logger_1.logger.debug(`Turning on device: ${this.deviceName}`);
81
+ logger_1.logger.info(`Turning on device: ${this.deviceName}`);
82
82
  const body = {
83
83
  ...helpers_1.Helpers.reqBody(this.manager, 'devicestatus'),
84
84
  status: 'on',
@@ -161,7 +161,7 @@ class VeSyncDimmerSwitch extends vesyncSwitch_1.VeSyncSwitch {
161
161
  * Turn off dimmer switch
162
162
  */
163
163
  async turnOff() {
164
- logger_1.logger.debug(`Turning off device: ${this.deviceName}`);
164
+ logger_1.logger.info(`Turning off device: ${this.deviceName}`);
165
165
  const body = {
166
166
  ...helpers_1.Helpers.reqBody(this.manager, 'devicestatus'),
167
167
  status: 'off',
@@ -180,7 +180,7 @@ class VeSyncDimmerSwitch extends vesyncSwitch_1.VeSyncSwitch {
180
180
  * Turn on dimmer switch
181
181
  */
182
182
  async turnOn() {
183
- logger_1.logger.debug(`Turning on device: ${this.deviceName}`);
183
+ logger_1.logger.info(`Turning on device: ${this.deviceName}`);
184
184
  const body = {
185
185
  ...helpers_1.Helpers.reqBody(this.manager, 'devicestatus'),
186
186
  status: 'on',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsvesync",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "description": "A TypeScript library for interacting with VeSync smart home devices",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -73,7 +73,7 @@ export class VeSyncAirBypass extends VeSyncFan {
73
73
  * Turn device on
74
74
  */
75
75
  async turnOn(): Promise<boolean> {
76
- logger.debug(`Turning on device: ${this.deviceName}`);
76
+ logger.info(`Turning on device: ${this.deviceName}`);
77
77
  const [response, status] = await this.callApi(
78
78
  '/cloud/v2/deviceManaged/bypassV2',
79
79
  'post',
@@ -104,7 +104,7 @@ export class VeSyncAirBypass extends VeSyncFan {
104
104
  * Turn device off
105
105
  */
106
106
  async turnOff(): Promise<boolean> {
107
- logger.debug(`Turning off device: ${this.deviceName}`);
107
+ logger.info(`Turning off device: ${this.deviceName}`);
108
108
  const [response, status] = await this.callApi(
109
109
  '/cloud/v2/deviceManaged/bypassV2',
110
110
  'post',
@@ -141,7 +141,7 @@ export class VeSyncAirBypass extends VeSyncFan {
141
141
  throw new Error(error);
142
142
  }
143
143
 
144
- logger.debug(`Changing fan speed to ${speed} for device: ${this.deviceName}`);
144
+ logger.info(`Changing fan speed to ${speed} for device: ${this.deviceName}`);
145
145
  const [response, status] = await this.callApi(
146
146
  '/cloud/v2/deviceManaged/bypassV2',
147
147
  'post',
@@ -518,7 +518,7 @@ export class VeSyncHumidifier extends VeSyncFan {
518
518
  * Turn device on
519
519
  */
520
520
  async turnOn(): Promise<boolean> {
521
- logger.debug(`Turning on device: ${this.deviceName}`);
521
+ logger.info(`Turning on device: ${this.deviceName}`);
522
522
  const [response, status] = await this.callApi(
523
523
  '/cloud/v2/deviceManaged/bypassV2',
524
524
  'post',
@@ -549,7 +549,7 @@ export class VeSyncHumidifier extends VeSyncFan {
549
549
  * Turn device off
550
550
  */
551
551
  async turnOff(): Promise<boolean> {
552
- logger.debug(`Turning off device: ${this.deviceName}`);
552
+ logger.info(`Turning off device: ${this.deviceName}`);
553
553
  const [response, status] = await this.callApi(
554
554
  '/cloud/v2/deviceManaged/bypassV2',
555
555
  'post',
@@ -586,7 +586,7 @@ export class VeSyncHumidifier extends VeSyncFan {
586
586
  throw new Error(error);
587
587
  }
588
588
 
589
- logger.debug(`Changing fan speed to ${speed} for device: ${this.deviceName}`);
589
+ logger.info(`Changing fan speed to ${speed} for device: ${this.deviceName}`);
590
590
  const [response, status] = await this.callApi(
591
591
  '/cloud/v2/deviceManaged/bypassV2',
592
592
  'post',
@@ -75,7 +75,7 @@ export class VeSyncWallSwitch extends VeSyncSwitch {
75
75
  * Turn off wall switch
76
76
  */
77
77
  async turnOff(): Promise<boolean> {
78
- logger.debug(`Turning off device: ${this.deviceName}`);
78
+ logger.info(`Turning off device: ${this.deviceName}`);
79
79
  const body = {
80
80
  ...Helpers.reqBody(this.manager, 'devicestatus'),
81
81
  status: 'off',
@@ -102,7 +102,7 @@ export class VeSyncWallSwitch extends VeSyncSwitch {
102
102
  * Turn on wall switch
103
103
  */
104
104
  async turnOn(): Promise<boolean> {
105
- logger.debug(`Turning on device: ${this.deviceName}`);
105
+ logger.info(`Turning on device: ${this.deviceName}`);
106
106
  const body = {
107
107
  ...Helpers.reqBody(this.manager, 'devicestatus'),
108
108
  status: 'on',
@@ -209,7 +209,7 @@ export class VeSyncDimmerSwitch extends VeSyncSwitch {
209
209
  * Turn off dimmer switch
210
210
  */
211
211
  async turnOff(): Promise<boolean> {
212
- logger.debug(`Turning off device: ${this.deviceName}`);
212
+ logger.info(`Turning off device: ${this.deviceName}`);
213
213
  const body = {
214
214
  ...Helpers.reqBody(this.manager, 'devicestatus'),
215
215
  status: 'off',
@@ -236,7 +236,7 @@ export class VeSyncDimmerSwitch extends VeSyncSwitch {
236
236
  * Turn on dimmer switch
237
237
  */
238
238
  async turnOn(): Promise<boolean> {
239
- logger.debug(`Turning on device: ${this.deviceName}`);
239
+ logger.info(`Turning on device: ${this.deviceName}`);
240
240
  const body = {
241
241
  ...Helpers.reqBody(this.manager, 'devicestatus'),
242
242
  status: 'on',