huebee

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: AGPL-3.0 Imports: 6 Imported by: 4

Documentation

Overview

Package huebee is a Bee that can talk to Philips Hue bridges.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HueBee

type HueBee struct {
	bees.Bee
	// contains filtered or unexported fields
}

HueBee is a Bee that can talk to Philips Hue bridges.

func (*HueBee) Action

func (mod *HueBee) Action(action bees.Action) []bees.Placeholder

Action triggers the action passed to it.

func (*HueBee) ReloadOptions

func (mod *HueBee) ReloadOptions(options bees.BeeOptions)

ReloadOptions parses the config options and initializes the Bee.

type HueBeeFactory

type HueBeeFactory struct {
	bees.BeeFactory
}

HueBeeFactory is a factory for HueBees.

func (*HueBeeFactory) Actions

func (factory *HueBeeFactory) Actions() []bees.ActionDescriptor

Actions describes the available actions provided by this Bee.

func (*HueBeeFactory) Description

func (factory *HueBeeFactory) Description() string

Description returns the description of this Bee.

func (*HueBeeFactory) Events

func (factory *HueBeeFactory) Events() []bees.EventDescriptor

Events describes the available events provided by this Bee.

func (*HueBeeFactory) ID

func (factory *HueBeeFactory) ID() string

ID returns the ID of this Bee.

func (*HueBeeFactory) Image

func (factory *HueBeeFactory) Image() string

Image returns the filename of an image for this Bee.

func (*HueBeeFactory) LogoColor

func (factory *HueBeeFactory) LogoColor() string

LogoColor returns the preferred logo background color (used by the admin interface).

func (*HueBeeFactory) Name

func (factory *HueBeeFactory) Name() string

Name returns the name of this Bee.

func (*HueBeeFactory) New

func (factory *HueBeeFactory) New(name, description string, options bees.BeeOptions) bees.BeeInterface

New returns a new Bee instance configured with the supplied options.

func (*HueBeeFactory) Options

func (factory *HueBeeFactory) Options() []bees.BeeOptionDescriptor

Options returns the options available to configure this Bee.

Jump to

Keyboard shortcuts

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