aisegmanager

package
v0.0.0-...-c20a0a7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 9 Imported by: 0

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
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL