Skip to content

Commit

Permalink
Release 2.1.1 - bug fix for Yeelights
Browse files Browse the repository at this point in the history
  • Loading branch information
jghaanstra committed Jul 10, 2017
1 parent 11398c9 commit acdbea5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions APPSTORE.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ Donating is completely optional.
[![Donate](https://www.paypalobjects.com/webstatic/en_US/i/btn/png/btn_donate_92x26.png)](https://paypal.me/jghaanstra)

## Changelog
### 2017-07-10 -- v2.1.1
* FIX: fixed app crashing due to error in connection with Yeelight (which could be the case then the Yeelight is unplugged)

### 2017-06-27 -- v2.1.0
This update requires you to re-pair the Yeelights, Air Purifier and Humidifier.
* NEW: changed from miio protocol to direct API for Yeelights, now using auto discovery and hue and saturation are working
Expand Down
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"en": [ "Xiaomi", "Mi", "Mi Home", "vacuumcleaner", "robot", "yeelight", "yeelights", "purifier", "humidifier" ],
"nl": [ "Xiaomi", "Mi", "Mi home", "stofzuiger", "robot", "yeelight", "yeelights", "luchtreiniger", "luchtbevochtiger" ]
},
"version": "2.1.0",
"version": "2.1.1",
"compatibility": "0.x || 1.x",
"author": {
"name": "Jelger Haanstra",
Expand Down
6 changes: 4 additions & 2 deletions drivers/yeelight-bulb/driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,12 @@ function createDeviceSocket(device_data) {
});

device.socket.on('error', function(error) {
device.socket.destroy();
module.exports.setUnavailable(device_data, __('unreachable'));
});

device.socket.on('close', function(error) {
device.socket = null;
device.state.connected = false;
module.exports.setUnavailable(device_data, __('unreachable'));
});

process.nextTick(function() {
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.1.0",
"version": "2.1.1",
"description": "Xiaomi Mi Home",
"main": "app.js",
"dependencies": {
Expand Down

0 comments on commit acdbea5

Please sign in to comment.