Skip to content

Commit

Permalink
feat(vendor.dreame): 1C PendingMapChangeHandling
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypfer committed Apr 15, 2022
1 parent 457a31c commit 1b2f3bf
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions backend/lib/robots/dreame/Dreame1CValetudoRobot.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,24 @@ class Dreame1CValetudoRobot extends DreameValetudoRobot {
}
}
}));

this.registerCapability(new capabilities.DreamePendingMapChangeHandlingCapability({
robot: this,
miot_actions: {
map_edit: {
siid: MIOT_SERVICES.MAP.SIID,
aiid: MIOT_SERVICES.MAP.ACTIONS.EDIT.AIID
}
},
miot_properties: {
mapDetails: {
piid: MIOT_SERVICES.MAP.PROPERTIES.MAP_DETAILS.PIID
},
actionResult: {
piid: MIOT_SERVICES.MAP.PROPERTIES.ACTION_RESULT.PIID
}
}
}));
}

onIncomingCloudMessage(msg) {
Expand Down

0 comments on commit 1b2f3bf

Please sign in to comment.