accessory

package
v0.0.0-...-e2aaeb7 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TFAccessory

type TFAccessory struct {
	// These are set (if required by the platform) in the accessory's config file
	Platform string           // Kasa, Tradfri, Tradfri-Device, Shelly, etc
	Name     string           // the name used internally
	IP       string           // the IP address of the device
	Username string           // for Tradfri, Shelly -- the MAC for Konnected
	Password string           // for Tradfri, Shelly -- the Token for Konnected
	Info     hcaccessory.Info // defined at https://github.com/brutella/hc/blob/master/accessory/accessory.go
	Type     hcaccessory.AccessoryType

	// relevant only to Konnected boards
	KonnectedZones []Zone

	/* below this line are NOT set in config file */
	*hcaccessory.Accessory // set when the device is added to HomeControl

	Device interface{}
}

TFAccessory is the accessory type, TooFar's stuff, plus hc's stuff

type Zone

type Zone struct {
	Pin  uint8  `json:"pin"`
	Name string `json:"name"`
	Type string `json:"type"`
}

exposed in accessory.KonnectedZones

Jump to

Keyboard shortcuts

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