Versions in this module Expand all Collapse all v2 v2.1.0 Aug 7, 2023 Changes in this version + type DazzleMode struct + Enabled bool type Device + func (d *Device) SetTemperatureOffset(ctx context.Context, temperatureOffset float32) error + type OpenWindowDetection struct + Enabled bool + TimeoutInSeconds int32 type OverlayType + const OverlayTypeAuto + const OverlayTypeTimer type Zone + func (z *Zone) DisableDazzleMode(ctx context.Context) error + func (z *Zone) DisableOpenWindowDetection(ctx context.Context) error + func (z *Zone) EnableDazzleMode(ctx context.Context) error + func (z *Zone) EnableOpenWindowDetection(ctx context.Context, timeout int32) error + func (z *Zone) GetDazzleMode(ctx context.Context) (*ZoneDazzleMode, error) + func (z *Zone) GetManualControlTerminationCondition(ctx context.Context) (*ZoneOverlayTermination, error) + func (z *Zone) GetOpenWindowDetection(ctx context.Context) (*OpenWindowDetection, error) + func (z *Zone) ManualControlTimer(ctx context.Context, duration int32) error + func (z *Zone) ManualControlUntilAutoChange(ctx context.Context) error + func (z *Zone) ManualControlUntilUserEnd(ctx context.Context) error + func (z *Zone) SetManualControlTerminationCondition(ctx context.Context, condition *ZoneOverlayTermination) error + type ZoneDefaultOverlay struct + TerminationCondition *ZoneOverlayTermination v2.0.5 Feb 21, 2023 v2.0.4 Feb 20, 2023 v2.0.3 Dec 14, 2022 Changes in this version type ZoneState + OpenWindowDetected bool v2.0.2 Nov 22, 2022 v2.0.1 Apr 13, 2022 Changes in this version + const ZoneTypeHeating + const ZoneTypeHotWater + type AwayConfiguration struct + AutoAdjust bool + ComfortLevel ComfortLevel + Setting *ZoneSetting + Type ZoneType + type ComfortLevel int32 + const ComfortLevelBalance + const ComfortLevelComfort + const ComfortLevelEco + type DayType string + const DayTypeFriday + const DayTypeMonday + const DayTypeMondayToFriday + const DayTypeMondayToSunday + const DayTypeSaturday + const DayTypeSunday + const DayTypeThursday + const DayTypeTuesday + const DayTypeWednesday + type Device struct + BatteryState *string + Characteristics DeviceCharacteristics + ChildLockEnabled *bool + ConnectionState DeviceConnectionState + CurrentFwVersion string + DeviceType DeviceType + Duties []string + GatewayOperation *string + InPairingMode *bool + MountingState *DeviceMountingState + SerialNo string + ShortSerialNo string + func (d *Device) GetTemperatureOffset(ctx context.Context) (*TemperatureOffset, error) + type DeviceCharacteristics struct + Capabilities []string + type DeviceConnectionState struct + Timestamp time.Time + Value bool + type DeviceMountingState struct + Timestamp time.Time + Value string + type DeviceType string + const DeviceTypeExtensionKit01 + const DeviceTypeExtensionKit02 + const DeviceTypeInternetBridge + const DeviceTypeSmartACControl01 + const DeviceTypeSmartACControl02 + const DeviceTypeSmartRadiatorThermostat01 + const DeviceTypeSmartRadiatorThermostat02 + const DeviceTypeSmartThermostat01 + const DeviceTypeSmartThermostat02 + const DeviceTypeWirelessReceiverBoiler01 + const DeviceTypeWirelessReceiverProgrammer01 + const DeviceTypeWirelessTemperatureSensor01 + type EarlyStart struct + Enabled bool + type HTTPClient interface + Do func(req *http.Request) (*http.Response, error) + type HeatingSchedule struct + Blocks []*ScheduleTimeBlock + ScheduleDays ScheduleDays + Timetable *ScheduleTimetable + func (s *HeatingSchedule) AddTimeBlock(_ context.Context, dayType DayType, start, end string, ...) *HeatingSchedule + func (s *HeatingSchedule) NewTimeBlock(ctx context.Context, dayType DayType, start, end string, ...) *HeatingSchedule + type Home struct + Address HomeAddress + AutoAssistFreeTrialEnabled bool + AwayRadiusInmeters float32 + ChristmasModeEnabled bool + ConsentGrantSkippable bool + ContactDetails HomeContactDetails + DateCreated time.Time + DateTimeZone string + Geolocation HomeGeolocation + ID int32 + IncidentDetection HomeIncidentDetection + InstallationCompleted bool + Name string + ShowAutoAssistReminders bool + SimpleSmartScheduleEnabled bool + Skills []string + TemperatureUnit TemperatureUnit + func (h *Home) GetDevices(ctx context.Context) ([]*Device, error) + func (h *Home) GetInstallations(ctx context.Context) ([]*Installation, error) + func (h *Home) GetMobileDevices(ctx context.Context) ([]*MobileDevice, error) + func (h *Home) GetState(ctx context.Context) (*HomeState, error) + func (h *Home) GetUsers(ctx context.Context) ([]*User, error) + func (h *Home) GetWeather(ctx context.Context) (*Weather, error) + func (h *Home) GetZone(ctx context.Context, name string) (*Zone, error) + func (h *Home) GetZones(ctx context.Context) ([]*Zone, error) + func (h *Home) SetPresenceAuto(ctx context.Context) error + func (h *Home) SetPresenceAway(ctx context.Context) error + func (h *Home) SetPresenceHome(ctx context.Context) error + type HomeAddress struct + AddressLine1 *string + AddressLine2 *string + City *string + Country *string + State *string + ZipCode *string + type HomeContactDetails struct + Email *string + Name *string + Phone *string + type HomeGeolocation struct + Latitude float64 + Longitude float64 + type HomeIncidentDetection struct + Enabled bool + Supported bool + type HomeState struct + Presence Presence + PresenceLocked bool + type Installation struct + Devices []Device + ID int32 + Revision int32 + State string + Type string + type LinkState string + const LinkStateOffline + const LinkStateOnline + type Measurement struct + Timestamp time.Time + Type MeasurementType + type MeasurementType string + const MeasurementTypePercentage + const MeasurementTypeTemperature + const MeasurementTypeWeather + type MobileDevice struct + DeviceMetadata MobileDeviceMetadata + ID int32 + Location *MobileDeviceLocation + Name string + Settings MobileDeviceSettings + func (md *MobileDevice) Delete(ctx context.Context) error + func (md *MobileDevice) SetSettings(ctx context.Context, settings MobileDeviceSettings) error + type MobileDeviceLocation struct + AtHome bool + BearingFromHome MobileDeviceLocationBearingFromHome + RelativeDistanceFromHomeFence float64 + Stale bool + type MobileDeviceLocationBearingFromHome struct + Degrees float64 + Radians float64 + type MobileDeviceMetadata struct + Locale string + Model string + OSVersion string + Platform string + type MobileDeviceSettings struct + GeoTrackingEnabled bool + PushNotifications *MobileDeviceSettingsPushNotifications + type MobileDeviceSettingsPushNotifications struct + AwayModeReminder bool + EnergySavingsReportReminder bool + HomeModeReminder bool + IncidentDetection bool + LowBatteryReminder bool + OpenWindowReminder bool + type OverlayType string + const OverlayTypeManual + type PercentageMeasurement struct + Percentage float64 + type Power string + const PowerOff + const PowerOn + type Presence string + const PresenceAway + const PresenceHome + type PresenceLock struct + HomePresence Presence + type ScheduleDays string + const ScheduleDaysMonToFriSatSun + const ScheduleDaysMonToSun + const ScheduleDaysMonTueWedThuFriSatSun + type ScheduleTimeBlock struct + DayType DayType + End string + GeolocationOverride bool + Setting *ZoneSetting + Start string + type ScheduleTimetable struct + ID int32 + Type TimetableType + func (s *ScheduleTimetable) GetTimeBlocks(ctx context.Context) ([]*ScheduleTimeBlock, error) + func (s *ScheduleTimetable) SetTimeBlocks(ctx context.Context, blocks []*ScheduleTimeBlock) error + type Tado struct + func New(clientID, clientSecret string) *Tado + func (t *Tado) Me(ctx context.Context, username, password string) (*User, error) + type TemperatureMeasurement struct + Celsius float64 + Fahrenheit float64 + Precision TemperatureMeasurementPrecision + type TemperatureMeasurementPrecision struct + Celsius float64 + Fahrenheit float64 + type TemperatureOffset struct + Celsius float32 + Fahrenheit float32 + type TemperatureUnit string + const TemperatureUnitCelsius + const TemperatureUnitFahrenheit + type TimetableType string + const TimetableOneDay + const TimetableSevenDay + const TimetableThreeDay + type User struct + Email string + Homes []UserHome + ID string + Locale string + MobileDevices []MobileDevice + Name string + Username string + func (u *User) GetHome(ctx context.Context, name string) (*Home, error) + type UserHome struct + ID int32 + Name string + type Weather struct + OutsideTemperature *TemperatureMeasurement + SolarIntensity *PercentageMeasurement + WeatherState *WeatherMeasurement + type WeatherMeasurement struct + Value string + type Zone struct + DateCreated time.Time + DazzleEnabled bool + DazzleMode ZoneDazzleMode + DeviceTypes []DeviceType + Devices []Device + ID int32 + Name string + OpenWindowDetection ZoneOpenWindowDetection + ReportAvailable bool + SupportsDazzle bool + Type ZoneType + func (z *Zone) CloseWindow(ctx context.Context) error + func (z *Zone) GetActiveScheduleTimetable(ctx context.Context) (*ScheduleTimetable, error) + func (z *Zone) GetAwayConfiguration(ctx context.Context) (*AwayConfiguration, error) + func (z *Zone) GetCapabilities(ctx context.Context) (*ZoneCapabilities, error) + func (z *Zone) GetDevices(ctx context.Context) ([]*Device, error) + func (z *Zone) GetEarlyStart(ctx context.Context) (bool, error) + func (z *Zone) GetHeatingSchedule(ctx context.Context) (*HeatingSchedule, error) + func (z *Zone) GetState(ctx context.Context) (*ZoneState, error) + func (z *Zone) OpenWindow(ctx context.Context) error + func (z *Zone) ResumeSchedule(ctx context.Context) error + func (z *Zone) ScheduleAllDays(ctx context.Context) (*HeatingSchedule, error) + func (z *Zone) ScheduleMonToFriSatSun(ctx context.Context) (*HeatingSchedule, error) + func (z *Zone) ScheduleMonToSun(ctx context.Context) (*HeatingSchedule, error) + func (z *Zone) SetActiveScheduleTimetable(ctx context.Context, timetable *ScheduleTimetable) error + func (z *Zone) SetAwayConfiguration(ctx context.Context, awayConfig *AwayConfiguration) error + func (z *Zone) SetAwayMinimumTemperature(ctx context.Context, temperature float64) error + func (z *Zone) SetAwayPreheatComfortLevel(ctx context.Context, comfortLevel ComfortLevel) error + func (z *Zone) SetAwayPreheatOff(ctx context.Context) error + func (z *Zone) SetEarlyStart(ctx context.Context, earlyStart bool) error + func (z *Zone) SetHeatingOff(ctx context.Context) error + func (z *Zone) SetHeatingOn(ctx context.Context, temperature float64) error + func (z *Zone) SetHeatingSchedule(ctx context.Context, schedule *HeatingSchedule) error + type ZoneCapabilities struct + CanSetTemperature *bool + Temperatures *ZoneCapabilitiesTemperatures + Type ZoneType + type ZoneCapabilitiesTemperatureValues struct + Max int32 + Min int32 + Step float32 + type ZoneCapabilitiesTemperatures struct + Celsius *ZoneCapabilitiesTemperatureValues + Fahrenheit *ZoneCapabilitiesTemperatureValues + type ZoneDazzleMode struct + Enabled bool + Supported bool + type ZoneOpenWindowDetection struct + Enabled bool + Supported bool + TimeoutInSeconds int32 + type ZoneOverlay struct + Setting *ZoneSetting + Termination *ZoneOverlayTermination + Type OverlayType + type ZoneOverlayTermination struct + DurationInSeconds int32 + Expiry string + ProjectedExpiry *string + RemainingTimeInSeconds int32 + Type string + TypeSkillBasedApp string + type ZoneSetting struct + Power Power + Temperature *ZoneSettingTemperature + Type ZoneType + type ZoneSettingTemperature struct + Celsius float64 + Fahrenheit float64 + type ZoneState struct + ActivityDataPoints *ZoneStateActivityDataPoints + GeolocationOverride bool + GeolocationOverrideDisableTime *string + Link ZoneStateLink + NextScheduledChange *ZoneStateNextScheduledChange + NextTimeBlock *ZoneStateNextTimeBlock + OpenWindow *ZoneStateOpenWindow + Overlay *ZoneOverlay + OverlayType *OverlayType + SensorDataPoints *ZoneStateSensorDataPoints + Setting ZoneSetting + TadoMode string + type ZoneStateActivityDataPoints struct + HeatingPower *PercentageMeasurement + type ZoneStateLink struct + Reason ZoneStateLinkReason + State string + type ZoneStateLinkReason struct + Code string + Title string + type ZoneStateNextScheduledChange struct + Setting *ZoneSetting + Start time.Time + type ZoneStateNextTimeBlock struct + Start time.Time + type ZoneStateOpenWindow struct + DetectedTime string + DurationInSeconds int32 + Expiry string + RemainingTimeInSeconds int32 + type ZoneStateSensorDataPoints struct + Humidity *PercentageMeasurement + InsideTemperature *TemperatureMeasurement + type ZoneType string Other modules containing this package github.com/gonzolino/gotado