homebridge-cmd4 7.0.0 → 7.0.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 +3 -32
- package/Cmd4PriorityPollingQueue.js +37 -18
- package/Extras/config.json +110 -110
- package/Extras/config.min.json +111 -111
- package/RUNNING_CHANGELOG.md +36 -2
- package/docs/Developers.md +21 -23
- package/package.json +4 -2
package/Extras/config.min.json
CHANGED
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
[
|
|
26
26
|
{
|
|
27
27
|
"type": "Fanv1",
|
|
28
|
-
"displayName": "
|
|
28
|
+
"displayName": "MyV1Fan", // Not a characteristic, but a function parameter
|
|
29
29
|
|
|
30
30
|
// Required characteristics
|
|
31
31
|
"on": "FALSE", // 0 - "FALSE"
|
|
32
32
|
// 1 - "TRUE"
|
|
33
33
|
|
|
34
34
|
// Optional Characteristics
|
|
35
|
-
"name": "
|
|
35
|
+
"name": "MyV1Fan",
|
|
36
36
|
|
|
37
37
|
"manufacturer": "Somebody", // Available for all accessories
|
|
38
38
|
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
"type": "Fan",
|
|
56
|
-
"displayName": "
|
|
56
|
+
"displayName": "MyFan", // Not a characteristic, but a function parameter
|
|
57
57
|
|
|
58
58
|
// Required Characteristics
|
|
59
59
|
"on": "FALSE", // 0 - "FALSE"
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
|
|
67
67
|
"rotationSpeed": 100, // Range: 0-100, Step: 1
|
|
68
68
|
|
|
69
|
-
"name": "
|
|
69
|
+
"name": "MyFan",
|
|
70
70
|
|
|
71
71
|
"manufacturer": "Somebody", // Available for all accessories
|
|
72
72
|
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
"type": "Fanv2",
|
|
99
|
-
"displayName": "
|
|
99
|
+
"displayName": "MyV2Fan", // Not a characteristic, but a function parameter
|
|
100
100
|
|
|
101
101
|
// Required Characteristics
|
|
102
102
|
"active": "INACTIVE", // 0 - "INACTIVE"
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"swingMode": "SWING_ENABLED", // 0 - "SWING_DISABLED",
|
|
124
124
|
// 1 - "SWING_ENABLED"
|
|
125
125
|
|
|
126
|
-
"name": "
|
|
126
|
+
"name": "MyV2Fan",
|
|
127
127
|
|
|
128
128
|
"manufacturer": "Somebody", // Available for all accessories
|
|
129
129
|
|
|
@@ -136,8 +136,8 @@
|
|
|
136
136
|
//"state_cmd": "node .homebridge/< yourScriptHere >"
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
|
-
"type":
|
|
140
|
-
"displayName":
|
|
139
|
+
"type": "GarageDoorOpener",
|
|
140
|
+
"displayName": "MyGarageDoorOpener", // Not a characteristic, but a function parameter
|
|
141
141
|
|
|
142
142
|
// Required Characteristics
|
|
143
143
|
"currentDoorState": "OPEN", // 0 - "OPEN"
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
"lockTargetState": "UNSECURED", // 0 - "UNSECURED"
|
|
162
162
|
// 1 - "SECURED"
|
|
163
163
|
|
|
164
|
-
"name": "
|
|
164
|
+
"name": "MyGarageDoorOpener",
|
|
165
165
|
|
|
166
166
|
"manufacturer": "Somebody", // Available for all accessories
|
|
167
167
|
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
},
|
|
190
190
|
{
|
|
191
191
|
"type": "Lightbulb",
|
|
192
|
-
"displayName": "
|
|
192
|
+
"displayName": "MyOnOffLight", // Not a characteristic, but a function parameter
|
|
193
193
|
|
|
194
194
|
// Required Characteristics
|
|
195
195
|
"on": "FALSE", // 0 - "FALSE"
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
// "Hue":
|
|
202
202
|
// "Saturation":
|
|
203
203
|
|
|
204
|
-
"name": "
|
|
204
|
+
"name": "MyOnOffLight",
|
|
205
205
|
|
|
206
206
|
"manufacturer": "Somebody", // Available for all accessories
|
|
207
207
|
|
|
@@ -216,8 +216,8 @@
|
|
|
216
216
|
//"state_cmd": "node .homebridge/< yourScriptHere >"
|
|
217
217
|
},
|
|
218
218
|
{
|
|
219
|
-
"type":
|
|
220
|
-
"displayName":
|
|
219
|
+
"type": "Lightbulb",
|
|
220
|
+
"displayName": "MyDimmableLight", // Not a characteristic, but a function parameter
|
|
221
221
|
|
|
222
222
|
// Required
|
|
223
223
|
"on": "FALSE", // 0 - "FALSE"
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
|
|
234
234
|
"colorTemperature": 8, // Range: 140-500, Step: 1
|
|
235
235
|
|
|
236
|
-
"name": "
|
|
236
|
+
"name": "MyDimmableLight",
|
|
237
237
|
|
|
238
238
|
"manufacturer": "Somebody", // Available for all accessories
|
|
239
239
|
|
|
@@ -247,7 +247,7 @@
|
|
|
247
247
|
},
|
|
248
248
|
{
|
|
249
249
|
"type": "LockManagement",
|
|
250
|
-
"displayName": "
|
|
250
|
+
"displayName": "MyLockManagement", // Not a characteristic, but a function parameter
|
|
251
251
|
|
|
252
252
|
// Required Characteristics
|
|
253
253
|
|
|
@@ -299,7 +299,7 @@
|
|
|
299
299
|
"motionDetected": "FALSE", // 0 - "FALSE"
|
|
300
300
|
// 1 - "TRUE"
|
|
301
301
|
|
|
302
|
-
"name": "
|
|
302
|
+
"name": "MyLockManagement",
|
|
303
303
|
|
|
304
304
|
"manufacturer": "Somebody", // Available for all accessories
|
|
305
305
|
|
|
@@ -313,7 +313,7 @@
|
|
|
313
313
|
},
|
|
314
314
|
{
|
|
315
315
|
"type": "LockMechanism",
|
|
316
|
-
"displayName": "
|
|
316
|
+
"displayName": "MyLockMechanism", // Not a characteristic, but a function parameter
|
|
317
317
|
|
|
318
318
|
// Required Characteristics
|
|
319
319
|
"lockCurrentState": "UNSECURED", // 0 - "UNSECURED"
|
|
@@ -324,7 +324,7 @@
|
|
|
324
324
|
"lockTargetState": "UNSECURED", // 0 - "UNSECURED"
|
|
325
325
|
// 1 - "SECURED"
|
|
326
326
|
|
|
327
|
-
"name": "
|
|
327
|
+
"name": "MyLockMechanism",
|
|
328
328
|
|
|
329
329
|
"manufacturer": "Somebody", // Available for all accessories
|
|
330
330
|
|
|
@@ -338,7 +338,7 @@
|
|
|
338
338
|
},
|
|
339
339
|
{
|
|
340
340
|
"type": "Outlet",
|
|
341
|
-
"displayName": "
|
|
341
|
+
"displayName": "MyOutlet", // Not a characteristic, but a function parameter
|
|
342
342
|
|
|
343
343
|
// Required Characteristics
|
|
344
344
|
"on": "FALSE", // 0 - "FALSE"
|
|
@@ -348,7 +348,7 @@
|
|
|
348
348
|
// 1 - "TRUE"
|
|
349
349
|
|
|
350
350
|
// Optional Characteristics
|
|
351
|
-
"name": "
|
|
351
|
+
"name": "MyOutlet",
|
|
352
352
|
|
|
353
353
|
"manufacturer": "Somebody", // Available for all accessories
|
|
354
354
|
|
|
@@ -362,14 +362,14 @@
|
|
|
362
362
|
},
|
|
363
363
|
{
|
|
364
364
|
"type": "Switch",
|
|
365
|
-
"displayName": "
|
|
365
|
+
"displayName": "MySwitch", // Not a characteristic, but a function parameter
|
|
366
366
|
|
|
367
367
|
// Required Characteristics
|
|
368
368
|
"on": "FALSE", // 0 - "FALSE"
|
|
369
369
|
// 1 - "TRUE"
|
|
370
370
|
|
|
371
371
|
// Optional Characteristics
|
|
372
|
-
"name": "
|
|
372
|
+
"name": "MySwitch",
|
|
373
373
|
|
|
374
374
|
"manufacturer": "Somebody", // Available for all accessories
|
|
375
375
|
|
|
@@ -383,7 +383,7 @@
|
|
|
383
383
|
},
|
|
384
384
|
{
|
|
385
385
|
"type": "Thermostat",
|
|
386
|
-
"displayName": "
|
|
386
|
+
"displayName": "MyThermostat", // Not a characteristic, but a function parameter
|
|
387
387
|
|
|
388
388
|
// Required Characteristics
|
|
389
389
|
"currentHeatingCoolingState":
|
|
@@ -423,7 +423,7 @@
|
|
|
423
423
|
25.2, // Range 0-25, Step: 0.1
|
|
424
424
|
// Units: CELCIUS
|
|
425
425
|
|
|
426
|
-
"name": "
|
|
426
|
+
"name": "MyThermostat",
|
|
427
427
|
|
|
428
428
|
"manufacturer": "Somebody", // Available for all accessories
|
|
429
429
|
|
|
@@ -470,7 +470,7 @@
|
|
|
470
470
|
},
|
|
471
471
|
{
|
|
472
472
|
"type": "AirQualitySensor",
|
|
473
|
-
"displayName": "
|
|
473
|
+
"displayName": "MyAirQualitySensor", // Not a characteristic, but a function parameter
|
|
474
474
|
|
|
475
475
|
// Required Characteristics
|
|
476
476
|
"airQuality": "EXCELLENT", // 0 - "UNKNOWN"
|
|
@@ -505,7 +505,7 @@
|
|
|
505
505
|
"statusLowBattery": "BATTERY_LEVEL_NORMAL", // 0 - "BATTERY_LEVEL_NORMAL"
|
|
506
506
|
// 1 - "BATTERY_LEVEL_LOW"
|
|
507
507
|
|
|
508
|
-
"name": "
|
|
508
|
+
"name": "MyAirQualitySensor",
|
|
509
509
|
|
|
510
510
|
"manufacturer": "Somebody", // Available for all accessories
|
|
511
511
|
|
|
@@ -519,7 +519,7 @@
|
|
|
519
519
|
},
|
|
520
520
|
{
|
|
521
521
|
"type": "SecuritySystem",
|
|
522
|
-
"displayName": "
|
|
522
|
+
"displayName": "MySecuritySystem", // Not a characteristic, but a function parameter
|
|
523
523
|
|
|
524
524
|
// Required Characteristics
|
|
525
525
|
"securitySystemCurrentState":
|
|
@@ -545,7 +545,7 @@
|
|
|
545
545
|
"statusTampered": "NOT_TAMPERED", // 0 - "NOT_TAMPERED"
|
|
546
546
|
// 1 - "TAMPERED"
|
|
547
547
|
|
|
548
|
-
"name": "
|
|
548
|
+
"name": "MySecuritySystem",
|
|
549
549
|
|
|
550
550
|
"manufacturer": "Somebody", // Available for all accessories
|
|
551
551
|
|
|
@@ -559,7 +559,7 @@
|
|
|
559
559
|
},
|
|
560
560
|
{
|
|
561
561
|
"type": "CarbonMonoxideSensor",
|
|
562
|
-
"displayName": "
|
|
562
|
+
"displayName": "MyCOSensor", // Not a characteristic, but a function parameter
|
|
563
563
|
|
|
564
564
|
// Required Characteristics
|
|
565
565
|
"carbonMonoxideDetected": "CO_LEVELS_NORMAL", // 0 - "CO_LEVELS_NORMAL"
|
|
@@ -584,7 +584,7 @@
|
|
|
584
584
|
"carbonMonoxidePeakLevel": 0, // Range: 0-100,
|
|
585
585
|
// Format: float
|
|
586
586
|
|
|
587
|
-
"name": "
|
|
587
|
+
"name": "MyCOSensor",
|
|
588
588
|
|
|
589
589
|
"manufacturer": "Somebody", // Available for all accessories
|
|
590
590
|
|
|
@@ -598,7 +598,7 @@
|
|
|
598
598
|
},
|
|
599
599
|
{
|
|
600
600
|
"type": "ContactSensor",
|
|
601
|
-
"displayName": "
|
|
601
|
+
"displayName": "MyContactSensor", // Not a characteristic, but a function parameter
|
|
602
602
|
|
|
603
603
|
// Required Characteristics
|
|
604
604
|
"contactSensorState": "CONTACT_DETECTED", // 0 - "CONTACT_DETECTED"
|
|
@@ -617,7 +617,7 @@
|
|
|
617
617
|
"statusLowBattery": "BATTERY_LEVEL_NORMAL", // 0 - "BATTERY_LEVEL_NORMAL"
|
|
618
618
|
// 1 - "BATTERY_LEVEL_LOW"
|
|
619
619
|
|
|
620
|
-
"name": "
|
|
620
|
+
"name": "MyContactSensor",
|
|
621
621
|
|
|
622
622
|
"manufacturer": "Somebody", // Available for all accessories
|
|
623
623
|
|
|
@@ -631,7 +631,7 @@
|
|
|
631
631
|
},
|
|
632
632
|
{
|
|
633
633
|
"type": "Door",
|
|
634
|
-
"displayName": "
|
|
634
|
+
"displayName": "MyDoor", // Not a characteristic, but a function parameter
|
|
635
635
|
|
|
636
636
|
// Required Characteristics
|
|
637
637
|
"currentPosition": 0, // Range: 0 - 100, Step 1
|
|
@@ -649,7 +649,7 @@
|
|
|
649
649
|
"obstructionDetected": "FALSE", // 0 - "FALSE"
|
|
650
650
|
// 1 - "TRUE"
|
|
651
651
|
|
|
652
|
-
"name": "
|
|
652
|
+
"name": "MyDoor",
|
|
653
653
|
|
|
654
654
|
"manufacturer": "Somebody", // Available for all accessories
|
|
655
655
|
|
|
@@ -689,7 +689,7 @@
|
|
|
689
689
|
{
|
|
690
690
|
"type": "HumiditySensor",
|
|
691
691
|
|
|
692
|
-
"displayName": "
|
|
692
|
+
"displayName": "MyHumiditySensor", // Not a characteristic, but a function parameter
|
|
693
693
|
|
|
694
694
|
// Required Characteristics
|
|
695
695
|
"currentRelativeHumidity": 1, // Range: 0-100, Step: 1
|
|
@@ -709,7 +709,7 @@
|
|
|
709
709
|
"statusLowBattery": "BATTERY_LEVEL_NORMAL", // 0 - "BATTERY_LEVEL_NORMAL"
|
|
710
710
|
// 1 - "BATTERY_LEVEL_LOW"
|
|
711
711
|
|
|
712
|
-
"name": "
|
|
712
|
+
"name": "MyHumiditySensor",
|
|
713
713
|
|
|
714
714
|
"manufacturer": "Somebody", // Available for all accessories
|
|
715
715
|
|
|
@@ -751,7 +751,7 @@
|
|
|
751
751
|
},
|
|
752
752
|
{
|
|
753
753
|
"type": "LeakSensor",
|
|
754
|
-
"displayName": "
|
|
754
|
+
"displayName": "MyLeakSensor", // Not a characteristic, but a function parameter
|
|
755
755
|
|
|
756
756
|
// Required Characteristics
|
|
757
757
|
"leakDetected": "LEAK_NOT_DETECTED", // 0 - "LEAK_NOT_DETECTED"
|
|
@@ -770,7 +770,7 @@
|
|
|
770
770
|
"statusLowBattery": "BATTERY_LEVEL_NORMAL", // 0 - "BATTERY_LEVEL_NORMAL"
|
|
771
771
|
// 1 - "BATTERY_LEVEL_LOW"
|
|
772
772
|
|
|
773
|
-
"name": "
|
|
773
|
+
"name": "MyLeakSensor",
|
|
774
774
|
|
|
775
775
|
"manufacturer": "Somebody", // Available for all accessories
|
|
776
776
|
|
|
@@ -784,7 +784,7 @@
|
|
|
784
784
|
},
|
|
785
785
|
{
|
|
786
786
|
"type": "LightSensor",
|
|
787
|
-
"displayName": "
|
|
787
|
+
"displayName": "MyLightSensor", // Not a characteristic, but a function parameter
|
|
788
788
|
|
|
789
789
|
// Required Characteristics
|
|
790
790
|
"currentAmbientLightLevel": 1, // Range: 0.0001-100000
|
|
@@ -803,7 +803,7 @@
|
|
|
803
803
|
"statusLowBattery": "BATTERY_LEVEL_NORMAL", // 0 - "BATTERY_LEVEL_NORMAL"
|
|
804
804
|
// 1 - "BATTERY_LEVEL_LOW"
|
|
805
805
|
|
|
806
|
-
"name": "
|
|
806
|
+
"name": "MyLightSensor",
|
|
807
807
|
|
|
808
808
|
"manufacturer": "Somebody", // Available for all accessories
|
|
809
809
|
|
|
@@ -817,7 +817,7 @@
|
|
|
817
817
|
},
|
|
818
818
|
{
|
|
819
819
|
"type": "MotionSensor",
|
|
820
|
-
"displayName": "
|
|
820
|
+
"displayName": "MyMotionSensor", // Not a characteristic, but a function parameter
|
|
821
821
|
|
|
822
822
|
// Required Characteristics
|
|
823
823
|
"motionDetected": "FALSE", // 0 - "FALSE"
|
|
@@ -836,7 +836,7 @@
|
|
|
836
836
|
"statusLowBattery": "BATTERY_LEVEL_NORMAL", // 0 - "BATTERY_LEVEL_NORMAL"
|
|
837
837
|
// 1 - "BATTERY_LEVEL_LOW"
|
|
838
838
|
|
|
839
|
-
"name": "
|
|
839
|
+
"name": "MyMotionSensor",
|
|
840
840
|
|
|
841
841
|
"manufacturer": "Somebody", // Available for all accessories
|
|
842
842
|
|
|
@@ -850,7 +850,7 @@
|
|
|
850
850
|
},
|
|
851
851
|
{
|
|
852
852
|
"type": "OccupancySensor",
|
|
853
|
-
"displayName": "
|
|
853
|
+
"displayName": "MyOccupancySensor", // Not a characteristic, but a function parameter
|
|
854
854
|
|
|
855
855
|
// Required Characteristics
|
|
856
856
|
"occupancyDetected": "OCCUPANCY_NOT_DETECTED", // 0 - "OCCUPANCY_NOT_DETECTED"
|
|
@@ -869,7 +869,7 @@
|
|
|
869
869
|
"statusLowBattery": "BATTERY_LEVEL_NORMAL", // 0 - "BATTERY_LEVEL_NORMAL"
|
|
870
870
|
// 1 - "BATTERY_LEVEL_LOW"
|
|
871
871
|
|
|
872
|
-
"name": "
|
|
872
|
+
"name": "MyOccupancySensor",
|
|
873
873
|
|
|
874
874
|
"manufacturer": "Somebody", // Available for all accessories
|
|
875
875
|
|
|
@@ -883,7 +883,7 @@
|
|
|
883
883
|
},
|
|
884
884
|
{
|
|
885
885
|
"type": "SmokeSensor",
|
|
886
|
-
"displayName": "
|
|
886
|
+
"displayName": "MySmokeSensor", // Not a characteristic, but a function parameter
|
|
887
887
|
|
|
888
888
|
// Required Characteristics
|
|
889
889
|
"smokeDetected": "SMOKE_NOT_DETECTED", // 0 - "SMOKE_NOT_DETECTED"
|
|
@@ -902,7 +902,7 @@
|
|
|
902
902
|
"statusLowBattery": "BATTERY_LEVEL_NORMAL", // 0 - "BATTERY_LEVEL_NORMAL"
|
|
903
903
|
// 1 - "BATTERY_LEVEL_LOW"
|
|
904
904
|
|
|
905
|
-
"name": "
|
|
905
|
+
"name": "MySmokeSensor",
|
|
906
906
|
|
|
907
907
|
"manufacturer": "Somebody", // Available for all accessories
|
|
908
908
|
|
|
@@ -916,7 +916,7 @@
|
|
|
916
916
|
},
|
|
917
917
|
{
|
|
918
918
|
"type": "StatefulProgrammableSwitch",
|
|
919
|
-
"displayName": "
|
|
919
|
+
"displayName": "MyStatefulProgrammableSwitch",
|
|
920
920
|
// Not a characteristic, but a function parameter
|
|
921
921
|
|
|
922
922
|
// Required Characteristics
|
|
@@ -929,7 +929,7 @@
|
|
|
929
929
|
// "Meaning": ???
|
|
930
930
|
|
|
931
931
|
// Optional Characteristics
|
|
932
|
-
"name": "
|
|
932
|
+
"name": "MyStatefulProgrammableSwitch",
|
|
933
933
|
|
|
934
934
|
"manufacturer": "Somebody", // Available for all accessories
|
|
935
935
|
|
|
@@ -943,7 +943,7 @@
|
|
|
943
943
|
},
|
|
944
944
|
{
|
|
945
945
|
"type": "StatelessProgrammableSwitch",
|
|
946
|
-
"displayName":
|
|
946
|
+
"displayName": "MyStatelessProgrammableSwitch",
|
|
947
947
|
// Not a characteristic, but a function parameter
|
|
948
948
|
|
|
949
949
|
// Required Characteristics
|
|
@@ -953,7 +953,7 @@
|
|
|
953
953
|
// 2 - "LONG_PRESS"
|
|
954
954
|
|
|
955
955
|
// Optional Characteristics
|
|
956
|
-
"name": "
|
|
956
|
+
"name": "MyStatelessProgrammableSwitch",
|
|
957
957
|
|
|
958
958
|
"serviceLabelIndex": 1, // Range: 1-255, Step: 1
|
|
959
959
|
|
|
@@ -969,7 +969,7 @@
|
|
|
969
969
|
},
|
|
970
970
|
{
|
|
971
971
|
"type": "TemperatureSensor",
|
|
972
|
-
"displayName": "
|
|
972
|
+
"displayName": "MyTemperatureSensor",
|
|
973
973
|
// Not a characteristic, but a function parameter
|
|
974
974
|
|
|
975
975
|
// Required Characteristics
|
|
@@ -997,7 +997,7 @@
|
|
|
997
997
|
"statusLowBattery": "BATTERY_LEVEL_NORMAL", // 0 - "BATTERY_LEVEL_NORMAL"
|
|
998
998
|
// 1 - "BATTERY_LEVEL_LOW"
|
|
999
999
|
|
|
1000
|
-
"name": "
|
|
1000
|
+
"name": "MyTemperatureSensor",
|
|
1001
1001
|
|
|
1002
1002
|
"manufacturer": "Somebody", // Available for all accessories
|
|
1003
1003
|
|
|
@@ -1036,7 +1036,7 @@
|
|
|
1036
1036
|
},
|
|
1037
1037
|
{
|
|
1038
1038
|
"type": "Window",
|
|
1039
|
-
"displayName": "
|
|
1039
|
+
"displayName": "MyWindow", // Not a characteristic, but a function parameter
|
|
1040
1040
|
|
|
1041
1041
|
// Required Characteristics
|
|
1042
1042
|
"currentPosition": 0, // Range: 0 - 100, Step 1
|
|
@@ -1054,7 +1054,7 @@
|
|
|
1054
1054
|
"obstructionDetected": "FALSE", // 0 - "FALSE"
|
|
1055
1055
|
// 1 - "TRUE"
|
|
1056
1056
|
|
|
1057
|
-
"name": "
|
|
1057
|
+
"name": "MyWindow",
|
|
1058
1058
|
"manufacturer": "Somebody", // Available for all accessories
|
|
1059
1059
|
|
|
1060
1060
|
"model": "Anything", // Available for all accessories
|
|
@@ -1067,7 +1067,7 @@
|
|
|
1067
1067
|
},
|
|
1068
1068
|
{
|
|
1069
1069
|
"type": "WindowCovering",
|
|
1070
|
-
"displayName": "
|
|
1070
|
+
"displayName": "MyWindowCovering", // Not a characteristic, but a function parameter
|
|
1071
1071
|
|
|
1072
1072
|
// Required Characteristics
|
|
1073
1073
|
"currentPosition": 0, // Range: 0 - 100, Step 1
|
|
@@ -1097,7 +1097,7 @@
|
|
|
1097
1097
|
"obstructionDetected": "FALSE", // 0 - "FALSE"
|
|
1098
1098
|
// 1 - "TRUE"
|
|
1099
1099
|
|
|
1100
|
-
"name": "
|
|
1100
|
+
"name": "MyWindowCovering",
|
|
1101
1101
|
|
|
1102
1102
|
"manufacturer": "Somebody", // Available for all accessories
|
|
1103
1103
|
|
|
@@ -1111,7 +1111,7 @@
|
|
|
1111
1111
|
},
|
|
1112
1112
|
{
|
|
1113
1113
|
"type": "BatteryService",
|
|
1114
|
-
"displayName": "
|
|
1114
|
+
"displayName": "MyBatteryService", // Not a characteristic, but a function parameter
|
|
1115
1115
|
|
|
1116
1116
|
// Required Characteristics
|
|
1117
1117
|
"batteryLevel": 50, // Range: 0 - 100, Step 1
|
|
@@ -1124,7 +1124,7 @@
|
|
|
1124
1124
|
// 1 - "BATTERY_LEVEL_LOW"
|
|
1125
1125
|
|
|
1126
1126
|
// Optional Characteristics
|
|
1127
|
-
"name": "
|
|
1127
|
+
"name": "MyBatteryService",
|
|
1128
1128
|
|
|
1129
1129
|
"manufacturer": "Somebody", // Available for all accessories
|
|
1130
1130
|
|
|
@@ -1138,7 +1138,7 @@
|
|
|
1138
1138
|
},
|
|
1139
1139
|
{
|
|
1140
1140
|
"type": "CarbonDioxideSensor",
|
|
1141
|
-
"displayName": "
|
|
1141
|
+
"displayName": "MyCO2Sensor",
|
|
1142
1142
|
|
|
1143
1143
|
// Required Characteristics
|
|
1144
1144
|
"carbonDioxideDetected": "CO2_LEVELS_NORMAL", // 0 - "CO2_LEVELS_NORMAL"
|
|
@@ -1163,7 +1163,7 @@
|
|
|
1163
1163
|
"carbonDioxidePeakLevel": 0, // Range: 0-100000
|
|
1164
1164
|
// "Format": float
|
|
1165
1165
|
|
|
1166
|
-
"name": "
|
|
1166
|
+
"name": "MyCO2Sensor",
|
|
1167
1167
|
|
|
1168
1168
|
"manufacturer": "Somebody", // Available for all accessories
|
|
1169
1169
|
|
|
@@ -1187,7 +1187,7 @@
|
|
|
1187
1187
|
// Not Possible in this implementation
|
|
1188
1188
|
// {
|
|
1189
1189
|
// "type": "CameraRTPStreamManagement",
|
|
1190
|
-
// "name": "
|
|
1190
|
+
// "name": "MyCameraRTPStreamManagement",
|
|
1191
1191
|
//
|
|
1192
1192
|
// // Cmd4 Specific
|
|
1193
1193
|
// "stateChangeResponseTime": 1, // Default (Seconds)
|
|
@@ -1195,7 +1195,7 @@
|
|
|
1195
1195
|
// },
|
|
1196
1196
|
{
|
|
1197
1197
|
"type": "Microphone",
|
|
1198
|
-
"displayName": "
|
|
1198
|
+
"displayName": "MyMicrophone", // Not a characteristic, but a function parameter
|
|
1199
1199
|
|
|
1200
1200
|
// Required Characteristics
|
|
1201
1201
|
"mute": "FALSE", // 0 - "FALSE" (Off)
|
|
@@ -1204,7 +1204,7 @@
|
|
|
1204
1204
|
// Optional Characteristics
|
|
1205
1205
|
"volume": 5, // Range: 0-100, Step 1
|
|
1206
1206
|
|
|
1207
|
-
"name": "
|
|
1207
|
+
"name": "MyMicrophone",
|
|
1208
1208
|
|
|
1209
1209
|
"manufacturer": "Somebody", // Available for all accessories
|
|
1210
1210
|
|
|
@@ -1218,7 +1218,7 @@
|
|
|
1218
1218
|
},
|
|
1219
1219
|
{
|
|
1220
1220
|
"type": "Speaker",
|
|
1221
|
-
"displayName": "
|
|
1221
|
+
"displayName": "MySpeaker",
|
|
1222
1222
|
|
|
1223
1223
|
// Required Characteristics
|
|
1224
1224
|
"mute": "FALSE", // 0 - "FALSE" (Off)
|
|
@@ -1227,7 +1227,7 @@
|
|
|
1227
1227
|
// Optional Characteristics
|
|
1228
1228
|
"volume": 5, // Range: 0-100, Step 1
|
|
1229
1229
|
|
|
1230
|
-
"name": "
|
|
1230
|
+
"name": "MySpeaker",
|
|
1231
1231
|
|
|
1232
1232
|
"manufacturer": "Somebody", // Available for all accessories
|
|
1233
1233
|
|
|
@@ -1241,7 +1241,7 @@
|
|
|
1241
1241
|
},
|
|
1242
1242
|
{
|
|
1243
1243
|
"type": "DoorBell",
|
|
1244
|
-
"displayName": "
|
|
1244
|
+
"displayName": "MyDoorBell", // Not a characteristic, but a function parameter
|
|
1245
1245
|
|
|
1246
1246
|
// Required Characteristics
|
|
1247
1247
|
"programmableSwitchEvent": "SINGLE_PRESS", // 0 - "SINGLE_PRESS"
|
|
@@ -1253,7 +1253,7 @@
|
|
|
1253
1253
|
|
|
1254
1254
|
"volume": 5, // Range: 0-100, Step 1
|
|
1255
1255
|
|
|
1256
|
-
"name": "
|
|
1256
|
+
"name": "MyDoorBell",
|
|
1257
1257
|
|
|
1258
1258
|
"manufacturer": "Somebody", // Available for all accessories
|
|
1259
1259
|
|
|
@@ -1267,7 +1267,7 @@
|
|
|
1267
1267
|
},
|
|
1268
1268
|
{
|
|
1269
1269
|
"type": "Slat",
|
|
1270
|
-
"displayName": "
|
|
1270
|
+
"displayName": "MySlat", // Not a characteristic, but a function parameter
|
|
1271
1271
|
|
|
1272
1272
|
// Required Characteristics
|
|
1273
1273
|
"slatType": "HORIZONTAL", // 0 - "HORIZONTAL"
|
|
@@ -1278,7 +1278,7 @@
|
|
|
1278
1278
|
// 2 - "SWINGING"
|
|
1279
1279
|
|
|
1280
1280
|
// Optional Characteristics
|
|
1281
|
-
"name": "
|
|
1281
|
+
"name": "MySlat",
|
|
1282
1282
|
|
|
1283
1283
|
"currentTiltAngle": 0, // Range: -90 to 90, Step 1
|
|
1284
1284
|
// "Units": ARC_DEGREE
|
|
@@ -1306,8 +1306,8 @@
|
|
|
1306
1306
|
//"state_cmd": "node .homebridge/< yourScriptHere >"
|
|
1307
1307
|
},
|
|
1308
1308
|
{
|
|
1309
|
-
"type":
|
|
1310
|
-
"displayName":
|
|
1309
|
+
"type": "FilterMaintenance",
|
|
1310
|
+
"displayName": "MyFilterMaintenance", // Not a characteristic, but a function parameter
|
|
1311
1311
|
|
|
1312
1312
|
// Required Characteristics
|
|
1313
1313
|
"filterChangeIndication": "FILTER_OK",
|
|
@@ -1320,7 +1320,7 @@
|
|
|
1320
1320
|
// "Format": float
|
|
1321
1321
|
"resetFilterIndication": 1, // Range: 1 - ???
|
|
1322
1322
|
|
|
1323
|
-
"name": "
|
|
1323
|
+
"name": "MyFilterMaintenance",
|
|
1324
1324
|
|
|
1325
1325
|
"manufacturer": "Somebody", // Available for all accessories
|
|
1326
1326
|
|
|
@@ -1334,7 +1334,7 @@
|
|
|
1334
1334
|
},
|
|
1335
1335
|
{
|
|
1336
1336
|
"type": "AirPurifier",
|
|
1337
|
-
"displayName": "
|
|
1337
|
+
"displayName": "MyAirPurifier", // Not a characteristic, but a function parameter
|
|
1338
1338
|
|
|
1339
1339
|
// Required Characteristics
|
|
1340
1340
|
"active": "ACTIVE", // 0 - "INACTIVE"
|
|
@@ -1352,7 +1352,7 @@
|
|
|
1352
1352
|
"lockPhysicalControls": "CONTROL_LOCK_DISABLED", // 0 - "CONTROL_LOCK_DISABLED"
|
|
1353
1353
|
// 1 - "CONTROL_LOCK_ENABLED"
|
|
1354
1354
|
|
|
1355
|
-
"name": "
|
|
1355
|
+
"name": "MyAirPurifier",
|
|
1356
1356
|
|
|
1357
1357
|
"swingMode": "SWING_DISABLED",
|
|
1358
1358
|
// 0 - "SWING_DISABLED"
|
|
@@ -1372,14 +1372,14 @@
|
|
|
1372
1372
|
},
|
|
1373
1373
|
{
|
|
1374
1374
|
"type": "ServiceLabel",
|
|
1375
|
-
"displayName": "
|
|
1375
|
+
"displayName": "MyServiceLabel", // Not a characteristic, but a function parameter
|
|
1376
1376
|
|
|
1377
1377
|
// Required Characteristics
|
|
1378
1378
|
"serviceLabelNamespace": "DOTS", // 0 - "DOTS"
|
|
1379
1379
|
// 1 - "ARABIC_NUMERALS"
|
|
1380
1380
|
|
|
1381
1381
|
// Optional Characteristics
|
|
1382
|
-
"name": "
|
|
1382
|
+
"name": "MyServiceLabel",
|
|
1383
1383
|
|
|
1384
1384
|
"manufacturer": "Somebody", // Available for all accessories
|
|
1385
1385
|
|
|
@@ -1684,7 +1684,7 @@
|
|
|
1684
1684
|
},
|
|
1685
1685
|
{
|
|
1686
1686
|
"type": "TelevisionSpeaker",
|
|
1687
|
-
"displayName": "
|
|
1687
|
+
"displayName": "MyTVSpeaker", // Not a characteristic, but a function parameter
|
|
1688
1688
|
|
|
1689
1689
|
// Required characteristics
|
|
1690
1690
|
"mute": "FALSE", // 0 - "FALSE"
|
|
@@ -1704,7 +1704,7 @@
|
|
|
1704
1704
|
"volumeSelector": "INCREMENT", // 0 - "INCREMENT"
|
|
1705
1705
|
// 1 - "DECREMENT"
|
|
1706
1706
|
|
|
1707
|
-
"name": "
|
|
1707
|
+
"name": "MyTVSpeaker",
|
|
1708
1708
|
|
|
1709
1709
|
"manufacturer": "Somebody", // Available for all accessories
|
|
1710
1710
|
|
|
@@ -1726,11 +1726,11 @@
|
|
|
1726
1726
|
//"state_cmd": "node .homebridge/< yourScriptHere >"
|
|
1727
1727
|
},
|
|
1728
1728
|
{
|
|
1729
|
-
"type":
|
|
1730
|
-
"displayName":
|
|
1729
|
+
"type": "InputSource",
|
|
1730
|
+
"displayName": "MyInputSource", // Not a characteristic, but a function parameter
|
|
1731
1731
|
|
|
1732
1732
|
// Required characteristics
|
|
1733
|
-
"configuredName":
|
|
1733
|
+
"configuredName": "MyInputSource",
|
|
1734
1734
|
|
|
1735
1735
|
"inputSourceType": "HDMI", // 0 - "OTHER"
|
|
1736
1736
|
// 1 - "HOME_SCREEN"
|
|
@@ -1763,7 +1763,7 @@
|
|
|
1763
1763
|
// 1 - "HIDDEN"
|
|
1764
1764
|
// 2 - "STOP"
|
|
1765
1765
|
|
|
1766
|
-
"name": "
|
|
1766
|
+
"name": "MyInputSource",
|
|
1767
1767
|
|
|
1768
1768
|
"manufacturer": "Somebody", // Available for all accessories
|
|
1769
1769
|
|
|
@@ -1777,7 +1777,7 @@
|
|
|
1777
1777
|
},
|
|
1778
1778
|
{
|
|
1779
1779
|
"type": "IrrigationSystem",
|
|
1780
|
-
"displayName": "
|
|
1780
|
+
"displayName": "MyIrrigationSystem", // Not a characteristic, but a function parameter
|
|
1781
1781
|
|
|
1782
1782
|
// Required characteristics
|
|
1783
1783
|
"active": "ACTIVE", // 0 - "INACTIVE"
|
|
@@ -1798,7 +1798,7 @@
|
|
|
1798
1798
|
// 0 - "NO_FAULT"
|
|
1799
1799
|
// 1 - "GENERAL_FAULT"
|
|
1800
1800
|
|
|
1801
|
-
"name": "
|
|
1801
|
+
"name": "MyIrrigationSystem",
|
|
1802
1802
|
|
|
1803
1803
|
"manufacturer": "Somebody", // Available for all accessories
|
|
1804
1804
|
|
|
@@ -1820,8 +1820,8 @@
|
|
|
1820
1820
|
//"state_cmd": "node .homebridge/< yourScriptHere >"
|
|
1821
1821
|
},
|
|
1822
1822
|
{
|
|
1823
|
-
"type":
|
|
1824
|
-
"displayName":
|
|
1823
|
+
"type": "Faucet",
|
|
1824
|
+
"displayName": "MyFaucet", // Not a characteristic, but a function parameter
|
|
1825
1825
|
|
|
1826
1826
|
// Required characteristics
|
|
1827
1827
|
"active": "ACTIVE", // 0 - "INACTIVE"
|
|
@@ -1831,7 +1831,7 @@
|
|
|
1831
1831
|
"statusFault": "NO_FAULT", // 0 - "NO_FAULT"
|
|
1832
1832
|
// 1 - "GENERAL_FAULT"
|
|
1833
1833
|
|
|
1834
|
-
"name": "
|
|
1834
|
+
"name": "MyFaucet",
|
|
1835
1835
|
|
|
1836
1836
|
"manufacturer": "Somebody", // Available for all accessories
|
|
1837
1837
|
|
|
@@ -1855,7 +1855,7 @@
|
|
|
1855
1855
|
},
|
|
1856
1856
|
{
|
|
1857
1857
|
"type": "Relay",
|
|
1858
|
-
"displayName": "
|
|
1858
|
+
"displayName": "MyRelay", // Not a characteristic, but a function parameter
|
|
1859
1859
|
|
|
1860
1860
|
// Required characteristics
|
|
1861
1861
|
"relayEnabled": "FALSE",
|
|
@@ -1881,7 +1881,7 @@
|
|
|
1881
1881
|
},
|
|
1882
1882
|
{
|
|
1883
1883
|
"type": "TimeInformation",
|
|
1884
|
-
"displayName": "
|
|
1884
|
+
"displayName": "MyTimeInformation", // Not a characteristic, but a function parameter
|
|
1885
1885
|
|
|
1886
1886
|
// Required characteristics
|
|
1887
1887
|
"currentTime": "11:15", // Format: string
|
|
@@ -1892,7 +1892,7 @@
|
|
|
1892
1892
|
// 1 - "TRUE"
|
|
1893
1893
|
|
|
1894
1894
|
// Optional Characteristics
|
|
1895
|
-
"name": "
|
|
1895
|
+
"name": "MyTimeInformation",
|
|
1896
1896
|
|
|
1897
1897
|
"manufacturer": "Somebody", // Available for all accessories
|
|
1898
1898
|
|
|
@@ -1906,7 +1906,7 @@
|
|
|
1906
1906
|
},
|
|
1907
1907
|
{
|
|
1908
1908
|
"type": "Valve",
|
|
1909
|
-
"displayName": "
|
|
1909
|
+
"displayName": "MyValve", // Not a characteristic, but a function parameter
|
|
1910
1910
|
|
|
1911
1911
|
// Required characteristics
|
|
1912
1912
|
"active": "ACTIVE", // 0 - "INACTIVE"
|
|
@@ -1935,7 +1935,7 @@
|
|
|
1935
1935
|
"statusFault": "NO_FAULT", // 0 - "NO_FAULT"
|
|
1936
1936
|
// 1 - "GENERAL_FAULT"
|
|
1937
1937
|
|
|
1938
|
-
"name": "
|
|
1938
|
+
"name": "MyValve",
|
|
1939
1939
|
|
|
1940
1940
|
"manufacturer": "Somebody", // Available for all accessories
|
|
1941
1941
|
|
|
@@ -1949,7 +1949,7 @@
|
|
|
1949
1949
|
},
|
|
1950
1950
|
{
|
|
1951
1951
|
"type": "HeaterCooler",
|
|
1952
|
-
"displayName": "
|
|
1952
|
+
"displayName": "MyHeaterCooler", // Not a characteristic, but a function parameter
|
|
1953
1953
|
|
|
1954
1954
|
// Required characteristics
|
|
1955
1955
|
"active": "ACTIVE", // 0 - "INACTIVE"
|
|
@@ -1973,7 +1973,7 @@
|
|
|
1973
1973
|
// 0 - "CONTROL_LOCK_DISABLED"
|
|
1974
1974
|
// 1 - "CONTROL_LOCK_ENABLED"
|
|
1975
1975
|
|
|
1976
|
-
"name": "
|
|
1976
|
+
"name": "MyHeaterCooler",
|
|
1977
1977
|
|
|
1978
1978
|
"swingMode": "SWING_ENABLED", // 0 - "SWING_DISABLED",
|
|
1979
1979
|
// 1 - "SWING_ENABLED"
|
|
@@ -2004,8 +2004,8 @@
|
|
|
2004
2004
|
//"state_cmd": "node .homebridge/< yourScriptHere >"
|
|
2005
2005
|
},
|
|
2006
2006
|
{
|
|
2007
|
-
"type":
|
|
2008
|
-
"displayName":
|
|
2007
|
+
"type": "HumidifierDehumidifier",
|
|
2008
|
+
"displayName": "MyHumidifierDehumidifier",// Not a characteristic, but a function parameter
|
|
2009
2009
|
|
|
2010
2010
|
// Required characteristics
|
|
2011
2011
|
"currentRelativeHumidity": 60, // Range: 0-100, Step: 1
|
|
@@ -2031,7 +2031,7 @@
|
|
|
2031
2031
|
// 1 - "CONTROL_LOCK_ENABLED"
|
|
2032
2032
|
|
|
2033
2033
|
|
|
2034
|
-
"name": "
|
|
2034
|
+
"name": "MyHumidifierDehumidifier",
|
|
2035
2035
|
|
|
2036
2036
|
"swingMode": "SWING_DISABLED", // 0 - "SWING_DISABLED"
|
|
2037
2037
|
// 1 - "SWING_ENABLED"
|
|
@@ -2063,7 +2063,7 @@
|
|
|
2063
2063
|
},
|
|
2064
2064
|
{
|
|
2065
2065
|
"type": "AccessControl",
|
|
2066
|
-
"displayName": "
|
|
2066
|
+
"displayName": "MyAccessControl", // Not a characteristic, but a function parameter
|
|
2067
2067
|
|
|
2068
2068
|
// Required characteristics
|
|
2069
2069
|
"accessControlLevel": 0, // 0-2
|
|
@@ -2073,27 +2073,27 @@
|
|
|
2073
2073
|
//"state_cmd": "node .homebridge/< yourScriptHere >"
|
|
2074
2074
|
},
|
|
2075
2075
|
{
|
|
2076
|
-
"type":
|
|
2077
|
-
"displayName":
|
|
2076
|
+
"type": "CameraOperatingMode",
|
|
2077
|
+
"displayName": "MyCameraOperatingMode", // Not a characteristic, but a function parameter
|
|
2078
2078
|
|
|
2079
2079
|
// Required characteristics
|
|
2080
|
-
"eventSnapshotsActive":
|
|
2080
|
+
"eventSnapshotsActive": "DISABLE", // 0 - "DISABLE"
|
|
2081
2081
|
// 1 - "ENABLE"
|
|
2082
2082
|
|
|
2083
|
-
"homeKitCameraActive":
|
|
2083
|
+
"homeKitCameraActive": "OFF", // 0 - "OFF"
|
|
2084
2084
|
// 1 - "ON"
|
|
2085
2085
|
|
|
2086
2086
|
// Optional Characteristics
|
|
2087
|
-
"manuallyDisabled":
|
|
2087
|
+
"manuallyDisabled": "DISABLED", // 0 - "ENABLED"
|
|
2088
2088
|
// 1 - "DISABLED"
|
|
2089
2089
|
|
|
2090
|
-
"nightVision":
|
|
2090
|
+
"nightVision": "FALSE", // 0 - "FALSE"
|
|
2091
2091
|
// 1 - "TRUE"
|
|
2092
2092
|
|
|
2093
|
-
"thirdPartyCameraActive":
|
|
2093
|
+
"thirdPartyCameraActive": "OFF", // 0 - "OFF"
|
|
2094
2094
|
// 1 - "ON"
|
|
2095
2095
|
|
|
2096
|
-
"periodicSnapshotsActive":
|
|
2096
|
+
"periodicSnapshotsActive": "DISABLE" // 0 - "DISABLE"
|
|
2097
2097
|
// 1 - "ENABLE"
|
|
2098
2098
|
|
|
2099
2099
|
// Cmd4 Specific
|
|
@@ -2101,7 +2101,7 @@
|
|
|
2101
2101
|
},
|
|
2102
2102
|
{
|
|
2103
2103
|
"type": "SmartSpeaker",
|
|
2104
|
-
"displayName": "
|
|
2104
|
+
"displayName": "MySmartSpeaker", // Not a characteristic, but a function parameter
|
|
2105
2105
|
|
|
2106
2106
|
// Required characteristics
|
|
2107
2107
|
"currentMediaState": "STOP", // 0 - "PLAY"
|
|
@@ -2115,8 +2115,8 @@
|
|
|
2115
2115
|
// 3 - ???
|
|
2116
2116
|
|
|
2117
2117
|
// Optional Characteristics
|
|
2118
|
-
"name": "
|
|
2119
|
-
"configuredName": "
|
|
2118
|
+
"name": "MySmartSpeaker",
|
|
2119
|
+
"configuredName": "MySmartSpeaker",
|
|
2120
2120
|
"volume": 5,
|
|
2121
2121
|
"mute": "FALSE" // 0 - "FALSE" (Off)
|
|
2122
2122
|
// 1 - "TRUE" (On)
|
|
@@ -2127,7 +2127,7 @@
|
|
|
2127
2127
|
},
|
|
2128
2128
|
{
|
|
2129
2129
|
"type": "TargetControl",
|
|
2130
|
-
"displayName": "
|
|
2130
|
+
"displayName": "MyTargetControl", // Not a characteristic, but a function parameter
|
|
2131
2131
|
|
|
2132
2132
|
// Required characteristics
|
|
2133
2133
|
"activeIdentifier": 1183,
|
|
@@ -2144,7 +2144,7 @@
|
|
|
2144
2144
|
},
|
|
2145
2145
|
{
|
|
2146
2146
|
"type": "WiFiSatellite",
|
|
2147
|
-
"displayName": "
|
|
2147
|
+
"displayName": "MyWiFiSatellite", // Not a characteristic, but a function parameter
|
|
2148
2148
|
|
|
2149
2149
|
// Required characteristics
|
|
2150
2150
|
"wifiSatelliteStatus": "NOT_CONNECTED" // 0 - UNKNOWN
|