Skip to content

Commit a439b76

Browse files
Automated clean up and removal devices that are not responding or orphan devices. (#768)
Changes Major improvement in the handling of missing or orphan devices in Alexa. When deviceCleanup is enabled the plugin will inform Alexa when a request is received for a missing or orphan device, and tell Alexa to remove the device. Bug Fix Fix for Routines not working Alexa Routines no longer working #761 Fix for missing Mute function with Apple TV Changes Increased test case coverage
1 parent b6a845a commit a439b76

25 files changed

+31976
-533
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ gh-md-toc
1818
/test/hbConfig/persist
1919
test/hbConfig/config.json
2020
test/hbConfig/homebridge-alexa-discovery.json
21+
test/hbConfig/homebridge-alexa-endpoints.json

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,23 @@
22

33
All notable changes to this project will be documented in this file. This project uses [Semantic Versioning](https://semver.org/).
44

5+
## 0.9.0 (2025-03-30)
6+
7+
## [Version 0.9.0](https://github.com/northernman54/homebridge-alexa/compare/v0.8.2...v0.9.0)
8+
9+
#### Changes
10+
11+
- Major improvement in the handling of missing or orphan devices in Alexa. When `deviceCleanup` is enabled the plugin will inform Alexa when a request is received for a missing or orphan device, and tell Alexa to remove the device.
12+
13+
#### Bug Fix
14+
15+
- Fix for Routines not working #761
16+
- Fix for missing Mute function with Apple TV
17+
18+
#### Changes
19+
20+
- Increased test case coverage
21+
522
## 0.8.2 (2024-12-27)
623

724
## [Version 0.8.2](https://github.com/northernman54/homebridge-alexa/compare/v0.8.1...v0.8.2)

Installation.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Installation and Configuration of Homebridge Alexa
1818
* [Required Settings](#required-settings)
1919
* [Optional Settings](#optional-settings)
2020
* [debug](#debug)
21+
* [deviceCleanup](#devicecleanup)
2122
* [pin](#pin)
2223
* [routines](#routines)
2324
* [deviceList & deviceListHandling - Filtering of devices by name, either allow or allow](#devicelist--devicelisthandling---filtering-of-devices-by-name-either-allow-or-allow)
@@ -188,6 +189,21 @@ sudo npm install -g homebridge-alexa
188189
],
189190
```
190191

192+
#### deviceCleanup
193+
- This enables automated cleanup of missing or orphan devices within the Alexa environment. When this is enabled, if a request is received from Alexa for a device that is no longer in homebridge, the plugin will send a request to Alexa to delete the device.
194+
195+
```
196+
"platforms": [
197+
{
198+
"platform": "Alexa",
199+
"name": "Alexa",
200+
"username": "....",
201+
"password": "....",
202+
"deviceCleanup": true
203+
}
204+
],
205+
```
206+
191207
#### pin
192208
- If you had changed your homebridge pin from the default of "pin": "031-45-154" ie
193209

package-lock.json

Lines changed: 55 additions & 140 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "homebridge-alexa",
3-
"version": "0.8.2",
3+
"version": "0.9.0",
44
"description": "Control your Homebridge devices with Amazon Alexa.",
55
"main": "src/plugin.js",
66
"scripts": {
7-
"test": "jest --forceExit --detectOpenHandles --verbose=true --silent ",
7+
"test": "jest --forceExit --detectOpenHandles --verbose=true ",
88
"api": "documentation build plugin.js lib/alexaActions.js lib/alexaLocal.js lib/alexaMessages.js lib/alexaTranslator.js -f md --config docs/documentation.yml > docs/API.md",
99
"document": "./gh-md-toc --hide-footer README.md ;./gh-md-toc --hide-footer Troubleshooting.md ;./gh-md-toc --hide-footer Installation.md; rm README.md.orig.* README.md.toc.* Troubleshooting.md.orig.* Troubleshooting.md.toc.* Installation.md.orig.* Installation.md.toc.*",
1010
"watch": "nodemon",

0 commit comments

Comments
 (0)