homebridge-cmd4 8.0.0 → 8.0.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 +2 -19
- package/Cmd4Platform.js +13 -6
- package/RUNNING_CHANGELOG.md +9 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,25 +1,8 @@
|
|
|
1
1
|
# Homebridges-cmd4 - CMD4 Plugin for Homebridge - Supports ~All Accessory Types and now all Characteristics too!!
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
##### Documentation Changes
|
|
5
|
-
* Document changes for homebridge v2 where TargetAirQuality and TargetSlatState are deprecated ([80ef143](https://github.com/ztalbot2000/homebridge-cmd4/commit/80ef143fa68ff7abedd6bcf4b715d2dab3ae8451))
|
|
6
|
-
* Update documentation for deprecated characteristics ([15b4821](https://github.com/ztalbot2000/homebridge-cmd4/commit/15b482135fbd97e0d379ea2602fd1566bab8a952))
|
|
2
|
+
#### 8.0.1 (2024-08-16)
|
|
7
3
|
|
|
8
4
|
##### Bug Fixes
|
|
9
|
-
* fix for homebridge v2 where TargetSlateStte and TargetAirQuality are deprecated ([6acfbb2](https://github.com/ztalbot2000/homebridge-cmd4/commit/6acfbb26bf56a355d76f3f96dafabdfefd26bbb6))
|
|
10
|
-
* Fix for homebridge v2 Formats&Perms&Units only available directly from HAP ([2a9d6e9](https://github.com/ztalbot2000/homebridge-cmd4/commit/2a9d6e976647f1fa7e1a3ee34e5080a3c28eae73))
|
|
11
|
-
* Fix lint error ([286dc68](https://github.com/ztalbot2000/homebridge-cmd4/commit/286dc68441c776a93f0f0d913db326fa9ccafeec))
|
|
12
|
-
* Fix for homebridge v2 Formats&Perms&Units only available directly from HAP ([999f226](https://github.com/ztalbot2000/homebridge-cmd4/commit/999f226855de026b3bb0e9ecdd237fc7d0976f22))
|
|
13
|
-
* Fix add beta tag ([9b36408](https://github.com/ztalbot2000/homebridge-cmd4/commit/9b364087ec489c5dfda503ceaf1429b626a929c0))
|
|
14
|
-
* Fix for homebridge v2 where some device types are deprecated ([e483326](https://github.com/ztalbot2000/homebridge-cmd4/commit/e483326d93d447f81be5978f337ce80834798145))
|
|
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))
|
|
19
|
-
* Fix: Set read for h omebridge v2 & Remove deprecated Characteristic.getValue() tests ([b1a8702](https://github.com/ztalbot2000/homebridge-cmd4/commit/b1a870288d73bdcd7abb26a439b9d8e722ad53ea))
|
|
20
|
-
|
|
21
5
|
|
|
22
|
-
|
|
6
|
+
* Bug [#147](https://github.com/ztalbot2000/homebridge-cmd4/pull/147) Accesories removed from home app after upgrade to 8.0 ([de25e94f](https://github.com/ztalbot2000/homebridge-cmd4/commit/de25e94fac8cf331142ea4523218db0f8cf447b0))
|
|
23
7
|
|
|
24
|
-
* Support only Platform Accessories as per Homebridge recommendation ([0ee6efc](https://github.com/ztalbot2000/homebridge-cmd4/commit/0ee6efcc09b7c87f346299fb9ccab5940fba7ee0))
|
|
25
8
|
|
package/Cmd4Platform.js
CHANGED
|
@@ -120,12 +120,18 @@ class Cmd4Platform
|
|
|
120
120
|
|
|
121
121
|
this.discoverDevices( this.log );
|
|
122
122
|
|
|
123
|
+
// @deprecated homebridge v2
|
|
124
|
+
// Since we iterate over only the config.json accessories during
|
|
125
|
+
// the discovery, any devices read from cache that were not in
|
|
126
|
+
// the config.json would never be reallocated or created for the
|
|
127
|
+
// first time and thus disappear.
|
|
128
|
+
//
|
|
123
129
|
// Any accessory not reachable must have been removed, find them
|
|
124
|
-
this.toBeRestoredPlatforms.forEach( ( accessory ) =>
|
|
125
|
-
{
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
});
|
|
130
|
+
//this.toBeRestoredPlatforms.forEach( ( accessory ) =>
|
|
131
|
+
//{
|
|
132
|
+
// if ( ! accessory.reachable )
|
|
133
|
+
// this.removeAccessory( accessory );
|
|
134
|
+
//});
|
|
129
135
|
|
|
130
136
|
// Let the Polling Begin
|
|
131
137
|
this.startPolling();
|
|
@@ -476,7 +482,8 @@ class Cmd4Platform
|
|
|
476
482
|
} else
|
|
477
483
|
{
|
|
478
484
|
//
|
|
479
|
-
// the accessory does not yet exist,
|
|
485
|
+
// the accessory is in the config.json but does not yet exist,
|
|
486
|
+
// so we need to create it
|
|
480
487
|
//
|
|
481
488
|
this.log.info('Adding new platformAccessory:', displayName);
|
|
482
489
|
|
package/RUNNING_CHANGELOG.md
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
## ChangeLog
|
|
7
|
+
* <a href="#Whats-new-in-8-0-1">**Whats new in 8.0.1**</a>
|
|
7
8
|
* <a href="#Whats-new-in-8-0-0">**Whats new in 8.0.0**</a>
|
|
8
9
|
* <a href="#Whats-new-in-7-1-0">**Whats new in 7.1.0**</a>
|
|
9
10
|
* <a href="#Whats-new-in-7-0-3">**Whats new in 7.0.3**</a>
|
|
@@ -92,6 +93,14 @@
|
|
|
92
93
|
* <a href="#Whats-new-in-2-1">**Whats new in 2.1**</a>
|
|
93
94
|
* <a href="#Whats-new-in-2-0">**Whats new in 2.0**</a>
|
|
94
95
|
|
|
96
|
+
<a name="Whats-new-in-8-0-1">## Whats new in 8.0.1</a>
|
|
97
|
+
#### 8.0.1 (2024-08-16)
|
|
98
|
+
|
|
99
|
+
##### Bug Fixes
|
|
100
|
+
|
|
101
|
+
* Bug [#147](https://github.com/ztalbot2000/homebridge-cmd4/pull/147) Accesories removed from home app after upgrade to 8.0 ([de25e94f](https://github.com/ztalbot2000/homebridge-cmd4/commit/de25e94fac8cf331142ea4523218db0f8cf447b0))
|
|
102
|
+
|
|
103
|
+
|
|
95
104
|
<a name="Whats-new-in-8-0-0">## Whats new in 8.0.0</a>
|
|
96
105
|
### 8.0.0 (2024-06-28)
|
|
97
106
|
|