Skip to content

Add TH as valid UnitOfMeasure for therms#179

Closed
thecodingaviator wants to merge 1 commit into
tronikos:mainfrom
thecodingaviator:fix-therm-unit-alias
Closed

Add TH as valid UnitOfMeasure for therms#179
thecodingaviator wants to merge 1 commit into
tronikos:mainfrom
thecodingaviator:fix-therm-unit-alias

Conversation

@thecodingaviator
Copy link
Copy Markdown

ConEd's GraphQL API returns "TH" for gas forecast unit instead of "THERM", causing an unknown unit warning and incorrect defaulting to KWH.

Request: POST https://cned.opower.com/ei/edge/apis/dsm-graphql-v1/cws/graphql

Response (gas segment):

{
  "serviceAgreement": {
    "uuid": <redacted>
  },
  "estimatedUsage": {
    "value": 0.0,
    "unit": "TH"
  },
  "estimatedUsageCharges": null,
  "soFarUsage": {
    "value": 0.0
  },
  "soFarUsageCharges": null,
  "priorYearUsage": null,
  "priorYearUsageCharges": null
}

@tronikos
Copy link
Copy Markdown
Owner

I submitted a better fix in cd63d1c

@tronikos tronikos closed this Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants