homekit

package
v0.0.0-...-96d4e4b Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HapSrv

type HapSrv struct {
	// contains filtered or unexported fields
}

func NewHapSrv

func NewHapSrv(hapSrvOpts *HapSrvOpts) (*HapSrv, error)

func (*HapSrv) ListenAndServe

func (s *HapSrv) ListenAndServe(ctx context.Context) error

func (*HapSrv) SetCurrentHumidity

func (s *HapSrv) SetCurrentHumidity(h float64)

func (*HapSrv) SetCurrentTemperature

func (s *HapSrv) SetCurrentTemperature(t float64)

func (*HapSrv) USB2PowerChan

func (s *HapSrv) USB2PowerChan() chan bool

type HapSrvOpts

type HapSrvOpts struct {
	DB  hap.Store
	Pin string

	Bridge      *accessory.Bridge
	Thermometer *accessory.Thermometer
	Humidifier  *accessory.Humidifier
	USB2Power   *accessory.Switch
}

type NoopHap

type NoopHap struct{}

func (NoopHap) ListenAndServe

func (n NoopHap) ListenAndServe(ctx context.Context) error

func (NoopHap) SetCurrentHumidity

func (n NoopHap) SetCurrentHumidity(h float64)

func (NoopHap) SetCurrentTemperature

func (n NoopHap) SetCurrentTemperature(t float64)

func (NoopHap) USB2PowerChan

func (n NoopHap) USB2PowerChan() chan bool

Jump to

Keyboard shortcuts

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