homebridge-alexa 0.8.1 → 0.8.2

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,9 +2,17 @@
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.8.2 (2024-12-27)
6
+
7
+ ## [Version 0.8.2](https://github.com/northernman54/homebridge-alexa/compare/v0.8.1...v0.8.2)
8
+
9
+ #### Bug Fix
10
+
11
+ - Doorbell events not being received
12
+
5
13
  ## 0.8.1 (2024-12-24)
6
14
 
7
- ## [Version 0.8.0](https://github.com/northernman54/homebridge-alexa/compare/v0.8.0...v0.8.1)
15
+ ## [Version 0.8.1](https://github.com/northernman54/homebridge-alexa/compare/v0.8.0...v0.8.1)
8
16
 
9
17
  #### Bug Fix
10
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homebridge-alexa",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "description": "Control your Homebridge devices with Amazon Alexa.",
5
5
  "main": "src/plugin.js",
6
6
  "scripts": {
@@ -161,16 +161,25 @@ function handleError(err, options) {
161
161
  }
162
162
 
163
163
  function alexaEvent(message) {
164
- publishMessage(`event/${username}/1`, message);
164
+ var topic = "event/" + username + "/1";
165
+ var publish = function (callback) {
166
+ debug("Sending message", topic, JSON.stringify(message));
167
+ connection.client.publish(topic, JSON.stringify(message), {
168
+ retain: false
169
+ }, callback);
170
+ };
171
+ limiter.submit(publish);
165
172
  }
166
173
 
167
174
  function alexaPriorityEvent(message) {
168
- limiter.submit({ priority: 4 }, publishMessage, `event/${username}/1`, message);
169
- }
170
-
171
- function publishMessage(topic, message, callback) {
172
- debug("Publishing message", topic, JSON.stringify(message));
173
- connection.client.publish(topic, JSON.stringify(message), { retain: false }, callback);
175
+ var topic = "event/" + username + "/1";
176
+ var publish = function (callback) {
177
+ debug("Sending priority message", topic, JSON.stringify(message));
178
+ connection.client.publish(topic, JSON.stringify(message), {
179
+ retain: false
180
+ }, callback);
181
+ };
182
+ limiter.submit({ priority: 4 }, publish);
174
183
  }
175
184
 
176
185
  function createAlexaErrorResponse(message) {