Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AiSEGManager ¶
type AiSEGManager struct { Name string Model string Devices []Device // contains filtered or unexported fields }
func DiscoverNewAiSEGManager ¶
func DiscoverNewAiSEGManager() *AiSEGManager
This API will block if no devices found
func (*AiSEGManager) Refresh ¶
func (mgr *AiSEGManager) Refresh()
func (*AiSEGManager) ToggleDevice ¶
func (am *AiSEGManager) ToggleDevice(nodeId string) error
func (*AiSEGManager) TurnAllDevices ¶
func (am *AiSEGManager) TurnAllDevices(deviceType DeviceType, on bool) error
func (*AiSEGManager) TurnDevice ¶
func (am *AiSEGManager) TurnDevice(nodeId string, on bool) error
type Device ¶
type Device struct { NodeId string Name string IsOn bool Type DeviceType // contains filtered or unexported fields }
type DeviceType ¶
type DeviceType int32
const ( DeviceTypeLight DeviceType = 1 << iota DeviceTypeFloorHeating )
Click to show internal directories.
Click to hide internal directories.