Skip to content

Commit

Permalink
feat(vendor.dreame): Add Dreame D9 Pro
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypfer committed Sep 22, 2021
1 parent 36b5b61 commit cc50a8c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions backend/lib/robots/dreame/DreameD9ProValetudoRobot.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const DreameGen2LidarValetudoRobot = require("./DreameGen2LidarValetudoRobot");
const DreameValetudoRobot = require("./DreameValetudoRobot");
const MiioValetudoRobot = require("../MiioValetudoRobot");

class DreameD9ProValetudoRobot extends DreameGen2LidarValetudoRobot {
getModelName() {
return "D9 Pro";
}

static IMPLEMENTATION_AUTO_DETECTION_HANDLER() {
const deviceConf = MiioValetudoRobot.READ_DEVICE_CONF(DreameValetudoRobot.DEVICE_CONF_PATH);

return !!(deviceConf && deviceConf.model === "dreame.vacuum.p2187");
}
}


module.exports = DreameD9ProValetudoRobot;
1 change: 1 addition & 0 deletions backend/lib/robots/dreame/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = {
"Dreame1CValetudoRobot": require("./Dreame1CValetudoRobot"),
"Dreame1TValetudoRobot": require("./Dreame1TValetudoRobot"),
"DreameD9ProValetudoRobot": require("./DreameD9ProValetudoRobot"),
"DreameD9ValetudoRobot": require("./DreameD9ValetudoRobot"),
"DreameF9ValetudoRobot": require("./DreameF9ValetudoRobot"),
"DreameL10ProValetudoRobot": require("./DreameL10ProValetudoRobot"),
Expand Down

0 comments on commit cc50a8c

Please sign in to comment.