Documentation ¶
Overview ¶
THIS FILE IS AUTO-GENERATED
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
Package characteristic implements the HomeKit characteristics.
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED ¶
THIS FILE IS AUTO-GENERATED
Index ¶
- Constants
- Variables
- func PermsAll() []string
- func PermsRead() []string
- func PermsReadOnly() []string
- func PermsWriteOnly() []string
- type AccessoryFlags
- type AccessoryIdentifier
- type Active
- type ActiveIdentifier
- type AdministratorOnlyAccess
- type AirParticulateDensity
- type AirParticulateSize
- type AirQuality
- type AppMatchingIdentifier
- type AudioFeedback
- type BatteryLevel
- type Bool
- type Brightness
- type Bytes
- type CarbonDioxideDetected
- type CarbonDioxideLevel
- type CarbonDioxidePeakLevel
- type CarbonMonoxideDetected
- type CarbonMonoxideLevel
- type CarbonMonoxidePeakLevel
- type Category
- type ChangeFunc
- type Characteristic
- func (c *Characteristic) Equal(other interface{}) bool
- func (c *Characteristic) GetValue() interface{}
- func (c *Characteristic) GetValueFromConnection(conn net.Conn) interface{}
- func (c *Characteristic) IsObservable() bool
- func (c *Characteristic) IsReadable() bool
- func (c *Characteristic) IsWritable() bool
- func (c *Characteristic) OnValueGet(fn GetFunc)
- func (c *Characteristic) OnValueUpdate(fn ChangeFunc)
- func (c *Characteristic) OnValueUpdateFromConn(fn ConnChangeFunc)
- func (c *Characteristic) UpdateValue(value interface{})
- func (c *Characteristic) UpdateValueFromConnection(value interface{}, conn net.Conn)
- type ChargingState
- type ClosedCaptions
- type ColorTemperature
- type ConfigureBridgedAccessory
- type ConfigureBridgedAccessoryStatus
- type ConfiguredName
- type ConnChangeFunc
- type ContactSensorState
- type CoolingThresholdTemperature
- type CurrentAirPurifierState
- type CurrentAmbientLightLevel
- type CurrentDoorState
- type CurrentFanState
- type CurrentHeaterCoolerState
- type CurrentHeatingCoolingState
- type CurrentHorizontalTiltAngle
- type CurrentHumidifierDehumidifierState
- type CurrentMediaState
- type CurrentPosition
- type CurrentRelativeHumidity
- type CurrentSlatState
- type CurrentTemperature
- type CurrentTiltAngle
- type CurrentTime
- type CurrentTransport
- type CurrentVerticalTiltAngle
- type CurrentVisibilityState
- type DayOfTheWeek
- type DigitalZoom
- type DiscoverBridgedAccessories
- type DiscoveredBridgedAccessories
- type DisplayOrder
- type FilterChangeIndication
- type FilterLifeLevel
- type FirmwareRevision
- type Float
- func (c *Float) GetMaxValue() float64
- func (c *Float) GetMinValue() float64
- func (c *Float) GetStepValue() float64
- func (c *Float) GetValue() float64
- func (c *Float) OnValueRemoteGet(fn func() float64)
- func (c *Float) OnValueRemoteUpdate(fn func(float64))
- func (c *Float) SetMaxValue(value float64)
- func (c *Float) SetMinValue(value float64)
- func (c *Float) SetStepValue(value float64)
- func (c *Float) SetValue(value float64)
- type GetFunc
- type HardwareRevision
- type HeatingThresholdTemperature
- type HoldPosition
- type Hue
- type Identifier
- type Identify
- type ImageMirroring
- type ImageRotation
- type InUse
- type InputDeviceType
- type InputSourceType
- type Int
- func (c *Int) GetMaxValue() int
- func (c *Int) GetMinValue() int
- func (c *Int) GetStepValue() int
- func (c *Int) GetValue() int
- func (c *Int) OnValueRemoteGet(fn func() int)
- func (c *Int) OnValueRemoteUpdate(fn func(int))
- func (c *Int) SetMaxValue(value int)
- func (c *Int) SetMinValue(value int)
- func (c *Int) SetStepValue(value int)
- func (c *Int) SetValue(value int)
- type IsConfigured
- type LeakDetected
- type LinkQuality
- type LockControlPoint
- type LockCurrentState
- type LockLastKnownAction
- type LockManagementAutoSecurityTimeout
- type LockPhysicalControls
- type LockTargetState
- type Logs
- type Manufacturer
- type Model
- type MotionDetected
- type Mute
- type Name
- type NightVision
- type NitrogenDioxideDensity
- type ObstructionDetected
- type OccupancyDetected
- type On
- type OpticalZoom
- type OutletInUse
- type OzoneDensity
- type PM10Density
- type PM2_5Density
- type PairSetup
- type PairVerify
- type PairingFeatures
- type PairingPairings
- type PictureMode
- type PositionState
- type PowerModeSelection
- type ProgramMode
- type ProgrammableSwitchEvent
- type ProgrammableSwitchOutputState
- type Reachable
- type RelativeHumidityDehumidifierThreshold
- type RelativeHumidityHumidifierThreshold
- type RemainingDuration
- type RemoteKey
- type ResetFilterIndication
- type RotationDirection
- type RotationSpeed
- type Saturation
- type SecuritySystemAlarmType
- type SecuritySystemCurrentState
- type SecuritySystemTargetState
- type SelectedCameraRecordingConfiguration
- type SelectedRTPStreamConfiguration
- type SelectedStreamConfiguration
- type SerialNumber
- type ServiceLabelIndex
- type ServiceLabelNamespace
- type SetDuration
- type SetupEndpoints
- type SlatType
- type SleepDiscoveryMode
- type SmokeDetected
- type SoftwareRevision
- type StatusActive
- type StatusFault
- type StatusJammed
- type StatusLowBattery
- type StatusTampered
- type StreamingStatus
- type String
- type SulphurDioxideDensity
- type SupportedAudioRecordingConfiguration
- type SupportedAudioStreamConfiguration
- type SupportedCameraRecordingConfiguration
- type SupportedRTPConfiguration
- type SupportedVideoRecordingConfiguration
- type SupportedVideoStreamConfiguration
- type SwingMode
- type TargetAirPurifierState
- type TargetAirQuality
- type TargetDoorState
- type TargetFanState
- type TargetHeaterCoolerState
- type TargetHeatingCoolingState
- type TargetHorizontalTiltAngle
- type TargetHumidifierDehumidifierState
- type TargetMediaState
- type TargetPosition
- type TargetRelativeHumidity
- type TargetSlatState
- type TargetTemperature
- type TargetTiltAngle
- type TargetVerticalTiltAngle
- type TargetVisibilityState
- type TemperatureDisplayUnits
- type TimeUpdate
- type TunnelConnectionTimeout
- type TunneledAccessoryAdvertising
- type TunneledAccessoryConnected
- type TunneledAccessoryStateNumber
- type VOCDensity
- type ValveType
- type Version
- type Volume
- type VolumeControlType
- type VolumeSelector
- type WaterLevel
- type WifiCapabilities
- type WifiConfigurationControl
Constants ¶
const ( ActiveInactive int = 0 ActiveActive int = 1 )
const ( AirParticulateSize2_5Μm int = 0 AirParticulateSize10Μm int = 1 )
const ( AirQualityUnknown int = 0 AirQualityExcellent int = 1 AirQualityGood int = 2 AirQualityFair int = 3 AirQualityInferior int = 4 AirQualityPoor int = 5 )
const ( CarbonDioxideDetectedCO2LevelsNormal int = 0 CarbonDioxideDetectedCO2LevelsAbnormal int = 1 )
const ( CarbonMonoxideDetectedCOLevelsNormal int = 0 CarbonMonoxideDetectedCOLevelsAbnormal int = 1 )
const ( ChargingStateNotCharging int = 0 ChargingStateCharging int = 1 ChargingStateNotChargeable int = 2 )
const ( ClosedCaptionsDisabled int = 0 ClosedCaptionsEnabled int = 1 )
const ( PermRead = "pr" // can be read PermWrite = "pw" // can be written PermEvents = "ev" // sends events PermHidden = "hd" // is hidden PermWriteResponse = "wr" )
const ( UnitPercentage = "percentage" UnitArcDegrees = "arcdegrees" UnitCelsius = "celsius" UnitLux = "lux" UnitSeconds = "seconds" UnitPPM = "ppm" )
HAP characteristic units
const ( FormatString = "string" FormatBool = "bool" FormatFloat = "float" FormatUInt8 = "uint8" FormatUInt16 = "uint16" FormatUInt32 = "uint32" FormatInt32 = "int32" FormatUInt64 = "uint64" FormatData = "data" FormatTLV8 = "tlv8" )
HAP characteristic formats
const ( ContactSensorStateContactDetected int = 0 ContactSensorStateContactNotDetected int = 1 )
const ( CurrentAirPurifierStateInactive int = 0 CurrentAirPurifierStateIdle int = 1 CurrentAirPurifierStatePurifyingAir int = 2 )
const ( CurrentDoorStateOpen int = 0 CurrentDoorStateClosed int = 1 CurrentDoorStateOpening int = 2 CurrentDoorStateClosing int = 3 CurrentDoorStateStopped int = 4 )
const ( CurrentFanStateInactive int = 0 CurrentFanStateIdle int = 1 CurrentFanStateBlowingAir int = 2 )
const ( CurrentHeaterCoolerStateInactive int = 0 CurrentHeaterCoolerStateIdle int = 1 CurrentHeaterCoolerStateHeating int = 2 CurrentHeaterCoolerStateCooling int = 3 )
const ( CurrentHeatingCoolingStateOff int = 0 CurrentHeatingCoolingStateHeat int = 1 CurrentHeatingCoolingStateCool int = 2 )
const ( CurrentHumidifierDehumidifierStateInactive int = 0 CurrentHumidifierDehumidifierStateIdle int = 1 CurrentHumidifierDehumidifierStateHumidifying int = 2 CurrentHumidifierDehumidifierStateDehumidifying int = 3 )
const ( CurrentMediaStatePlay int = 0 CurrentMediaStatePause int = 1 CurrentMediaStateStop int = 2 CurrentMediaStateUnknown int = 3 )
const ( CurrentSlatStateFixed int = 0 CurrentSlatStateJammed int = 1 CurrentSlatStateSwinging int = 2 )
const ( CurrentVisibilityStateShown int = 0 CurrentVisibilityStateHidden int = 1 )
const ( DiscoverBridgedAccessoriesStartDiscovery int = 0 DiscoverBridgedAccessoriesStopDiscovery int = 1 )
const ( FilterChangeIndicationFilterOK int = 0 FilterChangeIndicationChangeFilter int = 1 )
const ( InUseNotInUse int = 0 InUseInUse int = 1 )
const ( InputDeviceTypeOther int = 0 InputDeviceTypeTv int = 1 InputDeviceTypeRecording int = 2 InputDeviceTypeTuner int = 3 InputDeviceTypePlayback int = 4 InputDeviceTypeAudioSystem int = 5 )
const ( InputSourceTypeOther int = 0 InputSourceTypeHomeScreen int = 1 InputSourceTypeApplication int = 10 InputSourceTypeTuner int = 2 InputSourceTypeHdmi int = 3 InputSourceTypeCompositeVideo int = 4 InputSourceTypeSVideo int = 5 InputSourceTypeComponentVideo int = 6 InputSourceTypeDvi int = 7 InputSourceTypeAirplay int = 8 InputSourceTypeUsb int = 9 )
const ( IsConfiguredNotConfigured int = 0 IsConfiguredConfigured int = 1 )
const ( LeakDetectedLeakNotDetected int = 0 LeakDetectedLeakDetected int = 1 )
const ( LockCurrentStateUnsecured int = 0 LockCurrentStateSecured int = 1 LockCurrentStateJammed int = 2 LockCurrentStateUnknown int = 3 )
const ( LockLastKnownActionSecuredPhysicallyInterior int = 0 LockLastKnownActionUnsecuredPhysicallyInterior int = 1 LockLastKnownActionSecuredPhysicallyExterior int = 2 LockLastKnownActionUnsecuredPhysicallyExterior int = 3 LockLastKnownActionSecuredByKeypad int = 4 LockLastKnownActionUnsecuredByKeypad int = 5 LockLastKnownActionSecuredRemotely int = 6 LockLastKnownActionUnsecuredRemotely int = 7 LockLastKnownActionSecuredByAutoSecureTimeout int = 8 )
const ( LockPhysicalControlsControlLockDisabled int = 0 LockPhysicalControlsControlLockEnabled int = 1 )
const ( LockTargetStateUnsecured int = 0 LockTargetStateSecured int = 1 )
const ( OccupancyDetectedOccupancyNotDetected int = 0 OccupancyDetectedOccupancyDetected int = 1 )
const ( PictureModeOther int = 0 PictureModeStandard int = 1 PictureModeCalibrated int = 2 PictureModeCalibratedDark int = 3 PictureModeVivid int = 4 PictureModeGame int = 5 PictureModeComputer int = 6 PictureModeCustom int = 7 )
const ( PositionStateDecreasing int = 0 PositionStateIncreasing int = 1 PositionStateStopped int = 2 )
const ( PowerModeSelectionShow int = 0 PowerModeSelectionHide int = 1 )
const ( ProgramModeNoProgramScheduled int = 0 ProgramModeProgramScheduled int = 1 ProgramModeProgramScheduledManualMode int = 2 )
const ( ProgrammableSwitchEventSinglePress int = 0 ProgrammableSwitchEventDoublePress int = 1 ProgrammableSwitchEventLongPress int = 2 )
const ( RemoteKeyRewind int = 0 RemoteKeyFastForward int = 1 RemoteKeyExit int = 10 RemoteKeyPlayPause int = 11 RemoteKeyInfo int = 15 RemoteKeyNextTrack int = 2 RemoteKeyPrevTrack int = 3 RemoteKeyArrowUp int = 4 RemoteKeyArrowDown int = 5 RemoteKeyArrowLeft int = 6 RemoteKeyArrowRight int = 7 RemoteKeySelect int = 8 RemoteKeyBack int = 9 )
const ( RotationDirectionClockwise int = 0 RotationDirectionCounterclockwise int = 1 )
const ( SecuritySystemCurrentStateStayArm int = 0 SecuritySystemCurrentStateAwayArm int = 1 SecuritySystemCurrentStateNightArm int = 2 SecuritySystemCurrentStateDisarmed int = 3 SecuritySystemCurrentStateAlarmTriggered int = 4 )
const ( SecuritySystemTargetStateStayArm int = 0 SecuritySystemTargetStateAwayArm int = 1 SecuritySystemTargetStateNightArm int = 2 SecuritySystemTargetStateDisarm int = 3 )
const ( ServiceLabelNamespaceDots int = 0 ServiceLabelNamespaceArabicNumerals int = 1 )
const ( SlatTypeHorizontal int = 0 SlatTypeVertical int = 1 )
const ( SleepDiscoveryModeNotDiscoverable int = 0 SleepDiscoveryModeAlwaysDiscoverable int = 1 )
const ( SmokeDetectedSmokeNotDetected int = 0 SmokeDetectedSmokeDetected int = 1 )
const ( StatusFaultNoFault int = 0 StatusFaultGeneralFault int = 1 )
const ( StatusJammedNotJammed int = 0 StatusJammedJammed int = 1 )
const ( StatusLowBatteryBatteryLevelNormal int = 0 StatusLowBatteryBatteryLevelLow int = 1 )
const ( StatusTamperedNotTampered int = 0 StatusTamperedTampered int = 1 )
const ( SwingModeSwingDisabled int = 0 SwingModeSwingEnabled int = 1 )
const ( TargetAirPurifierStateManual int = 0 TargetAirPurifierStateAuto int = 1 )
const ( TargetAirQualityExcellent int = 0 TargetAirQualityGood int = 1 TargetAirQualityFair int = 2 )
const ( TargetDoorStateOpen int = 0 TargetDoorStateClosed int = 1 )
const ( TargetFanStateManual int = 0 TargetFanStateAuto int = 1 )
const ( TargetHeaterCoolerStateAuto int = 0 TargetHeaterCoolerStateHeat int = 1 TargetHeaterCoolerStateCool int = 2 )
const ( TargetHeatingCoolingStateOff int = 0 TargetHeatingCoolingStateHeat int = 1 TargetHeatingCoolingStateCool int = 2 TargetHeatingCoolingStateAuto int = 3 )
const ( TargetHumidifierDehumidifierStateHumidifierOrDehumidifier int = 0 TargetHumidifierDehumidifierStateHumidifier int = 1 TargetHumidifierDehumidifierStateDehumidifier int = 2 )
const ( TargetMediaStatePlay int = 0 TargetMediaStatePause int = 1 TargetMediaStateStop int = 2 )
const ( TargetSlatStateManual int = 0 TargetSlatStateAuto int = 1 )
const ( TargetVisibilityStateShown int = 0 TargetVisibilityStateHidden int = 1 )
const ( TemperatureDisplayUnitsCelsius int = 0 TemperatureDisplayUnitsFahrenheit int = 1 )
const ( ValveTypeGenericValve int = 0 ValveTypeIrrigation int = 1 ValveTypeShowerHead int = 2 ValveTypeWaterFaucet int = 3 )
const ( VolumeControlTypeNone int = 0 VolumeControlTypeRelative int = 1 VolumeControlTypeRelativeWithCurrent int = 2 VolumeControlTypeAbsolute int = 3 )
const ( VolumeSelectorIncrement int = 0 VolumeSelectorDecrement int = 1 )
const TypeAccessoryFlags = "A6"
const TypeAccessoryIdentifier = "57"
const TypeActive = "B0"
const TypeActiveIdentifier = "E7"
const TypeAdministratorOnlyAccess = "1"
const TypeAirParticulateDensity = "64"
const TypeAirParticulateSize = "65"
const TypeAirQuality = "95"
const TypeAppMatchingIdentifier = "A4"
const TypeAudioFeedback = "5"
const TypeBatteryLevel = "68"
const TypeBrightness = "8"
const TypeCarbonDioxideDetected = "92"
const TypeCarbonDioxideLevel = "93"
const TypeCarbonDioxidePeakLevel = "94"
const TypeCarbonMonoxideDetected = "69"
const TypeCarbonMonoxideLevel = "90"
const TypeCarbonMonoxidePeakLevel = "91"
const TypeCategory = "A3"
const TypeChargingState = "8F"
const TypeClosedCaptions = "DD"
const TypeColorTemperature = "CE"
const TypeConfigureBridgedAccessory = "A0"
const TypeConfigureBridgedAccessoryStatus = "9D"
const TypeConfiguredName = "E3"
const TypeContactSensorState = "6A"
const TypeCoolingThresholdTemperature = "D"
const TypeCurrentAirPurifierState = "A9"
const TypeCurrentAmbientLightLevel = "6B"
const TypeCurrentDoorState = "E"
const TypeCurrentFanState = "AF"
const TypeCurrentHeaterCoolerState = "B1"
const TypeCurrentHeatingCoolingState = "F"
const TypeCurrentHorizontalTiltAngle = "6C"
const TypeCurrentHumidifierDehumidifierState = "B3"
const TypeCurrentMediaState = "E0"
const TypeCurrentPosition = "6D"
const TypeCurrentRelativeHumidity = "10"
const TypeCurrentSlatState = "AA"
const TypeCurrentTemperature = "11"
const TypeCurrentTiltAngle = "C1"
const TypeCurrentTime = "9B"
const TypeCurrentTransport = "22B"
const TypeCurrentVerticalTiltAngle = "6E"
const TypeCurrentVisibilityState = "135"
const TypeDayOfTheWeek = "98"
const TypeDigitalZoom = "11D"
const TypeDiscoverBridgedAccessories = "9E"
const TypeDiscoveredBridgedAccessories = "9F"
const TypeDisplayOrder = "136"
const TypeFilterChangeIndication = "AC"
const TypeFilterLifeLevel = "AB"
const TypeFirmwareRevision = "52"
const TypeHardwareRevision = "53"
const TypeHeatingThresholdTemperature = "12"
const TypeHoldPosition = "6F"
const TypeHue = "13"
const TypeIdentifier = "E6"
const TypeIdentify = "14"
const TypeImageMirroring = "11F"
const TypeImageRotation = "11E"
const TypeInUse = "D2"
const TypeInputDeviceType = "DC"
const TypeInputSourceType = "DB"
const TypeIsConfigured = "D6"
const TypeLeakDetected = "70"
const TypeLinkQuality = "9C"
const TypeLockControlPoint = "19"
const TypeLockCurrentState = "1D"
const TypeLockLastKnownAction = "1C"
const TypeLockManagementAutoSecurityTimeout = "1A"
const TypeLockPhysicalControls = "A7"
const TypeLockTargetState = "1E"
const TypeLogs = "1F"
const TypeManufacturer = "20"
const TypeModel = "21"
const TypeMotionDetected = "22"
const TypeMute = "11A"
const TypeName = "23"
const TypeNightVision = "11B"
const TypeNitrogenDioxideDensity = "C4"
const TypeObstructionDetected = "24"
const TypeOccupancyDetected = "71"
const TypeOn = "25"
const TypeOpticalZoom = "11C"
const TypeOutletInUse = "26"
const TypeOzoneDensity = "C3"
const TypePM10Density = "C7"
const TypePM2_5Density = "C6"
const TypePairSetup = "4C"
const TypePairVerify = "4E"
const TypePairingFeatures = "4F"
const TypePairingPairings = "50"
const TypePictureMode = "E2"
const TypePositionState = "72"
const TypePowerModeSelection = "DF"
const TypeProgramMode = "D1"
const TypeProgrammableSwitchEvent = "73"
const TypeProgrammableSwitchOutputState = "74"
const TypeReachable = "63"
const TypeRelativeHumidityDehumidifierThreshold = "C9"
const TypeRelativeHumidityHumidifierThreshold = "CA"
const TypeRemainingDuration = "D4"
const TypeRemoteKey = "E1"
const TypeResetFilterIndication = "AD"
const TypeRotationDirection = "28"
const TypeRotationSpeed = "29"
const TypeSaturation = "2F"
const TypeSecuritySystemAlarmType = "8E"
const TypeSecuritySystemCurrentState = "66"
const TypeSecuritySystemTargetState = "67"
const TypeSelectedCameraRecordingConfiguration = "209"
const TypeSelectedRTPStreamConfiguration = "117"
const TypeSelectedStreamConfiguration = "117"
const TypeSerialNumber = "30"
const TypeServiceLabelIndex = "CB"
const TypeServiceLabelNamespace = "CD"
const TypeSetDuration = "D3"
const TypeSetupEndpoints = "118"
const TypeSlatType = "C0"
const TypeSleepDiscoveryMode = "E8"
const TypeSmokeDetected = "76"
const TypeSoftwareRevision = "54"
const TypeStatusActive = "75"
const TypeStatusFault = "77"
const TypeStatusJammed = "78"
const TypeStatusLowBattery = "79"
const TypeStatusTampered = "7A"
const TypeStreamingStatus = "120"
const TypeSulphurDioxideDensity = "C5"
const TypeSupportedAudioRecordingConfiguration = "207"
const TypeSupportedAudioStreamConfiguration = "115"
const TypeSupportedCameraRecordingConfiguration = "205"
const TypeSupportedRTPConfiguration = "116"
const TypeSupportedVideoRecordingConfiguration = "206"
const TypeSupportedVideoStreamConfiguration = "114"
const TypeSwingMode = "B6"
const TypeTargetAirPurifierState = "A8"
const TypeTargetAirQuality = "AE"
const TypeTargetDoorState = "32"
const TypeTargetFanState = "BF"
const TypeTargetHeaterCoolerState = "B2"
const TypeTargetHeatingCoolingState = "33"
const TypeTargetHorizontalTiltAngle = "7B"
const TypeTargetHumidifierDehumidifierState = "B4"
const TypeTargetMediaState = "137"
const TypeTargetPosition = "7C"
const TypeTargetRelativeHumidity = "34"
const TypeTargetSlatState = "BE"
const TypeTargetTemperature = "35"
const TypeTargetTiltAngle = "C2"
const TypeTargetVerticalTiltAngle = "7D"
const TypeTargetVisibilityState = "134"
const TypeTemperatureDisplayUnits = "36"
const TypeTimeUpdate = "9A"
const TypeTunnelConnectionTimeout = "61"
const TypeTunneledAccessoryAdvertising = "60"
const TypeTunneledAccessoryConnected = "59"
const TypeTunneledAccessoryStateNumber = "58"
const TypeVOCDensity = "C8"
const TypeValveType = "D5"
const TypeVersion = "37"
const TypeVolume = "119"
const TypeVolumeControlType = "E9"
const TypeVolumeSelector = "EA"
const TypeWaterLevel = "B5"
const TypeWifiCapabilities = "22C"
const TypeWifiConfigurationControl = "22D"
Variables ¶
var TestConn net.Conn = &fakeConn{}
Functions ¶
Types ¶
type AccessoryFlags ¶
type AccessoryFlags struct {
*Int
}
func NewAccessoryFlags ¶
func NewAccessoryFlags() *AccessoryFlags
type AccessoryIdentifier ¶
type AccessoryIdentifier struct {
*String
}
func NewAccessoryIdentifier ¶
func NewAccessoryIdentifier() *AccessoryIdentifier
type ActiveIdentifier ¶
type ActiveIdentifier struct {
*Int
}
func NewActiveIdentifier ¶
func NewActiveIdentifier() *ActiveIdentifier
type AdministratorOnlyAccess ¶
type AdministratorOnlyAccess struct {
*Bool
}
func NewAdministratorOnlyAccess ¶
func NewAdministratorOnlyAccess() *AdministratorOnlyAccess
type AirParticulateDensity ¶
type AirParticulateDensity struct {
*Float
}
func NewAirParticulateDensity ¶
func NewAirParticulateDensity() *AirParticulateDensity
type AirParticulateSize ¶
type AirParticulateSize struct {
*Int
}
func NewAirParticulateSize ¶
func NewAirParticulateSize() *AirParticulateSize
type AirQuality ¶
type AirQuality struct {
*Int
}
func NewAirQuality ¶
func NewAirQuality() *AirQuality
type AppMatchingIdentifier ¶
type AppMatchingIdentifier struct {
*Bytes
}
func NewAppMatchingIdentifier ¶
func NewAppMatchingIdentifier() *AppMatchingIdentifier
type AudioFeedback ¶
type AudioFeedback struct {
*Bool
}
func NewAudioFeedback ¶
func NewAudioFeedback() *AudioFeedback
type BatteryLevel ¶
type BatteryLevel struct {
*Int
}
func NewBatteryLevel ¶
func NewBatteryLevel() *BatteryLevel
type Bool ¶
type Bool struct {
*Characteristic
}
func (*Bool) OnValueRemoteGet ¶
OnValueRemoteGet calls fn when the value was read by a client.
func (*Bool) OnValueRemoteUpdate ¶
OnValueRemoteUpdate calls fn when the value was updated by a client.
type Brightness ¶
type Brightness struct {
*Int
}
func NewBrightness ¶
func NewBrightness() *Brightness
type CarbonDioxideDetected ¶
type CarbonDioxideDetected struct {
*Int
}
func NewCarbonDioxideDetected ¶
func NewCarbonDioxideDetected() *CarbonDioxideDetected
type CarbonDioxideLevel ¶
type CarbonDioxideLevel struct {
*Float
}
func NewCarbonDioxideLevel ¶
func NewCarbonDioxideLevel() *CarbonDioxideLevel
type CarbonDioxidePeakLevel ¶
type CarbonDioxidePeakLevel struct {
*Float
}
func NewCarbonDioxidePeakLevel ¶
func NewCarbonDioxidePeakLevel() *CarbonDioxidePeakLevel
type CarbonMonoxideDetected ¶
type CarbonMonoxideDetected struct {
*Int
}
func NewCarbonMonoxideDetected ¶
func NewCarbonMonoxideDetected() *CarbonMonoxideDetected
type CarbonMonoxideLevel ¶
type CarbonMonoxideLevel struct {
*Float
}
func NewCarbonMonoxideLevel ¶
func NewCarbonMonoxideLevel() *CarbonMonoxideLevel
type CarbonMonoxidePeakLevel ¶
type CarbonMonoxidePeakLevel struct {
*Float
}
func NewCarbonMonoxidePeakLevel ¶
func NewCarbonMonoxidePeakLevel() *CarbonMonoxidePeakLevel
type ChangeFunc ¶
type ChangeFunc func(c *Characteristic, newValue, oldValue interface{})
type Characteristic ¶
type Characteristic struct { ID uint64 `json:"iid"` // managed by accessory Type string `json:"type"` Perms []string `json:"perms"` Description string `json:"description,omitempty"` // manufacturer description (optional) Value interface{} `json:"value,omitempty"` // nil for write-only characteristics Format string `json:"format"` Unit string `json:"unit,omitempty"` MaxLen int `json:"maxLen,omitempty"` MaxValue interface{} `json:"maxValue,omitempty"` MinValue interface{} `json:"minValue,omitempty"` StepValue interface{} `json:"minStep,omitempty"` // unused Events bool `json:"-"` // contains filtered or unexported fields }
Characteristic is a HomeKit characteristic.
func NewCharacteristic ¶
func NewCharacteristic(typ string) *Characteristic
NewCharacteristic returns a characteristic If no permissions are specified, the value of PermsAll() is used.
If permissions are write-only the setter methods (UpdateValue and UpdateValueFromRemote) don't set the Value field. The OnLocalChange and OnRemoteChange have the new value set as expect, but characteristics current and old value are nil.
func (*Characteristic) Equal ¶
func (c *Characteristic) Equal(other interface{}) bool
Equal returns true when receiver has the values as the argument.
func (*Characteristic) GetValue ¶
func (c *Characteristic) GetValue() interface{}
func (*Characteristic) GetValueFromConnection ¶
func (c *Characteristic) GetValueFromConnection(conn net.Conn) interface{}
func (*Characteristic) IsObservable ¶ added in v1.2.3
func (c *Characteristic) IsObservable() bool
func (*Characteristic) IsReadable ¶ added in v1.2.3
func (c *Characteristic) IsReadable() bool
func (*Characteristic) IsWritable ¶ added in v1.2.3
func (c *Characteristic) IsWritable() bool
func (*Characteristic) OnValueGet ¶
func (c *Characteristic) OnValueGet(fn GetFunc)
func (*Characteristic) OnValueUpdate ¶
func (c *Characteristic) OnValueUpdate(fn ChangeFunc)
func (*Characteristic) OnValueUpdateFromConn ¶
func (c *Characteristic) OnValueUpdateFromConn(fn ConnChangeFunc)
func (*Characteristic) UpdateValue ¶
func (c *Characteristic) UpdateValue(value interface{})
func (*Characteristic) UpdateValueFromConnection ¶
func (c *Characteristic) UpdateValueFromConnection(value interface{}, conn net.Conn)
type ChargingState ¶
type ChargingState struct {
*Int
}
func NewChargingState ¶
func NewChargingState() *ChargingState
type ClosedCaptions ¶
type ClosedCaptions struct {
*Int
}
func NewClosedCaptions ¶
func NewClosedCaptions() *ClosedCaptions
type ColorTemperature ¶
type ColorTemperature struct {
*Int
}
func NewColorTemperature ¶
func NewColorTemperature() *ColorTemperature
type ConfigureBridgedAccessory ¶
type ConfigureBridgedAccessory struct {
*Bytes
}
func NewConfigureBridgedAccessory ¶
func NewConfigureBridgedAccessory() *ConfigureBridgedAccessory
type ConfigureBridgedAccessoryStatus ¶
type ConfigureBridgedAccessoryStatus struct {
*Bytes
}
func NewConfigureBridgedAccessoryStatus ¶
func NewConfigureBridgedAccessoryStatus() *ConfigureBridgedAccessoryStatus
type ConfiguredName ¶
type ConfiguredName struct {
*String
}
func NewConfiguredName ¶
func NewConfiguredName() *ConfiguredName
type ConnChangeFunc ¶
type ConnChangeFunc func(conn net.Conn, c *Characteristic, newValue, oldValue interface{})
type ContactSensorState ¶
type ContactSensorState struct {
*Int
}
func NewContactSensorState ¶
func NewContactSensorState() *ContactSensorState
type CoolingThresholdTemperature ¶
type CoolingThresholdTemperature struct {
*Float
}
func NewCoolingThresholdTemperature ¶
func NewCoolingThresholdTemperature() *CoolingThresholdTemperature
type CurrentAirPurifierState ¶
type CurrentAirPurifierState struct {
*Int
}
func NewCurrentAirPurifierState ¶
func NewCurrentAirPurifierState() *CurrentAirPurifierState
type CurrentAmbientLightLevel ¶
type CurrentAmbientLightLevel struct {
*Float
}
func NewCurrentAmbientLightLevel ¶
func NewCurrentAmbientLightLevel() *CurrentAmbientLightLevel
type CurrentDoorState ¶
type CurrentDoorState struct {
*Int
}
func NewCurrentDoorState ¶
func NewCurrentDoorState() *CurrentDoorState
type CurrentFanState ¶
type CurrentFanState struct {
*Int
}
func NewCurrentFanState ¶
func NewCurrentFanState() *CurrentFanState
type CurrentHeaterCoolerState ¶
type CurrentHeaterCoolerState struct {
*Int
}
func NewCurrentHeaterCoolerState ¶
func NewCurrentHeaterCoolerState() *CurrentHeaterCoolerState
type CurrentHeatingCoolingState ¶
type CurrentHeatingCoolingState struct {
*Int
}
func NewCurrentHeatingCoolingState ¶
func NewCurrentHeatingCoolingState() *CurrentHeatingCoolingState
type CurrentHorizontalTiltAngle ¶
type CurrentHorizontalTiltAngle struct {
*Int
}
func NewCurrentHorizontalTiltAngle ¶
func NewCurrentHorizontalTiltAngle() *CurrentHorizontalTiltAngle
type CurrentHumidifierDehumidifierState ¶
type CurrentHumidifierDehumidifierState struct {
*Int
}
func NewCurrentHumidifierDehumidifierState ¶
func NewCurrentHumidifierDehumidifierState() *CurrentHumidifierDehumidifierState
type CurrentMediaState ¶
type CurrentMediaState struct {
*Int
}
func NewCurrentMediaState ¶
func NewCurrentMediaState() *CurrentMediaState
type CurrentPosition ¶
type CurrentPosition struct {
*Int
}
func NewCurrentPosition ¶
func NewCurrentPosition() *CurrentPosition
type CurrentRelativeHumidity ¶
type CurrentRelativeHumidity struct {
*Float
}
func NewCurrentRelativeHumidity ¶
func NewCurrentRelativeHumidity() *CurrentRelativeHumidity
type CurrentSlatState ¶
type CurrentSlatState struct {
*Int
}
func NewCurrentSlatState ¶
func NewCurrentSlatState() *CurrentSlatState
type CurrentTemperature ¶
type CurrentTemperature struct {
*Float
}
func NewCurrentTemperature ¶
func NewCurrentTemperature() *CurrentTemperature
type CurrentTiltAngle ¶
type CurrentTiltAngle struct {
*Int
}
func NewCurrentTiltAngle ¶
func NewCurrentTiltAngle() *CurrentTiltAngle
type CurrentTime ¶
type CurrentTime struct {
*String
}
func NewCurrentTime ¶
func NewCurrentTime() *CurrentTime
type CurrentTransport ¶ added in v1.2.5
type CurrentTransport struct {
*Bool
}
func NewCurrentTransport ¶ added in v1.2.5
func NewCurrentTransport() *CurrentTransport
type CurrentVerticalTiltAngle ¶
type CurrentVerticalTiltAngle struct {
*Int
}
func NewCurrentVerticalTiltAngle ¶
func NewCurrentVerticalTiltAngle() *CurrentVerticalTiltAngle
type CurrentVisibilityState ¶
type CurrentVisibilityState struct {
*Int
}
func NewCurrentVisibilityState ¶
func NewCurrentVisibilityState() *CurrentVisibilityState
type DayOfTheWeek ¶
type DayOfTheWeek struct {
*Int
}
func NewDayOfTheWeek ¶
func NewDayOfTheWeek() *DayOfTheWeek
type DigitalZoom ¶
type DigitalZoom struct {
*Float
}
func NewDigitalZoom ¶
func NewDigitalZoom() *DigitalZoom
type DiscoverBridgedAccessories ¶
type DiscoverBridgedAccessories struct {
*Int
}
func NewDiscoverBridgedAccessories ¶
func NewDiscoverBridgedAccessories() *DiscoverBridgedAccessories
type DiscoveredBridgedAccessories ¶
type DiscoveredBridgedAccessories struct {
*Int
}
func NewDiscoveredBridgedAccessories ¶
func NewDiscoveredBridgedAccessories() *DiscoveredBridgedAccessories
type DisplayOrder ¶
type DisplayOrder struct {
*Bytes
}
func NewDisplayOrder ¶
func NewDisplayOrder() *DisplayOrder
type FilterChangeIndication ¶
type FilterChangeIndication struct {
*Int
}
func NewFilterChangeIndication ¶
func NewFilterChangeIndication() *FilterChangeIndication
type FilterLifeLevel ¶
type FilterLifeLevel struct {
*Float
}
func NewFilterLifeLevel ¶
func NewFilterLifeLevel() *FilterLifeLevel
type FirmwareRevision ¶
type FirmwareRevision struct {
*String
}
func NewFirmwareRevision ¶
func NewFirmwareRevision() *FirmwareRevision
type Float ¶
type Float struct {
*Characteristic
}
func (*Float) GetMaxValue ¶
func (*Float) GetMinValue ¶
func (*Float) GetStepValue ¶
func (*Float) OnValueRemoteGet ¶
OnValueRemoteGet calls fn when the value was read by a client.
func (*Float) OnValueRemoteUpdate ¶
OnValueRemoteUpdate calls fn when the value was updated by a client.
func (*Float) SetMaxValue ¶
func (*Float) SetMinValue ¶
func (*Float) SetStepValue ¶
type HardwareRevision ¶
type HardwareRevision struct {
*String
}
func NewHardwareRevision ¶
func NewHardwareRevision() *HardwareRevision
type HeatingThresholdTemperature ¶
type HeatingThresholdTemperature struct {
*Float
}
func NewHeatingThresholdTemperature ¶
func NewHeatingThresholdTemperature() *HeatingThresholdTemperature
type HoldPosition ¶
type HoldPosition struct {
*Bool
}
func NewHoldPosition ¶
func NewHoldPosition() *HoldPosition
type Identifier ¶
type Identifier struct {
*Int
}
func NewIdentifier ¶
func NewIdentifier() *Identifier
type ImageMirroring ¶
type ImageMirroring struct {
*Bool
}
func NewImageMirroring ¶
func NewImageMirroring() *ImageMirroring
type ImageRotation ¶
type ImageRotation struct {
*Float
}
func NewImageRotation ¶
func NewImageRotation() *ImageRotation
type InputDeviceType ¶
type InputDeviceType struct {
*Int
}
func NewInputDeviceType ¶
func NewInputDeviceType() *InputDeviceType
type InputSourceType ¶
type InputSourceType struct {
*Int
}
func NewInputSourceType ¶
func NewInputSourceType() *InputSourceType
type Int ¶
type Int struct {
*Characteristic
}
func (*Int) GetMaxValue ¶
func (*Int) GetMinValue ¶
func (*Int) GetStepValue ¶
func (*Int) OnValueRemoteGet ¶
OnValueRemoteGet calls fn when the value was read by a client.
func (*Int) OnValueRemoteUpdate ¶
OnValueRemoteUpdate calls fn when the value was updated by a client.
func (*Int) SetMaxValue ¶
func (*Int) SetMinValue ¶
func (*Int) SetStepValue ¶
type IsConfigured ¶
type IsConfigured struct {
*Int
}
func NewIsConfigured ¶
func NewIsConfigured() *IsConfigured
type LeakDetected ¶
type LeakDetected struct {
*Int
}
func NewLeakDetected ¶
func NewLeakDetected() *LeakDetected
type LinkQuality ¶
type LinkQuality struct {
*Int
}
func NewLinkQuality ¶
func NewLinkQuality() *LinkQuality
type LockControlPoint ¶
type LockControlPoint struct {
*Bytes
}
func NewLockControlPoint ¶
func NewLockControlPoint() *LockControlPoint
type LockCurrentState ¶
type LockCurrentState struct {
*Int
}
func NewLockCurrentState ¶
func NewLockCurrentState() *LockCurrentState
type LockLastKnownAction ¶
type LockLastKnownAction struct {
*Int
}
func NewLockLastKnownAction ¶
func NewLockLastKnownAction() *LockLastKnownAction
type LockManagementAutoSecurityTimeout ¶
type LockManagementAutoSecurityTimeout struct {
*Int
}
func NewLockManagementAutoSecurityTimeout ¶
func NewLockManagementAutoSecurityTimeout() *LockManagementAutoSecurityTimeout
type LockPhysicalControls ¶
type LockPhysicalControls struct {
*Int
}
func NewLockPhysicalControls ¶
func NewLockPhysicalControls() *LockPhysicalControls
type LockTargetState ¶
type LockTargetState struct {
*Int
}
func NewLockTargetState ¶
func NewLockTargetState() *LockTargetState
type Manufacturer ¶
type Manufacturer struct {
*String
}
func NewManufacturer ¶
func NewManufacturer() *Manufacturer
type MotionDetected ¶
type MotionDetected struct {
*Bool
}
func NewMotionDetected ¶
func NewMotionDetected() *MotionDetected
type NightVision ¶
type NightVision struct {
*Bool
}
func NewNightVision ¶
func NewNightVision() *NightVision
type NitrogenDioxideDensity ¶
type NitrogenDioxideDensity struct {
*Float
}
func NewNitrogenDioxideDensity ¶
func NewNitrogenDioxideDensity() *NitrogenDioxideDensity
type ObstructionDetected ¶
type ObstructionDetected struct {
*Bool
}
func NewObstructionDetected ¶
func NewObstructionDetected() *ObstructionDetected
type OccupancyDetected ¶
type OccupancyDetected struct {
*Int
}
func NewOccupancyDetected ¶
func NewOccupancyDetected() *OccupancyDetected
type OpticalZoom ¶
type OpticalZoom struct {
*Float
}
func NewOpticalZoom ¶
func NewOpticalZoom() *OpticalZoom
type OutletInUse ¶
type OutletInUse struct {
*Bool
}
func NewOutletInUse ¶
func NewOutletInUse() *OutletInUse
type OzoneDensity ¶
type OzoneDensity struct {
*Float
}
func NewOzoneDensity ¶
func NewOzoneDensity() *OzoneDensity
type PM10Density ¶
type PM10Density struct {
*Float
}
func NewPM10Density ¶
func NewPM10Density() *PM10Density
type PM2_5Density ¶
type PM2_5Density struct {
*Float
}
func NewPM2_5Density ¶
func NewPM2_5Density() *PM2_5Density
type PairSetup ¶
type PairSetup struct {
*Bytes
}
func NewPairSetup ¶
func NewPairSetup() *PairSetup
type PairVerify ¶
type PairVerify struct {
*Bytes
}
func NewPairVerify ¶
func NewPairVerify() *PairVerify
type PairingFeatures ¶
type PairingFeatures struct {
*Int
}
func NewPairingFeatures ¶
func NewPairingFeatures() *PairingFeatures
type PairingPairings ¶
type PairingPairings struct {
*Bytes
}
func NewPairingPairings ¶
func NewPairingPairings() *PairingPairings
type PictureMode ¶
type PictureMode struct {
*Int
}
func NewPictureMode ¶
func NewPictureMode() *PictureMode
type PositionState ¶
type PositionState struct {
*Int
}
func NewPositionState ¶
func NewPositionState() *PositionState
type PowerModeSelection ¶
type PowerModeSelection struct {
*Int
}
func NewPowerModeSelection ¶
func NewPowerModeSelection() *PowerModeSelection
type ProgramMode ¶
type ProgramMode struct {
*Int
}
func NewProgramMode ¶
func NewProgramMode() *ProgramMode
type ProgrammableSwitchEvent ¶
type ProgrammableSwitchEvent struct {
*Int
}
func NewProgrammableSwitchEvent ¶
func NewProgrammableSwitchEvent() *ProgrammableSwitchEvent
type ProgrammableSwitchOutputState ¶
type ProgrammableSwitchOutputState struct {
*Int
}
func NewProgrammableSwitchOutputState ¶
func NewProgrammableSwitchOutputState() *ProgrammableSwitchOutputState
type RelativeHumidityDehumidifierThreshold ¶
type RelativeHumidityDehumidifierThreshold struct {
*Float
}
func NewRelativeHumidityDehumidifierThreshold ¶
func NewRelativeHumidityDehumidifierThreshold() *RelativeHumidityDehumidifierThreshold
type RelativeHumidityHumidifierThreshold ¶
type RelativeHumidityHumidifierThreshold struct {
*Float
}
func NewRelativeHumidityHumidifierThreshold ¶
func NewRelativeHumidityHumidifierThreshold() *RelativeHumidityHumidifierThreshold
type RemainingDuration ¶
type RemainingDuration struct {
*Int
}
func NewRemainingDuration ¶
func NewRemainingDuration() *RemainingDuration
type ResetFilterIndication ¶
type ResetFilterIndication struct {
*Int
}
func NewResetFilterIndication ¶
func NewResetFilterIndication() *ResetFilterIndication
type RotationDirection ¶
type RotationDirection struct {
*Int
}
func NewRotationDirection ¶
func NewRotationDirection() *RotationDirection
type RotationSpeed ¶
type RotationSpeed struct {
*Float
}
func NewRotationSpeed ¶
func NewRotationSpeed() *RotationSpeed
type Saturation ¶
type Saturation struct {
*Float
}
func NewSaturation ¶
func NewSaturation() *Saturation
type SecuritySystemAlarmType ¶
type SecuritySystemAlarmType struct {
*Int
}
func NewSecuritySystemAlarmType ¶
func NewSecuritySystemAlarmType() *SecuritySystemAlarmType
type SecuritySystemCurrentState ¶
type SecuritySystemCurrentState struct {
*Int
}
func NewSecuritySystemCurrentState ¶
func NewSecuritySystemCurrentState() *SecuritySystemCurrentState
type SecuritySystemTargetState ¶
type SecuritySystemTargetState struct {
*Int
}
func NewSecuritySystemTargetState ¶
func NewSecuritySystemTargetState() *SecuritySystemTargetState
type SelectedCameraRecordingConfiguration ¶ added in v1.2.0
type SelectedCameraRecordingConfiguration struct {
*Bytes
}
func NewSelectedCameraRecordingConfiguration ¶ added in v1.2.0
func NewSelectedCameraRecordingConfiguration() *SelectedCameraRecordingConfiguration
type SelectedRTPStreamConfiguration ¶
type SelectedRTPStreamConfiguration struct {
*Bytes
}
func NewSelectedRTPStreamConfiguration ¶
func NewSelectedRTPStreamConfiguration() *SelectedRTPStreamConfiguration
type SelectedStreamConfiguration ¶
type SelectedStreamConfiguration struct {
*Bytes
}
func NewSelectedStreamConfiguration ¶
func NewSelectedStreamConfiguration() *SelectedStreamConfiguration
type SerialNumber ¶
type SerialNumber struct {
*String
}
func NewSerialNumber ¶
func NewSerialNumber() *SerialNumber
type ServiceLabelIndex ¶
type ServiceLabelIndex struct {
*Int
}
func NewServiceLabelIndex ¶
func NewServiceLabelIndex() *ServiceLabelIndex
type ServiceLabelNamespace ¶
type ServiceLabelNamespace struct {
*Int
}
func NewServiceLabelNamespace ¶
func NewServiceLabelNamespace() *ServiceLabelNamespace
type SetDuration ¶
type SetDuration struct {
*Int
}
func NewSetDuration ¶
func NewSetDuration() *SetDuration
type SetupEndpoints ¶
type SetupEndpoints struct {
*Bytes
}
func NewSetupEndpoints ¶
func NewSetupEndpoints() *SetupEndpoints
type SleepDiscoveryMode ¶
type SleepDiscoveryMode struct {
*Int
}
func NewSleepDiscoveryMode ¶
func NewSleepDiscoveryMode() *SleepDiscoveryMode
type SmokeDetected ¶
type SmokeDetected struct {
*Int
}
func NewSmokeDetected ¶
func NewSmokeDetected() *SmokeDetected
type SoftwareRevision ¶
type SoftwareRevision struct {
*String
}
func NewSoftwareRevision ¶
func NewSoftwareRevision() *SoftwareRevision
type StatusActive ¶
type StatusActive struct {
*Bool
}
func NewStatusActive ¶
func NewStatusActive() *StatusActive
type StatusFault ¶
type StatusFault struct {
*Int
}
func NewStatusFault ¶
func NewStatusFault() *StatusFault
type StatusJammed ¶
type StatusJammed struct {
*Int
}
func NewStatusJammed ¶
func NewStatusJammed() *StatusJammed
type StatusLowBattery ¶
type StatusLowBattery struct {
*Int
}
func NewStatusLowBattery ¶
func NewStatusLowBattery() *StatusLowBattery
type StatusTampered ¶
type StatusTampered struct {
*Int
}
func NewStatusTampered ¶
func NewStatusTampered() *StatusTampered
type StreamingStatus ¶
type StreamingStatus struct {
*Bytes
}
func NewStreamingStatus ¶
func NewStreamingStatus() *StreamingStatus
type String ¶
type String struct {
*Characteristic
}
func (*String) OnValueRemoteGet ¶
OnValueRemoteGet calls fn when the value was read by a client.
func (*String) OnValueRemoteUpdate ¶
OnValueRemoteUpdate calls fn when the value was updated by a client.
type SulphurDioxideDensity ¶
type SulphurDioxideDensity struct {
*Float
}
func NewSulphurDioxideDensity ¶
func NewSulphurDioxideDensity() *SulphurDioxideDensity
type SupportedAudioRecordingConfiguration ¶ added in v1.2.0
type SupportedAudioRecordingConfiguration struct {
*Bytes
}
func NewSupportedAudioRecordingConfiguration ¶ added in v1.2.0
func NewSupportedAudioRecordingConfiguration() *SupportedAudioRecordingConfiguration
type SupportedAudioStreamConfiguration ¶
type SupportedAudioStreamConfiguration struct {
*Bytes
}
func NewSupportedAudioStreamConfiguration ¶
func NewSupportedAudioStreamConfiguration() *SupportedAudioStreamConfiguration
type SupportedCameraRecordingConfiguration ¶ added in v1.2.0
type SupportedCameraRecordingConfiguration struct {
*Bytes
}
func NewSupportedCameraRecordingConfiguration ¶ added in v1.2.0
func NewSupportedCameraRecordingConfiguration() *SupportedCameraRecordingConfiguration
type SupportedRTPConfiguration ¶
type SupportedRTPConfiguration struct {
*Bytes
}
func NewSupportedRTPConfiguration ¶
func NewSupportedRTPConfiguration() *SupportedRTPConfiguration
type SupportedVideoRecordingConfiguration ¶ added in v1.2.0
type SupportedVideoRecordingConfiguration struct {
*Bytes
}
func NewSupportedVideoRecordingConfiguration ¶ added in v1.2.0
func NewSupportedVideoRecordingConfiguration() *SupportedVideoRecordingConfiguration
type SupportedVideoStreamConfiguration ¶
type SupportedVideoStreamConfiguration struct {
*Bytes
}
func NewSupportedVideoStreamConfiguration ¶
func NewSupportedVideoStreamConfiguration() *SupportedVideoStreamConfiguration
type TargetAirPurifierState ¶
type TargetAirPurifierState struct {
*Int
}
func NewTargetAirPurifierState ¶
func NewTargetAirPurifierState() *TargetAirPurifierState
type TargetAirQuality ¶
type TargetAirQuality struct {
*Int
}
func NewTargetAirQuality ¶
func NewTargetAirQuality() *TargetAirQuality
type TargetDoorState ¶
type TargetDoorState struct {
*Int
}
func NewTargetDoorState ¶
func NewTargetDoorState() *TargetDoorState
type TargetFanState ¶
type TargetFanState struct {
*Int
}
func NewTargetFanState ¶
func NewTargetFanState() *TargetFanState
type TargetHeaterCoolerState ¶
type TargetHeaterCoolerState struct {
*Int
}
func NewTargetHeaterCoolerState ¶
func NewTargetHeaterCoolerState() *TargetHeaterCoolerState
type TargetHeatingCoolingState ¶
type TargetHeatingCoolingState struct {
*Int
}
func NewTargetHeatingCoolingState ¶
func NewTargetHeatingCoolingState() *TargetHeatingCoolingState
type TargetHorizontalTiltAngle ¶
type TargetHorizontalTiltAngle struct {
*Int
}
func NewTargetHorizontalTiltAngle ¶
func NewTargetHorizontalTiltAngle() *TargetHorizontalTiltAngle
type TargetHumidifierDehumidifierState ¶
type TargetHumidifierDehumidifierState struct {
*Int
}
func NewTargetHumidifierDehumidifierState ¶
func NewTargetHumidifierDehumidifierState() *TargetHumidifierDehumidifierState
type TargetMediaState ¶
type TargetMediaState struct {
*Int
}
func NewTargetMediaState ¶
func NewTargetMediaState() *TargetMediaState
type TargetPosition ¶
type TargetPosition struct {
*Int
}
func NewTargetPosition ¶
func NewTargetPosition() *TargetPosition
type TargetRelativeHumidity ¶
type TargetRelativeHumidity struct {
*Float
}
func NewTargetRelativeHumidity ¶
func NewTargetRelativeHumidity() *TargetRelativeHumidity
type TargetSlatState ¶
type TargetSlatState struct {
*Int
}
func NewTargetSlatState ¶
func NewTargetSlatState() *TargetSlatState
type TargetTemperature ¶
type TargetTemperature struct {
*Float
}
func NewTargetTemperature ¶
func NewTargetTemperature() *TargetTemperature
type TargetTiltAngle ¶
type TargetTiltAngle struct {
*Int
}
func NewTargetTiltAngle ¶
func NewTargetTiltAngle() *TargetTiltAngle
type TargetVerticalTiltAngle ¶
type TargetVerticalTiltAngle struct {
*Int
}
func NewTargetVerticalTiltAngle ¶
func NewTargetVerticalTiltAngle() *TargetVerticalTiltAngle
type TargetVisibilityState ¶
type TargetVisibilityState struct {
*Int
}
func NewTargetVisibilityState ¶
func NewTargetVisibilityState() *TargetVisibilityState
type TemperatureDisplayUnits ¶
type TemperatureDisplayUnits struct {
*Int
}
func NewTemperatureDisplayUnits ¶
func NewTemperatureDisplayUnits() *TemperatureDisplayUnits
type TimeUpdate ¶
type TimeUpdate struct {
*Bool
}
func NewTimeUpdate ¶
func NewTimeUpdate() *TimeUpdate
type TunnelConnectionTimeout ¶
type TunnelConnectionTimeout struct {
*Int
}
func NewTunnelConnectionTimeout ¶
func NewTunnelConnectionTimeout() *TunnelConnectionTimeout
type TunneledAccessoryAdvertising ¶
type TunneledAccessoryAdvertising struct {
*Bool
}
func NewTunneledAccessoryAdvertising ¶
func NewTunneledAccessoryAdvertising() *TunneledAccessoryAdvertising
type TunneledAccessoryConnected ¶
type TunneledAccessoryConnected struct {
*Bool
}
func NewTunneledAccessoryConnected ¶
func NewTunneledAccessoryConnected() *TunneledAccessoryConnected
type TunneledAccessoryStateNumber ¶
type TunneledAccessoryStateNumber struct {
*Float
}
func NewTunneledAccessoryStateNumber ¶
func NewTunneledAccessoryStateNumber() *TunneledAccessoryStateNumber
type VOCDensity ¶
type VOCDensity struct {
*Float
}
func NewVOCDensity ¶
func NewVOCDensity() *VOCDensity
type VolumeControlType ¶
type VolumeControlType struct {
*Int
}
func NewVolumeControlType ¶
func NewVolumeControlType() *VolumeControlType
type VolumeSelector ¶
type VolumeSelector struct {
*Int
}
func NewVolumeSelector ¶
func NewVolumeSelector() *VolumeSelector
type WaterLevel ¶
type WaterLevel struct {
*Float
}
func NewWaterLevel ¶
func NewWaterLevel() *WaterLevel
type WifiCapabilities ¶ added in v1.2.5
type WifiCapabilities = struct {
*Int
}
func NewWifiCapabilities ¶ added in v1.2.5
func NewWifiCapabilities() *WifiCapabilities
type WifiConfigurationControl ¶ added in v1.2.5
type WifiConfigurationControl = struct {
*Bytes
}
func NewWifiConfigurationControl ¶ added in v1.2.5
func NewWifiConfigurationControl() *WifiConfigurationControl
Source Files ¶
- accessory_flags.go
- accessory_identifier.go
- active.go
- active_identifier.go
- administrator_only_access.go
- air_particulate_density.go
- air_particulate_size.go
- air_quality.go
- app_matching_identifier.go
- audio_feedback.go
- battery_level.go
- bool.go
- brightness.go
- bytes.go
- carbon_dioxide_detected.go
- carbon_dioxide_level.go
- carbon_dioxide_peak_level.go
- carbon_monoxide_detected.go
- carbon_monoxide_level.go
- carbon_monoxide_peak_level.go
- category.go
- characteristic.go
- charging_state.go
- closed_captions.go
- color_temperature.go
- configure_bridged_accessory.go
- configure_bridged_accessory_status.go
- configured_name.go
- constants.go
- contact_sensor_state.go
- cooling_threshold_temperature.go
- current_air_purifier_state.go
- current_ambient_light_level.go
- current_door_state.go
- current_fan_state.go
- current_heater_cooler_state.go
- current_heating_cooling_state.go
- current_horizontal_tilt_angle.go
- current_humidifier_dehumidifier_state.go
- current_media_state.go
- current_position.go
- current_relative_humidity.go
- current_slat_state.go
- current_temperature.go
- current_tilt_angle.go
- current_time.go
- current_transport.go
- current_vertical_tilt_angle.go
- current_visibility_state.go
- day_of_the_week.go
- digital_zoom.go
- discover_bridged_accessories.go
- discovered_bridged_accessories.go
- display_order.go
- doc.go
- filter_change_indication.go
- filter_life_level.go
- firmware_revision.go
- float.go
- hardware_revision.go
- heating_threshold_temperature.go
- hold_position.go
- hue.go
- identifier.go
- identify.go
- image_mirroring.go
- image_rotation.go
- in_use.go
- input_device_type.go
- input_source_type.go
- int.go
- is_configured.go
- leak_detected.go
- link_quality.go
- lock_control_point.go
- lock_current_state.go
- lock_last_known_action.go
- lock_management_auto_security_timeout.go
- lock_physical_controls.go
- lock_target_state.go
- logs.go
- manufacturer.go
- model.go
- motion_detected.go
- mute.go
- name.go
- night_vision.go
- nitrogen_dioxide_density.go
- obstruction_detected.go
- occupancy_detected.go
- on.go
- optical_zoom.go
- outlet_in_use.go
- ozone_density.go
- pair_setup.go
- pair_verify.go
- pairing_features.go
- pairing_pairings.go
- picture_mode.go
- pm10_density.go
- pm2_5_density.go
- position_state.go
- power_mode_selection.go
- program_mode.go
- programmable_switch_event.go
- programmable_switch_output_state.go
- reachable.go
- relative_humidity_dehumidifier_threshold.go
- relative_humidity_humidifier_threshold.go
- remaining_duration.go
- remote_key.go
- reset_filter_indication.go
- rotation_direction.go
- rotation_speed.go
- saturation.go
- security_system_alarm_type.go
- security_system_current_state.go
- security_system_target_state.go
- selected_camera_recording_configuration.go
- selected_rtp_stream_configuration.go
- selected_stream_configuration.go
- serial_number.go
- service_label_index.go
- service_label_namespace.go
- set_duration.go
- setup_endpoints.go
- slat_type.go
- sleep_discovery_mode.go
- smoke_detected.go
- software_revision.go
- status_active.go
- status_fault.go
- status_jammed.go
- status_low_battery.go
- status_tampered.go
- streaming_status.go
- string.go
- sulphur_dioxide_density.go
- supported_audio_recording_configuration.go
- supported_audio_stream_configuration.go
- supported_camera_recording_configuration.go
- supported_rtp_configuration.go
- supported_video_recording_configuration.go
- supported_video_stream_configuration.go
- swing_mode.go
- target_air_purifier_state.go
- target_air_quality.go
- target_door_state.go
- target_fan_state.go
- target_heater_cooler_state.go
- target_heating_cooling_state.go
- target_horizontal_tilt_angle.go
- target_humidifier_dehumidifier_state.go
- target_media_state.go
- target_position.go
- target_relative_humidity.go
- target_slat_state.go
- target_temperature.go
- target_tilt_angle.go
- target_vertical_tilt_angle.go
- target_visibility_state.go
- temperature_display_units.go
- test_conn.go
- time_update.go
- tunnel_connection_timeout.go
- tunneled_accessory_advertising.go
- tunneled_accessory_connected.go
- tunneled_accessory_state_number.go
- valve_type.go
- version.go
- voc_density.go
- volume.go
- volume_control_type.go
- volume_selector.go
- water_level.go
- wifi_capabilities.go
- wifi_configuration_control.go