sensor

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	ID    string  `json:"id"`
	State string  `json:"state"`
	Value float64 `json:"value"`
}

Response is the esphome api response for sensors

type Temperature

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

func NewTemperature

func NewTemperature(id string, addr string, acc *accessory.Thermometer, httpClient *http.Client, log *logger.Logger) *Temperature

func (*Temperature) GetAccessory

func (t *Temperature) GetAccessory() *accessory.Accessory

func (*Temperature) GetDeviceUrl

func (t *Temperature) GetDeviceUrl() string

func (*Temperature) Init

func (t *Temperature) Init()

func (*Temperature) UpdateTemp

func (t *Temperature) UpdateTemp()

Jump to

Keyboard shortcuts

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