Skip to content

Commit

Permalink
Update air-purifier-3.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mouth4war authored Dec 16, 2019
1 parent 541dbce commit 1c002d6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/devices/air-purifier-3.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,21 @@ module.exports = class extends AirPurifier.with(
}
}
);

// Motor Speed
this.defineProperty(
{ did: `${id}`, siid: 10, piid: 8 },
{
name: 'motor_speed',
mapper: v => {
const { siid, piid } = v;

if (siid === 10 && piid === 8) {
return v.value;
}
}
}
);
}

changePower(value) {
Expand Down

0 comments on commit 1c002d6

Please sign in to comment.