homebridge-alexa 0.5.58 → 0.5.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/alexaLocal.js CHANGED
@@ -57,7 +57,10 @@ function alexaLocal(options) {
57
57
  connection.subscribe("command/" + username + "/#");
58
58
  connection.publish("presence/" + username + "/1", JSON.stringify({
59
59
  Connected: options.username,
60
- version: packageConfig.version
60
+ version: packageConfig.version,
61
+ transport: options.transport,
62
+ keepalive: options.mqttOptions.keepalive,
63
+ routines: options.events
61
64
  }));
62
65
  });
63
66
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homebridge-alexa",
3
- "version": "0.5.58",
3
+ "version": "0.5.59",
4
4
  "description": "Control your Homebridge devices with Amazon Alexa.",
5
5
  "main": "plugin.js",
6
6
  "scripts": {
package/plugin.js CHANGED
@@ -106,6 +106,7 @@ alexaHome.prototype.didFinishLaunching = function() {
106
106
  log: this.log,
107
107
  debug: this.debug,
108
108
  mqttURL: (this.LegacyCloudTransport ? "mqtt://" + host + ":1883/" : "wss://" + host + "/ws"),
109
+ transport: (this.LegacyCloudTransport ? "mqtt" : "wss"),
109
110
  mqttOptions: {
110
111
  username: this.username,
111
112
  password: this.password,