Skip to content

City of Austin Utilities "No AMI UtilityAccounts" #109

@colings

Description

@colings

I've tried to get City of Austin Utilities working off and on since support was added, but I've never been able to get any data. I assumed it was because I'd used my COA account for two different addresses (a previous residence and the current one), or the fact that I have solar. When I add the integration to Home Assistant I don't get any errors, so today I finally decided to try debugging the Opower code to see if there was anything more helpful.

When I try to add my account I get this error:

Error server response: {"error":{"details":"No AMI UtilityAccounts found for specified customer.","serviceErrorCode":"NO_AMI_ACCOUNTS"}}

Looking at the output from the various requests the account id matches my COA account id, and the utility account id matches the service id for my electric meter. Nothing really sticks out to me as strange, I don't see multiple meters or anything like that. The only thing I noticed that's somewhat suspicious is when I was x'ing out personal information and ids there were two different but very similar values for premiseId and servicePointId. I've included the redacted output below.

DEBUG:opower.py:Fetching: https://dss-coa.opower.com/webcenter/edge/apis/dss-invite-v1/cws/v1/utilities/connectedaccounts?pageOffset=0&pageLimit=100?
Level 9:opower.py:Fetched: {
  "accounts": [
    {
      "accountId": "134xxxxxxx",
      "cisDivision": null,
      "nickName": "",
      "multiplePremiseExist": false,
      "premises": [
        {
          "country": "USA",
          "addressLine1": "xxxxxxxxxxxxxxxxxx",
          "addressLine2": "",
          "addressLine3": "",
          "addressLine4": "",
          "houseType": "  ",
          "number1": "",
          "number2": "",
          "inCityLimit": false,
          "city": "AUSTIN",
          "geographic": "",
          "county": "",
          "state": "TX",
          "postal": "xxxxx",
          "premiseId": "077xxxxx75"
        }
      ],
      "invitedUsers": [],
      "guestUsers": []
    }
  ],
  "totalRecords": 1
}

DEBUG:opower.py:Fetching: https://dss-coa.opower.com/webcenter/edge/apis/multi-account-v1/cws/coa/customers?offset=0&batchSize=100&addressFilter=?
Level 9:opower.py:Fetched: {
  "customers": [
    {
      "id": 109xxxx,
      "uuid": "c592b9c0-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
      "legacyOpowerId": "1-10xxxx",
      "accountNumber": "134xxxxxxx",
      "accountName": "",
      "address": {
        "uuid": "082e1628-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        "streetNumber": "xxxx",
        "streetName": "xxxxxxxxxxxxx",
        "subpremise": null,
        "postalCode": "xxxxx",
        "city": "AUSTIN",
        "country": "US",
        "state": "TX"
      },
      "type": "RESIDENTIAL",
      "utilityAccounts": [
        {
          "id": 111xxxx,
          "uuid": "d1242052-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
          "utilityAccountId": "141xxxxxxx",
          "utilityAccountId2": null,
          "servicePointId": 53xxx,
          "meterType": "ELEC",
          "preferredUtilityAccountId": "141xxxxxxx",
          "readResolution": "BILLING"
        }
      ]
    }
  ],
  "offset": 0,
  "batchSize": 100,
  "total": 1
}

DEBUG:opower.py:Fetching: https://dss-coa.opower.com/webcenter/edge/apis/bill-forecast-cws-v1/cws/coa/customers/c592b9c0-xxxx-xxxx-xxxx-xxxxxxxxxxxx/combined-forecast?
ERROR:opower.py:Error server response: {"error":{"details":"No AMI UtilityAccounts found for specified customer.","serviceErrorCode":"NO_AMI_ACCOUNTS"}}
DEBUG:opower.py:Ignoring combined-forecast error: 404

DEBUG:opower.py:Fetching: https://dss-coa.opower.com/webcenter/edge/apis/DataBrowser-v1/cws/cost/utilityAccount/d1242052-xxxx-xxxx-xxxx-xxxxxxxxxxxx?aggregateType=bill&startDate=2025-01-22T00%3A00%3A00-06%3A00&endDate=2025-01-30T00%3A00%3A00-06%3A00
Level 9:opower.py:Fetched: {
  "servicePointId": "077xxxxx61",
  "utilityAccountUuid": "d1242052-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "unit": "KWH",
  "siteTimeZoneId": "America/Chicago",
  "reads": [],
  "seriesComponents": null,
  "ratePlans": null
}

Getting historical data: account= Account(customer=Customer(uuid='c592b9c0-xxxx-xxxx-xxxx-xxxxxxxxxxxx'), uuid='d1242052-xxxx-xxxx-xxxx-xxxxxxxxxxxx', utility_account_id='141xxxxxxx', id='141xxxxxxx', meter_type=<MeterType.ELEC: 'ELEC'>, read_resolution=<ReadResolution.BILLING: 'BILLING'>) aggregate_type= bill start_date= 2025-01-22 12:32:45.707379 end_date= 2025-01-29 12:32:45.707394
start_time	end_time	consumption	provided_cost	start_minus_prev_end	end_minus_prev_end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions