homebridge-cmd4 8.0.0-beta.4 → 8.0.0-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 +3 -0
- package/Cmd4Accessory.js +11 -6
- package/RUNNING_CHANGELOG.md +3 -0
- package/package.json +3 -3
- package/homebridge-cmd4-8.0.0-beta.4.tgz +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
* Fix add beta tag ([9b36408](https://github.com/ztalbot2000/homebridge-cmd4/commit/9b364087ec489c5dfda503ceaf1429b626a929c0))
|
|
14
14
|
* Fix for homebridge v2 where some device types are deprecated ([e483326](https://github.com/ztalbot2000/homebridge-cmd4/commit/e483326d93d447f81be5978f337ce80834798145))
|
|
15
15
|
* stop committing npm package ([630f4fb](https://github.com/ztalbot2000/homebridge-cmd4/commit/630f4fb6f6cbd876b3fe21ee4689eb40a6adeacc))
|
|
16
|
+
* Fix: Update hap perms for homebridge v2 & deprecate devices for name changes ([5eb9ede](https://github.com/ztalbot2000/homebridge-cmd4/commit/5eb9ede93de6b80920defeacf704e7c560ee9bda))
|
|
17
|
+
* Fix: For homebridge V2 which removed Perms.READ and Perms.WRITE for PAIRED_READ & PAIRED_WRITE ([5e888b0](https://github.com/ztalbot2000/homebridge-cmd4/commit/5e888b09cee178ec722499e5429f2dba4fb5c8a9))
|
|
18
|
+
* Fix: homebridge V2 requires updated package fakegato-history ([61011e5](https://github.com/ztalbot2000/homebridge-cmd4/commit/61011e58378aff7eab351cc97ce05a167f759ca2))
|
|
16
19
|
|
|
17
20
|
|
|
18
21
|
##### New Features
|
package/Cmd4Accessory.js
CHANGED
|
@@ -843,13 +843,14 @@ class Cmd4Accessory
|
|
|
843
843
|
// - CurrentTemperature
|
|
844
844
|
// - CurrentHeatingCoolingState
|
|
845
845
|
// - StatusFault
|
|
846
|
-
|
|
847
|
-
|
|
846
|
+
// Homebridge V2 removes Perms.READ && Perms.WRITE
|
|
847
|
+
if ( //perms.indexOf( this.api.hap.Perms.READ ) >= 0 &&
|
|
848
|
+
//perms.indexOf( this.api.hap.Perms.WRITE ) == -1 ||
|
|
848
849
|
perms.indexOf( this.api.hap.Perms.PAIRED_READ ) >= 0 &&
|
|
849
850
|
perms.indexOf( this.api.hap.Perms.PAIRED_WRITE ) == -1 )
|
|
850
851
|
{
|
|
851
|
-
|
|
852
|
-
|
|
852
|
+
accessory.service.setCharacteristic(
|
|
853
|
+
CMD4_ACC_TYPE_ENUM.properties[ accTypeEnumIndex ].characteristic,
|
|
853
854
|
this.cmd4Storage.getStoredValueForIndex( accTypeEnumIndex ) );
|
|
854
855
|
}
|
|
855
856
|
|
|
@@ -860,7 +861,9 @@ class Cmd4Accessory
|
|
|
860
861
|
.characteristic ).listeners( "get" ).length == 0 )
|
|
861
862
|
{
|
|
862
863
|
// Add Read services for characterisitcs, if possible
|
|
863
|
-
|
|
864
|
+
// Homebridge v2 removed Perms.READ
|
|
865
|
+
if ( // perms.indexOf( this.api.hap.Perms.READ ) != -1 ||
|
|
866
|
+
perms.indexOf( this.api.hap.Perms.PAIRED_READ ) != -1 )
|
|
864
867
|
{
|
|
865
868
|
|
|
866
869
|
// getCachedValue or getValue
|
|
@@ -896,7 +899,9 @@ class Cmd4Accessory
|
|
|
896
899
|
.characteristic ).listeners( "set" ).length == 0 )
|
|
897
900
|
{
|
|
898
901
|
// Add Write services for characterisitcs, if possible
|
|
899
|
-
|
|
902
|
+
// Homebridge V2 removes Perms.WRITE
|
|
903
|
+
if ( // perms.indexOf( this.api.hap.Perms.WRITE ) != -1 ||
|
|
904
|
+
perms.indexOf( this.api.hap.Perms.PAIRED_WRITE ) != -1 )
|
|
900
905
|
{
|
|
901
906
|
// setCachedValue or setValue
|
|
902
907
|
if ( ! accessory.polling ||
|
package/RUNNING_CHANGELOG.md
CHANGED
|
@@ -106,6 +106,9 @@
|
|
|
106
106
|
* Fix add beta tag ([9b36408](https://github.com/ztalbot2000/homebridge-cmd4/commit/9b364087ec489c5dfda503ceaf1429b626a929c0))
|
|
107
107
|
* Fix for homebridge v2 where some device types are deprecated ([e483326](https://github.com/ztalbot2000/homebridge-cmd4/commit/e483326d93d447f81be5978f337ce80834798145))
|
|
108
108
|
* stop committing npm package ([630f4fb](https://github.com/ztalbot2000/homebridge-cmd4/commit/630f4fb6f6cbd876b3fe21ee4689eb40a6adeacc))
|
|
109
|
+
* Fix: Update hap perms for homebridge v2 & deprecate devices for name changes ([5eb9ede](https://github.com/ztalbot2000/homebridge-cmd4/commit/5eb9ede93de6b80920defeacf704e7c560ee9bda))
|
|
110
|
+
* Fix: For homebridge V2 which removed Perms.READ and Perms.WRITE for PAIRED_READ & PAIRED_WRITE ([5e888b0](https://github.com/ztalbot2000/homebridge-cmd4/commit/5e888b09cee178ec722499e5429f2dba4fb5c8a9))
|
|
111
|
+
* Fix: homebridge V2 requires updated package fakegato-history ([61011e5](https://github.com/ztalbot2000/homebridge-cmd4/commit/61011e58378aff7eab351cc97ce05a167f759ca2))
|
|
109
112
|
|
|
110
113
|
|
|
111
114
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-cmd4",
|
|
3
3
|
"description": "Exec Plugin for Homebridge supporting all accessorys and characteristics",
|
|
4
|
-
"version": "8.0.0-beta.
|
|
4
|
+
"version": "8.0.0-beta.6",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "John Talbot"
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"chalk": "^4.1.0",
|
|
21
21
|
"command-exists": "^1.2.9",
|
|
22
|
-
"fakegato-history": ">=0.6.
|
|
22
|
+
"fakegato-history": ">=0.6.5",
|
|
23
23
|
"github-version-checker": ">=2.2.0",
|
|
24
24
|
"latest-version": "^5.1.0",
|
|
25
25
|
"moment": "*"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"docs": "docs"
|
|
48
48
|
},
|
|
49
49
|
"engines": {
|
|
50
|
-
"homebridge": "
|
|
50
|
+
"homebridge": "^1.8.0 || ^2.0.0-beta.0",
|
|
51
51
|
"node": "^18.20.4 || ^20.15.1"
|
|
52
52
|
},
|
|
53
53
|
"keywords": [
|
|
Binary file
|