ecotouch

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 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 Config added in v0.4.0

type Config struct {
	BaseUrl  string `yaml:"baseUrl"`
	Prefix   string `yaml:"prefix"`
	Username string `yaml:"username"`
	Password string `yaml:"password"`
}

func GetDefaultConfig added in v0.4.0

func GetDefaultConfig() Config

Get Default configuration

type EcotouchController

type EcotouchController struct {
	Config *Config
	// contains filtered or unexported fields
}

func NewController

func NewController(config *Config) (*EcotouchController, error)

NewController creates a new Controller

func (*EcotouchController) Close

func (controller *EcotouchController) Close(ctx context.Context)

Log out of ecotouch

func (*EcotouchController) Run

func (controller *EcotouchController) Run(ctx context.Context, metrics *metric.Metrics) error

Main run loop

func (*EcotouchController) SetValue added in v0.5.0

func (controller *EcotouchController) SetValue(ctx context.Context, fieldName string, desiredValue float64) error

Set water temperature

Jump to

Keyboard shortcuts

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