> ## Documentation Index
> Fetch the complete documentation index at: https://developer.energy-hub.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get HVAC away mode

> Gets away mode period set for HVAC, also if it has not started yet.



## OpenAPI

````yaml get /v1.0.0/hvacs/{hvacId}/away
openapi: 3.0.1
info:
  description: A service used for HVAC devices
  title: hvac-service
  version: 1.0.0
servers:
  - description: Generated server url
    url: https://api.energy-hub.io
security: []
paths:
  /v1.0.0/hvacs/{hvacId}/away:
    get:
      tags:
        - Hvac Controller
      summary: Get HVAC away mode
      description: Gets away mode period set for HVAC, also if it has not started yet.
      operationId: getAway_1
      parameters:
        - description: HVAC ID
          in: path
          name: hvacId
          required: true
          schema:
            format: uuid
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AwayResponse'
          description: Successful operation
        '401':
          content:
            application/json:
              examples:
                UNAUTHORIZED:
                  $ref: '#/components/examples/UNAUTHORIZED'
              schema:
                $ref: '#/components/schemas/ErrorMessageDto'
          description: Unauthorized
        '404':
          content:
            application/json:
              examples:
                HVAC_NOT_FOUND:
                  $ref: '#/components/examples/HVAC_NOT_FOUND'
              schema:
                $ref: '#/components/schemas/ErrorMessageDto'
          description: Not found
        '409':
          content:
            application/json:
              examples:
                READ_AWAY_PERIOD_NOT_SUPPORTED:
                  $ref: '#/components/examples/READ_AWAY_PERIOD_NOT_SUPPORTED'
                UNSUPPORTED_AWAY_FOR_DEVICE:
                  $ref: '#/components/examples/UNSUPPORTED_AWAY_FOR_DEVICE'
              schema:
                $ref: '#/components/schemas/ErrorMessageDto'
          description: Conflict
        '501':
          content:
            application/json:
              examples:
                VENDOR_FEATURE_NOT_SUPPORTED:
                  $ref: '#/components/examples/VENDOR_FEATURE_NOT_SUPPORTED'
              schema:
                $ref: '#/components/schemas/ErrorMessageDto'
          description: Not implemented
      security:
        - API_Key: []
components:
  schemas:
    AwayResponse:
      properties:
        period:
          $ref: '#/components/schemas/AwayPeriod'
      type: object
    ErrorMessageDto:
      properties:
        errorCode:
          description: The error code
          example: EXAMPLE_ERROR_CODE
          type: string
        id:
          description: The error identifier
          example: 7958818d-64d2-4ede-b12b-4786dd2f348b
          format: uuid
          type: string
        message:
          description: The error message
          example: Example error message
          type: string
      required:
        - errorCode
        - id
        - message
      type: object
    AwayPeriod:
      description: >-
        Away mode as whole days in the HVAC time zone, both dates included. Same
        format as the set away request, so it can be sent back unchanged.
      properties:
        endDate:
          description: Last away day, included.
          example: '2026-10-14'
          format: date
          type: string
        startDate:
          description: First away day.
          example: '2026-10-13'
          format: date
          type: string
      type: object
  examples:
    UNAUTHORIZED:
      value:
        errorCode: UNAUTHORIZED
        id: 01a3f0f4-eb1c-4b20-8a36-233fe8b4604d
        message: Unauthorized
    HVAC_NOT_FOUND:
      value:
        errorCode: HVAC_NOT_FOUND
        id: 01a3f0f4-eb1c-4b20-8a36-233fe8b4604d
        message: '[HVAC] HVAC not found'
    READ_AWAY_PERIOD_NOT_SUPPORTED:
      value:
        errorCode: READ_AWAY_PERIOD_NOT_SUPPORTED
        id: 01a3f0f4-eb1c-4b20-8a36-233fe8b4604d
        message: '[HVAC] Reading away period is not supported'
    UNSUPPORTED_AWAY_FOR_DEVICE:
      value:
        errorCode: UNSUPPORTED_AWAY_FOR_DEVICE
        id: 01a3f0f4-eb1c-4b20-8a36-233fe8b4604d
        message: '[HVAC] Specified device does not support away mode'
    VENDOR_FEATURE_NOT_SUPPORTED:
      value:
        errorCode: VENDOR_FEATURE_NOT_SUPPORTED
        id: 01a3f0f4-eb1c-4b20-8a36-233fe8b4604d
        message: '[HVAC] Feature is not supported for this vendor'
  securitySchemes:
    API_Key:
      description: API key used for authorization and authentication.
      in: header
      name: X-API-KEY
      type: apiKey

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.