Skip to content

Commit

Permalink
A few minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbungle64 committed Feb 21, 2024
1 parent 94c3f83 commit 4847d4d
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,16 @@ class EcovacsDeebot extends utils.Adapter {
this.setConnection(false);
return;
}
this.log.info('Successfully connected to Ecovacs server');
this.log.info('Number of devices: ' + numberOfDevices);
this.log.debug('Devices:' + JSON.stringify(devices));
this.log.info(`Successfully connected to Ecovacs server. Found ${numberOfDevices} device(s) ...`);
this.log.debug(`Devices: ${JSON.stringify(devices)}`);
for (let d = 0; d < numberOfDevices; d++) {
this.log.info('Device[' + d + ']: ' + JSON.stringify(devices[d]));
const deviceJsonString = JSON.stringify(devices[d]);
if (d === this.deviceNumber) {
this.log.info(`Using Device[${d}]: ${deviceJsonString}`);
} else {
this.log.debug(`Device[${d}]: ${deviceJsonString}`);
}
}
this.log.info('Using device Device[' + this.deviceNumber + ']');

const vacuum = devices[this.deviceNumber];

Expand Down

0 comments on commit 4847d4d

Please sign in to comment.