ServiceHapAirPurifier

@available(swift 4.0)
@available(iOS 10.0, tvOS 10.0, watchOS 3.0, macOS 10.12, *)
open class ServiceHapAirPurifier : Service

HAP-BLE HomeKit Air Purifier Service

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 v2 (ServiceHapAdvancedFan) service to describe a fan which can be independently controlled.
  • Slat service to control vents.

If Fan v2 (ServiceHapAdvancedFan) 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 v2.
  • Changing Active characteristic on the Fan v2 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 v2 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

  • Service Name

    Declaration

    Swift

    public static var name: String { get }
  • Service UUID

    Declaration

    Swift

    public static var uuidString: String { get }
  • Service Uniform Identifier

    Declaration

    Swift

    public static var uniformIdentifier: String { get }
  • Creates Service

    Declaration

    Swift

    public init()