-
-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(vendor.roborock): dryer module support for S8 Pro and G10s (#2037)
- Loading branch information
Xuefer H
authored
Mar 31, 2024
1 parent
53453f9
commit 37f386a
Showing
5 changed files
with
117 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
backend/lib/robots/roborock/capabilities/RoborockMopDockDryManualTriggerCapability.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
const MopDockDryManualTriggerCapability = require("../../../core/capabilities/MopDockDryManualTriggerCapability"); | ||
|
||
/** | ||
* @extends MopDockDryManualTriggerCapability<import("../RoborockValetudoRobot")> | ||
*/ | ||
class RoborockMopDockDryManualTriggerCapability extends MopDockDryManualTriggerCapability { | ||
/** | ||
* @abstract | ||
* @returns {Promise<void>} | ||
*/ | ||
async startDrying() { | ||
return await this.robot.sendCommand("app_set_dryer_status", { "status": 1 }, {}); | ||
} | ||
|
||
/** | ||
* @abstract | ||
* @returns {Promise<void>} | ||
*/ | ||
async stopDrying() { | ||
return await this.robot.sendCommand("app_set_dryer_status", { "status": 0 }, {}); | ||
} | ||
} | ||
|
||
module.exports = RoborockMopDockDryManualTriggerCapability; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters