diff --git a/APPSTORE.md b/APPSTORE.md index 34dae26..bf0e728 100644 --- a/APPSTORE.md +++ b/APPSTORE.md @@ -45,6 +45,9 @@ For Homey to be able to communicate with devices over the miIO protocol a unique * Default flow cards for on/off, measure power and meter power capabilities class ## Changelog +### 2018-01-18 -- v2.4.3 +* FIX: fixed issue with setting the favorite mode for Air Purifiers + ### 2018-01-17 -- v2.4.2 * FIX: some improvements for the Yeelights which will hopefully fix devices as appearing offline in Homey * UPDATE: added favorite mode as option for Air Purifiers diff --git a/app.json b/app.json index ca57c68..335df76 100644 --- a/app.json +++ b/app.json @@ -9,7 +9,7 @@ "en": [ "Xiaomi", "Mi", "Mi Home", "miio", "yeelight", "yeelights", "purifier", "humidifier", "philips", "eyecare", "powerplug" ], "nl": [ "Xiaomi", "Mi", "Mi home", "miio", "yeelight", "yeelights", "luchtreiniger", "luchtbevochtiger", "philips", "eyecare", "powerplug" ] }, - "version": "2.4.2", + "version": "2.4.3", "compatibility": "1.x >=1.5.0", "author": { "name": "Jelger Haanstra", diff --git a/lib/util.js b/lib/util.js index a185650..abd7bb7 100644 --- a/lib/util.js +++ b/lib/util.js @@ -203,6 +203,11 @@ exports.sendCommand = function (command, value, address, token) { .then(result => { return resolve(true) }) .then(error => { return reject(error) }); break; + case 'favorite': + device.setMode('favorite') + .then(result => { return resolve(true) }) + .then(error => { return reject(error) }); + break; case 'study': device.setEyecareMode('study') .then(result => { return resolve(true) }) diff --git a/package.json b/package.json index 2430fab..bb863e7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.xiaomi-miio", - "version": "2.4.2", + "version": "2.4.3", "description": "Xiaomi Mi Home", "main": "app.js", "dependencies": {