Documentation
¶
Index ¶
- Constants
- func NameForType(t string) string
- func ParseValueForType(t string, v string) (interface{}, error)
- func RegisterType(tm TypeMetadata)
- func ValueForFormat(f string, v Value) interface{}
- func ValueForType(t string, v Value) interface{}
- type AccessoryFlags
- type Active
- type ActiveIdentifier
- type AdministratorOnlyAccess
- type AirParticulateDensity
- type AirParticulateSize
- type AirQuality
- type AudioFeedback
- type BatteryLevel
- type Brightness
- type ButtonEvent
- type CarbonDioxideDetected
- type CarbonDioxideLevel
- type CarbonDioxidePeakLevel
- type CarbonMonoxideDetected
- type CarbonMonoxideLevel
- type CarbonMonoxidePeakLevel
- type ChargingState
- type ColorTemperature
- type ContactSensorState
- type CoolingThresholdTemperature
- type CurrentAirPurifierState
- type CurrentAmbientLightLevel
- type CurrentDoorState
- type CurrentFanState
- type CurrentHeaterCoolerState
- type CurrentHeatingCoolingState
- type CurrentHorizontalTiltAngle
- type CurrentHumidifierDehumidifierState
- type CurrentPosition
- type CurrentRelativeHumidity
- type CurrentSlatState
- type CurrentTemperature
- type CurrentTiltAngle
- type CurrentVerticalTiltAngle
- type DigitalZoom
- type FilterChangeIndication
- type FilterLifeLevel
- type FirmwareRevision
- type HardwareRevision
- type HeatingThresholdTemperature
- type HoldPosition
- type Hue
- type Identify
- type ImageMirroring
- type ImageRotation
- type InUse
- type IsConfigured
- type LeakDetected
- 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 PM25Density
- type PositionState
- type ProgramMode
- type ProgrammableSwitchEvent
- type RawCharacteristic
- type RelativeHumidityDehumidifierThreshold
- type RelativeHumidityHumidifierThreshold
- type RemainingDuration
- type ResetFilterIndication
- type RotationDirection
- type RotationSpeed
- type Saturation
- type SecuritySystemAlarmType
- type SecuritySystemCurrentState
- type SecuritySystemTargetState
- type SelectedAudioStreamConfiguration
- type SelectedRTPStreamConfiguration
- type SerialNumber
- type ServiceLabelIndex
- type ServiceLabelNamespace
- type SetDuration
- type SetupDataStreamTransport
- type SetupEndpoints
- type SiriInputType
- type SlatType
- type SmokeDetected
- type StatusActive
- type StatusFault
- type StatusJammed
- type StatusLowBattery
- type StatusTampered
- type StreamingStatus
- type SulphurDioxideDensity
- type SupportedAudioStreamConfiguration
- type SupportedDataStreamTransportConfiguration
- type SupportedRTPConfiguration
- type SupportedVideoStreamConfiguration
- type SwingMode
- type TargetAirPurifierState
- type TargetControlList
- type TargetControlSupportedConfiguration
- type TargetDoorState
- type TargetFanState
- type TargetHeaterCoolerState
- type TargetHeatingCoolingState
- type TargetHorizontalTiltAngle
- type TargetHumidifierDehumidifierState
- type TargetPosition
- type TargetRelativeHumidity
- type TargetTemperature
- type TargetTiltAngle
- type TargetVerticalTiltAngle
- type TemperatureDisplayUnits
- type TypeMetadata
- type UndefinedValue
- type UnknownType
- type VOCDensity
- type Value
- func (v Value) Bool() (bool, error)
- func (v Value) Byte() (byte, error)
- func (v Value) Bytes() ([]byte, error)
- func (v Value) Float64() (float64, error)
- func (v Value) Int32() (int32, error)
- func (v Value) MarshalJSON() ([]byte, error)
- func (v Value) MustBool() bool
- func (v Value) MustByte() byte
- func (v Value) MustBytes() []byte
- func (v Value) MustFloat64() float64
- func (v Value) MustInt32() int32
- func (v Value) MustString() string
- func (v Value) MustUint16() uint16
- func (v Value) MustUint32() uint32
- func (v Value) MustUint64() uint64
- func (v Value) String() (string, error)
- func (v Value) Uint16() (uint16, error)
- func (v Value) Uint32() (uint32, error)
- func (v Value) Uint64() (uint64, error)
- func (v *Value) UnmarshalJSON(data []byte) error
- type ValveType
- type Version
- type Volume
- type WaterLevel
Constants ¶
const ( TypeAccessoryFlags = "A6" TypeActive = "B0" TypeActiveIdentifier = "E7" TypeAdministratorOnlyAccess = "1" TypeAudioFeedback = "5" TypeAirParticulateDensity = "64" TypeAirParticulateSize = "65" TypeAirQuality = "95" TypeBatteryLevel = "68" TypeBrightness = "8" TypeButtonEvent = "126" TypeCarbonMonoxideLevel = "90" TypeCarbonMonoxidePeakLevel = "91" TypeCarbonDioxideDetected = "92" TypeCarbonDioxideLevel = "93" TypeCarbonDioxidePeakLevel = "94" TypeCarbonMonoxideDetected = "69" TypeChargingState = "8F" TypeCoolingThresholdTemperature = "D" TypeColorTemperature = "CE" TypeContactSensorState = "6A" TypeCurrentAmbientLightLevel = "6B" TypeCurrentHorizontalTiltAngle = "6C" TypeCurrentAirPurifierState = "A9" TypeCurrentSlatState = "AA" TypeCurrentPosition = "6D" TypeCurrentVerticalTiltAngle = "6E" TypeCurrentHumidifierDehumidifierState = "B3" TypeCurrentDoorState = "E" TypeCurrentFanState = "AF" TypeCurrentHeatingCoolingState = "F" TypeCurrentHeaterCoolerState = "B1" TypeCurrentRelativeHumidity = "10" TypeCurrentTemperature = "11" TypeCurrentTiltAngle = "C1" TypeDigitalZoom = "11D" TypeFilterLifeLevel = "AB" TypeFilterChangeIndication = "AC" TypeFirmwareRevision = "52" TypeHardwareRevision = "53" TypeHeatingThresholdTemperature = "12" TypeHoldPosition = "6F" TypeHue = "13" TypeIdentify = "14" TypeImageRotation = "11E" TypeImageMirroring = "11F" TypeInUse = "D2" TypeIsConfigured = "D6" TypeLeakDetected = "70" TypeLockControlPoint = "19" TypeLockCurrentState = "1D" TypeLockLastKnownAction = "1C" TypeLockManagementAutoSecurityTimeout = "1A" TypeLockPhysicalControls = "A7" TypeLockTargetState = "1E" TypeLogs = "1F" TypeManufacturer = "20" TypeModel = "21" TypeMotionDetected = "22" TypeMute = "11A" TypeName = "23" TypeNightVision = "11B" TypeNitrogenDioxideDensity = "C4" TypeObstructionDetected = "24" TypePM25Density = "C6" TypeOccupancyDetected = "71" TypeOpticalZoom = "11C" TypeOutletInUse = "26" TypeOn = "25" TypeOzoneDensity = "C3" TypePM10Density = "C7" TypePositionState = "72" TypeProgramMode = "D1" TypeProgrammableSwitchEvent = "73" TypeRelativeHumidityDehumidifierThreshold = "C9" TypeRelativeHumidityHumidifierThreshold = "CA" TypeRemainingDuration = "D4" TypeResetFilterIndication = "AD" TypeRotationDirection = "28" TypeRotationSpeed = "29" TypeSaturation = "2F" TypeSecuritySystemAlarmType = "8E" TypeSecuritySystemCurrentState = "66" TypeSecuritySystemTargetState = "67" TypeSelectedAudioStreamConfiguration = "128" TypeSerialNumber = "30" TypeServiceLabelIndex = "CB" TypeServiceLabelNamespace = "CD" TypeSetupDataStreamTransport = "131" TypeSelectedRTPStreamConfiguration = "117" TypeSetupEndpoints = "118" TypeSiriInputType = "132" TypeSlatType = "C0" TypeSmokeDetected = "76" TypeStatusActive = "75" TypeStatusFault = "77" TypeStatusJammed = "78" TypeStatusLowBattery = "79" TypeStatusTampered = "7A" TypeStreamingStatus = "120" TypeSupportedAudioStreamConfiguration = "115" TypeSupportedDataStreamTransportConfiguration = "130" TypeSupportedRTPConfiguration = "116" TypeSupportedVideoStreamConfiguration = "114" TypeSulphurDioxideDensity = "C5" TypeSwingMode = "B6" TypeTargetAirPurifierState = "A8" TypeTargetFanState = "BF" TypeTargetTiltAngle = "C2" TypeSetDuration = "D3" TypeTargetControlSupportedConfiguration = "123" TypeTargetControlList = "124" TypeTargetHorizontalTiltAngle = "7B" TypeTargetHeaterCoolerState = "B2" TypeTargetHumidifierDehumidifierState = "B4" TypeTargetPosition = "7C" TypeTargetDoorState = "32" TypeTargetHeatingCoolingState = "33" TypeTargetRelativeHumidity = "34" TypeTargetTemperature = "35" TypeTemperatureDisplayUnits = "36" TypeTargetVerticalTiltAngle = "7D" TypeValveType = "D5" TypeVersion = "37" TypeVOCDensity = "C8" TypeVolume = "119" TypeWaterLevel = "B5" )
Variables ¶
This section is empty.
Functions ¶
func NameForType ¶
NameForType returns a human friendly name for the type or "<Unknown>" if the type is not registered.
func ParseValueForType ¶
ParseValueForType parses a string value to go type defined by the type metadata's format.
func RegisterType ¶
func RegisterType(tm TypeMetadata)
RegisterType allows registering a custom type
func ValueForFormat ¶
ValueForFormat will parse v to the type matching the format. The value must match the format or this method will panic. If the format is unknown then an instance of UndefinedValue is returned.
func ValueForType ¶
ValueForType will parse v based on the format registered in the type's metadata.
Types ¶
type AccessoryFlags ¶
func ReadAccessoryFlags ¶
func ReadAccessoryFlags(ch *RawCharacteristic) *AccessoryFlags
type Active ¶
func ReadActive ¶
func ReadActive(ch *RawCharacteristic) *Active
type ActiveIdentifier ¶
func ReadActiveIdentifier ¶
func ReadActiveIdentifier(ch *RawCharacteristic) *ActiveIdentifier
type AdministratorOnlyAccess ¶
func ReadAdministratorOnlyAccess ¶
func ReadAdministratorOnlyAccess(ch *RawCharacteristic) *AdministratorOnlyAccess
type AirParticulateDensity ¶
func ReadAirParticulateDensity ¶
func ReadAirParticulateDensity(ch *RawCharacteristic) *AirParticulateDensity
type AirParticulateSize ¶
func ReadAirParticulateSize ¶
func ReadAirParticulateSize(ch *RawCharacteristic) *AirParticulateSize
type AirQuality ¶
func ReadAirQuality ¶
func ReadAirQuality(ch *RawCharacteristic) *AirQuality
type AudioFeedback ¶
func ReadAudioFeedback ¶
func ReadAudioFeedback(ch *RawCharacteristic) *AudioFeedback
type BatteryLevel ¶
func ReadBatteryLevel ¶
func ReadBatteryLevel(ch *RawCharacteristic) *BatteryLevel
type Brightness ¶
func ReadBrightness ¶
func ReadBrightness(ch *RawCharacteristic) *Brightness
type ButtonEvent ¶
func ReadButtonEvent ¶
func ReadButtonEvent(ch *RawCharacteristic) *ButtonEvent
type CarbonDioxideDetected ¶
func ReadCarbonDioxideDetected ¶
func ReadCarbonDioxideDetected(ch *RawCharacteristic) *CarbonDioxideDetected
type CarbonDioxideLevel ¶
func ReadCarbonDioxideLevel ¶
func ReadCarbonDioxideLevel(ch *RawCharacteristic) *CarbonDioxideLevel
type CarbonDioxidePeakLevel ¶
func ReadCarbonDioxidePeakLevel ¶
func ReadCarbonDioxidePeakLevel(ch *RawCharacteristic) *CarbonDioxidePeakLevel
type CarbonMonoxideDetected ¶
func ReadCarbonMonoxideDetected ¶
func ReadCarbonMonoxideDetected(ch *RawCharacteristic) *CarbonMonoxideDetected
type CarbonMonoxideLevel ¶
func ReadCarbonMonoxideLevel ¶
func ReadCarbonMonoxideLevel(ch *RawCharacteristic) *CarbonMonoxideLevel
type CarbonMonoxidePeakLevel ¶
func ReadCarbonMonoxidePeakLevel ¶
func ReadCarbonMonoxidePeakLevel(ch *RawCharacteristic) *CarbonMonoxidePeakLevel
type ChargingState ¶
func ReadChargingState ¶
func ReadChargingState(ch *RawCharacteristic) *ChargingState
type ColorTemperature ¶
func ReadColorTemperature ¶
func ReadColorTemperature(ch *RawCharacteristic) *ColorTemperature
type ContactSensorState ¶
func ReadContactSensorState ¶
func ReadContactSensorState(ch *RawCharacteristic) *ContactSensorState
type CoolingThresholdTemperature ¶
func ReadCoolingThresholdTemperature ¶
func ReadCoolingThresholdTemperature(ch *RawCharacteristic) *CoolingThresholdTemperature
type CurrentAirPurifierState ¶
func ReadCurrentAirPurifierState ¶
func ReadCurrentAirPurifierState(ch *RawCharacteristic) *CurrentAirPurifierState
type CurrentAmbientLightLevel ¶
func ReadCurrentAmbientLightLevel ¶
func ReadCurrentAmbientLightLevel(ch *RawCharacteristic) *CurrentAmbientLightLevel
type CurrentDoorState ¶
func ReadCurrentDoorState ¶
func ReadCurrentDoorState(ch *RawCharacteristic) *CurrentDoorState
type CurrentFanState ¶
func ReadCurrentFanState ¶
func ReadCurrentFanState(ch *RawCharacteristic) *CurrentFanState
type CurrentHeaterCoolerState ¶
func ReadCurrentHeaterCoolerState ¶
func ReadCurrentHeaterCoolerState(ch *RawCharacteristic) *CurrentHeaterCoolerState
type CurrentHeatingCoolingState ¶
func ReadCurrentHeatingCoolingState ¶
func ReadCurrentHeatingCoolingState(ch *RawCharacteristic) *CurrentHeatingCoolingState
type CurrentHorizontalTiltAngle ¶
func ReadCurrentHorizontalTiltAngle ¶
func ReadCurrentHorizontalTiltAngle(ch *RawCharacteristic) *CurrentHorizontalTiltAngle
type CurrentHumidifierDehumidifierState ¶
func ReadCurrentHumidifierDehumidifierState ¶
func ReadCurrentHumidifierDehumidifierState(ch *RawCharacteristic) *CurrentHumidifierDehumidifierState
type CurrentPosition ¶
func ReadCurrentPosition ¶
func ReadCurrentPosition(ch *RawCharacteristic) *CurrentPosition
type CurrentRelativeHumidity ¶
func ReadCurrentRelativeHumidity ¶
func ReadCurrentRelativeHumidity(ch *RawCharacteristic) *CurrentRelativeHumidity
type CurrentSlatState ¶
func ReadCurrentSlatState ¶
func ReadCurrentSlatState(ch *RawCharacteristic) *CurrentSlatState
type CurrentTemperature ¶
func ReadCurrentTemperature ¶
func ReadCurrentTemperature(ch *RawCharacteristic) *CurrentTemperature
func (*CurrentTemperature) Celcius ¶
func (c *CurrentTemperature) Celcius() float64
Celcius returns the temperature in degrees Celcius
func (*CurrentTemperature) Fahrenheit ¶
func (c *CurrentTemperature) Fahrenheit() float64
Fahrenheit returns the temperature in degrees Fahrenheit
type CurrentTiltAngle ¶
func ReadCurrentTiltAngle ¶
func ReadCurrentTiltAngle(ch *RawCharacteristic) *CurrentTiltAngle
type CurrentVerticalTiltAngle ¶
func ReadCurrentVerticalTiltAngle ¶
func ReadCurrentVerticalTiltAngle(ch *RawCharacteristic) *CurrentVerticalTiltAngle
type DigitalZoom ¶
func ReadDigitalZoom ¶
func ReadDigitalZoom(ch *RawCharacteristic) *DigitalZoom
type FilterChangeIndication ¶
func ReadFilterChangeIndication ¶
func ReadFilterChangeIndication(ch *RawCharacteristic) *FilterChangeIndication
type FilterLifeLevel ¶
func ReadFilterLifeLevel ¶
func ReadFilterLifeLevel(ch *RawCharacteristic) *FilterLifeLevel
type FirmwareRevision ¶
func ReadFirmwareRevision ¶
func ReadFirmwareRevision(ch *RawCharacteristic) *FirmwareRevision
type HardwareRevision ¶
func ReadHardwareRevision ¶
func ReadHardwareRevision(ch *RawCharacteristic) *HardwareRevision
type HeatingThresholdTemperature ¶
func ReadHeatingThresholdTemperature ¶
func ReadHeatingThresholdTemperature(ch *RawCharacteristic) *HeatingThresholdTemperature
type HoldPosition ¶
func ReadHoldPosition ¶
func ReadHoldPosition(ch *RawCharacteristic) *HoldPosition
type Identify ¶
func ReadIdentify ¶
func ReadIdentify(ch *RawCharacteristic) *Identify
type ImageMirroring ¶
func ReadImageMirroring ¶
func ReadImageMirroring(ch *RawCharacteristic) *ImageMirroring
type ImageRotation ¶
func ReadImageRotation ¶
func ReadImageRotation(ch *RawCharacteristic) *ImageRotation
type IsConfigured ¶
func ReadIsConfigured ¶
func ReadIsConfigured(ch *RawCharacteristic) *IsConfigured
type LeakDetected ¶
func ReadLeakDetected ¶
func ReadLeakDetected(ch *RawCharacteristic) *LeakDetected
type LockControlPoint ¶
func ReadLockControlPoint ¶
func ReadLockControlPoint(ch *RawCharacteristic) *LockControlPoint
type LockCurrentState ¶
func ReadLockCurrentState ¶
func ReadLockCurrentState(ch *RawCharacteristic) *LockCurrentState
type LockLastKnownAction ¶
func ReadLockLastKnownAction ¶
func ReadLockLastKnownAction(ch *RawCharacteristic) *LockLastKnownAction
type LockManagementAutoSecurityTimeout ¶
func ReadLockManagementAutoSecurityTimeout ¶
func ReadLockManagementAutoSecurityTimeout(ch *RawCharacteristic) *LockManagementAutoSecurityTimeout
type LockPhysicalControls ¶
func ReadLockPhysicalControls ¶
func ReadLockPhysicalControls(ch *RawCharacteristic) *LockPhysicalControls
type LockTargetState ¶
func ReadLockTargetState ¶
func ReadLockTargetState(ch *RawCharacteristic) *LockTargetState
type Manufacturer ¶
func ReadManufacturer ¶
func ReadManufacturer(ch *RawCharacteristic) *Manufacturer
type MotionDetected ¶
func ReadMotionDetected ¶
func ReadMotionDetected(ch *RawCharacteristic) *MotionDetected
type NightVision ¶
func ReadNightVision ¶
func ReadNightVision(ch *RawCharacteristic) *NightVision
type NitrogenDioxideDensity ¶
func ReadNitrogenDioxideDensity ¶
func ReadNitrogenDioxideDensity(ch *RawCharacteristic) *NitrogenDioxideDensity
type ObstructionDetected ¶
func ReadObstructionDetected ¶
func ReadObstructionDetected(ch *RawCharacteristic) *ObstructionDetected
type OccupancyDetected ¶
func ReadOccupancyDetected ¶
func ReadOccupancyDetected(ch *RawCharacteristic) *OccupancyDetected
type OpticalZoom ¶
func ReadOpticalZoom ¶
func ReadOpticalZoom(ch *RawCharacteristic) *OpticalZoom
type OutletInUse ¶
func ReadOutletInUse ¶
func ReadOutletInUse(ch *RawCharacteristic) *OutletInUse
type OzoneDensity ¶
func ReadOzoneDensity ¶
func ReadOzoneDensity(ch *RawCharacteristic) *OzoneDensity
type PM10Density ¶
func ReadPM10Density ¶
func ReadPM10Density(ch *RawCharacteristic) *PM10Density
type PM25Density ¶
func ReadPM25Density ¶
func ReadPM25Density(ch *RawCharacteristic) *PM25Density
type PositionState ¶
func ReadPositionState ¶
func ReadPositionState(ch *RawCharacteristic) *PositionState
type ProgramMode ¶
func ReadProgramMode ¶
func ReadProgramMode(ch *RawCharacteristic) *ProgramMode
type ProgrammableSwitchEvent ¶
func ReadProgrammableSwitchEvent ¶
func ReadProgrammableSwitchEvent(ch *RawCharacteristic) *ProgrammableSwitchEvent
type RawCharacteristic ¶
type RawCharacteristic struct { ID uint64 `json:"iid"` Value Value `json:"value"` Type string `json:"type"` Events *bool `json:"ev,omitempty"` Permissions []string `json:"perms,omitempty"` Format string `json:"format"` Unit string `json:"unit"` MaxLen *int `json:"maxLen,omitempty"` MaxValue Value `json:"maxValue,omitempty"` MinValue Value `json:"minValue,omitempty"` StepValue Value `json:"minStep,omitempty"` }
RawCharacteristic captures information related to a particular characteristic of a service.
type RelativeHumidityDehumidifierThreshold ¶
func ReadRelativeHumidityDehumidifierThreshold ¶
func ReadRelativeHumidityDehumidifierThreshold(ch *RawCharacteristic) *RelativeHumidityDehumidifierThreshold
type RelativeHumidityHumidifierThreshold ¶
func ReadRelativeHumidityHumidifierThreshold ¶
func ReadRelativeHumidityHumidifierThreshold(ch *RawCharacteristic) *RelativeHumidityHumidifierThreshold
type RemainingDuration ¶
func ReadRemainingDuration ¶
func ReadRemainingDuration(ch *RawCharacteristic) *RemainingDuration
type ResetFilterIndication ¶
func ReadResetFilterIndication ¶
func ReadResetFilterIndication(ch *RawCharacteristic) *ResetFilterIndication
type RotationDirection ¶
func ReadRotationDirection ¶
func ReadRotationDirection(ch *RawCharacteristic) *RotationDirection
type RotationSpeed ¶
func ReadRotationSpeed ¶
func ReadRotationSpeed(ch *RawCharacteristic) *RotationSpeed
type Saturation ¶
func ReadSaturation ¶
func ReadSaturation(ch *RawCharacteristic) *Saturation
type SecuritySystemAlarmType ¶
func ReadSecuritySystemAlarmType ¶
func ReadSecuritySystemAlarmType(ch *RawCharacteristic) *SecuritySystemAlarmType
type SecuritySystemCurrentState ¶
func ReadSecuritySystemCurrentState ¶
func ReadSecuritySystemCurrentState(ch *RawCharacteristic) *SecuritySystemCurrentState
type SecuritySystemTargetState ¶
func ReadSecuritySystemTargetState ¶
func ReadSecuritySystemTargetState(ch *RawCharacteristic) *SecuritySystemTargetState
type SelectedAudioStreamConfiguration ¶
func ReadSelectedAudioStreamConfiguration ¶
func ReadSelectedAudioStreamConfiguration(ch *RawCharacteristic) *SelectedAudioStreamConfiguration
type SelectedRTPStreamConfiguration ¶
func ReadSelectedRTPStreamConfiguration ¶
func ReadSelectedRTPStreamConfiguration(ch *RawCharacteristic) *SelectedRTPStreamConfiguration
type SerialNumber ¶
func ReadSerialNumber ¶
func ReadSerialNumber(ch *RawCharacteristic) *SerialNumber
type ServiceLabelIndex ¶
func ReadServiceLabelIndex ¶
func ReadServiceLabelIndex(ch *RawCharacteristic) *ServiceLabelIndex
type ServiceLabelNamespace ¶
func ReadServiceLabelNamespace ¶
func ReadServiceLabelNamespace(ch *RawCharacteristic) *ServiceLabelNamespace
type SetDuration ¶
func ReadSetDuration ¶
func ReadSetDuration(ch *RawCharacteristic) *SetDuration
type SetupDataStreamTransport ¶
func ReadSetupDataStreamTransport ¶
func ReadSetupDataStreamTransport(ch *RawCharacteristic) *SetupDataStreamTransport
type SetupEndpoints ¶
func ReadSetupEndpoints ¶
func ReadSetupEndpoints(ch *RawCharacteristic) *SetupEndpoints
type SiriInputType ¶
func ReadSiriInputType ¶
func ReadSiriInputType(ch *RawCharacteristic) *SiriInputType
type SlatType ¶
func ReadSlatType ¶
func ReadSlatType(ch *RawCharacteristic) *SlatType
type SmokeDetected ¶
func ReadSmokeDetected ¶
func ReadSmokeDetected(ch *RawCharacteristic) *SmokeDetected
type StatusActive ¶
func ReadStatusActive ¶
func ReadStatusActive(ch *RawCharacteristic) *StatusActive
type StatusFault ¶
func ReadStatusFault ¶
func ReadStatusFault(ch *RawCharacteristic) *StatusFault
type StatusJammed ¶
func ReadStatusJammed ¶
func ReadStatusJammed(ch *RawCharacteristic) *StatusJammed
type StatusLowBattery ¶
func ReadStatusLowBattery ¶
func ReadStatusLowBattery(ch *RawCharacteristic) *StatusLowBattery
type StatusTampered ¶
func ReadStatusTampered ¶
func ReadStatusTampered(ch *RawCharacteristic) *StatusTampered
type StreamingStatus ¶
func ReadStreamingStatus ¶
func ReadStreamingStatus(ch *RawCharacteristic) *StreamingStatus
type SulphurDioxideDensity ¶
func ReadSulphurDioxideDensity ¶
func ReadSulphurDioxideDensity(ch *RawCharacteristic) *SulphurDioxideDensity
type SupportedAudioStreamConfiguration ¶
func ReadSupportedAudioStreamConfiguration ¶
func ReadSupportedAudioStreamConfiguration(ch *RawCharacteristic) *SupportedAudioStreamConfiguration
type SupportedDataStreamTransportConfiguration ¶
func ReadSupportedDataStreamTransportConfiguration ¶
func ReadSupportedDataStreamTransportConfiguration(ch *RawCharacteristic) *SupportedDataStreamTransportConfiguration
type SupportedRTPConfiguration ¶
func ReadSupportedRTPConfiguration ¶
func ReadSupportedRTPConfiguration(ch *RawCharacteristic) *SupportedRTPConfiguration
type SupportedVideoStreamConfiguration ¶
func ReadSupportedVideoStreamConfiguration ¶
func ReadSupportedVideoStreamConfiguration(ch *RawCharacteristic) *SupportedVideoStreamConfiguration
type SwingMode ¶
func ReadSwingMode ¶
func ReadSwingMode(ch *RawCharacteristic) *SwingMode
type TargetAirPurifierState ¶
func ReadTargetAirPurifierState ¶
func ReadTargetAirPurifierState(ch *RawCharacteristic) *TargetAirPurifierState
type TargetControlList ¶
func ReadTargetControlList ¶
func ReadTargetControlList(ch *RawCharacteristic) *TargetControlList
type TargetControlSupportedConfiguration ¶
func ReadTargetControlSupportedConfiguration ¶
func ReadTargetControlSupportedConfiguration(ch *RawCharacteristic) *TargetControlSupportedConfiguration
type TargetDoorState ¶
func ReadTargetDoorState ¶
func ReadTargetDoorState(ch *RawCharacteristic) *TargetDoorState
type TargetFanState ¶
func ReadTargetFanState ¶
func ReadTargetFanState(ch *RawCharacteristic) *TargetFanState
type TargetHeaterCoolerState ¶
func ReadTargetHeaterCoolerState ¶
func ReadTargetHeaterCoolerState(ch *RawCharacteristic) *TargetHeaterCoolerState
type TargetHeatingCoolingState ¶
func ReadTargetHeatingCoolingState ¶
func ReadTargetHeatingCoolingState(ch *RawCharacteristic) *TargetHeatingCoolingState
type TargetHorizontalTiltAngle ¶
func ReadTargetHorizontalTiltAngle ¶
func ReadTargetHorizontalTiltAngle(ch *RawCharacteristic) *TargetHorizontalTiltAngle
type TargetHumidifierDehumidifierState ¶
func ReadTargetHumidifierDehumidifierState ¶
func ReadTargetHumidifierDehumidifierState(ch *RawCharacteristic) *TargetHumidifierDehumidifierState
type TargetPosition ¶
func ReadTargetPosition ¶
func ReadTargetPosition(ch *RawCharacteristic) *TargetPosition
type TargetRelativeHumidity ¶
func ReadTargetRelativeHumidity ¶
func ReadTargetRelativeHumidity(ch *RawCharacteristic) *TargetRelativeHumidity
type TargetTemperature ¶
func ReadTargetTemperature ¶
func ReadTargetTemperature(ch *RawCharacteristic) *TargetTemperature
type TargetTiltAngle ¶
func ReadTargetTiltAngle ¶
func ReadTargetTiltAngle(ch *RawCharacteristic) *TargetTiltAngle
type TargetVerticalTiltAngle ¶
func ReadTargetVerticalTiltAngle ¶
func ReadTargetVerticalTiltAngle(ch *RawCharacteristic) *TargetVerticalTiltAngle
type TemperatureDisplayUnits ¶
func ReadTemperatureDisplayUnits ¶
func ReadTemperatureDisplayUnits(ch *RawCharacteristic) *TemperatureDisplayUnits
type TypeMetadata ¶
TypeMetadata captures standard known metadata that applies to all characteristics with the given type.
type UndefinedValue ¶
type UndefinedValue struct{}
UndefinedValue represents a value with an unknown format
func (UndefinedValue) String ¶
func (u UndefinedValue) String() string
type UnknownType ¶
type UnknownType struct{}
UnknownType represents a value from an unknown type
func (UnknownType) String ¶
func (u UnknownType) String() string
type VOCDensity ¶
func ReadVOCDensity ¶
func ReadVOCDensity(ch *RawCharacteristic) *VOCDensity
type Value ¶
type Value []byte
Value is a clone of json.RawMessage that lets us defer unmarshalling of a value until we determine the expected data type. Convenience methods are available to unmarshal to a known type.
func (Value) MarshalJSON ¶
MarshalJSON returns v as the JSON encoding of v.
func (Value) MustBytes ¶
MustBytes attempts to unmarshal v to a byte slice and panics if unsuccessful
func (Value) MustFloat64 ¶
MustFloat64 attempts to unmarshal v to a float64 and panics if unsuccessful
func (Value) MustString ¶
MustString attempts to unmarshal v to a string and panics if unsuccessful
func (Value) MustUint16 ¶
MustUint16 attempts to unmarshal v to a uint16 and panics if unsuccessful
func (Value) MustUint32 ¶
MustUint32 attempts to unmarshal v to a uint32 and panics if unsuccessful
func (Value) MustUint64 ¶
MustUint64 attempts to unmarshal v to a uint64 and panics if unsuccessful
func (*Value) UnmarshalJSON ¶
UnmarshalJSON sets *v to a copy of data.
type ValveType ¶
func ReadValveType ¶
func ReadValveType(ch *RawCharacteristic) *ValveType
type Version ¶
func ReadVersion ¶
func ReadVersion(ch *RawCharacteristic) *Version
type Volume ¶
func ReadVolume ¶
func ReadVolume(ch *RawCharacteristic) *Volume
type WaterLevel ¶
func ReadWaterLevel ¶
func ReadWaterLevel(ch *RawCharacteristic) *WaterLevel