homebridge-alexa 0.6.8-beta.0 → 0.6.8

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.
@@ -0,0 +1,92 @@
1
+ name: "Build and Publish"
2
+
3
+ on:
4
+ push:
5
+ branches: [beta-*.*.*, beta]
6
+ workflow_dispatch:
7
+
8
+ jobs:
9
+ get_tags:
10
+ runs-on: ubuntu-latest
11
+
12
+ steps:
13
+ # checkout repo
14
+ - uses: actions/checkout@v4
15
+
16
+ # get branch / tag name
17
+ - name: Get Branch / Tag Name
18
+ id: get_branch
19
+ run: |
20
+ export BRANCH_NAME=$(if [[ ${GITHUB_REF} =~ "refs/tags/" ]]; then echo ${GITHUB_REF/refs\/tags\//}; else echo ${GITHUB_REF/refs\/heads\//}; fi)
21
+ echo $BRANCH_NAME
22
+ echo "BRANCH_NAME=${BRANCH_NAME}" >> $GITHUB_OUTPUT
23
+
24
+ # generate the image tag
25
+ - name: Get Image Tag
26
+ id: get_tag
27
+ run: |
28
+ export TARGET_IMAGE_TAG=$(if [ "${{ steps.get_branch.outputs.BRANCH_NAME }}" = "main" ]; then echo "main"; else echo "${{ steps.get_branch.outputs.BRANCH_NAME }}" | awk -F- '{ print $1 }'; fi)
29
+ echo $TARGET_IMAGE_TAG
30
+ echo "TARGET_IMAGE_TAG=${TARGET_IMAGE_TAG}" >> $GITHUB_OUTPUT
31
+
32
+ outputs:
33
+ BRANCH_NAME: ${{ steps.get_branch.outputs.BRANCH_NAME }}
34
+ TARGET_IMAGE_TAG: ${{ steps.get_tag.outputs.TARGET_IMAGE_TAG }}
35
+
36
+ create_documentation:
37
+ runs-on: ubuntu-latest
38
+
39
+ steps:
40
+ # checkout repo
41
+ - uses: actions/checkout@v4
42
+ with:
43
+ persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
44
+ fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
45
+
46
+ - uses: actions/setup-node@v3
47
+ with:
48
+ node-version: lts/*
49
+
50
+ - name: Retrieve github-markdown-toc
51
+ run: |
52
+ wget -q https://raw.githubusercontent.com/ekalinin/github-markdown-toc/master/gh-md-toc
53
+ chmod a+x gh-md-toc
54
+
55
+ - name: Create Table of Contents
56
+ run: |
57
+ npm run-script document
58
+
59
+ - name: Commit files
60
+ run: |
61
+ git config --local user.email "github-actions[bot]@users.noreply.github.com"
62
+ git config --local user.name "github-actions[bot]"
63
+ git commit -a -m "Update TOC"
64
+
65
+ - name: Push changes
66
+ uses: ad-m/github-push-action@master
67
+ with:
68
+ github_token: ${{ secrets.GITHUB_TOKEN }}
69
+ branch: ${{ github.ref }}
70
+
71
+ publish_release:
72
+ needs: [get_tags, create_documentation]
73
+ name: Publish Release Version
74
+ if: ${{ needs.get_tags.outputs.BRANCH_NAME == 'main' }}
75
+ uses: homebridge/.github/.github/workflows/npm-publish.yml@latest
76
+ with:
77
+ install_cmd: npm ci
78
+ secrets:
79
+ npm_auth_token: ${{ secrets.npm_token }}
80
+
81
+ publish_test:
82
+ needs: [get_tags, create_documentation]
83
+ name: Publish Test Version - ${{ needs.get_tags.outputs.BRANCH_NAME }}
84
+ if: ${{ needs.get_tags.outputs.BRANCH_NAME != 'main' }}
85
+ uses: homebridge/.github/.github/workflows/npm-publish.yml@latest
86
+ with:
87
+ tag: ${{ needs.get_tags.outputs.TARGET_IMAGE_TAG }}
88
+ dynamically_adjust_version: true
89
+ npm_version_command: 'pre'
90
+ pre_id: ${{ needs.get_tags.outputs.TARGET_IMAGE_TAG }}
91
+ secrets:
92
+ npm_auth_token: ${{ secrets.npm_token }}
package/CHANGELOG.md CHANGED
@@ -2,7 +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.6.7 (2023-07-07)
5
+ ## 0.6.8 (2023-12-13)
6
+
7
+ ## [Version 0.6.8](https://github.com/northernman54/homebridge-alexa/compare/v0.6.7...v0.6.8)
8
+
9
+ #### Changes
10
+
11
+ - Fix for issue #591, Window coverings / blinds show as unresponsive in the Alexa App
12
+
13
+ ## 0.6.7 (2023-09-27)
6
14
 
7
15
  ## [Version 0.6.7](https://github.com/northernman54/homebridge-alexa/compare/v0.6.6...v0.6.7)
8
16
 
package/Installation.md CHANGED
@@ -2,10 +2,46 @@ Installation and Configuration of Homebridge Alexa
2
2
  ==================================================
3
3
 
4
4
  <!--ts-->
5
-
5
+ * [Installation and Configuration of Homebridge Alexa](#installation-and-configuration-of-homebridge-alexa)
6
+ * [Setup Instructions](#setup-instructions)
7
+ * [Create Homebridge-Alexa Cloud Services Account](#create-homebridge-alexa-cloud-services-account)
8
+ * [Install and Configure the Plugin](#install-and-configure-the-plugin)
9
+ * [Installation in Homebridge UI](#installation-in-homebridge-ui)
10
+ * [Configuration in Homebridge UI](#configuration-in-homebridge-ui)
11
+ * [Enabling and linking the Homebridge Smart Home Skill](#enabling-and-linking-the-homebridge-smart-home-skill)
12
+ * [Viewing Account Status](#viewing-account-status)
13
+ * [Advanced Setup Instructions, including advanced configuration options](#advanced-setup-instructions-including-advanced-configuration-options)
14
+ * [Prepare Homebridge for plugin installation](#prepare-homebridge-for-plugin-installation)
15
+ * [Install Plugin](#install-plugin)
16
+ * [Create homebridge-alexa account](#create-homebridge-alexa-account)
17
+ * [HomeBridge-alexa plugin configuration](#homebridge-alexa-plugin-configuration)
18
+ * [Required Settings](#required-settings)
19
+ * [Optional Settings](#optional-settings)
20
+ * [debug](#debug)
21
+ * [pin](#pin)
22
+ * [routines](#routines)
23
+ * [deviceList &amp; deviceListHandling - Filtering of devices by name, either allow or allow](#devicelist--devicelisthandling---filtering-of-devices-by-name-either-allow-or-allow)
24
+ * [Advanced Settings](#advanced-settings)
25
+ * [CloudTransport - Cloud Server Connection Transport](#cloudtransport---cloud-server-connection-transport)
26
+ * [keepalive - Cloud Server Connection Keepalive](#keepalive---cloud-server-connection-keepalive)
27
+ * [refresh - Accessory Cache Refresh Interval](#refresh---accessory-cache-refresh-interval)
28
+ * [filter - Homebridge Instance Filter](#filter---homebridge-instance-filter)
29
+ * [mergeServiceName - Alternate device naming](#mergeservicename---alternate-device-naming)
30
+ * [blind](#blind)
31
+ * [door](#door)
32
+ * [Speaker Settings](#speaker-settings)
33
+ * [speakers](#speakers)
34
+ * [Combine Accessories](#combine-accessories)
35
+ * [combine](#combine)
36
+ * [Inputs](#inputs)
37
+ * [Apple TV](#apple-tv)
38
+ * [Yamaha Spotify Controls](#yamaha-spotify-controls)
39
+ * [Initial Testing and confirming configuration](#initial-testing-and-confirming-configuration)
40
+ * [Enable Homebridge smarthome skill and link accounts](#enable-homebridge-smarthome-skill-and-link-accounts)
41
+ * [Discover Devices](#discover-devices)
6
42
 
7
43
  <!-- Created by https://github.com/ekalinin/github-markdown-toc -->
8
- <!-- Added by: sgracey, at: Wed 27 Sep 2023 19:52:25 EDT -->
44
+ <!-- Added by: runner, at: Wed Dec 13 14:15:55 UTC 2023 -->
9
45
 
10
46
  <!--te-->
11
47
 
package/README.md CHANGED
@@ -37,10 +37,54 @@ Country availability - The plugin is available in these countries, English (AU),
37
37
 
38
38
  # Table of Contents
39
39
  <!--ts-->
40
-
40
+ * [Note to users of the service](#note-to-users-of-the-service)
41
+ * [New Users](#new-users)
42
+ * [Availability](#availability)
43
+ * [Features](#features)
44
+ * [Table of Contents](#table-of-contents)
45
+ * [Supported devices](#supported-devices)
46
+ * [HomeKit/Homebridge Devices supported](#homekithomebridge-devices-supported)
47
+ * [Native Support](#native-support)
48
+ * [Supported as Other Types](#supported-as-other-types)
49
+ * [Non-Homebridge Devices](#non-homebridge-devices)
50
+ * [Unsupported device types](#unsupported-device-types)
51
+ * [Alexa Voice Commands](#alexa-voice-commands)
52
+ * [Setup](#setup)
53
+ * [Light bulbs / Switches / Dimmer Switches](#light-bulbs--switches--dimmer-switches)
54
+ * [Color lights](#color-lights)
55
+ * [Color temperature](#color-temperature)
56
+ * [Color Temperatures](#color-temperatures)
57
+ * [Garage door, Blinds and Window Coverings](#garage-door-blinds-and-window-coverings)
58
+ * [Garage Door With door = false](#garage-door-with-door--false)
59
+ * [Window coverings / blinds With blind = false](#window-coverings--blinds-with-blind--false)
60
+ * [Garage Door With blind = true ( Not supported in all countries )](#garage-door-with-blind--true--not-supported-in-all-countries-)
61
+ * [Window coverings / blinds With blind = true ( Not supported in all countries )](#window-coverings--blinds-with-blind--true--not-supported-in-all-countries-)
62
+ * [Thermostat's and Heater / Cooler's](#thermostats-and-heater--coolers)
63
+ * [Lock / Unlock Doors](#lock--unlock-doors)
64
+ * [Temperature sensors](#temperature-sensors)
65
+ * [AppleTV ( homebridge-apple-tv or homebridge-apple-tv-remote )](#appletv--homebridge-apple-tv-or-homebridge-apple-tv-remote-)
66
+ * [HomeKit Television](#homekit-television)
67
+ * [HomeKit Television - Tested plugins](#homekit-television---tested-plugins)
68
+ * [Television Inputs and Channels](#television-inputs-and-channels)
69
+ * [Speakers](#speakers)
70
+ * [Bose SoundLink - Change preset](#bose-soundlink---change-preset)
71
+ * [Yamaha Receiver/Spotify control](#yamaha-receiverspotify-control)
72
+ * [Contact and Motion Sensors](#contact-and-motion-sensors)
73
+ * [Door bell devices](#door-bell-devices)
74
+ * [Installation of homebridge-alexa](#installation-of-homebridge-alexa)
75
+ * [Service Availability and Issues](#service-availability-and-issues)
76
+ * [Homebridge cloud service monitoring ( homebridge.ca )](#homebridge-cloud-service-monitoring--homebridgeca-)
77
+ * [Raising Issues and Troubleshooting](#raising-issues-and-troubleshooting)
78
+ * [Troubleshooting](#troubleshooting)
79
+ * [Known Issues](#known-issues)
80
+ * [Discord Channel](#discord-channel)
81
+ * [Debug logs](#debug-logs)
82
+ * [Homebridge Accessory Dump](#homebridge-accessory-dump)
83
+ * [Roadmap](#roadmap)
84
+ * [Credits](#credits)
41
85
 
42
86
  <!-- Created by https://github.com/ekalinin/github-markdown-toc -->
43
- <!-- Added by: sgracey, at: Wed 27 Sep 2023 19:52:24 EDT -->
87
+ <!-- Added by: runner, at: Wed Dec 13 14:15:55 UTC 2023 -->
44
88
 
45
89
  <!--te-->
46
90
 
@@ -289,7 +333,7 @@ From here you should be able to determine if your plugin is communicating with t
289
333
 
290
334
  ### Known Issues
291
335
 
292
- * I have started recording troubleshooting tips here based on issues seen by the community [Troubleshooting](Troubleshooting.MD).
336
+ * I have started recording troubleshooting tips here based on issues seen by the community [Troubleshooting](Troubleshooting.md).
293
337
  * All homebridge PIN's in your setup need to be set to the same value.
294
338
  * An Alexa device or a software based Alexa is required. Using just the App or Website does not work, and device discovery will fail to find devices. The Reverb app is a software based Alexa that is known to work.
295
339
  * The maximum number of supported devices is 300. This is a limitation from the from the Amazon side, and not the plugin.
@@ -1,10 +1,40 @@
1
1
  **Troubleshooting Tips**
2
2
 
3
3
  <!--ts-->
4
-
4
+ * [Initial Setup](#initial-setup)
5
+ * [[Alexa] ERROR: ( homebridge-alexa) Login to homebridge.ca failed, please validate your credentials in config.json and restart homebridge.](#alexa-error--homebridge-alexa-login-to-homebridgeca-failed-please-validate-your-credentials-in-configjson-and-restart-homebridge)
6
+ * [- Bad login or password in your config.json for <a href="https://www.homebridge.ca" rel="nofollow">https://www.homebridge.ca</a>](#--bad-login-or-password-in-your-configjson-for-httpswwwhomebridgeca)
7
+ * [[Alexa] ERROR: ( homebridge-alexa) You have an issue with your installation, please review the README.](#alexa-error--homebridge-alexa-you-have-an-issue-with-your-installation-please-review-the-readme)
8
+ * [- Cloud Server DDOS Protection has blocked your IP address](#--cloud-server-ddos-protection-has-blocked-your-ip-address)
9
+ * [- Multiple copies of homebridge-alexa on your network](#--multiple-copies-of-homebridge-alexa-on-your-network)
10
+ * [- VPN Software interfering with homebridge-alexa to homebridge.ca communications](#--vpn-software-interfering-with-homebridge-alexa-to-homebridgeca-communications)
11
+ * [[Alexa] ERROR: ( homebridge-alexa) Stopping Home Skill connection due to excessive reconnects, please review the README.](#alexa-error--homebridge-alexa-stopping-home-skill-connection-due-to-excessive-reconnects-please-review-the-readme)
12
+ * [[Alexa] WARNING: Duplicate device name xxxxx](#alexa-warning-duplicate-device-name-xxxxx)
13
+ * [Initial Setup Messages from DEBUG mode](#initial-setup-messages-from-debug-mode)
14
+ * [alexaHAP HAP Discover failed ... is not running in insecure mode](#alexahap-hap-discover-failed--is-not-running-in-insecure-mode)
15
+ * [HAP Discover failed ..... error code 470](#hap-discover-failed--error-code-470)
16
+ * [Upgraded from old version and am seeing this error message](#upgraded-from-old-version-and-am-seeing-this-error-message)
17
+ * [[Alexa] ERROR: HAP Discovery failed, please review config](#alexa-error-hap-discovery-failed-please-review-config)
18
+ * [alexaLocal ERROR: connect ECONNREFUSED 35.169.132.61:1883 -&gt; ECONNREFUSED](#alexalocal-error-connect-econnrefused-35169132611883----econnrefused)
19
+ * [alexaLocal error { Error: connect ECONNREFUSED 35.169.132.61:8883](#alexalocal-error--error-connect-econnrefused-35169132618883)
20
+ * [Device Discovery](#device-discovery)
21
+ * [Device discovery fails and the plugin logs show no issues.](#device-discovery-fails-and-the-plugin-logs-show-no-issues)
22
+ * [Device discovery fails, and this message is in the logs ERROR: Empty accessory name, parsing failed.](#device-discovery-fails-and-this-message-is-in-the-logs-error-empty-accessory-name-parsing-failed)
23
+ * [Device discovery fails, and this message is in the logs ERROR: Maximum devices/accessories of 300 exceeded.](#device-discovery-fails-and-this-message-is-in-the-logs-error-maximum-devicesaccessories-of-300-exceeded)
24
+ * [Device discovery fails, and this message is in the logs ERROR: Parsing failed, duplicate endpointID.](#device-discovery-fails-and-this-message-is-in-the-logs-error-parsing-failed-duplicate-endpointid)
25
+ * [After restarting homebridge Alexa can't find devices and needs to discover them again. Or you have duplicate devices in Alexa](#after-restarting-homebridge-alexa-cant-find-devices-and-needs-to-discover-them-again--or-you-have-duplicate-devices-in-alexa)
26
+ * [Controlling devices](#controlling-devices)
27
+ * [[Alexa] PowerController TurnOff 192.168.1.226 51826 undefined Error: Homebridge auth failed, invalid PIN](#alexa-powercontroller-turnoff-1921681226-51826-undefined-error-homebridge-auth-failed-invalid-pin)
28
+ * [Event error messages](#event-error-messages)
29
+ * [[Alexa] WARNING: ( homebridge-alexa) Dropped event message, message rate too high.](#alexa-warning--homebridge-alexa-dropped-event-message-message-rate-too-high)
30
+ * [ERROR: Error: getAccessToken No data Error: XXXXXXXXXX](#error--error-getaccesstoken-no-data-error-xxxxxxxxxx)
31
+ * [ERROR: Error: getAccessToken Token not found](#error--error-getaccesstoken-token-not-found)
32
+ * [Unsuccessful event message ( No event gateway token )](#unsuccessful-event-message--no-event-gateway-token-)
33
+ * [Successful event message being sent to Alexa](#successful-event-message-being-sent-to-alexa)
34
+ * [[Alexa] ERROR: Event gateway token refresh error: 400](#alexa-error--event-gateway-token-refresh-error-400)
5
35
 
6
36
  <!-- Created by https://github.com/ekalinin/github-markdown-toc -->
7
- <!-- Added by: sgracey, at: Wed 27 Sep 2023 19:52:25 EDT -->
37
+ <!-- Added by: runner, at: Wed Dec 13 14:15:55 UTC 2023 -->
8
38
 
9
39
  <!--te-->
10
40
 
@@ -532,7 +532,7 @@ async function alexaThermostatController(message, callback) {
532
532
  }
533
533
  debug("alexaThermostatController - haAction", JSON.stringify(haAction));
534
534
  } catch (e) {
535
- this.log("alexaThermostatController ERROR: '%s' Action: '%s' ", e.message, index, message.directive.endpoint.cookie);
535
+ this.log("alexaThermostatController ERROR: '%s' Action: '%s' ", e.message, index, message.directive.endpoint.cookie);
536
536
  var response = alexaMessages.alexaResponse(message, "", e);
537
537
  response.event.payload.type = "INVALID_VALUE"; // The directive contains a value that is not valid for the target endpoint. For example, an invalid heating mode, channel, or program value.
538
538
  callback(e, response);
@@ -913,7 +913,12 @@ function alexaMessage(message, callback) {
913
913
  // case "Alexa.ThermostatControllerthermostatMode":
914
914
  // case "Alexa.ThermostatControllertargetSetpoint":
915
915
  default:
916
- statusArray[element.deviceID].body = statusArray[element.deviceID].body + statusArray[element.deviceID].spacer + element.aid + "." + element.iid;
916
+
917
+ var body = statusArray[element.deviceID].body + statusArray[element.deviceID].spacer;
918
+ // debug("alexaMessage: %s != %s", body, statusArray[element.deviceID].spacer + element.aid + "." + element.iid + statusArray[element.deviceID].spacer);
919
+ if (!body.includes(statusArray[element.deviceID].spacer + element.aid + "." + element.iid + statusArray[element.deviceID].spacer) && !body.includes("=" + element.aid + "." + element.iid + statusArray[element.deviceID].spacer)) {
920
+ statusArray[element.deviceID].body = statusArray[element.deviceID].body + statusArray[element.deviceID].spacer + element.aid + "." + element.iid;
921
+ }
917
922
  statusArray[element.deviceID].interface = statusArray[element.deviceID].interface + statusArray[element.deviceID].spacer + element.interface;
918
923
  statusArray[element.deviceID].spacer = ",";
919
924
  statusArray[element.deviceID].elements.push({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homebridge-alexa",
3
- "version": "0.6.8-beta.0",
3
+ "version": "0.6.8",
4
4
  "description": "Control your Homebridge devices with Amazon Alexa.",
5
5
  "main": "plugin.js",
6
6
  "scripts": {
@@ -32,16 +32,16 @@
32
32
  "homebridge": ">=0.4.16"
33
33
  },
34
34
  "devDependencies": {
35
- "@oznu/hap-client": "^1.8.1",
35
+ "@oznu/hap-client": "^1.9.0",
36
36
  "documentation": "^14.0.1",
37
- "nodemon": "^3.0.1"
37
+ "nodemon": "^3.0.2"
38
38
  },
39
39
  "dependencies": {
40
40
  "bottleneck": "^2.19.5",
41
41
  "debug": "^4.3.4",
42
42
  "hap-node-client": "^0.2.4",
43
43
  "is-my-json-valid": "^2.20.6",
44
- "mqtt": "^4.3.7"
44
+ "mqtt": "^4.3.8"
45
45
  },
46
46
  "author": "NorthernMan54",
47
47
  "license": "Apache-2.0",