Skip to content

Commit

Permalink
A few changes for Airbot Z1
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbungle64 committed Dec 6, 2023
1 parent 6a206d5 commit e2ea5ec
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions nodes/ecovacs-deebot.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,12 @@ module.exports = function (RED) {
node.vacbot.run('GetBatteryState');
node.vacbot.run('GetCleanState');
node.vacbot.run('GetChargeState');
node.vacbot.run('GetSleepStatus');
node.vacbot.run('GetCleanSum');
node.vacbot.run('GetCleanLogs');
node.vacbot.run('GetLifespan');
if (node.vacbot.getModelType() !== 'airbot') {
node.vacbot.run('GetSleepStatus');
node.vacbot.run('GetCleanLogs');
node.vacbot.run('GetLifespan');
}
if (node.vacbot.hasSpotAreaCleaningMode()) {
node.vacbot.run('GetPosition');
if (node.vacbot.isNot950type()) {
Expand Down Expand Up @@ -257,6 +259,10 @@ module.exports = function (RED) {
const msg = createMsgObject('Schedule', object);
node.send(msg);
});
node.vacbot.on('AirQuality', (object) => {
const msg = createMsgObject('AirQuality', object);
node.send(msg);
});
// Activate additional simple events if enabled
if (node.config.enableSimpleEvents) {
node.vacbot.on('ChargePosition', (value) => {
Expand Down

0 comments on commit e2ea5ec

Please sign in to comment.