models

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: GPL-3.0 Imports: 3 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 {
	HighValue        float64  `json:"highValue"`
	LowValue         float64  `json:"lowValue"`
	OffDelay         Duration `json:"offDelay"`
	CoolDown         Duration `json:"coolDown"`
	MinOn            Duration `json:"minOn"`
	MaxOn            Duration `json:"maxOn"`
	MinChargeCurrent float64  `json:"minChargeCurrent"`
}

type BMVConfig

type BMVConfig struct {
	Device string `json:"device"`
	Baud   int    `json:"baud"`
	Name   string `json:"name"`
}

type Config

type Config struct {
	BridgeName      string                `json:"bridgeName"`
	OpenHabServer   string                `json:"openHabServer"`
	PIN             string                `json:"pin"`
	Port            string                `json:"port"`
	BMVConfig       BMVConfig             `json:"bmvConfig"`
	Automation      map[string]Automation `json:"automation"`
	StatsServer     string                `json:"statsServer"`
	ThermostatRange TemperatureRange      `json:"thermostatRange"`
}

type Duration added in v0.0.9

type Duration struct {
	time.Duration
}

func (Duration) MarshalJSON added in v0.0.9

func (d Duration) MarshalJSON() ([]byte, error)

func (*Duration) UnmarshalJSON added in v0.0.9

func (d *Duration) UnmarshalJSON(b []byte) error

type TemperatureRange added in v0.0.10

type TemperatureRange struct {
	MinValue float64 `json:"minValue"`
	MaxValue float64 `json:"maxValue"`
	Unit     string  `json:"unit"`
}

Jump to

Keyboard shortcuts

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