Documentation ¶
Index ¶
- type Clusters
- type ConnectedHandler
- type ConnectionLostHandler
- type Connector
- func (c *Connector) ActivateDevice(id device.Id) error
- func (c *Connector) ControlActor(id device.Id, actor device.Actor, value any) bool
- func (c *Connector) DeactivateDevice(id device.Id) error
- func (c *Connector) DisplayName() string
- func (c *Connector) EnumerateDevices() []device.Spec
- func (c *Connector) Id() string
- func (c *Connector) Operational() bool
- func (c *Connector) Setup(controller system.Controller)
- func (c *Connector) Teardown()
- type Data
- type Definition
- type DeviceEvent
- type Exposes
- type MessageHandler
- type Options
- type Z2MDeviceInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Clusters ¶
type Clusters struct { Input []string `json:"input"` Output []interface{} `json:"output"` }
type ConnectedHandler ¶
type ConnectedHandler func(conn *connection)
type ConnectionLostHandler ¶
type ConnectionLostHandler func(conn *connection, err error)
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
func NewConnector ¶
func NewConnector(configuration config.Zigbee2MqttConfig) (*Connector, error)
func (*Connector) ControlActor ¶
func (*Connector) DisplayName ¶
func (*Connector) EnumerateDevices ¶
func (*Connector) Operational ¶
func (*Connector) Setup ¶
func (c *Connector) Setup(controller system.Controller)
type Definition ¶
type DeviceEvent ¶
type MessageHandler ¶
type Z2MDeviceInfo ¶
type Z2MDeviceInfo struct { IeeeAddress string `json:"ieee_address"` Type string `json:"type"` Supported bool `json:"supported"` FriendlyName string `json:"friendly_name"` Definition Definition `json:"definition"` PowerSource string `json:"power_source"` DateCode string `json:"date_code"` ModelId string `json:"model_id"` Interviewing bool `json:"interviewing"` InterviewCompleted bool `json:"interview_completed"` Manufacturer string `json:"manufacturer"` }
Click to show internal directories.
Click to hide internal directories.