homebridge-alexa 0.5.62 → 0.5.63-beta.6

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,30 @@
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.5.64 (2022-12-19)
6
+
7
+ ## [Version 0.5.64](https://github.com/northernman54/homebridge-alexa/compare/v0.5.63...v0.5.64)
8
+
9
+ #### Changes
10
+
11
+ - Added additional debug logging to easily determine child bridge address to aid Homebridge Accessory Dumps
12
+ - Updates to hap-node-client to better support usage of ipv6
13
+ - Update to gh-md-toc ( generates TOC for README )
14
+ - Merge current beta functionality into main code base
15
+ - Remove the fake Alexa Contact sensor from discovery and events
16
+ - Enable new cloud transport options `CloudTransport` websockets and mqtts, to provide improved connectivity in some setups. Previously these had been available in the beta.
17
+ - Removed the Alexa contact sensor ( which shows the status of the connection to the cloud servers ) from the list of devices passed to Alexa.
18
+ - Updated and simplified the Homebridge-UI plugin settings menu for homebridge-alexa
19
+
20
+ ## 0.5.63 (2022-04-27)
21
+
22
+ ## [Version 0.5.63](https://github.com/northernman54/homebridge-alexa/compare/v0.5.61...v0.5.63)
23
+
24
+ #### Changes
25
+
26
+ - Updates to README in regards to switch to subscription based model for the cloud services.
27
+ - Lower default cloud connection keepalive to 5 minutes
28
+
5
29
  ## 0.5.61 (2022-03-21)
6
30
 
7
31
  ## [Version 0.5.61](https://github.com/northernman54/homebridge-alexa/compare/v0.5.56...v0.5.61)
package/Installation.md CHANGED
@@ -1,39 +1,42 @@
1
1
  Installation and Configuration of Homebridge Alexa
2
+ ==================================================
2
3
 
3
4
  <!--ts-->
