Documentation
¶
Overview ¶
THIS FILE IS AUTO-GENERATED
Index ¶
- Constants
- type A
- type AirPurifier
- type Bridge
- type Camera
- type ColoredLightbulb
- type Cooler
- type Dehumidifier
- type Door
- type Fan
- type Faucet
- type GarageDoorOpener
- type Heater
- type Humidifier
- type Info
- type Lightbulb
- type Outlet
- type SecuritySystem
- type Switch
- type Television
- type Thermometer
- type Thermostat
- type Window
- type WindowCovering
Constants ¶
const ( TypeUnknown byte = 0 TypeOther byte = 1 TypeBridge byte = 2 TypeFan byte = 3 TypeGarageDoorOpener byte = 4 TypeLightbulb byte = 5 TypeDoorLock byte = 6 TypeOutlet byte = 7 TypeSwitch byte = 8 TypeThermostat byte = 9 TypeSensor byte = 10 TypeSecuritySystem byte = 11 TypeDoor byte = 12 TypeWindow byte = 13 TypeWindowCovering byte = 14 TypeProgrammableSwitch byte = 15 TypeIPCamera byte = 17 TypeVideoDoorbell byte = 18 TypeAirPurifier byte = 19 TypeHeater byte = 20 TypeAirConditioner byte = 21 TypeHumidifier byte = 22 TypeDehumidifier byte = 23 TypeSprinkler byte = 28 TypeFaucet byte = 29 TypeShowerSystem byte = 30 TypeTelevision byte = 31 TypeRemoteControl byte = 32 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type A ¶
type A struct {
Id uint64
Type byte
Info *service.AccessoryInformation
Ss []*service.S
// IdentifyFunc is called when a client
// makes a POST to the /identify endpoint.
IdentifyFunc func(*http.Request)
}
func (*A) AddS ¶
Adds a service to the accessory and updates the ids of the service and the corresponding characteristics
func (*A) MarshalJSON ¶
type AirPurifier ¶
type AirPurifier struct {
*A
AirPurifier *service.AirPurifier
}
func NewAirPurifier ¶
func NewAirPurifier(info Info) *AirPurifier
NewAirPurifier returns a air purifier accessory.
type Camera ¶
type Camera struct {
*A
Control *service.CameraControl
StreamManagement1 *service.CameraRTPStreamManagement
StreamManagement2 *service.CameraRTPStreamManagement
}
Camera provides RTP video streaming.
type ColoredLightbulb ¶
type ColoredLightbulb struct {
*A
Lightbulb *service.ColoredLightbulb
}
func NewColoredLightbulb ¶
func NewColoredLightbulb(info Info) *ColoredLightbulb
NewLightbulb returns an light bulb accessory.
type Dehumidifier ¶
type Dehumidifier struct {
*A
Dehumidifier *service.Dehumidifier
}
func NewDehumidifier ¶
func NewDehumidifier(info Info) *Dehumidifier
NewDehumidifier returns an outlet accessory.
type GarageDoorOpener ¶
type GarageDoorOpener struct {
*A
GarageDoorOpener *service.GarageDoorOpener
}
func NewGarageDoorOpener ¶
func NewGarageDoorOpener(info Info) *GarageDoorOpener
NewGarageDoorOpener returns a garage door opener accessory.
type Humidifier ¶
type Humidifier struct {
*A
Humidifier *service.Humidifier
}
func NewHumidifier ¶
func NewHumidifier(info Info) *Humidifier
NewHumidifier returns an outlet accessory.
type Lightbulb ¶
func NewLightbulb ¶
NewLightbulb returns an light bulb accessory.
type SecuritySystem ¶
type SecuritySystem struct {
*A
SecuritySystem *service.SecuritySystem
}
func NewSecuritySystem ¶
func NewSecuritySystem(info Info) *SecuritySystem
NewSecuritySystem returns a security system accessory.
type Television ¶
type Television struct {
*A
Television *service.Television
Speaker *service.Speaker
}
func NewTelevision ¶
func NewTelevision(info Info) *Television
NewTelevision returns a television accessory.
type Thermometer ¶
type Thermometer struct {
*A
TempSensor *service.TemperatureSensor
}
func NewTemperatureSensor ¶
func NewTemperatureSensor(info Info) *Thermometer
NewTemperatureSensor returns a Thermometer which implements model.Thermometer.
type Thermostat ¶
type Thermostat struct {
*A
Thermostat *service.Thermostat
}
func NewThermostat ¶
func NewThermostat(info Info) *Thermostat
NewThermostat returns a Thermostat accessory.
type WindowCovering ¶
type WindowCovering struct {
*A
WindowCovering *service.WindowCovering
}
func NewWindowCovering ¶
func NewWindowCovering(info Info) *WindowCovering
NewWindowCovering returns a window accessory.