homebridge-alexa 0.7.1-beta.8 → 0.7.1

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
@@ -10,6 +10,7 @@ All notable changes to this project will be documented in this file. This projec
10
10
 
11
11
  - Update `filter` to accept a list of addresses and ports ie "192.168.1.11:51551, 192.168.1.11:46047"
12
12
  - Add config option `enhancedSkip` to allow the wording `Alexa, tv skip` when watching youtube via appletv-enhanced to push the select button on the remote.
13
+ - Homebridge 2.0 support
13
14
 
14
15
  ## 0.7.0 (2023-05-30)
15
16
 
package/README.md CHANGED
@@ -37,52 +37,52 @@ Country availability - The plugin is available in these countries, English (AU),
37
37
 
38
38
  # Table of Contents
39
39
  <!--ts-->
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
- - [For Thermostat's only](#for-thermostats-only)
64
- - [Lock / Unlock Doors](#lock--unlock-doors)
65
- - [Temperature sensors](#temperature-sensors)
66
- - [AppleTV ( homebridge-apple-tv, homebridge-apple-tv-remote or homebridge-appletv-enhanced )](#appletv--homebridge-apple-tv-homebridge-apple-tv-remote-or-homebridge-appletv-enhanced-)
67
- - [HomeKit Television](#homekit-television)
68
- - [HomeKit Television - Tested plugins](#homekit-television---tested-plugins)
69
- - [Television Inputs and Channels](#television-inputs-and-channels)
70
- - [Speakers](#speakers)
71
- - [Bose SoundLink - Change preset](#bose-soundlink---change-preset)
72
- - [Yamaha Receiver/Spotify control](#yamaha-receiverspotify-control)
73
- - [Contact and Motion Sensors](#contact-and-motion-sensors)
74
- - [Door bell devices](#door-bell-devices)
75
- - [Installation of homebridge-alexa](#installation-of-homebridge-alexa)
76
- - [Service Availability and Issues](#service-availability-and-issues)
77
- - [Homebridge cloud service monitoring ( homebridge.ca )](#homebridge-cloud-service-monitoring--homebridgeca-)
78
- - [Raising Issues and Troubleshooting](#raising-issues-and-troubleshooting)
79
- - [Troubleshooting](#troubleshooting)
80
- - [Known Issues](#known-issues)
81
- - [Discord Channel](#discord-channel)
82
- - [Debug logs](#debug-logs)
83
- - [Homebridge Accessory Dump](#homebridge-accessory-dump)
84
- - [Roadmap](#roadmap)
85
- - [Credits](#credits)
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
+ * [For Thermostat's only](#for-thermostats-only)
64
+ * [Lock / Unlock Doors](#lock--unlock-doors)
65
+ * [Temperature sensors](#temperature-sensors)
66
+ * [AppleTV ( homebridge-apple-tv, homebridge-apple-tv-remote or homebridge-appletv-enhanced )](#appletv--homebridge-apple-tv-homebridge-apple-tv-remote-or-homebridge-appletv-enhanced-)
67
+ * [HomeKit Television](#homekit-television)
68
+ * [HomeKit Television - Tested plugins](#homekit-television---tested-plugins)
69
+ * [Television Inputs and Channels](#television-inputs-and-channels)
70
+ * [Speakers](#speakers)
71
+ * [Bose SoundLink - Change preset](#bose-soundlink---change-preset)
72
+ * [Yamaha Receiver/Spotify control](#yamaha-receiverspotify-control)
73
+ * [Contact and Motion Sensors](#contact-and-motion-sensors)
74
+ * [Door bell devices](#door-bell-devices)
75
+ * [Installation of homebridge-alexa](#installation-of-homebridge-alexa)
76
+ * [Service Availability and Issues](#service-availability-and-issues)
77
+ * [Homebridge cloud service monitoring ( homebridge.ca )](#homebridge-cloud-service-monitoring--homebridgeca-)
78
+ * [Raising Issues and Troubleshooting](#raising-issues-and-troubleshooting)
79
+ * [Troubleshooting](#troubleshooting)
80
+ * [Known Issues](#known-issues)
81
+ * [Discord Channel](#discord-channel)
82
+ * [Debug logs](#debug-logs)
83
+ * [Homebridge Accessory Dump](#homebridge-accessory-dump)
84
+ * [Roadmap](#roadmap)
85
+ * [Credits](#credits)
86
86
  <!--te-->
87
87
 
88
88
  # Supported devices
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homebridge-alexa",
3
- "version": "0.7.1-beta.8",
3
+ "version": "0.7.1",
4
4
  "description": "Control your Homebridge devices with Amazon Alexa.",
5
5
  "main": "plugin.js",
6
6
  "scripts": {
@@ -1,85 +0,0 @@
1
- #!/bin/env node
2
-
3
- /**
4
- * This scripts queries the npm registry to pull out the latest version for a given tag.
5
- */
6
-
7
- const assert = require('node:assert')
8
- const child_process = require('node:child_process')
9
- const fs = require('node:fs')
10
- const process = require('node:process')
11
-
12
- const semver = require('semver')
13
-
14
- const BRANCH_VERSION_PATTERN = /^([A-Z]+)-(\d+\.\d+\.\d+)$/i
15
-
16
- // Load the contents of the package.json file
17
- const packageJSON = JSON.parse(fs.readFileSync('package.json', 'utf8'))
18
-
19
- const refArgument = process.argv[2]
20
- const tagArgument = process.argv[3] || 'latest'
21
-
22
- if (refArgument == null) {
23
- console.error('ref argument is missing')
24
- console.error('Usage: npm-version-script.js <ref> [tag]')
25
- process.exit(1)
26
- }
27
-
28
- /**
29
- * Queries the NPM registry for the latest version for the provided tag.
30
- * @param tag The tag to query for.
31
- * @returns {string} Returns the version.
32
- */
33
- function getTagVersionFromNpm(tag) {
34
- try {
35
- return child_process.execSync(`npm info ${packageJSON.name} version --tag="${tag}"`).toString('utf8').trim()
36
- } catch (e) {
37
- console.error(`Failed to query the npm registry for the latest version for tag: ${tag}`)
38
- // throw e;
39
- return '0.0.0'
40
- }
41
- }
42
-
43
- function desiredTargetVersion(ref) {
44
- // ref is a GitHub action ref string
45
- if (ref.startsWith('refs/pull/')) {
46
- throw new Error('The version script was executed inside a PR!')
47
- }
48
-
49
- assert(ref.startsWith('refs/heads/'))
50
- const branchName = ref.slice('refs/heads/'.length)
51
-
52
- const results = branchName.match(BRANCH_VERSION_PATTERN)
53
- if (results != null) {
54
- if (results[1] !== tagArgument) {
55
- console.warn(`The base branch name (${results[1]}) differs from the tag name ${tagArgument}`)
56
- }
57
-
58
- return results[2]
59
- }
60
-
61
- throw new Error(`Malformed branch name for ref: ${ref}. Can't derive the base version. Use a branch name like: beta-x.x.x or alpha-x.x.x`)
62
- }
63
-
64
- // derive the base version from the branch ref
65
- const baseVersion = desiredTargetVersion(refArgument)
66
-
67
- // query the npm registry for the latest version of the provided tag name
68
- const latestReleasedVersion = getTagVersionFromNpm(tagArgument) // e.g. 0.7.0-beta.12
69
- const latestReleaseBase = semver.inc(latestReleasedVersion, 'patch') // will produce 0.7.0 (removing the preid, needed for the equality check below)
70
-
71
- let publishTag
72
- if (semver.eq(baseVersion, latestReleaseBase)) { // check if we are releasing another version for the latest beta or alpha
73
- publishTag = latestReleasedVersion // set the current latest beta or alpha to be incremented
74
- } else {
75
- publishTag = baseVersion // start of with a new beta or alpha version
76
- }
77
-
78
- // save the package.json
79
- packageJSON.version = publishTag
80
- fs.writeFileSync('package.json', JSON.stringify(packageJSON, null, 2))
81
-
82
- // perform the same change to the package-lock.json
83
- const packageLockJSON = JSON.parse(fs.readFileSync('package-lock.json', 'utf8'))
84
- packageLockJSON.version = publishTag
85
- fs.writeFileSync('package-lock.json', JSON.stringify(packageLockJSON, null, 2))