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()
Click to show internal directories.
Click to hide internal directories.