homebridge-cmd4 6.1.1 → 6.3.0
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 +32 -2
- package/Cmd4Platform.js +6 -2
- package/Extras/Cmd4Scripts/State.js +168 -2374
- package/README.md +9 -2
- package/RUNNING_CHANGELOG.md +56 -0
- package/docs/Developers.md +3 -3
- package/index.js +14 -3
- package/lib/CMD4_ACC_TYPE_ENUM.js +193 -7
- package/lib/CMD4_DEVICE_TYPE_ENUM.js +322 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,38 @@
|
|
|
1
1
|
# Homebridges-cmd4 - CMD4 Plugin for Homebridge - Supports ~All Accessory Types and now all Characteristics too!!
|
|
2
|
-
|
|
2
|
+
### 6.3.0 (2022-04-12)
|
|
3
3
|
|
|
4
4
|
##### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* Bug [#130](https://github.com/ztalbot2000/homebridge-cmd4/pull/130), linked accessories not accesible after restart ([aeab5a40](https://github.com/ztalbot2000/homebridge-cmd4/commit/aeab5a40340631910ae6ac19f9af8453f46faa55))
|
|
7
7
|
|
|
8
|
+
##### New Features
|
|
9
|
+
* Add new characteristics and device types ([c3560130](https://github.com/ztalbot2000/homebridge-cmd4/commit/c3560130e7092b698d0d750924c548a99c4e20f4))
|
|
10
|
+
Characteristics
|
|
11
|
+
---------------
|
|
12
|
+
AssetUpdateReadiness
|
|
13
|
+
SupportedAssetTypes
|
|
14
|
+
ConfigurationState
|
|
15
|
+
NFCAccessControlPoint
|
|
16
|
+
NFCAccessSupportedConfiguration
|
|
17
|
+
SiriEndpointSessionStatus
|
|
18
|
+
ThreadControlPoint
|
|
19
|
+
ThreadNodeCapabilities
|
|
20
|
+
ThreadStatus
|
|
21
|
+
ThreadOpenThreadVersion
|
|
22
|
+
|
|
23
|
+
Device Types
|
|
24
|
+
------------
|
|
25
|
+
AccessoryMetrics
|
|
26
|
+
AssetUpdate
|
|
27
|
+
Assistant
|
|
28
|
+
AudioStreamManagement
|
|
29
|
+
Battery
|
|
30
|
+
CameraRecordingManagement
|
|
31
|
+
CloudRelay
|
|
32
|
+
DataStreamTransportManagement
|
|
33
|
+
NFCAccess
|
|
34
|
+
SiriEndpoint
|
|
35
|
+
ThreadTransport
|
|
36
|
+
|
|
37
|
+
Note: While these are now available to use. Some may not be suitable for Cmd4 depending on their complexity.
|
|
8
38
|
|
package/Cmd4Platform.js
CHANGED
|
@@ -658,7 +658,9 @@ class Cmd4Platform
|
|
|
658
658
|
if ( fromExisting == true )
|
|
659
659
|
{
|
|
660
660
|
if ( settings.cmd4Dbg ) this.log.debug( `Platform (AddedAccessory-existing) Step 3, ${ addedAccessory.displayName }.service = accessory.platform.getService( Service.${ devProperties.deviceName }, ${ addedAccessory.name }, ${ addedAccessory.subType }` );
|
|
661
|
-
|
|
661
|
+
// If you have added more than one service of the same type to an accessory, you will need to get the service using the name you defined when adding it.
|
|
662
|
+
//addedAccessory.service = addedAccessory.platform.getService( devProperties.service, addedAccessory.name, addedAccessory.subType );
|
|
663
|
+
addedAccessory.service = addedAccessory.platform.getService( addedAccessory.name, addedAccessory.subType );
|
|
662
664
|
} else
|
|
663
665
|
{
|
|
664
666
|
|
|
@@ -697,8 +699,10 @@ class Cmd4Platform
|
|
|
697
699
|
if ( fromExisting == true )
|
|
698
700
|
{
|
|
699
701
|
if ( settings.cmd4Dbg ) this.log.debug( `Platform (LinkedAccessory-existing) Step 4. ${ linkedAccessory.displayName }.service = ${ cmd4PlatformAccessory.displayName }.getService:( ${ devProperties.deviceName }.service, ${linkedAccessory.name }, ${linkedAccessory.subType } )` );
|
|
702
|
+
// If you have added more than one service of the same type to an accessory, you will need to get the service using the name you defined when adding it.
|
|
700
703
|
|
|
701
|
-
linkedAccessory.service = linkedAccessory.platform.getService( devProperties.service, linkedAccessory.name, linkedAccessory.subType );
|
|
704
|
+
//linkedAccessory.service = linkedAccessory.platform.getService( devProperties.service, linkedAccessory.name, linkedAccessory.subType );
|
|
705
|
+
linkedAccessory.service = linkedAccessory.platform.getService( linkedAccessory.name, linkedAccessory.subType );
|
|
702
706
|
} else
|
|
703
707
|
{
|
|
704
708
|
if ( settings.cmd4Dbg ) this.log.debug( `Platform (LinkedAccessory-new) Step 4. ${ linkedAccessory.displayName }.service = ${ cmd4PlatformAccessory.displayName }.addService:( ${ devProperties.deviceName }.service, ${linkedAccessory.name }, ${linkedAccessory.subType } )` );
|