Documentation
¶
Index ¶
Constants ¶
View Source
const ( TypeColorLight = "colorlight" TypeTemperature = "temperature" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type EsphomeDevice ¶
type EsphomeDevice struct {
ID string `json:"id"`
Name string `json:"name"`
Addr string `json:"addr"`
Type string `json:"type"`
SerialNumber string `json:"serial_number"`
Manufacturer string `json:"manufacturer"`
Model string `json:"model"`
FirmwareRevision string `json:"firmware_revision"`
}
EsphomeDevice holds the configuration for one device
type EsphomeDevices ¶
type EsphomeDevices []EsphomeDevice
EsphomeDevices is the list of esphome devices in config file
func NewEsphomeDevicesFromFile ¶
func NewEsphomeDevicesFromFile(filename string) (EsphomeDevices, error)
NewEsphomeDevicesFromFile reads a JSON config file and returns all devices
Click to show internal directories.
Click to hide internal directories.