runner

package
v0.0.0-...-04baaee Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutomationRunner

type AutomationRunner struct {
	Id        int
	Config    *config.AutomationConfig
	LastRun   time.Time
	LastError error
	NextRun   time.Time
}

func (*AutomationRunner) Start

func (r *AutomationRunner) Start(t time.Time, ctx context.Context)

type CharacteristicRunner

type CharacteristicRunner struct {
	Id        int
	Name      string
	Config    *config.CharacteristicsConfig
	C         *characteristic.C
	LastValue any
}

func NewCharacteristicRunner

func NewCharacteristicRunner(name string, config *config.CharacteristicsConfig, c *characteristic.C) *CharacteristicRunner

func (*CharacteristicRunner) GetLastValue

func (r *CharacteristicRunner) GetLastValue() any

func (*CharacteristicRunner) RunSetter

func (r *CharacteristicRunner) RunSetter(param string)

func (*CharacteristicRunner) Start

func (r *CharacteristicRunner) Start(ctx context.Context)

Jump to

Keyboard shortcuts

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