Skip to content

Commit

Permalink
Change air drying duration options for X1 series ('control.extended.a…
Browse files Browse the repository at this point in the history
…irDryingDuration')
  • Loading branch information
mrbungle64 committed Mar 29, 2024
1 parent f767493 commit 5be8352
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2124,11 +2124,18 @@ class EcovacsDeebot extends utils.Adapter {
}

async createAirDryingStates() {
const states = {
let states = {
120: '120',
180: '180',
240: '240'
};
if (this.getModel().isModelTypeX1()) {
// @ts-ignore
states = {
150: '150',
210: '210'
};
}
await this.setObjectNotExistsAsync('control.extended.airDryingDuration', {
'type': 'state',
'common': {
Expand Down

0 comments on commit 5be8352

Please sign in to comment.