Documentation ¶
Index ¶
- type Endpoint
- type List
- type ManufacurerSpecific
- type Node
- func (n *Node) Endpoint(id int) *Endpoint
- func (n *Node) GetID() int
- func (n *Node) HasCommand(c commands.ZWaveCommand) bool
- func (n *Node) Identify()
- func (n *Node) IsDeviceClass(generic, specific byte) bool
- func (n *Node) Level(value float64)
- func (n *Node) Off()
- func (n *Node) On()
- func (n *Node) ProcessEvent(event reports.Report)
- func (n *Node) ProtocolInfo() *serialapi.FuncGetNodeProtocolInfo
- func (n *Node) RequestEndpoints() error
- func (n *Node) RequestManufacturerSpecific() (*reports.ManufacturerSpecific, error)
- func (n *Node) RequestProtocolInfo() (*serialapi.FuncGetNodeProtocolInfo, error)
- func (n *Node) RequestStates() error
- func (n *Node) Setup(connection interfaces.Writer, pushEventFunc func(interface{}))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint struct { Id int CommandClasses []*database.CommandClass StateBool map[string]bool StateFloat map[string]float64 // contains filtered or unexported fields }
func (*Endpoint) Write ¶
func (e *Endpoint) Write(msg interfaces.Encodable)
type ManufacurerSpecific ¶
type ManufacurerSpecific struct { }
type Node ¶
type Node struct { Id int `json:"id"` IsAwake bool `json:"is_awake"` ManufacurerSpecific *reports.ManufacturerSpecific //Device *database.Device Brand string Product string Description string CommandClasses []*database.CommandClass Endpoints []*Endpoint StateBool map[string]bool StateFloat map[string]float64 sync.RWMutex // contains filtered or unexported fields }
func (*Node) HasCommand ¶
func (n *Node) HasCommand(c commands.ZWaveCommand) bool
func (*Node) IsDeviceClass ¶
func (*Node) ProcessEvent ¶
func (*Node) ProtocolInfo ¶
func (n *Node) ProtocolInfo() *serialapi.FuncGetNodeProtocolInfo
func (*Node) RequestEndpoints ¶
func (*Node) RequestManufacturerSpecific ¶
func (n *Node) RequestManufacturerSpecific() (*reports.ManufacturerSpecific, error)
func (*Node) RequestProtocolInfo ¶
func (n *Node) RequestProtocolInfo() (*serialapi.FuncGetNodeProtocolInfo, error)
func (*Node) RequestStates ¶
func (*Node) Setup ¶
func (n *Node) Setup(connection interfaces.Writer, pushEventFunc func(interface{}))
Click to show internal directories.
Click to hide internal directories.