homeasistant

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PayloadHome    = "home"
	PayloadNotHome = "not_home"
	SourceType     = "router"
)

Variables

View Source
var (
	GetId func(*DeviceInfo) string
)

Functions

func ClientNew

func ClientNew(device *DeviceInfo) error

func Connect

func Connect()

func State

func State(device *DeviceInfo, state string) error

Types

type Device

type Device map[string]*DeviceInfo
var Devices Device

type DeviceInfo

type DeviceInfo struct {
	LastSeen int64
	IP       net.IP
	Mac      string
}

Jump to

Keyboard shortcuts

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