HomeKitAccessoryCategory

public enum HomeKitAccessoryCategory : UInt16
extension HomeKitAccessoryCategory: Encodable

HomeKit Accessory Categories

An accessory with support for multiple categories should advertise the primary category. An accessory for which a primary category cannot be determined or the primary category isn’t among the well defined categories (2-9) falls in the ‘Other’ category

  • Unknonw

    Declaration

    Swift

    case unknown = 0
  • Other

    Declaration

    Swift

    case other = 1
  • Bridge

    Declaration

    Swift

    case bridge = 2
  • fan

    Fan

    Declaration

    Swift

    case fan = 3
  • Garage Door Openers

    Declaration

    Swift

    case garageDoorOpener = 4
  • Lighting

    Declaration

    Swift

    case lighting = 5
  • Locks

    Declaration

    Swift

    case lock = 6
  • Outlet

    Declaration

    Swift

    case outlet = 7
  • Switch

    Declaration

    Swift

    case `switch` = 8
  • Thermostat

    Declaration

    Swift

    case thermostat = 9
  • Sensor

    Declaration

    Swift

    case sensor = 10
  • Security Systems

    Declaration

    Swift

    case securitySystem = 11
  • Door

    Declaration

    Swift

    case door = 12
  • Window

    Declaration

    Swift

    case window = 13
  • Window Covering

    Declaration

    Swift

    case windowCovering = 14
  • Programmable Switch

    Declaration

    Swift

    case programmableSwitch = 15
  • Range Extender

    Declaration

    Swift

    case rangeExtender = 16
  • IP Camera

    Declaration

    Swift

    case ipCamera = 17
  • Video Door Bell

    Declaration

    Swift

    case videoDoorBell = 18
  • Air Purifier

    Declaration

    Swift

    case airPurifier = 19
  • Header

    Declaration

    Swift

    case heater = 20
  • Air Conditioner

    Declaration

    Swift

    case airConditioner = 21
  • Humidifier

    Declaration

    Swift

    case humidifier = 22
  • Dehumidifier

    Declaration

    Swift

    case dehumidifier = 23
  • Sprinkler

    Declaration

    Swift

    case sprinkler = 28
  • Faucet

    Declaration

    Swift

    case faucet = 29
  • Shower System

    Declaration

    Swift

    case showSystem = 30
  • Undocumented

    Declaration

    Swift

    public var description: String { get }
  • Encodes this value into the given encoder.

    If the value fails to encode anything, encoder will encode an empty keyed container in its place.

    This function throws an error if any values are invalid for the given encoder’s format.

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws

    Parameters

    encoder

    The encoder to write data to.