View Source HAP.Accessory (HAP v0.6.0)
Represents a single accessory object, containing a number of services
Summary
Types
The firmware recvision of this accessory, for example '1.0' or '1.0.1'
The manufacturer of this accessory, for example 'HAP Co.'
The model of this accessory, for example 'HAP Light Bulb Supreme'
The name to advertise for this accessory, for example 'HAP Light Bulb'
The serial number of this accessory, for example '0012345'
Represents an accessory consisting of a number of services. Contains the following fields
Types
@type firmware_revision() :: String.t()
The firmware recvision of this accessory, for example '1.0' or '1.0.1'
@type manufacturer() :: String.t()
The manufacturer of this accessory, for example 'HAP Co.'
@type model() :: String.t()
The model of this accessory, for example 'HAP Light Bulb Supreme'
@type name() :: String.t()
The name to advertise for this accessory, for example 'HAP Light Bulb'
@type serial_number() :: String.t()
The serial number of this accessory, for example '0012345'
@type t() :: %HAP.Accessory{ firmware_revision: firmware_revision(), manufacturer: manufacturer(), model: model(), name: name(), serial_number: serial_number(), services: [HAP.Service.t()] }
Represents an accessory consisting of a number of services. Contains the following fields:
name
: The name to assign to this accessory, for example 'Ceiling Fan'model
: The model name to assign to this accessory, for example 'FanCo Whisper III'manufacturer
: The manufacturer of this accessory, for example 'FanCo'serial_number
: The serial number of this accessory, for example '0012345'firmware_revision
: The firmware revision of this accessory, for example '1.0'services
: A list of services to include in this accessory