homebridge-cmd4 8.0.0-beta.1 → 8.0.0-beta.2
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 +10 -4
- package/Cmd4Accessory.js +7 -7
- package/Cmd4Platform.js +2 -1
- package/RUNNING_CHANGELOG.md +20 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
# Homebridges-cmd4 - CMD4 Plugin for Homebridge - Supports ~All Accessory Types and now all Characteristics too!!
|
|
2
|
-
###
|
|
2
|
+
### 8.0.0 (2024-06-28)
|
|
3
3
|
|
|
4
4
|
##### Documentation Changes
|
|
5
|
+
* Document changes for homebridge v2 where TargetAirQuality and TargetSlatState are deprecated ([80ef143](https://github.com/ztalbot2000/homebridge-cmd4/commit/80ef143fa68ff7abedd6bcf4b715d2dab3ae8451))
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
##### Bug Fixes
|
|
8
|
+
* fix for homebridge v2 where TargetSlateStte and TargetAirQuality are deprecated ([6acfbb2](https://github.com/ztalbot2000/homebridge-cmd4/commit/6acfbb26bf56a355d76f3f96dafabdfefd26bbb6))
|
|
9
|
+
* Fix for homebridge v2 Formats&Perms&Units only available directly from HAP ([2a9d6e9](https://github.com/ztalbot2000/homebridge-cmd4/commit/2a9d6e976647f1fa7e1a3ee34e5080a3c28eae73))
|
|
10
|
+
* Fix lint error ([286dc68](https://github.com/ztalbot2000/homebridge-cmd4/commit/286dc68441c776a93f0f0d913db326fa9ccafeec))
|
|
11
|
+
|
|
12
|
+
* Fix for homebridge v2 Formats&Perms&Units only available directly from HAP ([999f226](https://github.com/ztalbot2000/homebridge-cmd4/commit/999f226855de026b3bb0e9ecdd237fc7d0976f22))
|
|
7
13
|
|
|
8
|
-
##### New Features
|
|
9
14
|
|
|
10
|
-
|
|
15
|
+
##### New Features
|
|
11
16
|
|
|
17
|
+
* Support only Platform Accessories as per Homebridge recommendation ([0ee6efc](https://github.com/ztalbot2000/homebridge-cmd4/commit/0ee6efcc09b7c87f346299fb9ccab5940fba7ee0))
|
|
12
18
|
|
package/Cmd4Accessory.js
CHANGED
|
@@ -394,7 +394,7 @@ class Cmd4Accessory
|
|
|
394
394
|
let format = CMD4_ACC_TYPE_ENUM.properties[ accTypeEnumIndex ].props.format;
|
|
395
395
|
|
|
396
396
|
// No matter what, remove it
|
|
397
|
-
if ( format == this.api.hap.
|
|
397
|
+
if ( format == this.api.hap.Formats.TLV8 && this.hV.allowTLV8 == false )
|
|
398
398
|
{
|
|
399
399
|
if ( this.cmd4Storage.getStoredValueForIndex( accTypeEnumIndex ) != null )
|
|
400
400
|
{
|
|
@@ -843,10 +843,10 @@ class Cmd4Accessory
|
|
|
843
843
|
// - CurrentTemperature
|
|
844
844
|
// - CurrentHeatingCoolingState
|
|
845
845
|
// - StatusFault
|
|
846
|
-
if ( perms.indexOf( this.api.hap.
|
|
847
|
-
perms.indexOf( this.api.hap.
|
|
848
|
-
perms.indexOf( this.api.hap.
|
|
849
|
-
perms.indexOf( this.api.hap.
|
|
846
|
+
if ( perms.indexOf( this.api.hap.Perms.READ ) >= 0 &&
|
|
847
|
+
perms.indexOf( this.api.hap.Perms.WRITE ) == -1 ||
|
|
848
|
+
perms.indexOf( this.api.hap.Perms.PAIRED_READ ) >= 0 &&
|
|
849
|
+
perms.indexOf( this.api.hap.Perms.PAIRED_WRITE ) == -1 )
|
|
850
850
|
{
|
|
851
851
|
accessory.service.setCharacteristic(
|
|
852
852
|
CMD4_ACC_TYPE_ENUM.properties[ accTypeEnumIndex ].characteristic,
|
|
@@ -860,7 +860,7 @@ class Cmd4Accessory
|
|
|
860
860
|
.characteristic ).listeners( "get" ).length == 0 )
|
|
861
861
|
{
|
|
862
862
|
// Add Read services for characterisitcs, if possible
|
|
863
|
-
if ( perms.indexOf( this.api.hap.
|
|
863
|
+
if ( perms.indexOf( this.api.hap.Perms.READ ) != -1 )
|
|
864
864
|
{
|
|
865
865
|
|
|
866
866
|
// getCachedValue or getValue
|
|
@@ -896,7 +896,7 @@ class Cmd4Accessory
|
|
|
896
896
|
.characteristic ).listeners( "set" ).length == 0 )
|
|
897
897
|
{
|
|
898
898
|
// Add Write services for characterisitcs, if possible
|
|
899
|
-
if ( perms.indexOf( this.api.hap.
|
|
899
|
+
if ( perms.indexOf( this.api.hap.Perms.WRITE ) != -1 )
|
|
900
900
|
{
|
|
901
901
|
// setCachedValue or setValue
|
|
902
902
|
if ( ! accessory.polling ||
|
package/Cmd4Platform.js
CHANGED
|
@@ -545,7 +545,8 @@ class Cmd4Platform
|
|
|
545
545
|
|
|
546
546
|
|
|
547
547
|
// Just a flag to say we have processed this existing platform accessory.
|
|
548
|
-
|
|
548
|
+
// @deprecated homebridge v2
|
|
549
|
+
//platform.updateReachability( true );
|
|
549
550
|
|
|
550
551
|
|
|
551
552
|
// For Unit testing only
|
package/RUNNING_CHANGELOG.md
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
## ChangeLog
|
|
7
|
+
* <a href="#Whats-new-in-8-0-0">**Whats new in 8.0.0**</a>
|
|
7
8
|
* <a href="#Whats-new-in-7-1-0">**Whats new in 7.1.0**</a>
|
|
8
9
|
* <a href="#Whats-new-in-7-0-3">**Whats new in 7.0.3**</a>
|
|
9
10
|
* <a href="#Whats-new-in-7-0-2">**Whats new in 7.0.2**</a>
|
|
@@ -91,6 +92,25 @@
|
|
|
91
92
|
* <a href="#Whats-new-in-2-1">**Whats new in 2.1**</a>
|
|
92
93
|
* <a href="#Whats-new-in-2-0">**Whats new in 2.0**</a>
|
|
93
94
|
|
|
95
|
+
<a name="Whats-new-in-8-0-0">## Whats new in 8.0.0</a>
|
|
96
|
+
### 8.0.0 (2024-06-28)
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
##### Documentation Changes
|
|
100
|
+
* Document changes for homebridge v2 where TargetAirQuality and TargetSlatState are deprecated ([80ef143](https://github.com/ztalbot2000/homebridge-cmd4/commit/80ef143fa68ff7abedd6bcf4b715d2dab3ae8451))
|
|
101
|
+
|
|
102
|
+
##### Bug Fixes
|
|
103
|
+
* fix for homebridge v2 where TargetSlateStte and TargetAirQuality are deprecated ([6acfbb2](https://github.com/ztalbot2000/homebridge-cmd4/commit/6acfbb26bf56a355d76f3f96dafabdfefd26bbb6))
|
|
104
|
+
* Fix for homebridge 2 Formats&Perms&Units only available directly from HAP ([2a9d6e9](https://github.com/ztalbot2000/homebridge-cmd4/commit/2a9d6e976647f1fa7e1a3ee34e5080a3c28eae73))
|
|
105
|
+
|
|
106
|
+
* Fix lint error ([286dc68](https://github.com/ztalbot2000/homebridge-cmd4/commit/286dc68441c776a93f0f0d913db326fa9ccafeec))
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
##### New Features
|
|
110
|
+
|
|
111
|
+
* Support only Platform Accessories as per Homebridge recommendation ([0ee6efc](https://github.com/ztalbot2000/homebridge-cmd4/commit/0ee6efcc09b7c87f346299fb9ccab5940fba7ee0))
|
|
112
|
+
|
|
113
|
+
|
|
94
114
|
<a name="Whats-new-in-7-1-0">## Whats new in 7.1.0</a>
|
|
95
115
|
### 7.1.0 (2024-03-04)
|
|
96
116
|
|
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.2",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "John Talbot"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"docs": "docs"
|
|
48
48
|
},
|
|
49
49
|
"engines": {
|
|
50
|
-
"homebridge": ">=1.
|
|
50
|
+
"homebridge": ">=1.8.0",
|
|
51
51
|
"node": ">=10.17.0"
|
|
52
52
|
},
|
|
53
53
|
"keywords": [
|