Skip to content

Commit

Permalink
fix(vendor.roborock): Use lo alias cloud redirection approach for S6 …
Browse files Browse the repository at this point in the history
…& S5Max with miio_client 3.5.8
  • Loading branch information
Hypfer committed Jan 18, 2021
1 parent 7114fcc commit 71bc1f8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/robots/roborock/RoborockS5MaxValetudoRobot.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ class RoborockS5MaxValetudoRobot extends RoborockValetudoRobot {
return "S5 Max";
}

setEmbeddedParameters() {
super.setEmbeddedParameters();
this.embeddedDummycloudIp = "203.0.113.1"; //required for the lo alias approach
}

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

Expand Down
5 changes: 5 additions & 0 deletions lib/robots/roborock/RoborockS6ValetudoRobot.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ class RoborockS6ValetudoRobot extends RoborockValetudoRobot {
return "S6";
}

setEmbeddedParameters() {
super.setEmbeddedParameters();
this.embeddedDummycloudIp = "203.0.113.1"; //required for the lo alias approach
}

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

Expand Down

0 comments on commit 71bc1f8

Please sign in to comment.