homeassistant

package
v0.0.0-...-0e7f851 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Settings Settings
	Address  string
	Token    string
	// contains filtered or unexported fields
}

func NewClient

func NewClient(address, token string, settings Settings) *Client

func (*Client) ExposeSettingsOnHTTP

func (c *Client) ExposeSettingsOnHTTP(w http.ResponseWriter, r *http.Request)

func (*Client) GetSettings

func (c *Client) GetSettings() Settings

func (*Client) UpdateAll

func (c *Client) UpdateAll() error

type Entity

type Entity struct {
	EntityID string  `json:"entity_id" yaml:"entity_id"`
	State    string  `json:"state,omitempty" yaml:"state,omitempty"`
	Value    float64 `json:"value,omitempty" yaml:"value,omitempty"`
}

type FlowSettings

type FlowSettings struct {
	DutyMin Entity `yaml:"dutyMin"`
	TempMin Entity `yaml:"tempMin"`
	DutyMax Entity `yaml:"dutyMax"`
	TempMax Entity `yaml:"tempMax"`
}

type Settings

type Settings struct {
	SolarEmergency Entity       `yaml:"solarEmergency"`
	SolarCritical  Entity       `yaml:"solarCritical"`
	SolarOn        Entity       `yaml:"solarOn"`
	SolarOff       Entity       `yaml:"solarOff"`
	TankMax        Entity       `yaml:"tankMax"`
	Flow           FlowSettings `yaml:"flow"`
}

Jump to

Keyboard shortcuts

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