HAP.AccessoryServer (HAP v0.1.0) View Source
Represents a top-level HAP instance configuration
Link to this section Summary
Types
A unique identifier string in the form "AA:BB:CC:DD:EE:FF"
A HAP specified value indicating the primary function of this device as found in Section 13 of Apple's HomeKit Accessory Protocol Specification. Valid values include
The model of an accessory server
The name of an accessory server
A pairing code of the form 123-45-678
A pairing URL suitable for display in a QR code
Represents an accessory server consisting of a number of accessories
Link to this section Types
Specs
accessory_identifier() :: String.t()
A unique identifier string in the form "AA:BB:CC:DD:EE:FF"
Specs
accessory_type() :: integer()
A HAP specified value indicating the primary function of this device as found in Section 13 of Apple's HomeKit Accessory Protocol Specification. Valid values include:
- Other
- Bridge
- Fan
- Garage
- Lightbulb
- Door Lock
- Outlet
- Switch
- Thermostat
- Sensor
- Security System
- Door
- Window
- Window Covering
- Programmable Switch
- Range Extender
- IP Camera
- Video Door Bell
- Air Purifier
- Heater
- Air Conditioner
- Humidifier
- Dehumidifier
- Sprinkler
- Faucet
- Shower System
- Remote
Specs
model() :: String.t()
The model of an accessory server
Specs
name() :: String.t()
The name of an accessory server
Specs
pairing_code() :: String.t()
A pairing code of the form 123-45-678
Specs
pairing_url() :: String.t()
A pairing URL suitable for display in a QR code
Specs
t() :: %HAP.AccessoryServer{ accessories: [HAP.Accessory.t()], accessory_type: accessory_type(), data_path: String.t(), display_module: module(), identifier: accessory_identifier(), model: model(), name: name(), pairing_code: pairing_code(), port: :inet.port_number(), setup_id: setup_id() }
Represents an accessory server consisting of a number of accessories