homebridge-cmd4 8.0.0-beta.3 → 8.0.0-beta.5
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 +4 -1
- package/Cmd4Accessory.js +11 -6
- package/Extras/a.out +0 -0
- package/Extras/config.json +4 -16
- package/Extras/config.min.json +4 -4
- package/RUNNING_CHANGELOG.md +4 -1
- package/lib/CMD4_ACC_TYPE_ENUM.js +268 -268
- package/lib/CMD4_DEVICE_TYPE_ENUM.js +76 -73
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,13 +3,16 @@
|
|
|
3
3
|
|
|
4
4
|
##### Documentation Changes
|
|
5
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))
|
|
6
7
|
|
|
7
8
|
##### Bug Fixes
|
|
8
9
|
* fix for homebridge v2 where TargetSlateStte and TargetAirQuality are deprecated ([6acfbb2](https://github.com/ztalbot2000/homebridge-cmd4/commit/6acfbb26bf56a355d76f3f96dafabdfefd26bbb6))
|
|
9
10
|
* Fix for homebridge v2 Formats&Perms&Units only available directly from HAP ([2a9d6e9](https://github.com/ztalbot2000/homebridge-cmd4/commit/2a9d6e976647f1fa7e1a3ee34e5080a3c28eae73))
|
|
10
11
|
* Fix lint error ([286dc68](https://github.com/ztalbot2000/homebridge-cmd4/commit/286dc68441c776a93f0f0d913db326fa9ccafeec))
|
|
11
|
-
|
|
12
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))
|
|
13
16
|
|
|
14
17
|
|
|
15
18
|
##### 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/Extras/a.out
ADDED
|
Binary file
|
package/Extras/config.json
CHANGED
|
@@ -400,8 +400,8 @@
|
|
|
400
400
|
"stateChangeResponseTime": 3
|
|
401
401
|
},
|
|
402
402
|
{
|
|
403
|
-
"type": "
|
|
404
|
-
"displayName": "
|
|
403
|
+
"type": "Battery",
|
|
404
|
+
"displayName": "MyBattery",
|
|
405
405
|
"batteryLevel": 50,
|
|
406
406
|
"chargingState": "NOT_CHARGING",
|
|
407
407
|
"statusLowBattery": "BATTERY_LEVEL_NORMAL",
|
|
@@ -670,24 +670,12 @@
|
|
|
670
670
|
"stateChangeResponseTime": 3
|
|
671
671
|
},
|
|
672
672
|
{
|
|
673
|
-
"type": "
|
|
674
|
-
"displayName": "
|
|
673
|
+
"type": "CloudRelay",
|
|
674
|
+
"displayName": "MyCloudRelay",
|
|
675
675
|
"relayEnabled": "FALSE",
|
|
676
676
|
"relayState": 0,
|
|
677
677
|
"stateChangeResponseTime": 10
|
|
678
678
|
},
|
|
679
|
-
{
|
|
680
|
-
"type": "TimeInformation",
|
|
681
|
-
"displayName": "MyTimeInformation",
|
|
682
|
-
"currentTime": "11:15",
|
|
683
|
-
"dayoftheWeek": 1,
|
|
684
|
-
"timeUpdate": "TRUE",
|
|
685
|
-
"name": "MyTimeInformation",
|
|
686
|
-
"manufacturer": "Somebody",
|
|
687
|
-
"model": "Anything",
|
|
688
|
-
"serialNumber": "12345",
|
|
689
|
-
"stateChangeResponseTime": 3
|
|
690
|
-
},
|
|
691
679
|
{
|
|
692
680
|
"type": "Valve",
|
|
693
681
|
"displayName": "MyValve",
|
package/Extras/config.min.json
CHANGED
|
@@ -1110,8 +1110,8 @@
|
|
|
1110
1110
|
//"state_cmd": "node .homebridge/< yourScriptHere >"
|
|
1111
1111
|
},
|
|
1112
1112
|
{
|
|
1113
|
-
"type": "
|
|
1114
|
-
"displayName": "
|
|
1113
|
+
"type": "Battery", // Was BatteryService
|
|
1114
|
+
"displayName": "MyBattery", // Not a characteristic, but a function parameter
|
|
1115
1115
|
|
|
1116
1116
|
// Required Characteristics
|
|
1117
1117
|
"batteryLevel": 50, // Range: 0 - 100, Step 1
|
|
@@ -1854,8 +1854,8 @@
|
|
|
1854
1854
|
//"state_cmd": "node .homebridge/< yourScriptHere >"
|
|
1855
1855
|
},
|
|
1856
1856
|
{
|
|
1857
|
-
"type": "
|
|
1858
|
-
"displayName": "
|
|
1857
|
+
"type": "CloudRelay", // Was Relay
|
|
1858
|
+
"displayName": "MyCloudRelay", // Not a characteristic, but a function parameter
|
|
1859
1859
|
|
|
1860
1860
|
// Required characteristics
|
|
1861
1861
|
"relayEnabled": "FALSE",
|
package/RUNNING_CHANGELOG.md
CHANGED
|
@@ -102,8 +102,11 @@
|
|
|
102
102
|
##### Bug Fixes
|
|
103
103
|
* fix for homebridge v2 where TargetSlateStte and TargetAirQuality are deprecated ([6acfbb2](https://github.com/ztalbot2000/homebridge-cmd4/commit/6acfbb26bf56a355d76f3f96dafabdfefd26bbb6))
|
|
104
104
|
* Fix for homebridge v2 Formats&Perms&Units only available directly from HAP ([2a9d6e9](https://github.com/ztalbot2000/homebridge-cmd4/commit/2a9d6e976647f1fa7e1a3ee34e5080a3c28eae73))
|
|
105
|
-
|
|
106
105
|
* Fix lint error ([286dc68](https://github.com/ztalbot2000/homebridge-cmd4/commit/286dc68441c776a93f0f0d913db326fa9ccafeec))
|
|
106
|
+
* Fix add beta tag ([9b36408](https://github.com/ztalbot2000/homebridge-cmd4/commit/9b364087ec489c5dfda503ceaf1429b626a929c0))
|
|
107
|
+
* Fix for homebridge v2 where some device types are deprecated ([e483326](https://github.com/ztalbot2000/homebridge-cmd4/commit/e483326d93d447f81be5978f337ce80834798145))
|
|
108
|
+
* stop committing npm package ([630f4fb](https://github.com/ztalbot2000/homebridge-cmd4/commit/630f4fb6f6cbd876b3fe21ee4689eb40a6adeacc))
|
|
109
|
+
|
|
107
110
|
|
|
108
111
|
|
|
109
112
|
##### New Features
|