Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Loxone ¶
type Loxone struct {
// Events received from the websockets
Events chan *Event
// contains filtered or unexported fields
}
Loxone The loxone object exposed
func (*Loxone) GetConfig ¶
func (l *Loxone) GetConfig() (*LoxoneConfig, error)
GetConfig get the loxone server config
func (*Loxone) RegisterEvents ¶
RegisterEvents ask the loxone server to send events
func (*Loxone) SendCommand ¶
func (l *Loxone) SendCommand(cmd string, class interface{}) (*LoxoneBody, error)
SendCommand Send a command to the loxone server
type LoxoneBody ¶
type LoxoneBody struct {
// Control name of the control invoked
Control string
// Code status
Code int32
}
LoxoneBody response form command sent by ws
type LoxoneCategory ¶
LoxoneCategory represent a category
type LoxoneConfig ¶
type LoxoneConfig struct {
// LastModified
LastModified string
// MsInfo
MsInfo map[string]interface{}
// GlobalStates states about the sun, the day, etc
GlobalStates map[string]string
// OperatingModes of the loxone server
OperatingModes map[string]interface{}
// Rooms of the loxone server
Rooms map[string]*LoxoneRoom
// Cats Categories of the loxone server
Cats map[string]*LoxoneCategory
// Controls all the control of the loxone server
Controls map[string]*LoxoneControl
}
LoxoneConfig represent the LoxAPP3.json config file
type LoxoneControl ¶
type LoxoneControl struct {
Name string
Type string
UUIDAction string
Room string
Cat string
States map[string]interface{} // Can be an array or a string
}
LoxoneControl represent a control
type LoxoneRoom ¶
LoxoneRoom represent a room
type LoxoneSimpleValue ¶
type LoxoneSimpleValue struct {
// The value answered
Value string
}
LoxoneSimpleValue represent a simple Loxone Response Value
Click to show internal directories.
Click to hide internal directories.