node

package
v0.0.0-...-e372b0f Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Overview

Package node implements the common code to present itself as an esphome node.

The primary use case is for integration into Home Assistant.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

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

Node is the periphhome node.

func New

func New(ctx context.Context, cfg *config.Root) (*Node, error)

New loads a configuration and instantiate a node.

func (*Node) Close

func (n *Node) Close() error

Close stops all the sensors, devices and close the API server as relevant.

Directories

Path Synopsis
Package config contains all the structures used to represent the YAML file to load a periph-home node.
Package config contains all the structures used to represent the YAML file to load a periph-home node.

Jump to

Keyboard shortcuts

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