Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HemtjanstClient ¶
type HemtjanstClient struct { sync.RWMutex MQTT messaging.PublishSubscriber Id string Announce bool // contains filtered or unexported fields }
func NewHemtjanstClient ¶
func NewHemtjanstClient(tree *tradfri.Tree, id string) *HemtjanstClient
func (*HemtjanstClient) OnConnect ¶
func (h *HemtjanstClient) OnConnect(client messaging.PublishSubscriber)
func (*HemtjanstClient) OnNewAccessory ¶
func (h *HemtjanstClient) OnNewAccessory(d *tradfri.Accessory)
func (*HemtjanstClient) OnNewGroup ¶
func (h *HemtjanstClient) OnNewGroup(g *tradfri.Group)
func (*HemtjanstClient) OnNewScene ¶
func (h *HemtjanstClient) OnNewScene(g *tradfri.Group, s *tradfri.Scene)
type HemtjanstDevice ¶
func NewHemtjanstAccessory ¶
func NewHemtjanstAccessory(client *HemtjanstClient, topic string, accessory *tradfri.Accessory, group *HemtjanstDevice) *HemtjanstDevice
func NewHemtjanstGroup ¶
func NewHemtjanstGroup(client *HemtjanstClient, topic string, group *tradfri.Group) *HemtjanstDevice
func (*HemtjanstDevice) AddMember ¶
func (h *HemtjanstDevice) AddMember(member *HemtjanstDevice)
func (*HemtjanstDevice) OnConnect ¶
func (h *HemtjanstDevice) OnConnect()
func (*HemtjanstDevice) OnDiscover ¶
func (h *HemtjanstDevice) OnDiscover()
Click to show internal directories.
Click to hide internal directories.