4
- * [Setup Instructions for users of the Homebridge UI](#setup-instructions-for-users-of-the-homebridge-ui)
5
- * [Create Homebridge-Alexa Cloud Services Account](#create-homebridge-alexa-cloud-services-account)
6
- * [Install and Configure the Plugin](#install-and-configure-the-plugin)
7
- * [Installation in Homebridge UI](#installation-in-homebridge-ui)
8
- * [Configuration in Homebridge UI](#configuration-in-homebridge-ui)
9
- * [Enabling and linking the Homebridge Smart Home Skill](#enabling-and-linking-the-homebridge-smart-home-skill)
10
- * [Viewing Account Status](#viewing-account-status)
11
- * [Legacy Setup Instructions for users not using the Homebridge UI](#legacy-setup-instructions-for-users-not-using-the-homebridge-ui)
12
- * [Prepare Homebridge for plugin installation](#prepare-homebridge-for-plugin-installation)
13
- * [Install Plugin](#install-plugin)
14
- * [Create homebridge-alexa account](#create-homebridge-alexa-account)
15
- * [HomeBridge-alexa plugin configuration](#homebridge-alexa-plugin-configuration)
16
- * [Required parameters](#required-parameters)
17
- * [Optional parameters](#optional-parameters)
18
- * [pin](#pin)
19
- * [routines](#routines)
20
- * [blind](#blind)
21
- * [door](#door)
22
- * [debug](#debug)
23
- * [refresh](#refresh)
24
- * [filter](#filter)
25
- * [deviceList &amp; deviceListHandling](#devicelist--devicelisthandling)
26
- * [combine](#combine)
27
- * [speakers](#speakers)
28
- * [Inputs](#inputs)
29
- * [Apple TV](#apple-tv)
30
- * [Yamaha Spotify Controls](#yamaha-spotify-controls)
31
- * [New Parser](#new-parser)
32
- * [Initial Testing and confirming configuration](#initial-testing-and-confirming-configuration)
33
- * [Enable Homebridge smarthome skill and link accounts](#enable-homebridge-smarthome-skill-and-link-accounts)
34
- * [Discover Devices](#discover-devices)
35
-
36
- <!-- Added by: sgracey, at: -->
5
+ * [Installation and Configuration of Homebridge Alexa](#installation-and-configuration-of-homebridge-alexa)
6
+ * [Setup Instructions for users of the Homebridge UI](#setup-instructions-for-users-of-the-homebridge-ui)
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
+ * [Legacy Setup Instructions for users not using the Homebridge UI, includes advanced configuration options](#legacy-setup-instructions-for-users-not-using-the-homebridge-ui-includes-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 parameters](#required-parameters)
19
+ * [Optional parameters](#optional-parameters)
20
+ * [pin](#pin)
21
+ * [routines](#routines)
22
+ * [blind](#blind)
23
+ * [door](#door)
24
+ * [debug](#debug)
25
+ * [refresh](#refresh)
26
+ * [filter](#filter)
27
+ * [deviceList &amp; deviceListHandling](#devicelist--devicelisthandling)
28
+ * [combine](#combine)
29
+ * [speakers](#speakers)
30
+ * [Inputs](#inputs)
31
+ * [Apple TV](#apple-tv)
32
+ * [Yamaha Spotify Controls](#yamaha-spotify-controls)
33
+ * [New Parser](#new-parser)
34
+ * [Initial Testing and confirming configuration](#initial-testing-and-confirming-configuration)
35
+ * [Enable Homebridge smarthome skill and link accounts](#enable-homebridge-smarthome-skill-and-link-accounts)
36
+ * [Discover Devices](#discover-devices)
37
+
38
+ <!-- Created by https://github.com/ekalinin/github-markdown-toc -->
39
+ <!-- Added by: sgracey, at: Tue 27 Dec 2022 22:02:41 EST -->
37
40
 
38
41
  <!--te-->
39
42
 
@@ -43,6 +46,8 @@ Installation and Configuration of Homebridge Alexa
43
46
 
44
47
  This plugin requires the usage of cloud services to link your Amazon Alexa Account to the plugin. Please create an account at https://www.homebridge.ca/. The account details will be needed as part of plugin configuration and for linking the Homebridge smart home skill.
45
48
 
49
+ Please ensure that you validate the email address you entered. And the username and passwords are case sensitive.
50
+
46
51
  ## Install and Configure the Plugin
47
52
 
48
53
  ### Installation in Homebridge UI
@@ -59,13 +64,13 @@ Restart homebridge
59
64
 
60
65
  ## Enabling and linking the Homebridge Smart Home Skill
61
66
 
62
- In the Amazon Alexa Application on your smart phone, search for the Homebridge Skill and enable it. When you enable the skill, it will take you to the https://www.homebridge.ca/ website to enable and link the skill to the plugin.
67
+ In the Amazon Alexa Application on your smart phone, search for the Homebridge Skill and enable it. When you enable the skill, it will take you to the https://www.homebridge.ca/ website to enable and link the skill to the plugin. You can now ask Alexa to `discover devices` and it should discover your homebridge devices.
63
68
 
64
69
  ### Viewing Account Status
65
70
 
66
71
  On the homebridge.ca website you can view your account status, and identify any setup issues.
67
72
 
68
- # Legacy Setup Instructions for users not using the Homebridge UI
73
+ # Legacy Setup Instructions for users not using the Homebridge UI, includes advanced configuration options
69
74
 
70
75
  * If you are looking for a basic setup to get this plugin up and running check out this guide (https://sambrooks.net/controlling-homebridge-using-alexa/). And here is another setup guide (https://www.youtube.com/watch?v=Ylg4yiw8ofM).
71
76
 
package/README.md CHANGED
@@ -10,17 +10,21 @@ Enable Amazon Alexa to control your homebridge smart home devices and accessorie
10
10
 
11
11
  # Note to users of the service
12
12
 
13
- Everyone, as your probably aware I have been running this for a number of years as a free service, and with the growth in users of the service and the volume of transactions flowing thru the cloud components I need to change to a subscription based service to continue to offer the service in a sustainable manner.
13
+ Everyone, as your probably aware we have been running this for a number of years as a free service, and with the growth in users of the service and the volume of transactions flowing thru the cloud components we need to change to a subscription based service to continue to offer the service in a sustainable manner.
14
14
 
15
- The ongoing costs to run and support the cloud services have grown to the point where it is larger than pocket change, and rather than reducing functionality I have made the hard decision to switch to a subscription based model to continue to offer the current high levels of service.
15
+ The ongoing costs to run and support the cloud services have grown to the point where it is larger than pocket change, and rather than reducing functionality we have made the hard decision to switch to a subscription based model to continue to offer the current high levels of service.
16
16
 
17
- For the subscription model, I have set this up with PayPal to start with, and with a price cheaper than a cup of Starbucks coffee. I thought a coffee a month was a reasonable contribution for the continued delivery of service.
17
+ For the subscription model, we have set this up with PayPal to start with, and with a price cheaper than a cup of Starbucks coffee. We thought a coffee a month was a reasonable contribution for the continued delivery of service.
18
18
 
19
19
  For the migration of users to the new model I’m doing this in two phases, first being new users of the service and the second being existing or legacy users of the service.
20
20
 
21
- For new users of the service, they will receive a trial account, with 7 days of service to test out the service and work thru any issues prior to a subscription being required to continue service. During the trial period users can apply for a subscription at any time, and it will be dated to start on the trial period end date.
21
+ ## New Users
22
22
 
23
- For existing ‘legacy’ users of the service, over the next few months I’m going to start the migration of users to being subscription required. I will post further messages when this migration starts. For the migration of your account you will have approximately 30 days to complete the subscription enrolment before service will be discontinued. During the migration period users can apply for a subscription at any time, and it will be dated to start on the migration period end date.
23
+ For new users of the service, they will receive a trial account, with 7 days of service to test out the service and work thru any issues prior to a subscription being required to continue service. During the trial period users can apply for a subscription at any time, and it will be future dated to start on the trial period end date.
24
+
25
+ ## Existing Users ( Prior to March 26th, 2022 )
26
+
27
+ For existing ‘legacy’ users of the service I have initiated the transition into subscriptions for all users, with a subscription being required after a date between May 25th, 2022 and June 25th, 2022. If you login to the homebridge.ca website, you can see your start date. You can signup for subscriptions at any time, and the first payment date will be future dated to the start date.
24
28
 
25
29
  If you have any questions or concerns, please let me know.
26
30
 
@@ -41,51 +45,54 @@ Country availability - The plugin is available in these countries, English (AU),
41
45
 
42
46
  # Table of Contents
43
47
  <!--ts-->
44
- * [Note to users of the service](#note-to-users-of-the-service)
45
- * [Availability](#availability)
46
- * [Features](#features)
47
- * [Table of Contents](#table-of-contents)
48
- * [Supported devices](#supported-devices)
49
- * [HomeKit/Homebridge Devices supported](#homekithomebridge-devices-supported)
50
- * [Native Support](#native-support)
51
- * [Supported as Other Types](#supported-as-other-types)
52
- * [Unsupported device types](#unsupported-device-types)
53
- * [Alexa Voice Commands](#alexa-voice-commands)
54
- * [Setup](#setup)
55
- * [Light bulbs / Switches / Dimmer Switches](#light-bulbs--switches--dimmer-switches)
56
- * [Color lights](#color-lights)
57
- * [Color temperature](#color-temperature)
58
- * [Color Temperatures](#color-temperatures)
59
- * [Garage door, Blinds and Window Coverings](#garage-door-blinds-and-window-coverings)
60
- * [Garage Door With door = false](#garage-door-with-door--false)
61
- * [Window coverings / blinds With blind = false](#window-coverings--blinds-with-blind--false)
62
- * [Garage Door With blind = true ( Not supported in all countries )](#garage-door-with-blind--true--not-supported-in-all-countries-)
63
- * [Window coverings / blinds With blind = true ( Not supported in all countries )](#window-coverings--blinds-with-blind--true--not-supported-in-all-countries-)
64
- * [Thermostat's and Heater / Cooler's](#thermostats-and-heater--coolers)
65
- * [Lock / Unlock Doors](#lock--unlock-doors)
66
- * [Temperature sensors](#temperature-sensors)
67
- * [AppleTV ( homebridge-apple-tv or homebridge-apple-tv-remote )](#appletv--homebridge-apple-tv-or-homebridge-apple-tv-remote-)
68
- * [HomeKit Television](#homekit-television)
69
- * [HomeKit Television - Tested plugins](#homekit-television---tested-plugins)
70
- * [Television Inputs and Channels](#television-inputs-and-channels)
71
- * [Speakers](#speakers)
72
- * [Bose SoundLink - Change preset](#bose-soundlink---change-preset)
73
- * [Yamaha Receiver/Spotify control](#yamaha-receiverspotify-control)
74
- * [Contact and Motion Sensors](#contact-and-motion-sensors)
75
- * [Door bell devices](#door-bell-devices)
76
- * [Installation of homebridge-alexa](#installation-of-homebridge-alexa)
77
- * [Service Availability and Issues](#service-availability-and-issues)
78
- * [Homebridge cloud service monitoring ( homebridge.ca )](#homebridge-cloud-service-monitoring--homebridgeca-)
79
- * [Raising Issues and Troubleshooting](#raising-issues-and-troubleshooting)
80
- * [Troubleshooting](#troubleshooting)
81
- * [Known Issues](#known-issues)
82
- * [Discord Channel](#discord-channel)
83
- * [Debug logs](#debug-logs)
84
- * [Homebridge Accessory Dump](#homebridge-accessory-dump)
85
- * [Roadmap](#roadmap)
86
- * [Credits](#credits)
87
-
88
- <!-- Added by: sgracey, at: -->
48
+ * [Note to users of the service](#note-to-users-of-the-service)
49
+ * [New Users](#new-users)
50
+ * [Existing Users ( Prior to March 26th, 2022 )](#existing-users--prior-to-march-26th-2022-)
51
+ * [Availability](#availability)
52
+ * [Features](#features)
53
+ * [Table of Contents](#table-of-contents)
54
+ * [Supported devices](#supported-devices)
55
+ * [HomeKit/Homebridge Devices supported](#homekithomebridge-devices-supported)
56
+ * [Native Support](#native-support)
57
+ * [Supported as Other Types](#supported-as-other-types)
58
+ * [Unsupported device types](#unsupported-device-types)
59
+ * [Alexa Voice Commands](#alexa-voice-commands)
60
+ * [Setup](#setup)
61
+ * [Light bulbs / Switches / Dimmer Switches](#light-bulbs--switches--dimmer-switches)
62
+ * [Color lights](#color-lights)
63
+ * [Color temperature](#color-temperature)
64
+ * [Color Temperatures](#color-temperatures)
65
+ * [Garage door, Blinds and Window Coverings](#garage-door-blinds-and-window-coverings)
66
+ * [Garage Door With door = false](#garage-door-with-door--false)
67
+ * [Window coverings / blinds With blind = false](#window-coverings--blinds-with-blind--false)
68
+ * [Garage Door With blind = true ( Not supported in all countries )](#garage-door-with-blind--true--not-supported-in-all-countries-)
69
+ * [Window coverings / blinds With blind = true ( Not supported in all countries )](#window-coverings--blinds-with-blind--true--not-supported-in-all-countries-)
70
+ * [Thermostat's and Heater / Cooler's](#thermostats-and-heater--coolers)
71
+ * [Lock / Unlock Doors](#lock--unlock-doors)
72
+ * [Temperature sensors](#temperature-sensors)
73
+ * [AppleTV ( homebridge-apple-tv or homebridge-apple-tv-remote )](#appletv--homebridge-apple-tv-or-homebridge-apple-tv-remote-)
74
+ * [HomeKit Television](#homekit-television)
75
+ * [HomeKit Television - Tested plugins](#homekit-television---tested-plugins)
76
+ * [Television Inputs and Channels](#television-inputs-and-channels)
77
+ * [Speakers](#speakers)
78
+ * [Bose SoundLink - Change preset](#bose-soundlink---change-preset)
79
+ * [Yamaha Receiver/Spotify control](#yamaha-receiverspotify-control)
80
+ * [Contact and Motion Sensors](#contact-and-motion-sensors)
81
+ * [Door bell devices](#door-bell-devices)
82
+ * [Installation of homebridge-alexa](#installation-of-homebridge-alexa)
83
+ * [Service Availability and Issues](#service-availability-and-issues)
84
+ * [Homebridge cloud service monitoring ( homebridge.ca )](#homebridge-cloud-service-monitoring--homebridgeca-)
85
+ * [Raising Issues and Troubleshooting](#raising-issues-and-troubleshooting)
86
+ * [Troubleshooting](#troubleshooting)
87
+ * [Known Issues](#known-issues)
88
+ * [Discord Channel](#discord-channel)
89
+ * [Debug logs](#debug-logs)
90
+ * [Homebridge Accessory Dump](#homebridge-accessory-dump)
91
+ * [Roadmap](#roadmap)
92
+ * [Credits](#credits)
93
+
94
+ <!-- Created by https://github.com/ekalinin/github-markdown-toc -->
95
+ <!-- Added by: sgracey, at: Tue 27 Dec 2022 22:02:40 EST -->
89
96
 
90
97
  <!--te-->
91
98
 
@@ -316,7 +323,7 @@ Installation and configuration instructions are [here](Installation.md).
316
323
 
317
324
  * Real time monitoring of the homebridge.ca cloud service is provided by [Uptime Robot](https://stats.uptimerobot.com/2WmEDHyV6).
318
325
 
319
- * Cloud service operational event reporting and alerting is sent to the #homebridge-alexa channel in the Homebridge Discord instance, and the uptime robot reports events there in real time. To access the homebridge discord server, here is an <a href="https://discord.gg/efg9ZESr">Invite</a>.
326
+ * Cloud service operational event reporting and alerting is sent to the #homebridge-alexa channel in the Homebridge Discord instance, and the uptime robot reports events there in real time. To access the homebridge discord server, here is an <a href="https://discord.gg/6WBNPUauvA">Invite</a>.
320
327
 
321
328
  ## Raising Issues and Troubleshooting
322
329
 
@@ -332,14 +339,13 @@ From here you should be able to determine if your plugin is communicating with t
332
339
 
333
340
  * I have started recording troubleshooting tips here based on issues seen by the community [Troubleshooting](Troubleshooting.MD).
334
341
  * All homebridge PIN's in your setup need to be set to the same value.
335
- * Whitelisting/blacklisting of accessories is not supported, but this can be achieved at the plugin level by putting the plugins you don't want exposed to Alexa in their own instance of HomeBridge, and for that instance of Alexa, don't include -I command line option. Discovery will fail for that instance, and the accessories will not be exposed.
336
342
  * 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.
337
343
  * The maximum number of supported devices is 300. This is a limitation from the from the Amazon side, and not the plugin.
338
344
  * If your Amazon account is not domiciled in the country where your Alexa is located the skill will not work. This is a limitation on the Amazon side and not with the plugin. ie if you are in the UK and use an Amazon.com account, the skill will not work. You need to use an Amazon account domiciled in the UK
339
345
 
340
346
  ### Discord Channel
341
347
 
342
- I have created a Discord channel on the homebridge discord server to troubleshoot issues not on the troubleshooting page. If you reach out there, I'm usually available. The channel is called #homebridge-alexa
348
+ I have created a Discord channel on the homebridge discord server to troubleshoot issues not on the troubleshooting page. If you reach out there, I'm usually available. The channel is called #homebridge-alexa <a href="https://discord.gg/6WBNPUauvA">Invite</a>
343
349
 
344
350
  ### Debug logs
345
351
 
@@ -357,6 +363,28 @@ Sometimes during troubleshooting I need a dump of your homebridge accessories. P
357
363
  curl -X PUT http://127.0.0.1:51826/accessories --header "Content-Type:Application/json" --header "authorization: 031-45-154"
358
364
  ```
359
365
 
366
+ If needed during plugin startup with the debug option enabled ( this is available with version 0.5.64 ), the plugin will log the unique command for each homebridge instance in your setup, including child bridges.
367
+
368
+ The entries in the log file look like this for each homebridge instance.
369
+
370
+ ```
371
+ alexaActions Homebridge Accessory Information Dump for Hue B509
372
+ alexaActions curl -X PUT http://192.168.1.11:40889/accessories --header "Content-Type:Application/json" --header "authorization: 031-45-154"
373
+ alexaActions
374
+ alexaActions Homebridge Accessory Information Dump for Alexa E33F
375
+ alexaActions curl -X PUT http://192.168.1.11:33019/accessories --header "Content-Type:Application/json" --header "authorization: 031-45-154"
376
+ alexaActions
377
+ alexaActions Homebridge Accessory Information Dump for Tuner 8723
378
+ alexaActions curl -X PUT http://192.168.1.11:45397/accessories --header "Content-Type:Application/json" --header "authorization: 031-45-154"
379
+ alexaActions
380
+ alexaActions Homebridge Accessory Information Dump for Tasmota 5019
381
+ alexaActions curl -X PUT http://192.168.1.11:38859/accessories --header "Content-Type:Application/json" --header "authorization: 031-45-154"
382
+ alexaActions
383
+ alexaActions Homebridge Accessory Information Dump for homebridge-tuya BF07
384
+ alexaActions curl -X PUT http://192.168.1.11:36323/accessories --header "Content-Type:Application/json" --header "authorization: 031-45-154"
385
+ alexaActions
386
+ ```
387
+
360
388
  # Roadmap
361
389
 
362
390
  See [Roadmap](Roadmap.md)
@@ -1,39 +1,40 @@
1
1
  **Troubleshooting Tips**
2
2
 
3
3
  <!--ts-->
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)
35
-
36
- <!-- Added by: sgracey, at: -->
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)
35
+
36
+ <!-- Created by https://github.com/ekalinin/github-markdown-toc -->
37
+ <!-- Added by: sgracey, at: Tue 27 Dec 2022 22:02:41 EST -->
37
38
 
38
39
  <!--te-->
39
40
 
@@ -2,8 +2,8 @@
2
2
  "pluginAlias": "Alexa",
3
3
  "pluginType": "platform",
4
4
  "singular": true,
5
- "headerDisplay": "Allow your Alexa to control your homebridge devices. Prior to setting up the plugin you need to create an account on https://www.homebridge.ca/ to link your Amazon Alexa account with the plugin. This account will be used when you enable the skill in the Alexa App, and in the configuration below.",
6
- "footerDisplay": "See https://github.com/NorthernMan54/homebridge-alexa for more information and instructions.\n\nHomebridge Alex Skill: https://www.amazon.com/Northern-Man-54-Homebridge/dp/B07B9QMTFQ",
5
+ "headerDisplay": "<h1>Allow your Amazon Alexa to control your homebridge devices</H1>. <br>Detailed setup instructions are [here](https://github.com/NorthernMan54/homebridge-alexa/blob/master/Installation.md). <br><br>Prior to setting up the plugin you need to create an account on https://www.homebridge.ca/ to link your Amazon Alexa account with the plugin. This account will be used when you enable the skill in the Alexa App, and in the configuration below.",
6
+ "footerDisplay": "See https://github.com/NorthernMan54/homebridge-alexa/blob/master/Installation.md for more information and instructions.\n\nHomebridge Alex Skill: https://www.amazon.com/Northern-Man-54-Homebridge/dp/B07B9QMTFQ",
7
7
  "schema": {
8
8
  "type": "object",
9
9
  "properties": {
@@ -53,33 +53,69 @@
53
53
  "default": false
54
54
  },
55
55
  "refresh": {
56
- "title": "Refresh Interval",
56
+ "title": "Accessory Cache Refresh Interval",
57
57
  "type": "integer",
58
- "placeholder": "900",
59
- "description": "Frequency of refreshes of the homebridge accessory cache, in seconds. Defaults to 15 minutes."
58
+ "default": 900,
59
+ "description": "Frequency of refreshes of the homebridge accessory cache, in seconds. Defaults to 900 Seconds ( 15 minutes ). This is the interval before new devices/homebridge instances are discovered. This should never require changing, unless you are frequently changing your homebridge configuration without restarting the plugin.",
60
+ "minimum": 120,
61
+ "maximum": 86400
60
62
  },
61
63
  "keepalive": {
62
64
  "title": "Cloud Server Connection Keepalive",
63
65
  "type": "integer",
64
- "placeholder": "20",
65
- "description": "Frequency of keepalive messages to cloud server, in minutes. Defaults to 20 minutes. Do not change from default unless requested as part of problem investigation.",
66
+ "placeholder": "5",
67
+ "description": "Frequency of keepalive messages to cloud server, in minutes. Defaults to 5 minutes. Do not change from default unless requested as part of problem investigation.",
66
68
  "minimum": 1,
67
- "maximum": 59
69
+ "maximum": 59,
70
+ "condition": {
71
+ "functionBody": "return model.CloudTransport !== 'wss';"
72
+ }
73
+ },
74
+ "CloudTransport": {
75
+ "title": "Cloud Server Connection Transport",
76
+ "description": "Transport options for cloud server connection. MQTTS - this is the recommended setting. MQTT - this is the original/legacy option. WSS - this is the an alternative transport option.",
77
+ "type": "string",
78
+ "default": "mqtts",
79
+ "oneOf": [
80
+ {
81
+ "title": "MQTTS",
82
+ "enum": [
83
+ "mqtts"
84
+ ]
85
+ },
86
+ {
87
+ "title": "WSS",
88
+ "enum": [
89
+ "wss"
90
+ ]
91
+ },
92
+ {
93
+ "title": "MQTT",
94
+ "enum": [
95
+ "mqtt"
96
+ ]
97
+ }
98
+ ]
68
99
  },
69
100
  "filter": {
70
- "title": "Instance Filter",
101
+ "title": "Homebridge Instance Filter",
71
102
  "type": "string",
72
103
  "placeholder": "eg. 192.168.1.122:51826",
73
104
  "description": "Limits accessories shared with Alexa to a single homebridge instance.",
74
105
  "pattern": "^[^{}/ :\\\\]+(?::\\d+)?$"
75
106
  },
76
-
77
107
  "deviceListHandling": {
78
- "title": "How to handle devices in the deviceList",
108
+ "title": "<b>Filtering of devices by name, either allow or ignore.</b>",
79
109
  "type": "string",
110
+ "default": "none",
80
111
  "required": true,
81
- "default": "allow",
82
112
  "oneOf": [
113
+ {
114
+ "title": "None",
115
+ "enum": [
116
+ "none"
117
+ ]
118
+ },
83
119
  {
84
120
  "title": "Allow devices",
85
121
  "enum": [
@@ -99,6 +135,9 @@
99
135
  "type": "array",
100
136
  "items": {
101
137
  "type": "string"
138
+ },
139
+ "condition": {
140
+ "functionBody": "return model.deviceListHandling !== 'null';"
102
141
  }
103
142
  },
104
143
  "combine": {
@@ -163,16 +202,17 @@
163
202
  "pin",
164
203
  "routines",
165
204
  "debug",
166
- "refresh",
167
- "filter",
168
205
  "deviceListHandling",
169
206
  {
170
207
  "key": "deviceList",
171
208
  "type": "array",
172
209
  "items": {
173
210
  "title": "DeviceName",
174
- "description": "Name of the device you want to ignore",
211
+ "description": "Name of the device you want to allow or ignore",
175
212
  "type": "string"
213
+ },
214
+ "condition": {
215
+ "functionBody": "return model.deviceListHandling !== 'none';"
176
216
  }
177
217
  }
178
218
  ]
@@ -183,7 +223,10 @@
183
223
  "expandable": true,
184
224
  "expanded": false,
185
225
  "items": [
186
- "keepalive"
226
+ "CloudTransport",
227
+ "keepalive",
228
+ "refresh",
229
+ "filter"
187
230
  ]
188
231
  },
189
232
  {
@@ -248,7 +291,6 @@
248
291
  {
249
292
  "title": "From",
250
293
  "key": "combine[].from[]",
251
-
252
294
  "placeholder": "Source Accessory Name"
253
295
  }
254
296
  ]
@@ -260,4 +302,4 @@
260
302
  ]
261
303
  }
262
304
  ]
263
- }
305
+ }
@@ -49,7 +49,7 @@ function hapDiscovery(options) {
49
49
  }
50
50
 
51
51
  function registerEvents(message) {
52
- debug("registerEvents", message);
52
+ // debug("registerEvents", message);
53
53
 
54
54
  var HBMessage = [];
55
55
 
@@ -121,6 +121,14 @@ function alexaDiscovery(message, callback) {
121
121
  if (process.uptime() > 600) { // Only use console during startup
122
122
  debug("alexaDiscovery - returned %s devices", response.event.payload.endpoints.length);
123
123
  } else {
124
+ var mdnsCache = homebridge.mdnsCache();
125
+ var output = "";
126
+ for (const instance in mdnsCache) {
127
+ output = output + '\nHomebridge Accessory Information Dump for ' + mdnsCache[instance].name;
128
+ // debug('Homebridge Accessory Instance Dump for', mdnsCache[instance].name);
129
+ output = output + '\ncurl -X PUT ' + mdnsCache[instance].url + '/accessories --header "Content-Type:Application/json" --header "authorization: ' + this.pin + '"\n';
130
+ }
131
+ debug(output);
124
132
  this.log("alexaDiscovery - returned %s devices", response.event.payload.endpoints.length);
125
133
  }
126
134
  if (response.event.payload.endpoints.length > 300) {
@@ -141,7 +149,7 @@ function alexaDiscovery(message, callback) {
141
149
  function removeLargeCookieEndpoints(endpoints) {
142
150
  var response = [];
143
151
  endpoints.forEach((endpoint) => {
144
- debug("Cookie Object: ", JSON.stringify(endpoint.cookie).length);
152
+ // debug("Cookie Object: ", JSON.stringify(endpoint.cookie).length);
145
153
  if (JSON.stringify(endpoint.cookie).length < 5000) {
146
154
  response.push(endpoint);
147
155
  } else {