diff --git a/lib/devices/air-purifier-3.js b/lib/devices/air-purifier-3.js index 964fd36..db3df10 100644 --- a/lib/devices/air-purifier-3.js +++ b/lib/devices/air-purifier-3.js @@ -184,7 +184,7 @@ module.exports = class extends AirPurifier.with( } ); - // Favorite Level + // Favorite Fan Level this.defineProperty( { did: `${id}`, siid: 10, piid: 10 }, { @@ -275,12 +275,12 @@ module.exports = class extends AirPurifier.with( const { id } = this.handle.api; let value = parseInt(speed); - if (value < 390) { - value = 390; + if (value < 300) { + value = 300; } - if (value > 2150) { - value = 2150; + if (value > 2300) { + value = 2300 } return this.call('set_properties', [ @@ -330,7 +330,7 @@ module.exports = class extends AirPurifier.with( ]).then(() => null); } - changeFavorite(level) { + changeFavoriteLevel(level) { const { id } = this.handle.api; let value = parseInt(level);