Documentation ¶
Index ¶
- type CCU
- type Device
- func (d *Device) GetClient() rpc.Client
- func (d *Device) GetName() string
- func (d *Device) GetValue(name string) (interface{}, error)
- func (d *Device) GetValues() (map[string]interface{}, error)
- func (d *Device) GetValuesDescription() (map[string]ParameterDescription, error)
- func (d *Device) HasValues() bool
- func (d *Device) ReportValueUsage(valueId string, ref_counter uint32) (bool, error)
- func (d *Device) SetValue(name string, value interface{}) error
- func (d *Device) SetValueChangedHandler(handler func(key string, value interface{}))
- type ParameterDescription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CCU ¶
type CCU struct {
// contains filtered or unexported fields
}
CCU represents a connection to a Homematic CCU
func NewCCUCustom ¶
NewCCUCustom creates a new connection to a CCU with custom id
func (*CCU) UpdateDevices ¶
UpdateDevices currently known on CCU
type Device ¶
type Device struct { Name string Type string Address string Version int Children []string Parent string ParamSets []string FlagVisible bool FlagInternal bool FlagDontdelete bool // contains filtered or unexported fields }
Device of CCU
func (*Device) GetValuesDescription ¶
func (d *Device) GetValuesDescription() (map[string]ParameterDescription, error)
GetValuesDescription for this device
func (*Device) ReportValueUsage ¶
func (*Device) SetValueChangedHandler ¶
nameChanged updates device name
type ParameterDescription ¶
type ParameterDescription struct { ID string Default interface{} Type string Unit string TabOrder int OperationRead bool OperationWrite bool OperationEvent bool FlagVisible bool FlagInternal bool FlagTransform bool FlagService bool FlagSticky bool }
ParameterDescription contains information about a parameter
Click to show internal directories.
Click to hide internal directories.