Skip to content

Commit

Permalink
Release 2.13.8
Browse files Browse the repository at this point in the history
  • Loading branch information
jghaanstra committed Nov 22, 2019
1 parent 9f57b6b commit 3d0b700
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 126 deletions.
14 changes: 0 additions & 14 deletions api.js

This file was deleted.

2 changes: 1 addition & 1 deletion drivers/gateway/driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class GatewayDriver extends Homey.Driver {
dim: dim
}

callback(null, 'OK');
callback(null, result);
} catch (error) {
callback(error, null);
}
Expand Down
7 changes: 4 additions & 3 deletions drivers/yeelights/driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ const typeIconMap = {
class YeelightDriver extends Homey.Driver {

onInit() {
if (!ManagerSettings.get('compatibility')) {
yeelight.listenUpdates();
}

// disabled listener for updates when devices come online and on regular interval to pick up IP address changes. Or for sending and receiving discovery messages
// this ports needs to be available for the new Yeelights app com.yeelight
// yeelight.listenUpdates();
}

onPairListDevices (data, callback) {
Expand Down
13 changes: 0 additions & 13 deletions lib/yeelight.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,19 +82,6 @@ exports.listenUpdates = function () {
});
}

exports.toggleListener = function (args, callback) {
try {
if (args.body.toggle) {
advertisements.close();
} else {
this.listenUpdates();
}
callback(null, 'OK');
} catch (error) {
callback(error, false);
}
}

/* parse incoming broadcast messages, match them with registered devices and update their state */
function parseMessage(message) {
return new Promise(function (resolve, reject) {
Expand Down
9 changes: 0 additions & 9 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,6 @@
"battery" : "Batterylevel:",
"fanspeed" : "Fanspeed:"
},
"settings": {
"title": "Yeelights",
"intro1": "When the Xiaomi Mi Home App was first developed communication with Yeelights followed the same protocol as the Xiaomi Mi/MiJia WiFi devices. This is a reversed engineered protocol and is not very user or even developer friendly. At some point a better method to control the Yeelights became available and I implemented support for that. Now the Yeelights and the Xiaomi devices have nothing in common anymore within this app and I have decided to split off the Yeelights into it's own Yeelight app which is available in the app store. This means the Yeelight functionality within the Xiaomi Mi Home app will not be developed and supported anymore.",
"intro2": "I'm aware of the hassle it will be but you are asked to un-paired your Yeelights from this app and re-pair them again in the new Yeelight app. And there is another downside, both apps can not function correctly next to each other. Homey listens to updates from the Yeelights but only one app at the time is able to listen to these status updates which keep your Yeelights in Homey in sync with the actual status of the light. So it's best that you move your Yeelights to the new app within a short time period.",
"intro3": "Once you have moved your devices you should check the checkbox below. This will prevent the Xiaomi Mi Home app from listening to the Yeelights allowing the new Yeelight app to pick up the status updates of your lights. Please restart the new Yeelights app after you have enabled this checkbox.",
"compatibility-label": "Turn Off Yeelight Updates",
"success": "Settings have been tested succesfully. Please restart the new Yeelights app.",
"save": "Save"
},
"yeelight_bulb_color": "Yeelight Bulb Color",
"yeelight_bulb_white": "Yeelight Bulb White",
"yeelight_led_stripe": "Yeelight LED Strip",
Expand Down
9 changes: 0 additions & 9 deletions locales/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,6 @@
"battery" : "Battery niveau:",
"fanspeed" : "Ventilator snelheid:"
},
"settings": {
"title": "Yeelights",
"intro1": "When the Xiaomi Mi Home App was first developed communication with Yeelights followed the same protocol as the Xiaomi Mi/MiJia WiFi devices. This is a reversed engineered protocol and is not very user or even developer friendly. At some point a better method to control the Yeelights became available and I implemented support for that. Now the Yeelights and the Xiaomi devices have nothing in common anymore within this app and I have decided to split off the Yeelights into it's own Yeelight app which is available in the app store. This means the Yeelight functionality within the Xiaomi Mi Home app will not be developed and supported anymore.",
"intro2": "I'm aware of the hassle it will be but you are asked to un-paired your Yeelights from this app and re-pair them again in the new Yeelight app. And there is another downside, both apps can not function correctly next to each other. Homey listens to updates from the Yeelights but only one app at the time is able to listen to these status updates which keep your Yeelights in Homey in sync with the actual status of the light. So it's best that you move your Yeelights to the new app within a short time period.",
"intro3": "Once you have moved your devices you should check the checkbox below. This will prevent the Xiaomi Mi Home app from listening to the Yeelights allowing the new Yeelight app to pick up the status updates of your lights. Please restart the new Yeelights app after you have enabled this checkbox.",
"compatibility-label": "Turn Off Yeelight Updates",
"success": "Settings have been tested succesfully. Please restart the new Yeelights app.",
"save": "Save"
},
"yeelight_bulb_color": "Yeelight Bulb Kleur",
"yeelight_bulb_white": "Yeelight Bulb Wit",
"yeelight_led_strip": "Yeelight LED strip",
Expand Down
77 changes: 0 additions & 77 deletions settings/index.html

This file was deleted.

0 comments on commit 3d0b700

Please sign in to comment.