Skip to content

Commit

Permalink
Release 2.11.8
Browse files Browse the repository at this point in the history
  • Loading branch information
jghaanstra committed May 10, 2019
1 parent 99129a6 commit cb35696
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 6 deletions.
7 changes: 3 additions & 4 deletions APPSTORE.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ For Homey to be able to communicate with devices over the miIO protocol a unique
Xiaomi has released an update for the vacuum cleaners that enables zone cleaning and goto function. Using the action cards that utilize these functions are a bit challenging. If you want to use these cards please read the instructions [here](https://github.com/jghaanstra/com.xiaomi-miio/blob/master/docs/mirobot_zonecleanup.md).

## Changelog
### v2.11.7 - 2019-05-05
* FIX: possible fix for app crashes related to connection problems with Yeelights
* FIX: possible fix for app crashes related to connection problems with miio devices
* FIX: fix for app crash when user not defines vacuum cleaner coordinates for zone cleaning correctly
### v2.11.8 - 2019-05-10
* NEW: add action card for setting LED display brightness of Air Purifier and Humidifier2
* IMPROVEMENT: deprecated duplicate on / off action cards for Air Purifier and Humidifier 1 & 2
14 changes: 14 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ class XiaomiMiioApp extends Homey.App {
}
})

/* DEPRECATED */
new Homey.FlowCardAction('airpurifierOn')
.register()
.registerRunListener((args, state) => {
Expand All @@ -149,6 +150,7 @@ class XiaomiMiioApp extends Homey.App {
}
})

/* DEPRECATED */
new Homey.FlowCardAction('airpurifierOff')
.register()
.registerRunListener((args, state) => {
Expand Down Expand Up @@ -180,6 +182,7 @@ class XiaomiMiioApp extends Homey.App {
}
})

/* DEPRECATED */
new Homey.FlowCardAction('humidifierOn')
.register()
.registerRunListener((args, state) => {
Expand All @@ -189,6 +192,7 @@ class XiaomiMiioApp extends Homey.App {
});
})

/* DEPRECATED */
new Homey.FlowCardAction('humidifierOff')
.register()
.registerRunListener((args, state) => {
Expand All @@ -201,6 +205,16 @@ class XiaomiMiioApp extends Homey.App {
}
})

new Homey.FlowCardAction('ledAirpurifierHumidifier')
.register()
.registerRunListener((args, state) => {
if (args.device.miio) {
return args.device.miio.changeLEDBrightness(Number(args.brightness));
} else {
return Promise.reject(new Error('Device unreachable, please try again ...'));
}
})

// PHILIPS EYECARE LAMP: CONDITION AND ACTION FLOW CARDS
new Homey.FlowCardAction('enableEyecare')
.register()
Expand Down
51 changes: 50 additions & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"en": [ "Xiaomi", "Mi", "Mi Home", "miio", "vacuumcleaner", "robot", "yeelight", "yeelights", "purifier", "humidifier", "philips", "eyecare", "powerplug", "gateway" ],
"nl": [ "Xiaomi", "Mi", "Mi home", "miio", "stofzuiger", "robot", "yeelight", "yeelights", "luchtreiniger", "luchtbevochtiger", "philips", "eyecare", "powerplug", "gateway" ]
},
"version": "2.11.7",
"version": "2.11.8",
"compatibility": ">=2.0.0",
"author": {
"name": "Jelger Haanstra",
Expand Down Expand Up @@ -1240,6 +1240,7 @@
},
{
"id": "airpurifierOn",
"deprecated": true,
"title": {
"en": "Turn on",
"nl": "Zet aan"
Expand All @@ -1258,6 +1259,7 @@
},
{
"id": "airpurifierOff",
"deprecated": true,
"title": {
"en": "Turn off",
"nl": "Zet uit"
Expand Down Expand Up @@ -1326,6 +1328,51 @@
}
]
},
{
"id": "ledAirpurifierHumidifier",
"title": {
"en": "LED display brightness",
"nl": "LED display helderheid"
},
"args": [
{
"name": "brightness",
"type": "dropdown",
"values": [
{
"id": "0",
"label": {
"en": "Bright",
"nl": "Helder"
}
},
{
"id": "1",
"label": {
"en": "Dim",
"nl": "Gedimd"
}
},
{
"id": "2",
"label": {
"en": "Off",
"nl": "Uit"
}
}
]
},
{
"name": "device",
"type": "device",
"placeholder": {
"en": "Select Mi Air Purifier",
"nl": "Selecteer Mi Luchtreiniger"
},
"filter": "driver_id=mi-airpurifier|mi-humidifier2"
}
]
},
{
"id": "airpurifierSetFavorite",
"title": {
Expand Down Expand Up @@ -1464,6 +1511,7 @@
},
{
"id": "humidifierOn",
"deprecated": true,
"title": {
"en": "Turn on",
"nl": "Zet aan"
Expand All @@ -1482,6 +1530,7 @@
},
{
"id": "humidifierOff",
"deprecated": true,
"title": {
"en": "Turn off",
"nl": "Zet uit"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.xiaomi-miio",
"version": "2.11.7",
"version": "2.11.8",
"description": "Xiaomi Mi Home",
"main": "app.js",
"dependencies": {
Expand Down

0 comments on commit cb35696

Please sign in to comment.