Skip to content

Commit

Permalink
Release 2.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jghaanstra committed Nov 30, 2017
1 parent 5929214 commit dce6796
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 135 deletions.
3 changes: 2 additions & 1 deletion APPSTORE.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ For Homey to be able to communicate with devices over the miIO protocol a unique
* [ACTIONS] Power on/off, Set speed

## Changelog
### 2017-11-11 -- v2.3.2
### 2017-11-30 -- v2.3.2
* FIX: added a keep-alive to Yeelight connections to maintain the connection over time
* FIX: fixed pairing wizard for Humidifier and Purifier

### 2017-11-06 -- v2.3.1
* UPDATE: code rewrite for SDK2
Expand Down
6 changes: 4 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@
"contributing": {
"donate": {
"paypal": {
"email": "[email protected]",
"currency": "EUR"
"username": "jghaanstra"
}
}
},
"bugs": {
"url": "https://github.com/jghaanstra/com.xiaomi-miio/issues"
},
"images": {
"large": "./assets/images/large.jpg",
"small": "./assets/images/small.jpg"
Expand Down
2 changes: 1 addition & 1 deletion drivers/mi-airpurifier/pair/start.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
token: inputtoken
};

Homey.emit('test-connection', device_data, function(error, result) {
Homey.emit('testConnection', device_data, function(error, result) {
if(error) {
$('.mi-device-error').show();
$('.mi-device-error-msg').html(error.message || error.toString());
Expand Down
2 changes: 1 addition & 1 deletion drivers/mi-humidifier/pair/start.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
token: inputtoken
};

Homey.emit('test-connection', device_data, function(error, result) {
Homey.emit('testConnection', device_data, function(error, result) {
if(error) {
$('.mi-device-error').show();
$('.mi-device-error-msg').html( error.message || error.toString() );
Expand Down
118 changes: 0 additions & 118 deletions drivers/mi-robot/pair/start.html

This file was deleted.

2 changes: 1 addition & 1 deletion drivers/yeelights/device.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class YeelightDevice extends Homey.Device {
if (yeelights[id].socket === null) {
yeelights[id].socket = new net.Socket();
yeelights[id].socket.connect(yeelights[id].data.port, yeelights[id].data.address);
socket.setKeepAlive(true, 60000);
yeelights[id].socket.setKeepAlive(true, 60000);
}
} catch (error) {
console.log("Yeelight: error creating socket " + error);
Expand Down
11 changes: 1 addition & 10 deletions lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,19 +140,10 @@ exports.sendCommand = function (command, value, address, token) {
default:
this.log("Not a valid command");
return reject("Not a valid command");

}
}).catch(function (error) {
return reject(error);
})
})
}

exports.normalize = function (value, min, max) {
var normalized = (value - min) / (max - min);
return normalized;
}

exports.denormalize = function (normalized, min, max) {
var denormalized = ((1 - normalized) * (max - min) + min);
return denormalized;
}
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.3.1",
"version": "2.3.2",
"description": "Xiaomi Mi Home",
"main": "app.js",
"dependencies": {
Expand Down

0 comments on commit dce6796

Please sign in to comment.