-
Notifications
You must be signed in to change notification settings - Fork 232
/
Copy pathHAPServiceTypes.h
1125 lines (1034 loc) · 28.9 KB
/
HAPServiceTypes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright (c) 2015-2019 The HomeKit ADK Contributors
//
// Licensed under the Apache License, Version 2.0 (the “License”);
// you may not use this file except in compliance with the License.
// See [CONTRIBUTORS.md] for the list of HomeKit ADK project authors.
#ifndef HAP_SERVICE_TYPES_H
#define HAP_SERVICE_TYPES_H
#ifdef __cplusplus
extern "C" {
#endif
#include "HAP.h"
#if __has_feature(nullability)
#pragma clang assume_nonnull begin
#endif
/**
* Accessory Information.
*
* Every accessory must expose a single instance of the Accessory information service with the following definition.
* The values of Manufacturer, Model, Name and Serial Number must be persistent through the lifetime of the accessory.
*
* Any other Apple-defined characteristics added to this service must only contain one or more of the following
* permissions: Paired Read or Notify. Custom characteristics added to this service must only contain one or more of the
* following permissions: Paired Read, Notify, Broadcast, and Hidden. All other permissions are not permitted.
*
* Required Characteristics:
* - Firmware Revision
* - Identify
* - Manufacturer
* - Model
* - Name
* - Serial Number
*
* Optional Characteristics:
* - Accessory Flags
* - Hardware Revision
*
* @see HomeKit Accessory Protocol Specification R14
* Section 8.1 Accessory Information
*/
/**@{*/
#define kHAPServiceDebugDescription_AccessoryInformation "accessory-information"
extern const HAPUUID kHAPServiceType_AccessoryInformation;
/**@}*/
/**
* Garage Door Opener.
*
* This service describes a garage door opener that controls a single door. If a garage has more than one door, then
* each door should have its own Garage Door Opener Service.
*
* Required Characteristics:
* - Current Door State
* - Target Door State
* - Obstruction Detected
*
* Optional Characteristics:
* - Lock Current State
* - Lock Target State
* - Name
*
* @see HomeKit Accessory Protocol Specification R14
* Section 8.16 Garage Door Opener
*/
/**@{*/
#define kHAPServiceDebugDescription_GarageDoorOpener "garage-door-opener"
extern const HAPUUID kHAPServiceType_GarageDoorOpener;
/**@}*/
/**
* Light Bulb.
*
* This service describes a light bulb.
*
* Required Characteristics:
* - On
*
* Optional Characteristics:
* - Brightness
* - Hue
* - Name
* - Saturation
* - Color Temperature
*
* @see HomeKit Accessory Protocol Specification R14
* Section 8.23 Light Bulb
*/
/**@{*/
#define kHAPServiceDebugDescription_LightBulb "lightbulb"
extern const HAPUUID kHAPServiceType_LightBulb;
HAP_DEPRECATED_MSG("Use kHAPServiceDebugDescription_LightBulb instead.")
#define kHAPServiceDebugDescription_Lightbulb "lightbulb"
HAP_DEPRECATED_MSG("Use kHAPServiceType_LightBulb instead.")
extern const HAPUUID kHAPServiceType_Lightbulb;
/**@}*/
/**
* Lock Management.
*
* The HomeKit Lock Management Service is designed to expose deeper interaction with a Lock device.
*
* Required Characteristics:
* - Lock Control Point
* - Version
*
* Optional Characteristics:
* - Logs
* - Audio Feedback
* - Lock Management Auto Security Timeout
* - Administrator Only Access
* - Lock Last Known Action
* - Current Door State
* - Motion Detected
*
* @see HomeKit Accessory Protocol Specification R14
* Section 8.25 Lock Management
*/
/**@{*/
#define kHAPServiceDebugDescription_LockManagement "lock-management"
extern const HAPUUID kHAPServiceType_LockManagement;
/**@}*/
/**
* Lock Mechanism.
*
* The HomeKit Lock Mechanism Service is designed to expose and control the physical lock mechanism on a device.
*
* Required Characteristics:
* - Lock Current State
* - Lock Target State
*
* Optional Characteristics:
* - Name
*
* @see HomeKit Accessory Protocol Specification R14
* Section 8.26 Lock Mechanism
*/
/**@{*/
#define kHAPServiceDebugDescription_LockMechanism "lock-mechanism"
extern const HAPUUID kHAPServiceType_LockMechanism;
/**@}*/
/**
* Outlet.
*
* This service describes a power outlet.
*
* Required Characteristics:
* - On
* - Outlet In Use
*
* Optional Characteristics:
* - Name
*
* @see HomeKit Accessory Protocol Specification R14
* Section 8.30 Outlet
*/
/**@{*/
#define kHAPServiceDebugDescription_Outlet "outlet"
extern const HAPUUID kHAPServiceType_Outlet;
/**@}*/
/**
* Switch.
*
* This service describes a binary switch.
*
* Required Characteristics:
* - On
*
* Optional Characteristics:
* - Name
*
* @see HomeKit Accessory Protocol Specification R14
* Section 8.38 Switch
*/
/**@{*/
#define kHAPServiceDebugDescription_Switch "switch"
extern const HAPUUID kHAPServiceType_Switch;
/**@}*/
/**
* Thermostat.
*
* This service describes a thermostat.
*
* Required Characteristics:
* - Current Heating Cooling State
* - Target Heating Cooling State
* - Current Temperature
* - Target Temperature
* - Temperature Display Units
*
* Optional Characteristics:
* - Cooling Threshold Temperature
* - Current Relative Humidity
* - Heating Threshold Temperature
* - Name
* - Target Relative Humidity
*
* @see HomeKit Accessory Protocol Specification R14
* Section 8.42 Thermostat
*/
/**@{*/
#define kHAPServiceDebugDescription_Thermostat "thermostat"
extern const HAPUUID kHAPServiceType_Thermostat;
/**@}*/
/**
* Pairing.
*
* Defines characteristics to support pairing between a controller and an accessory.
*
* Required Characteristics:
* - Pair Setup
* - Pair Verify
* - Pairing Features
* - Pairing Pairings
*
* @see HomeKit Accessory Protocol Specification R14
* Section 5.13.1 Pairing Service
*/
/**@{*/
#define kHAPServiceDebugDescription_Pairing "pairing"
extern const HAPUUID kHAPServiceType_Pairing;
/**@}*/
/**
* Security System.
*
* This service describes a security system service.
*
* This service requires iOS 9 or later.
*
* Required Characteristics:
* - Security System Current State
* - Security System Target State
*
* Optional Characteristics:
* - Name
* - Security System Alarm Type
* - Status Fault
* - Status Tampered
*
* @see HomeKit Accessory Protocol Specification R14
* Section 8.31 Security System
*/
/**@{*/
#define kHAPServiceDebugDescription_SecuritySystem "security-system"
extern const HAPUUID kHAPServiceType_SecuritySystem;
/**@}*/
/**
* Carbon Monoxide Sensor.
*
* This service describes a carbon monoxide sensor.
*
* This service requires iOS 9 or later.
*
* Required Characteristics:
* - Carbon Monoxide Detected
*
* Optional Characteristics:
* - Name
* - Status Active
* - Status Fault
* - Status Tampered
* - Status Low Battery
* - Carbon Monoxide Level
* - Carbon Monoxide Peak Level
*
* @see HomeKit Accessory Protocol Specification R14
* Section 8.8 Carbon Monoxide Sensor
*/
/**@{*/
#define kHAPServiceDebugDescription_CarbonMonoxideSensor "sensor.carbon-monoxide"
extern const HAPUUID kHAPServiceType_CarbonMonoxideSensor;
/**@}*/
/**
* Contact Sensor.
*
* This service describes a Contact Sensor.
*
* This service requires iOS 9 or later.
*
* Required Characteristics:
* - Contact Sensor State
*
* Optional Characteristics:
* - Name
* - Status Active
* - Status Fault
* - Status Tampered
* - Status Low Battery
*
* @see HomeKit Accessory Protocol Specification R14
* Section 8.9 Contact Sensor
*/
/**@{*/
#define kHAPServiceDebugDescription_ContactSensor "sensor.contact"
extern const HAPUUID kHAPServiceType_ContactSensor;
/**@}*/
/**
* Door.
*
* This service describes a motorized door.
*
* This service requires iOS 9 or later.
*
* Required Characteristics:
* - Current Position
* - Target Position
* - Position State
*
* Optional Characteristics:
* - Name
* - Hold Position
* - Obstruction Detected
*
* @see HomeKit Accessory Protocol Specification R14
* Section 8.11 Door
*/
/**@{*/
#define kHAPServiceDebugDescription_Door "door"
extern const HAPUUID kHAPServiceType_Door;
/**@}*/
/**
* Humidity Sensor.
*
* This service describes a Humidity Sensor.
*
* This service requires iOS 9 or later.
*
* Required Characteristics:
* - Current Relative Humidity
*
* Optional Characteristics:
* - Name
* - Status Active
* - Status Fault
* - Status Tampered
* - Status Low Battery
*
* @see HomeKit Accessory Protocol Specification R14
* Section 8.20 Humidity Sensor
*/
/**@{*/
#define kHAPServiceDebugDescription_HumiditySensor "sensor.humidity"
extern const HAPUUID kHAPServiceType_HumiditySensor;
/**@}*/
/**
* Leak Sensor.
*
* This service describes a leak sensor.
*
* This service requires iOS 9 or later.
*
* Required Characteristics:
* - Leak Detected
*
* Optional Characteristics:
* - Name
* - Status Active
* - Status Fault
* - Status Tampered
* - Status Low Battery
*
* @see HomeKit Accessory Protocol Specification R14
* Section 8.22 Leak Sensor
*/
/**@{*/
#define kHAPServiceDebugDescription_LeakSensor "sensor.leak"
extern const HAPUUID kHAPServiceType_LeakSensor;
/**@}*/
/**
* Light Sensor.
*
* This service describes a light sensor.
*
* This service requires iOS 9 or later.
*
* Required Characteristics:
* - Current Ambient Light Level
*
* Optional Characteristics:
* - Name
* - Status Active
* - Status Fault
* - Status Low Battery
* - Status Tampered
*
* @see HomeKit Accessory Protocol Specification R14
* Section 8.24 Light Sensor
*/
/**@{*/
#define kHAPServiceDebugDescription_LightSensor "sensor.light"
extern const HAPUUID kHAPServiceType_LightSensor;
/**@}*/
/**
* Motion Sensor.
*
* This service describes a motion sensor.
*
* This service requires iOS 9 or later.
*
* Required Characteristics:
* - Motion Detected
*
* Optional Characteristics:
* - Name
* - Status Active
* - Status Fault
* - Status Tampered
* - Status Low Battery
*
* @see HomeKit Accessory Protocol Specification R14
* Section 8.28 Motion Sensor
*/
/**@{*/
#define kHAPServiceDebugDescription_MotionSensor "sensor.motion"
extern const HAPUUID kHAPServiceType_MotionSensor;
/**@}*/
/**
* Occupancy Sensor.
*
* This service describes an occupancy sensor.
*
* This service requires iOS 9 or later.
*
* Required Characteristics:
* - Occupancy Detected
*
* Optional Characteristics:
* - Name
* - Status Active
* - Status Fault
* - Status Tampered
* - Status Low Battery
*
* @see HomeKit Accessory Protocol Specification R14
* Section 8.29 Occupancy Sensor
*/
/**@{*/
#define kHAPServiceDebugDescription_OccupancySensor "sensor.occupancy"
extern const HAPUUID kHAPServiceType_OccupancySensor;
/**@}*/
/**
* Smoke Sensor.
*
* This service describes a Smoke detector Sensor.
*
* This service requires iOS 9 or later.
*
* Required Characteristics:
* - Smoke Detected
*
* Optional Characteristics:
* - Name
* - Status Active
* - Status Fault
* - Status Tampered
* - Status Low Battery
*
* @see HomeKit Accessory Protocol Specification R14
* Section 8.35 Smoke Sensor
*/
/**@{*/
#define kHAPServiceDebugDescription_SmokeSensor "sensor.smoke"
extern const HAPUUID kHAPServiceType_SmokeSensor;
/**@}*/
/**
* Stateless Programmable Switch.
*
* This service describes a stateless programmable switch.
*
* The following rules apply to a stateless programmable switch accessory:
* - Each physical switch on the accessory must be represented by a unique instance of this service.
* - If there are multiple instances of this service on the accessory, they must be linked to a `Service Label`.
* - If there are multiple instances of this service on the accessory,
* `Service Label Index` is a required characteristic.
* - `Service Label Index` value for each instance of this service linked to the same `Service Label` must be unique.
* - The User visible label on the physical accessory should match the `Service Label Namespace`
* described by the accessory.
* - If there is only one instance of this service on the accessory, `Service Label` is not required and consequently
* `Service Label Index` must not be present.
*
* This service requires iOS 10.3 or later.
*
* Required Characteristics:
* - Programmable Switch Event
*
* Optional Characteristics:
* - Name
* - Service Label Index
*
* @see HomeKit Accessory Protocol Specification R14
* Section 8.37 Stateless Programmable Switch
*/
/**@{*/
#define kHAPServiceDebugDescription_StatelessProgrammableSwitch "stateless-programmable-switch"
extern const HAPUUID kHAPServiceType_StatelessProgrammableSwitch;
/**@}*/
/**
* Temperature Sensor.
*
* This service describes a Temperature Sensor.
*
* This service requires iOS 9 or later.
*
* Required Characteristics:
* - Current Temperature
*
* Optional Characteristics:
* - Name
* - Status Active
* - Status Fault
* - Status Low Battery
* - Status Tampered
*
* @see HomeKit Accessory Protocol Specification R14
* Section 8.41 Temperature Sensor
*/
/**@{*/
#define kHAPServiceDebugDescription_TemperatureSensor "sensor.temperature"
extern const HAPUUID kHAPServiceType_TemperatureSensor;
/**@}*/
/**
* Window.
*
* This service describes a motorized window.
*
* This service requires iOS 9 or later.
*
* Required Characteristics:
* - Current Position
* - Target Position
* - Position State
*
* Optional Characteristics:
* - Name
* - Hold Position
* - Obstruction Detected
*
* @see HomeKit Accessory Protocol Specification R14
* Section 8.44 Window
*/
/**@{*/
#define kHAPServiceDebugDescription_Window "window"
extern const HAPUUID kHAPServiceType_Window;
/**@}*/
/**
* Window Covering.
*
* This service describes motorized window coverings or shades - examples include shutters, blinds, awnings etc.
*
* This service requires iOS 9 or later.
*
* Required Characteristics:
* - Target Position
* - Current Position
* - Position State
*
* Optional Characteristics:
* - Name
* - Hold Position
* - Current Horizontal Tilt Angle
* - Target Horizontal Tilt Angle
* - Current Vertical Tilt Angle
* - Target Vertical Tilt Angle
* - Obstruction Detected
*
* @see HomeKit Accessory Protocol Specification R14
* Section 8.45 Window Covering
*/
/**@{*/
#define kHAPServiceDebugDescription_WindowCovering "window-covering"
extern const HAPUUID kHAPServiceType_WindowCovering;
/**@}*/
/**
* Air Quality Sensor.
*
* This service describes an air quality sensor. `Air Quality` refers to the cumulative air quality recorded
* by the accessory which may be based on multiple sensors present.
*
* This service requires iOS 9 or later and is updated in iOS 10.
*
* Required Characteristics:
* - Air Quality
*
* Optional Characteristics:
* - Name
* - Ozone Density
* - Nitrogen Dioxide Density
* - Sulphur Dioxide Density
* - PM2.5 Density
* - PM10 Density
* - VOC Density
* - Status Active
* - Status Fault
* - Status Tampered
* - Status Low Battery
*
* @see HomeKit Accessory Protocol Specification R14
* Section 8.3 Air Quality Sensor
*/
/**@{*/
#define kHAPServiceDebugDescription_AirQualitySensor "sensor.air-quality"
extern const HAPUUID kHAPServiceType_AirQualitySensor;
/**@}*/
/**
* Battery Service.
*
* This service describes a battery service.
*
* This service requires iOS 9 or later.
*
* Required Characteristics:
* - Battery Level
* - Charging State
* - Status Low Battery
*
* Optional Characteristics:
* - Name
*
* @see HomeKit Accessory Protocol Specification R14
* Section 8.5 Battery Service
*/
/**@{*/
#define kHAPServiceDebugDescription_BatteryService "battery"
extern const HAPUUID kHAPServiceType_BatteryService;
/**@}*/
/**
* Carbon Dioxide Sensor.
*
* This service describes a carbon dioxide sensor.
*
* This service requires iOS 9 or later.
*
* Required Characteristics:
* - Carbon Dioxide Detected
*
* Optional Characteristics:
* - Name
* - Status Active
* - Status Fault
* - Status Tampered
* - Status Low Battery
* - Carbon Dioxide Level
* - Carbon Dioxide Peak Level
*
* @see HomeKit Accessory Protocol Specification R14
* Section 8.7 Carbon Dioxide Sensor
*/
/**@{*/
#define kHAPServiceDebugDescription_CarbonDioxideSensor "sensor.carbon-dioxide"
extern const HAPUUID kHAPServiceType_CarbonDioxideSensor;
/**@}*/
/**
* HAP Protocol Information.
*
* Every accessory must expose a single instance of the HAP protocol information. For a bridge accessory, only the
* primary HAP accessory object must contain this service. The `Version` value is transport dependent. Refer to
* BLE Protocol Version Characteristic for BLE protocol version. Refer to IP Protocol Version for IP protocol version.
*
* Required Characteristics:
* - Version
*
* @see HomeKit Accessory Protocol Specification R14
* Section 8.17 HAP Protocol Information
*/
/**@{*/
#define kHAPServiceDebugDescription_HAPProtocolInformation "protocol.information.service"
extern const HAPUUID kHAPServiceType_HAPProtocolInformation;
/**@}*/
/**
* Fan.
*
* This service describes a fan.
*
* If the fan service is included in air purifier accessories, `Current Fan State` and `Target Fan State`
* are required characteristics.
*
* This service requires iOS 10.3 or later.
*
* Required Characteristics:
* - Active
*
* Optional Characteristics:
* - Name
* - Current Fan State
* - Target Fan State
* - Rotation Direction
* - Rotation Speed
* - Swing Mode
* - Lock Physical Controls
*
* @see HomeKit Accessory Protocol Specification R14
* Section 8.13 Fan
*/
/**@{*/
#define kHAPServiceDebugDescription_Fan "fanv2"
extern const HAPUUID kHAPServiceType_Fan;
HAP_DEPRECATED_MSG("Use kHAPServiceDebugDescription_Fan instead.")
#define kHAPServiceDebugDescription_FanV2 "fanv2"
HAP_DEPRECATED_MSG("Use kHAPServiceType_Fan instead.")
extern const HAPUUID kHAPServiceType_FanV2;
/**@}*/
/**
* Slat.
*
* This service describes a slat which tilts on a vertical or a horizontal axis.
*
* `Current Tilt Angle` and `Target Tilt Angle` may be included in this service if the user can set the slats to a
* particular tilt angle.
*
* `Swing Mode` implies that the slats can swing automatically (e.g. vents on a fan).
*
* This service requires iOS 10.3 or later.
*
* Required Characteristics:
* - Current Slat State
* - Slat Type
*
* Optional Characteristics:
* - Name
* - Swing Mode
* - Current Tilt Angle
* - Target Tilt Angle
*
* @see HomeKit Accessory Protocol Specification R14
* Section 8.34 Slat
*/
/**@{*/
#define kHAPServiceDebugDescription_Slat "vertical-slat"
extern const HAPUUID kHAPServiceType_Slat;
/**@}*/
/**
* Filter Maintenance.
*
* This service can be used to describe maintenance operations for a filter.
*
* This service requires iOS 10.3 or later.
*
* Required Characteristics:
* - Filter Change Indication
*
* Optional Characteristics:
* - Name
* - Filter Life Level
* - Reset Filter Indication
*
* @see HomeKit Accessory Protocol Specification R14
* Section 8.15 Filter Maintenance
*/
/**@{*/
#define kHAPServiceDebugDescription_FilterMaintenance "filter-maintenance"
extern const HAPUUID kHAPServiceType_FilterMaintenance;
/**@}*/
/**
* Air Purifier.
*
* This service describes an air purifier. An air purifier accessory can have additional linked services such as:
* - `Filter Maintenance` service(s) to describe one or more air filters.
* - `Air Quality Sensor` services to describe air quality sensors.
* - `Fan` service to describe a fan which can be independently controlled.
* - `Slat` service to control vents.
*
* If `Fan` is included as a linked service in an air purifier accessory:
* - Changing `Active` characteristic on the `Air Purifier` must result in corresponding change to
* `Active` characteristic on the `Fan`.
* - Changing `Active` characteristic on the `Fan` from "Inactive" to "Active" does not require the `Active` on the
* `Air Purifier` to change. This enables "Fan Only" mode on air purifier.
* - Changing `Active` characteristic on the `Fan` from "Active" to "Inactive" must result in the `Active` on the
* `Air Purifier` to change to "Inactive".
*
* An air purifier accessory service may include `Rotation Speed` to control fan speed
* if the fan cannot be independently controlled.
*
* This service requires iOS 10.3 or later.
*
* Required Characteristics:
* - Active
* - Current Air Purifier State
* - Target Air Purifier State
*
* Optional Characteristics:
* - Name
* - Rotation Speed
* - Swing Mode
* - Lock Physical Controls
*
* @see HomeKit Accessory Protocol Specification R14
* Section 8.2 Air Purifier
*/
/**@{*/
#define kHAPServiceDebugDescription_AirPurifier "air-purifier"
extern const HAPUUID kHAPServiceType_AirPurifier;
/**@}*/
/**
* Heater Cooler.
*
* This service can be used to describe either of the following:
* - a heater
* - a cooler
* - a heater and a cooler
*
* A heater/cooler accessory may have additional:
* - `Fan` service to describe a fan which can be independently controlled
* - `Slat` service to control vents
*
* A heater must include `Heating Threshold Temperature`. A cooler must include `Cooling Threshold Temperature`.
*
* A heater/cooler accessory service may include `Rotation Speed` to control fan speed if the fan cannot be
* independently controlled.
*
* This service requires iOS 10.3 or later.
*
* Required Characteristics:
* - Active
* - Current Temperature
* - Current Heater Cooler State
* - Target Heater Cooler State
*
* Optional Characteristics:
* - Name
* - Rotation Speed
* - Temperature Display Units
* - Swing Mode
* - Cooling Threshold Temperature
* - Heating Threshold Temperature
* - Lock Physical Controls
*
* @see HomeKit Accessory Protocol Specification R14
* Section 8.18 Heater Cooler
*/
/**@{*/
#define kHAPServiceDebugDescription_HeaterCooler "heater-cooler"
extern const HAPUUID kHAPServiceType_HeaterCooler;
/**@}*/
/**
* Humidifier Dehumidifier.
*
* This service can be used to describe either of the following:
* - an air humidifier
* - an air dehumidifier
* - an air humidifier and an air dehumidifier
*
* An air humidifier/dehumidifier accessory may have additional:
* - `Fan` service to describe a fan which can be independently controlled
* - `Slat` service to control vents
*
* A dehumidifier must include `Relative Humidity Dehumidifier Threshold`.
* A humidifier must include `Relative Humidity Humidifier Threshold`.
*
* A humidifier/dehumidifier accessory service may include `Rotation Speed` to control fan speed if the fan cannot be
* independently controlled.
*
* This service requires iOS 10.3 or later.
*
* Required Characteristics:
* - Active
* - Current Relative Humidity
* - Current Humidifier Dehumidifier State
* - Target Humidifier Dehumidifier State
*
* Optional Characteristics:
* - Name
* - Relative Humidity Dehumidifier Threshold
* - Relative Humidity Humidifier Threshold
* - Rotation Speed
* - Swing Mode
* - Water Level
* - Lock Physical Controls
*
* @see HomeKit Accessory Protocol Specification R14
* Section 8.19 Humidifier Dehumidifier
*/
/**@{*/
#define kHAPServiceDebugDescription_HumidifierDehumidifier "humidifier-dehumidifier"
extern const HAPUUID kHAPServiceType_HumidifierDehumidifier;
/**@}*/
/**
* Service Label.
*
* This service describes label scheme.
*
* This service requires iOS 10.3 or later.
*
* Required Characteristics:
* - Service Label Namespace
*
* @see HomeKit Accessory Protocol Specification R14
* Section 8.32 Service Label
*/
/**@{*/
#define kHAPServiceDebugDescription_ServiceLabel "service-label"
extern const HAPUUID kHAPServiceType_ServiceLabel;
/**@}*/
/**
* Irrigation System.
*
* This service describes an irrigation system. This service must be present on an irrigation systems which supports
* on-device schedules or supports a top-level `Active` control across multiple valves.
*
* A sprinkler system accessory maybe:
*
* - a combination of `Irrigation System` service on a bridge accessory with a collection of one or more `Valve`
* services (with `Valve Type` set to "Irrigation") as bridged accessories (The bridge accessory is typically
* connected to each valve using wires). OR
*
* - a combination of `Irrigation System` service with a collection of one or more linked `Valve` services (with
* `Valve Type` set to "Irrigation") (The valves are collocated e.g. hose based system). OR
*
* - a combination of `Valve` service(s) with `Valve Type` set to "Irrigation" (e.g., a system with one or more valves
* which does not support scheduling)
*
* An irrigation system is set to "Active" when the system is enabled. When one of the valves is set to "In Use", the
* irrigation system must be set to in use.
*
* An accessory which includes this services must include the `Set Duration` in the `Valve`.
*
* An irrigation system accessory which does not auto detect the number of valves it is connected to and requires user
* to provide this information must include the `Is Configured` in the `Valve`.
*
* `Remaining Duration` on this service implies the total remaining duration to water across all the valves.
*
* This service requires iOS 11.2 or later.
*
* Required Characteristics:
* - Active
* - Program Mode
* - In Use
*
* Optional Characteristics: