Versions in this module Expand all Collapse all v0 v0.0.1 Jul 27, 2023 Changes in this version + var Scopes = []string + func SaveToken(clientID string, cacheFile string, code string) error + func TokenSource(clientID, cacheFile string) oauth2.TokenSource + type Alert struct + AlertType string + IsOperatorAlert bool + Text string + type Client struct + func NewClient(clientID, cacheFile string) *Client + func (c *Client) GetThermostat(thermostatID string) (*Thermostat, error) + func (c *Client) GetThermostatSummary(selection Selection) (map[string]ThermostatSummary, error) + func (c *Client) GetThermostats(selection Selection) ([]Thermostat, error) + func (c *Client) HoldTemp(thermostat string, heat, cool float64, d time.Duration) error + func (c *Client) ResumeProgram(id string, resumeAll bool) error + func (c *Client) RunFan(id string, duration time.Duration) error + func (c *Client) SendMessage(thermostat, message string) error + func (c *Client) UpdateThermostat(utr UpdateThermostatRequest) error + type Climate struct + ClimateRef string + Colour int + CoolFan string + CoolTemp int + HeatFan string + HeatTemp int + IsOccupied bool + IsOptimized bool + Name string + Owner string + Sensors []RemoteSensor + Type string + Vent string + VentilatorMinOnTime int + type EquipmentStatus struct + AuxHeat1 bool + AuxHeat2 bool + AuxHeat3 bool + AuxHotWater bool + CompCool1 bool + CompCool2 bool + CompHotWater bool + Dehumidifier bool + Economizer bool + Fan bool + HeatPump bool + HeatPump2 bool + HeatPump3 bool + Humidifier bool + Ventilator bool + func (es *EquipmentStatus) Set(field string, state bool) + type Event struct + CoolHoldTemp int + CoolRelativeTemp int + DrRampUpTemp int + DrRampUpTime int + DutyCyclePercentage int + EndDate string + EndTime string + Fan string + FanMinOnTime int + HeatHoldTemp int + HeatRelativeTemp int + HoldClimateRef string + IsCoolOff bool + IsHeatOff bool + IsOccupied bool + IsOptional bool + IsTemperatureAbsolute bool + IsTemperatureRelative bool + LinkRef string + Name string + OccupiedSensorActive bool + Running bool + StartDate string + StartTime string + Type string + UnoccupiedSensorActive bool + Vent string + VentilatorMinOnTime int + type ExtendedRuntime struct + ActualHumidity []int + ActualTemperature []int + AuxHeat1 []int + AuxHeat2 []int + AuxHeat3 []int + Cool1 []int + Cool2 []int + CurrentElectricityBill int + Dehumidifier []int + DesiredCool []int + DesiredDehumidity []int + DesiredHeat []int + DesiredHumidity []int + DmOffset []int + Economizer []int + Fan []int + HeatPump1 []int + HeatPump2 []int + Humidifier []int + HvacMode []string + LastReadingTimestamp string + ProjectedElectricityBill int + RuntimeDate string + RuntimeInterval int + Ventilator []int + type Function struct + Params interface{} + Type string + type GetThermostatSummaryRequest struct + Selection Selection + type GetThermostatSummaryResponse struct + RevisionList []string + Status Status + StatusList []string + ThermostatCount int + type GetThermostatsRequest struct + Page Page + Selection Selection + type GetThermostatsResponse struct + Page Page + Status Status + ThermostatList []Thermostat + type Page struct + Page int + PageSize int + Total int + TotalPages int + type PinResponse struct + Code string + EcobeePin string + func Authorize(clientID string) (*PinResponse, error) + type Program struct + Climates []Climate + CurrentClimateRef string + Schedule [][]string + type RemoteSensor struct + Capability []RemoteSensorCapability + Code string + ID string + InUse bool + Name string + Type string + type RemoteSensorCapability struct + ID string + Type string + Value string + type ResumeProgramParams struct + ResumeAll bool + type Runtime struct + ActualHumidity int + ActualTemperature int + ConnectDateTime string + Connected bool + DesiredCool int + DesiredCoolRange []int + DesiredDehumidity int + DesiredFanMode string + DesiredHeat int + DesiredHeatRange []int + DesiredHumidity int + DisconnectDateTime string + FirstConnected string + LastModified string + LastStatusModified string + RuntimeDate string + RuntimeInterval int + RuntimeRev string + type Selection struct + IncludeAlerts bool + IncludeAudio bool + IncludeDevice bool + IncludeElectricity bool + IncludeEquipmentStatus bool + IncludeEvents bool + IncludeExtendedRuntime bool + IncludeHouseDetails bool + IncludeLocation bool + IncludeManagement bool + IncludeNotificationSettings bool + IncludeOemCfg bool + IncludePrivacy bool + IncludeProgram bool + IncludeRuntime bool + IncludeSecuritySettings bool + IncludeSensors bool + IncludeSettings bool + IncludeTechnician bool + IncludeUtility bool + IncludeVersion bool + IncludeWeather bool + SelectionMatch string + SelectionType string + type SendMessageParams struct + Text string + type SetHoldParams struct + CoolHoldTemp int + EndDate string + EndTime string + HeatHoldTemp int + HoldClimateRef string + HoldHours int + HoldType string + StartDate string + StartTime string + type Settings struct + HvacMode string + type Status struct + Code int + Message string + type Thermostat struct + Brand string + Events []Event + ExtendedRuntime ExtendedRuntime + Features string + Identifier string + IsRegistered bool + LastModified string + ModelNumber string + Name string + Program Program + RemoteSensors []RemoteSensor + Runtime Runtime + Settings Settings + ThermostatRev string + ThermostatTime string + UtcTime string + Weather Weather + type ThermostatSummary struct + AlertsRevision string + Connected bool + Identifier string + IntervalRevision string + Name string + RuntimeRevision string + ThermostatRevision string + type ThermostatSummaryMap map[string]ThermostatSummary + type UpdateThermostatRequest struct + Functions []Function + Selection Selection + type UpdateThermostatResponse struct + Status Status + type Weather struct + Forecasts []WeatherForecast + Timestamp string + WeatherStation string + type WeatherForecast struct + Condition string + DateTime string + Dewpoint int + Pop int + Pressure int + RelativeHumidity int + Sky int + TempHigh int + TempLow int + Temperature int + Visibility int + WeatherSymbol int + WindBearing int + WindDirection string + WindGust int + WindSpeed int