homebridge-alexa 0.7.0-beta.7 → 0.7.0-beta.9

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/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. This project uses [Semantic Versioning](https://semver.org/).
4
4
 
5
+ ## 0.7.0 (2023-05-30)
6
+
7
+ ## [Version 0.6.9](https://github.com/northernman54/homebridge-alexa/compare/v0.6.9...v0.7.0)
8
+
9
+ #### Changes
10
+
11
+ - Filter discovery of devices from homebridge-alexa-smarthome - needs this Pull Request implemented https://github.com/joeyhage/homebridge-alexa-smarthome/pull/124
12
+ - Updates to package dependencies
13
+
5
14
  ## 0.6.9 (2023-03-30)
6
15
 
7
16
  ## [Version 0.6.9](https://github.com/northernman54/homebridge-alexa/compare/v0.6.8...v0.6.9)
@@ -25,7 +25,7 @@ function Homebridge(devices, context) {
25
25
  thermostatTurnOn: context.thermostatTurnOn
26
26
  };
27
27
  this.playback = {};
28
- devices.accessories.accessories.forEach(function(element) {
28
+ devices.accessories.accessories.forEach(function (element) {
29
29
  var accessory = new Accessory(element, this);
30
30
  if (this.accessories[accessory.name + accessory.aid]) {
31
31
  debug("Duplicate", accessory.name);
@@ -44,7 +44,7 @@ function Homebridge(devices, context) {
44
44
  }.bind(this));
45
45
  }
46
46
 
47
- Homebridge.prototype.toList = function(opt) {
47
+ Homebridge.prototype.toList = function (opt) {
48
48
  var list = [];
49
49
  for (var index in this.accessories) {
50
50
  var accessory = this.accessories[index];
@@ -60,7 +60,7 @@ Homebridge.prototype.toList = function(opt) {
60
60
  return (list);
61
61
  };
62
62
 
63
- Homebridge.prototype.toAlexa = function(opt) {
63
+ Homebridge.prototype.toAlexa = function (opt) {
64
64
  var list = [];
65
65
 
66
66
  // Alexa devices made up of multiple homekit accessories in a single homebridge instance
@@ -143,7 +143,7 @@ Homebridge.prototype.toAlexa = function(opt) {
143
143
  id: this.id,
144
144
  opt: opt
145
145
  });
146
- if (messages.playbackNameTranslate(device.name) === "Play" && ! cookie.Pause) {
146
+ if (messages.playbackNameTranslate(device.name) === "Play" && !cookie.Pause) {
147
147
  // No need for fake pause button, the Play button is a pause/play toggle
148
148
  // debug('Fake pause', this.id, opt);
149
149
  cookie["Pause"] = device.toCookie("On", {
@@ -211,16 +211,18 @@ Homebridge.prototype.toAlexa = function(opt) {
211
211
  if (accessory.playback) {
212
212
  // debug("Media device", accessory.name);
213
213
  }
214
- var alexa = accessory.toAlexa({
215
- deviceID: this.deviceID,
214
+ if (accessory.info.Manufacturer !== 'homebridge-alexa-smarthome') {
215
+ var alexa = accessory.toAlexa({
216
+ deviceID: this.deviceID,
216
217
 
217
- homebridge: this.homebridge,
218
- id: this.id,
219
- opt: opt
220
- });
221
- // debug("Alexa", alexa);
222
- if (alexa) {
223
- list = list.concat(alexa);
218
+ homebridge: this.homebridge,
219
+ id: this.id,
220
+ opt: opt
221
+ });
222
+ // debug("Alexa", alexa);
223
+ if (alexa) {
224
+ list = list.concat(alexa);
225
+ }
224
226
  }
225
227
  }
226
228
  return (list);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homebridge-alexa",
3
- "version": "0.7.0-beta.7",
3
+ "version": "0.7.0-beta.9",
4
4
  "description": "Control your Homebridge devices with Amazon Alexa.",
5
5
  "main": "plugin.js",
6
6
  "scripts": {