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 +9 -1
- package/package.json +1 -1
- package/src/lib/alexaLocal.js +16 -7
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.
|
|
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
package/src/lib/alexaLocal.js
CHANGED
|
@@ -161,16 +161,25 @@ function handleError(err, options) {
|
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
function alexaEvent(message) {
|
|
164
|
-
|
|
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
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
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) {
|