homebridge-cmd4 7.0.3 → 8.0.0-beta.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 CHANGED
@@ -1,8 +1,12 @@
1
1
  # Homebridges-cmd4 - CMD4 Plugin for Homebridge - Supports ~All Accessory Types and now all Characteristics too!!
2
- #### 7.0.3 (2024-01-27)
2
+ ### 7.1.0 (2024-03-04)
3
3
 
4
- ##### Bug Fixes
4
+ ##### Documentation Changes
5
5
 
6
- * props is already an object. Also test setProps is called for more than one characteristic. Affects only those who change a characteristics property range ([276d0c0d](https://github.com/ztalbot2000/homebridge-cmd4/commit/276d0c0d58b435c59fb3c1fdfd322f55f6b24434))
6
+ * Update for newest characteristics ([fccb9ebd](https://github.com/ztalbot2000/homebridge-cmd4/commit/fccb9ebdc18a2cd876b1512e0da2d5d28e8019b0))
7
+
8
+ ##### New Features
9
+
10
+ * Add in latest new characteristics and devices ([545112f0](https://github.com/ztalbot2000/homebridge-cmd4/commit/545112f0fa2122abf51d3217707012879db723b7))
7
11
 
8
12
 
package/Cmd4Accessory.js CHANGED
@@ -1515,8 +1515,10 @@ class Cmd4Accessory
1515
1515
 
1516
1516
  break;
1517
1517
  case constants.ACCESSORY:
1518
- // Do nothing as this is a key for homebridge, not us
1519
- break;
1518
+ // For 8.0 this is no longer supported. Homebridge has deprecated
1519
+ // the template and only wants Platform templates which makes
1520
+ // it easier for Cmd4 to support homebridge-ui as well..
1521
+ throw new Error( `Accessory: has been deprecated by homebridge. Only Platform confgurations are supported by Cmd4 >= 8.0 for: "${ this.displayName }".` );
1520
1522
  case constants.CATEGORY:
1521
1523
  // For those who define there own Category
1522
1524
  // Uppercase the category to be nice. Why do I know
@@ -505,7 +505,14 @@ switch( io )
505
505
  {
506
506
  c = readData( device, characteristic );
507
507
 
508
- if ( c == "" ) process.stdout.write( "2" ); else process.stdout.write( `"${ c }"` );
508
+ //validValues:
509
+ // "PLAY"
510
+ // "PAUSE"
511
+ // "STOP"
512
+ // "LOADING"
513
+ // "INTERRUPTED"
514
+
515
+ if ( c == "" ) process.stdout.write( "STOP" ); else process.stdout.write( `"${ c }"` );
509
516
 
510
517
  break;
511
518
  }
@@ -2059,6 +2066,191 @@ switch( io )
2059
2066
 
2060
2067
  break;
2061
2068
  }
2069
+ // New Mar 2024
2070
+ case "AccessCodeControlPoint": // 233
2071
+ {
2072
+ c = readData( device, characteristic );
2073
+
2074
+ if ( c == "" ) process.stdout.write( "0" ); else process.stdout.write( `"${ c }"` );
2075
+
2076
+ break;
2077
+ }
2078
+ case "AccessCodeSupportedConfiguration": // 234
2079
+ {
2080
+ c = readData( device, characteristic );
2081
+
2082
+ if ( c == "" ) process.stdout.write( "0" ); else process.stdout.write( `"${ c }"` );
2083
+
2084
+ break;
2085
+ }
2086
+ case "AirPlayEnable": // 235
2087
+ {
2088
+ c = readData( device, characteristic );
2089
+
2090
+ if ( c == "" ) process.stdout.write( "0" ); else process.stdout.write( `"${ c }"` );
2091
+
2092
+ break;
2093
+ }
2094
+ case "CharacteristicValueActiveTransitionCount": // 236
2095
+ {
2096
+ c = readData( device, characteristic );
2097
+
2098
+ if ( c == "" ) process.stdout.write( "0" ); else process.stdout.write( `"${ c }"` );
2099
+
2100
+ break;
2101
+ }
2102
+ case "CryptoHash": // 237
2103
+ {
2104
+ c = readData( device, characteristic );
2105
+
2106
+ if ( c == "" ) process.stdout.write( "0" ); else process.stdout.write( `"${ c }"` );
2107
+
2108
+ break;
2109
+ }
2110
+ case "FirmwareUpdateReadiness": // 238
2111
+ {
2112
+ c = readData( device, characteristic );
2113
+
2114
+ if ( c == "" ) process.stdout.write( "0" ); else process.stdout.write( `"${ c }"` );
2115
+
2116
+ break;
2117
+ }
2118
+ case "FirmwareUpdateStatus": // 239
2119
+ {
2120
+ c = readData( device, characteristic );
2121
+
2122
+ if ( c == "" ) process.stdout.write( "0" ); else process.stdout.write( `"${ c }"` );
2123
+
2124
+ break;
2125
+ }
2126
+ case "HardwareFinish": // 240
2127
+ {
2128
+ c = readData( device, characteristic );
2129
+
2130
+ if ( c == "" ) process.stdout.write( "0" ); else process.stdout.write( `"${ c }"` );
2131
+
2132
+ break;
2133
+ }
2134
+ case "MetricsBufferFullState": // 241
2135
+ {
2136
+ c = readData( device, characteristic );
2137
+
2138
+ if ( c == "" ) process.stdout.write( "0" ); else process.stdout.write( `"${ c }"` );
2139
+
2140
+ break;
2141
+ }
2142
+ case "MultifunctionButton": // 242
2143
+ {
2144
+ c = readData( device, characteristic );
2145
+
2146
+ if ( c == "" ) process.stdout.write( "0" ); else process.stdout.write( `"${ c }"` );
2147
+
2148
+ break;
2149
+ }
2150
+ case "NetworkAccessViolationControl": // 243
2151
+ {
2152
+ c = readData( device, characteristic );
2153
+
2154
+ if ( c == "" ) process.stdout.write( "0" ); else process.stdout.write( `"${ c }"` );
2155
+
2156
+ break;
2157
+ }
2158
+ case "SelectedDiagnosticsModes": // 244
2159
+ {
2160
+ c = readData( device, characteristic );
2161
+
2162
+ if ( c == "" ) process.stdout.write( "0" ); else process.stdout.write( `"${ c }"` );
2163
+
2164
+ break;
2165
+ }
2166
+ case "SelectedSleepConfiguration": // 245
2167
+ {
2168
+ c = readData( device, characteristic );
2169
+
2170
+ if ( c == "" ) process.stdout.write( "0" ); else process.stdout.write( `"${ c }"` );
2171
+
2172
+ break;
2173
+ }
2174
+ case "SiriEnable": // 246
2175
+ {
2176
+ c = readData( device, characteristic );
2177
+
2178
+ if ( c == "" ) process.stdout.write( "0" ); else process.stdout.write( `"${ c }"` );
2179
+
2180
+ break;
2181
+ }
2182
+ case "SiriEngineVersion": // 247
2183
+ {
2184
+ c = readData( device, characteristic );
2185
+
2186
+ if ( c == "" ) process.stdout.write( "0" ); else process.stdout.write( `"${ c }"` );
2187
+
2188
+ break;
2189
+ }
2190
+ case "SiriLightOnUse": // 248
2191
+ {
2192
+ c = readData( device, characteristic );
2193
+
2194
+ if ( c == "" ) process.stdout.write( "0" ); else process.stdout.write( `"${ c }"` );
2195
+
2196
+ break;
2197
+ }
2198
+ case "SiriListening": // 249
2199
+ {
2200
+ c = readData( device, characteristic );
2201
+
2202
+ if ( c == "" ) process.stdout.write( "0" ); else process.stdout.write( `"${ c }"` );
2203
+
2204
+ break;
2205
+ }
2206
+ case "SiriTouchToUse": // 250
2207
+ {
2208
+ c = readData( device, characteristic );
2209
+
2210
+ if ( c == "" ) process.stdout.write( "0" ); else process.stdout.write( `"${ c }"` );
2211
+
2212
+ break;
2213
+ }
2214
+ case "StagedFirmwareVersion": // 251
2215
+ {
2216
+ c = readData( device, characteristic );
2217
+
2218
+ if ( c == "" ) process.stdout.write( "0" ); else process.stdout.write( `"${ c }"` );
2219
+
2220
+ break;
2221
+ }
2222
+ case "SupportedMetrics": // 252
2223
+ {
2224
+ c = readData( device, characteristic );
2225
+
2226
+ if ( c == "" ) process.stdout.write( "0" ); else process.stdout.write( `"${ c }"` );
2227
+
2228
+ break;
2229
+ }
2230
+ case "SupportedFirmwareUpdateConfiguration": // 253
2231
+ {
2232
+ c = readData( device, characteristic );
2233
+
2234
+ if ( c == "" ) process.stdout.write( "0" ); else process.stdout.write( `"${ c }"` );
2235
+
2236
+ break;
2237
+ }
2238
+ case "TapType": // 254
2239
+ {
2240
+ c = readData( device, characteristic );
2241
+
2242
+ if ( c == "" ) process.stdout.write( "0" ); else process.stdout.write( `"${ c }"` );
2243
+
2244
+ break;
2245
+ }
2246
+ case "Token": // 255
2247
+ {
2248
+ c = readData( device, characteristic );
2249
+
2250
+ if ( c == "" ) process.stdout.write( "0" ); else process.stdout.write( `"${ c }"` );
2251
+
2252
+ break;
2253
+ }
2062
2254
  default:
2063
2255
  process.stderr.write( `Unknown Characteristic for: ${ io } Device: ${ device } Characteristic: ${ characteristic }` );
2064
2256
  process.exit( -1 );
@@ -3666,6 +3858,191 @@ switch( io )
3666
3858
 
3667
3859
  break;
3668
3860
  }
3861
+ // New Mar 2024
3862
+ case "AccessCodeControlPoint": // 233
3863
+ {
3864
+ c = readData( device, characteristic );
3865
+
3866
+ writeData( device, characteristic, option );
3867
+
3868
+ break;
3869
+ }
3870
+ case "AccessCodeSupportedConfiguration": // 234
3871
+ {
3872
+ c = readData( device, characteristic );
3873
+
3874
+ writeData( device, characteristic, option );
3875
+
3876
+ break;
3877
+ }
3878
+ case "AirPlayEnable": // 235
3879
+ {
3880
+ c = readData( device, characteristic );
3881
+
3882
+ writeData( device, characteristic, option );
3883
+
3884
+ break;
3885
+ }
3886
+ case "CharacteristicValueActiveTransitionCount": // 236
3887
+ {
3888
+ c = readData( device, characteristic );
3889
+
3890
+ writeData( device, characteristic, option );
3891
+
3892
+ break;
3893
+ }
3894
+ case "CryptoHash": // 237
3895
+ {
3896
+ c = readData( device, characteristic );
3897
+
3898
+ writeData( device, characteristic, option );
3899
+
3900
+ break;
3901
+ }
3902
+ case "FirmwareUpdateReadiness": // 238
3903
+ {
3904
+ c = readData( device, characteristic );
3905
+
3906
+ writeData( device, characteristic, option );
3907
+
3908
+ break;
3909
+ }
3910
+ case "FirmwareUpdateStatus": // 239
3911
+ {
3912
+ c = readData( device, characteristic );
3913
+
3914
+ writeData( device, characteristic, option );
3915
+
3916
+ break;
3917
+ }
3918
+ case "HardwareFinish": // 240
3919
+ {
3920
+ c = readData( device, characteristic );
3921
+
3922
+ writeData( device, characteristic, option );
3923
+
3924
+ break;
3925
+ }
3926
+ case "MetricsBufferFullState": // 241
3927
+ {
3928
+ c = readData( device, characteristic );
3929
+
3930
+ writeData( device, characteristic, option );
3931
+
3932
+ break;
3933
+ }
3934
+ case "MultifunctionButton": // 242
3935
+ {
3936
+ c = readData( device, characteristic );
3937
+
3938
+ writeData( device, characteristic, option );
3939
+
3940
+ break;
3941
+ }
3942
+ case "NetworkAccessViolationControl": // 243
3943
+ {
3944
+ c = readData( device, characteristic );
3945
+
3946
+ writeData( device, characteristic, option );
3947
+
3948
+ break;
3949
+ }
3950
+ case "SelectedDiagnosticsModes": // 244
3951
+ {
3952
+ c = readData( device, characteristic );
3953
+
3954
+ writeData( device, characteristic, option );
3955
+
3956
+ break;
3957
+ }
3958
+ case "SelectedSleepConfiguration": // 245
3959
+ {
3960
+ c = readData( device, characteristic );
3961
+
3962
+ writeData( device, characteristic, option );
3963
+
3964
+ break;
3965
+ }
3966
+ case "SiriEnable": // 246
3967
+ {
3968
+ c = readData( device, characteristic );
3969
+
3970
+ writeData( device, characteristic, option );
3971
+
3972
+ break;
3973
+ }
3974
+ case "SiriEngineVersion": // 247
3975
+ {
3976
+ c = readData( device, characteristic );
3977
+
3978
+ writeData( device, characteristic, option );
3979
+
3980
+ break;
3981
+ }
3982
+ case "SiriLightOnUse": // 248
3983
+ {
3984
+ c = readData( device, characteristic );
3985
+
3986
+ writeData( device, characteristic, option );
3987
+
3988
+ break;
3989
+ }
3990
+ case "SiriListening": // 249
3991
+ {
3992
+ c = readData( device, characteristic );
3993
+
3994
+ writeData( device, characteristic, option );
3995
+
3996
+ break;
3997
+ }
3998
+ case "SiriTouchToUse": // 250
3999
+ {
4000
+ c = readData( device, characteristic );
4001
+
4002
+ writeData( device, characteristic, option );
4003
+
4004
+ break;
4005
+ }
4006
+ case "StagedFirmwareVersion": // 251
4007
+ {
4008
+ c = readData( device, characteristic );
4009
+
4010
+ writeData( device, characteristic, option );
4011
+
4012
+ break;
4013
+ }
4014
+ case "SupportedMetrics": // 252
4015
+ {
4016
+ c = readData( device, characteristic );
4017
+
4018
+ writeData( device, characteristic, option );
4019
+
4020
+ break;
4021
+ }
4022
+ case "SupportedFirmwareUpdateConfiguration": // 253
4023
+ {
4024
+ c = readData( device, characteristic );
4025
+
4026
+ writeData( device, characteristic, option );
4027
+
4028
+ break;
4029
+ }
4030
+ case "TapType": // 254
4031
+ {
4032
+ c = readData( device, characteristic );
4033
+
4034
+ writeData( device, characteristic, option );
4035
+
4036
+ break;
4037
+ }
4038
+ case "Token": // 255
4039
+ {
4040
+ c = readData( device, characteristic );
4041
+
4042
+ writeData( device, characteristic, option );
4043
+
4044
+ break;
4045
+ }
3669
4046
  default:
3670
4047
  process.stderr.write( `Unknown Characteristic for: ${ io } Device:${ device } Characteristic:${ characteristic }` );
3671
4048
  process.exit( -1 );
@@ -463,8 +463,8 @@
463
463
  "stateChangeResponseTime": 3
464
464
  },
465
465
  {
466
- "type": "Slat",
467
- "displayName": "MySlat",
466
+ "type": "Slats",
467
+ "displayName": "MySlats",
468
468
  "slatType": "HORIZONTAL",
469
469
  "currentSlatState": "FIXED",
470
470
  "name": "MySlat",
@@ -1266,8 +1266,8 @@
1266
1266
  //"state_cmd": "node .homebridge/< yourScriptHere >"
1267
1267
  },
1268
1268
  {
1269
- "type": "Slat",
1270
- "displayName": "MySlat", // Not a characteristic, but a function parameter
1269
+ "type": "Slats",
1270
+ "displayName": "MySlats", // Not a characteristic, but a function parameter
1271
1271
 
1272
1272
  // Required Characteristics
1273
1273
  "slatType": "HORIZONTAL", // 0 - "HORIZONTAL"
package/README.md CHANGED
@@ -55,7 +55,7 @@
55
55
 
56
56
  &nbsp;&nbsp;&nbsp; Cmd4 supports Fakegato History and retaining previous state over restarts.
57
57
 
58
- &nbsp;&nbsp;&nbsp; Cmd4 Version 2.0 supported linked Accessories and the latest 3.0 Version supports both Platform plugin and Accessory plugin configurations as documented on [developers.homebridge.io](https://developers.homebridge.io).
58
+ &nbsp;&nbsp;&nbsp; Since version 2.0 Cmd4 has supported linked Accessories and the latest 3.0 Version supports both Platform plugin and Accessory plugin configurations as documented on [developers.homebridge.io](https://developers.homebridge.io).
59
59
 
60
60
  &nbsp;&nbsp;&nbsp; Cmd4 Version 3.5 adds in support for Custom Characteristics.
61
61
 
@@ -158,12 +158,7 @@ Note: For Homebridge-config-ui-x, you only need to write Cmd4 in the Environment
158
158
 
159
159
  <BR><BR>
160
160
  ## Todo
161
- * [X] Linked characteristics, i.e. a smoke detectors battery is not yet linked.
162
- * [X] Support for custom characteristics for an accessory. *Warning, May Not possible to be displayed by any GUI*
163
- * [X] Support multi word device names. (Technically done, but scripting is hard for newbies).
164
- * [ ] Scripting language to avoid creating new Homebridge modules.
165
- * [ ] HTTP commands. *Might be just to many options*
166
- * [ ] Become Homebridge Certified. ( The schema file would be very difficult )
161
+ * [ ] Become Homebridge Certified. ( The schema file for Homebridg-ui would be very difficult )
167
162
 
168
163
  <BR><BR>
169
164
  ## Contributing
@@ -4,6 +4,7 @@
4
4
 
5
5
 
6
6
  ## ChangeLog
7
+ * <a href="#Whats-new-in-7-1-0">**Whats new in 7.1.0**</a>
7
8
  * <a href="#Whats-new-in-7-0-3">**Whats new in 7.0.3**</a>
8
9
  * <a href="#Whats-new-in-7-0-2">**Whats new in 7.0.2**</a>
9
10
  <a name="Whats-new-in-7-0-1">## Whats new in 7.0.0</a>
@@ -90,6 +91,18 @@
90
91
  * <a href="#Whats-new-in-2-1">**Whats new in 2.1**</a>
91
92
  * <a href="#Whats-new-in-2-0">**Whats new in 2.0**</a>
92
93
 
94
+ <a name="Whats-new-in-7-1-0">## Whats new in 7.1.0</a>
95
+ ### 7.1.0 (2024-03-04)
96
+
97
+ ##### Documentation Changes
98
+
99
+ * Update for newest characteristics ([fccb9ebd](https://github.com/ztalbot2000/homebridge-cmd4/commit/fccb9ebdc18a2cd876b1512e0da2d5d28e8019b0))
100
+
101
+ ##### New Features
102
+
103
+ * Add in latest new characteristics and devices ([545112f0](https://github.com/ztalbot2000/homebridge-cmd4/commit/545112f0fa2122abf51d3217707012879db723b7))
104
+
105
+
93
106
  <a name="Whats-new-in-7-0-3">## Whats new in 7.0.3</a>
94
107
  #### 7.0.3 (2024-01-27)
95
108
 
@@ -8,7 +8,6 @@
8
8
  * [**Homebridge API**](#homebridge-api)
9
9
  * [**Platform Accessories**](#platform-accessories)
10
10
  * [**Television Accessories**](#television-accessories)
11
- * [**Standard Accessories**](#standard-accessories)
12
11
  * [**Cmd4 Directives**](#cmd4-directives)
13
12
  * [**Cmd4 Devices and Characteristics**](#cmd4-devices-and-characteristics)
14
13
  * [**Priority Queued Polling**](#priority-queued-polling)
@@ -31,12 +30,11 @@
31
30
  * [**cmd4-HisenseTV**](https://github.com/mitch7391/cmd4-HisenseTV/blob/main/HisenseTV.sh)
32
31
 
33
32
  ## Homebridge API
34
- &nbsp;&nbsp;&nbsp; Cmd4 is not possible without Homebridge. Prior to Cmd4 Version 3, Cmd4 just created Standard Plugin Accessories. With Version 3 of Cmd4, Cmd4 follows the Hombridge API as defined on [Homebridge API](https://developers.homebridge.io/#/) to be followed exactly. Both Platform and Accessory Plugins can be created. In fact the examples can be recreated exactly.<BR>
35
- <BR>Note: The major difference in CMD4 Version 3 is that the default accessory created is a Platform Plugin as compared to an Accessory Plugin. This is beneficial as many more Platform with the same type can be created and they can be published externally as we shall see.
33
+ &nbsp;&nbsp;&nbsp; Cmd4 is not possible without Homebridge. As of Cmd4 Version >= 8, Cmd4 only follows the Platform template definition as dictated by Homebridge. See: [deprecated templates](https://developers.homebridge.io/#/). This was everyone anyway and makes homebridge-ui easier to implement for Cmd4..<BR>
36
34
 
37
35
 
38
36
  ## Platform Accessories
39
- &nbsp;&nbsp;&nbsp; The best way to explain the difference is to understand how the Homebridge API defines a Television as a Platform Accessory. [Homebridge Television](https://developers.homebridge.io/#/service/Television). Cmd4 Version 3 can recreate the exact same configuration as:<as:
37
+ &nbsp;&nbsp;&nbsp; An example Cmd4 Platform accessory for a Homebridge Television as described by: [Homebridge Television](https://developers.homebridge.io/#/service/Television) is:
40
38
 
41
39
  ```json
42
40
  {
@@ -152,42 +150,6 @@ As per the Homebridge API, this allows the Platform Accessory to be published se
152
150
 
153
151
  See the [Cmd4 Developers Guide](https://github.com/ztalbot2000/homebridge-cmd4/blob/master/docs/Developers.md) for further information.
154
152
 
155
- ## Standard Accessories
156
- &nbsp;&nbsp;&nbsp;A Standard Accessory does not need a Platform. The Homebridge example given is. [Homebridge Switch](https://developers.homebridge.io/#/api/accessory-plugins). Cmd4 Version 3 can recreate the exact same configuration as:
157
-
158
- ```json
159
- {
160
- "bridge": {
161
- "name": "MAC Test Homebridge",
162
- "username": "CC:22:3D:E3:CE:30",
163
- "port": 51826,
164
- "pin": "555-55-555"
165
- },
166
- "accessories": [
167
- {
168
- "accessory": "Cmd4",
169
- "type": "Switch",
170
- "outputConstants": false,
171
- "displayName": "My_Switch",
172
- "name": "My_Switch",
173
- "on": "FALSE",
174
- "manufacturer": "Custom Manufacturer",
175
- "model": "Custom Model",
176
- "stateChangeResponseTime": 3,
177
- "state_cmd": "node .homebridge/YourScriptHere.js"
178
- }
179
- ]
180
- }
181
- ```
182
-
183
- This configuration defines a Cmd4 Standard Accessory with the designation:
184
-
185
- ```json
186
- "accessory": "Cmd4"
187
- ```
188
- <BR>
189
- Notice that there is no Platform definition. Otherwise everything is the same. You can even add linked accessories as before.<BR>
190
-
191
153
 
192
154
  ## Cmd4 Directives
193
155
 
@@ -468,7 +430,7 @@ The value "0" should be used for any characteristics value which is not possible
468
430
  ```
469
431
 
470
432
  ## Unit Testing
471
- &nbsp;&nbsp;&nbsp; Unit testing is done using the Mocha framework for Javascript and was introduced in homebridge-cmd4 version 2.1.2. There are 2796 test cases and they all run successfully. They test the homebridge-Cmd4 module to make sure that all characteristics, services and names are correct. The provided config.json is also tested for proper definitions of all the homebridge-cmd4 config parameters.
433
+ &nbsp;&nbsp;&nbsp; Unit testing is done using the Mocha framework for Javascript and was introduced in homebridge-cmd4 version 2.1.2. There are 11708 test cases and they all run successfully. They test the homebridge-Cmd4 module to make sure that all characteristics, services and names are correct. The provided config.json is also tested for proper definitions of all the homebridge-cmd4 config parameters.
472
434
 
473
435
  &nbsp;&nbsp;&nbsp; Unit testing is only possible in a development environment and can be achieved in the following manner.
474
436
 
package/index.js CHANGED
@@ -38,8 +38,8 @@ module.exports =
38
38
  default: function ( api )
39
39
  {
40
40
  // Init the libraries for all to use
41
- let CMD4_CHAR_TYPE_ENUMS = CHAR_DATA.init( api.hap.Characteristic );
42
- let CMD4_ACC_TYPE_ENUM = ACC_DATA.init( api.hap.Characteristic );
41
+ let CMD4_CHAR_TYPE_ENUMS = CHAR_DATA.init( api.hap.Formats, api.hap.Units, api.hap.Perms );
42
+ let CMD4_ACC_TYPE_ENUM = ACC_DATA.init( api.hap.Characteristic, api.hap.Formats, api.hap.Units, api.hap.Perms );
43
43
  let CMD4_DEVICE_TYPE_ENUM = DEVICE_DATA.init(
44
44
  CMD4_ACC_TYPE_ENUM, api.hap.Service, api.hap.Characteristic, api.hap.Categories );
45
45