automation

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Automation

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

The Automation type encapsulates Automation

func (*Automation) LoadConfig

func (a *Automation) LoadConfig(confDir string) error

LoadConfig loads and stores the configuration for this Integration. All Automations are loaded, whether they are enabled or not.

func (*Automation) Start

func (a *Automation) Start(mq *mqtt.MQTT)

Start launches a Goroutine for each Automation, LoadConfig() should have been called beforehand.

func (*Automation) Stop

func (a *Automation) Stop()

Stop terminates the Integration and all Goroutines it contains

Jump to

Keyboard shortcuts

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