Versions in this module Expand all Collapse all v0 v0.3.2 Apr 18, 2025 v0.3.1 Feb 13, 2024 Changes in this version + func Bool(b bool) *bool + func Int(i int) *int + func String(s string) *string + func WithAPIBaseURL(apiBaseURL string) func(*Client) + func WithAPIVersion(apiVersion int) func(*Client) + func WithCustomHTTPHeaders(customHTTPHeaders map[string]string) func(*Client) + func WithHTTPClient(httpClient *http.Client) func(*Client) + type APIError struct + func (e *APIError) Error() string + type APIStatusResponse struct + func (a *APIStatusResponse) Status() *objects.Status + func (a *APIStatusResponse) String() string + func (a *APIStatusResponse) UnmarshalJSON(data []byte) error + type AckType string + const AckTypeAccept + const AckTypeDecline + const AckTypeDefer + const AckTypeUnacknowledged + type AcknowledgeParameters struct + AckRef *string + AckType *AckType + RemindMeLater *bool + ThermostatIdentifier *string + type AuthorizationError struct + func (e *AuthorizationError) Error() string + type AuthorizationErrorResponse struct + func (e *AuthorizationErrorResponse) ErrorDescription() string + func (e *AuthorizationErrorResponse) ErrorType() string + func (e *AuthorizationErrorResponse) ErrorURI() string + func (e *AuthorizationErrorResponse) UnmarshalJSON(data []byte) error + type Client struct + func NewClient(optionalParameters ...clientOptionalParameters) *Client + func (c *Client) APIBaseURL() string + func (c *Client) APIVersion() int + func (c *Client) Acknowledge(ctx context.Context, selection *objects.Selection, ...) (*APIStatusResponse, error) + func (c *Client) ControlPlug(ctx context.Context, selection *objects.Selection, ...) (*APIStatusResponse, error) + func (c *Client) CreateVacation(ctx context.Context, selection *objects.Selection, ...) (*APIStatusResponse, error) + func (c *Client) CustomHTTPHeaders() map[string]string + func (c *Client) DeleteVacation(ctx context.Context, selection *objects.Selection, ...) (*APIStatusResponse, error) + func (c *Client) Group(ctx context.Context, selection *objects.Selection) (*GroupSuccessResponse, error) + func (c *Client) MeterReport(ctx context.Context, selection *objects.Selection, ...) (*MeterReportSuccessResponse, error) + func (c *Client) OAuth2Token() *oauth2.Token + func (c *Client) PINAuthorization(ctx context.Context, applicationKey string, scope Scope) (*PINAuthorizationSuccessResponse, error) + func (c *Client) RequestTokens(ctx context.Context, applicationKey string, authorizationToken string) (*TokensSuccessResponse, error) + func (c *Client) ResetPreferences(ctx context.Context, selection *objects.Selection) (*APIStatusResponse, error) + func (c *Client) ResumeProgram(ctx context.Context, selection *objects.Selection, ...) (*APIStatusResponse, error) + func (c *Client) RuntimeReport(ctx context.Context, selection *objects.Selection, ...) (*RuntimeReportSuccessResponse, error) + func (c *Client) SendMessage(ctx context.Context, selection *objects.Selection, ...) (*APIStatusResponse, error) + func (c *Client) SetHold(ctx context.Context, selection *objects.Selection, ...) (*APIStatusResponse, error) + func (c *Client) String() string + func (c *Client) Thermostat(ctx context.Context, selection *objects.Selection, page *objects.Page) (*ThermostatSuccessResponse, error) + func (c *Client) ThermostatSummary(ctx context.Context, selection *objects.Selection) (*ThermostatSummarySuccessResponse, error) + func (c *Client) UnlinkVoiceEngine(ctx context.Context, selection *objects.Selection, ...) (*APIStatusResponse, error) + func (c *Client) UpdateGroup(ctx context.Context, selection *objects.Selection, groups []objects.Group) (*GroupSuccessResponse, error) + func (c *Client) UpdateSensor(ctx context.Context, selection *objects.Selection, ...) (*APIStatusResponse, error) + func (c *Client) UpdateThermostat(ctx context.Context, selection *objects.Selection, ...) (*APIStatusResponse, error) + type ControlPlugParameters struct + EndDateTime *time.Time + HoldHours *int + HoldType *HoldType + PlugName *string + PlugState *PlugState + StartDateTime *time.Time + type CreateVacationParameters struct + CoolHoldTemp *int + EndDateTime *time.Time + Fan *FanMode + FanMinOnTime *string + HeatHoldTemp *int + Name *string + StartDateTime *time.Time + type DeleteVacationParameters struct + Name *string + type FanMode string + const FanModeAuto + const FanModeOn + type GroupSuccessResponse struct + func (g *GroupSuccessResponse) Groups() []objects.Group + func (g *GroupSuccessResponse) Status() *objects.Status + func (g *GroupSuccessResponse) String() string + func (g *GroupSuccessResponse) UnmarshalJSON(data []byte) error + type HoldType string + const HoldTypeDateTime + const HoldTypeHoldHours + const HoldTypeIndefinite + const HoldTypeNextTransition + type MeterReportParameters struct + EndDate *time.Time + EndInterval *int + Meters []MeterType + StartDate *time.Time + StartInterval *int + type MeterReportSuccessResponse struct + func (m *MeterReportSuccessResponse) ReportList() []objects.MeterReport + func (m *MeterReportSuccessResponse) Status() *objects.Status + func (m *MeterReportSuccessResponse) String() string + func (m *MeterReportSuccessResponse) UnmarshalJSON(data []byte) error + type MeterType string + const MeterTypeEnergy + type PINAuthorizationSuccessResponse struct + func (a *PINAuthorizationSuccessResponse) AuthorizationToken() string + func (a *PINAuthorizationSuccessResponse) ExpiresIn() int + func (a *PINAuthorizationSuccessResponse) PIN() string + func (a *PINAuthorizationSuccessResponse) PollingInterval() int + func (a *PINAuthorizationSuccessResponse) Scope() Scope + func (a *PINAuthorizationSuccessResponse) String() string + func (a *PINAuthorizationSuccessResponse) UnmarshalJSON(data []byte) error + type PlugState string + const PlugStateOff + const PlugStateOn + const PlugStateResume + type ResumeProgramParameters struct + ResumeAll *bool + type RuntimeReportParameters struct + Columns *string + EndDate *time.Time + EndInterval *int + IncludeSensor *bool + StartDate *time.Time + StartInterval *int + type RuntimeReportSuccessResponse struct + func (m *RuntimeReportSuccessResponse) ReportList() []objects.RuntimeReport + func (m *RuntimeReportSuccessResponse) SensorList() []objects.RuntimeSensorReport + func (m *RuntimeReportSuccessResponse) Status() *objects.Status + func (m *RuntimeReportSuccessResponse) String() string + func (m *RuntimeReportSuccessResponse) UnmarshalJSON(data []byte) error + type Scope string + const ScopeEMS + const ScopeSmartRead + const ScopeSmartWrite + type SendMessageParameters struct + Text *string + type SetHoldParameters struct + CoolHoldTemp *int + EndDateTime *time.Time + HeatHoldTemp *int + HoldClimateRef *string + HoldHours *int + HoldType *HoldType + StartDateTime *time.Time + type ThermostatSuccessResponse struct + func (t *ThermostatSuccessResponse) Page() *objects.Page + func (t *ThermostatSuccessResponse) Status() *objects.Status + func (t *ThermostatSuccessResponse) String() string + func (t *ThermostatSuccessResponse) ThermostatList() []objects.Thermostat + func (t *ThermostatSuccessResponse) UnmarshalJSON(data []byte) error + type ThermostatSummarySuccessResponse struct + func (t *ThermostatSummarySuccessResponse) RevisionList() []string + func (t *ThermostatSummarySuccessResponse) Status() *objects.Status + func (t *ThermostatSummarySuccessResponse) StatusList() []string + func (t *ThermostatSummarySuccessResponse) String() string + func (t *ThermostatSummarySuccessResponse) ThermostatCount() int + func (t *ThermostatSummarySuccessResponse) UnmarshalJSON(data []byte) error + type TokensSuccessResponse struct + func (t *TokensSuccessResponse) AccessToken() string + func (t *TokensSuccessResponse) ExpiresIn() int + func (t *TokensSuccessResponse) RefreshToken() string + func (t *TokensSuccessResponse) Scope() Scope + func (t *TokensSuccessResponse) String() string + func (t *TokensSuccessResponse) TokenType() string + func (t *TokensSuccessResponse) UnmarshalJSON(data []byte) error + type UnlinkVoiceEngineParameters struct + EngineName *string + type UpdateSensorParameters struct + DeviceID *string + Name *string + SensorID *string