homekit

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package homekit bridges F&Home Cloud with HomeKit.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	PIN                string
	Name               string
	OnLightbulbUpdate  OnLightbulbUpdated
	OnLEDUpdate        OnLEDUpdate
	OnGarageDoorUpdate OnGarageDoorUpdated
	OnThermostatUpdate OnThermostatUpdated
}

func (*Client) SetUp

func (c *Client) SetUp(cfg *api.Config) (*Home, error)

type Home

type Home struct {
	Lightbulbs        map[int]*accessory.Lightbulb
	ColoredLightbulbs map[int]*accessory.ColoredLightbulb
	GarageDoors       map[int]*accessory.GarageDoorOpener
	Thermostats       map[int]*accessory.Thermostat
}

type OnGarageDoorUpdated

type OnGarageDoorUpdated func(ID int)

type OnLEDUpdate

type OnLEDUpdate func(ID int, brightness int)

type OnLightbulbUpdated

type OnLightbulbUpdated func(ID int, v bool)

type OnThermostatUpdated

type OnThermostatUpdated func(ID int, v float64)

Jump to

Keyboard shortcuts

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