@Hamsterbrain Thanks for reviving this.
Your github repo doesn’t have issues enabled so hopefully you can help here. I’m hoping to get Toronto Hydro supported.
Toronto Hydro uses W as a unit of measurement with code 38 (UtilityAPI - Docs - Green Button XML Format).
38 - W
I note this section of code:
_UOM_MAP: Final = {
# Use strings to keep model generic across energy and gas
“72”: “Wh”, # Watt-hours (electricity)
“42”: “m³”, # Cubic meters (gas)
“80”: “currency”,
}
I’m encountering the following error:
Failed to check flowDirection for /UsagePoint/1/MeterReading/1: Invalid value '38' at path
'./atom:content/espi:ReadingType/espi:uom' of entry:
<ns0:entry xmlns:ns0="http://www.w3.org/2005/Atom" xmlns:ns1="http://naesb.org/espi"> <ns0:id>urn:uuid:8ef6f3bd-fe2f-4329-84e6-94241c5ace1d</ns0:id>
<ns0:link href="/ReadingType/1" rel="self" />
<ns0:link href="/ReadingType" rel="up" />
<ns0:title>Energy Delivered (W_ELE_DEL)</ns0:title> <ns0:content type="xml"> <ns1:ReadingType> <ns1:accumulationBehaviour>0</ns1:accumulationBehaviour> <ns1:commodity>1</ns1:commodity> <ns1:dataQualifier>0</ns1:dataQualifier> <ns1:flowDirection>0</ns1:flowDirection> <ns1:kind>8</ns1:kind> <ns1:phase>0</ns1:phase> <ns1:powerOfTenMultiplier>0</ns1:powerOfTenMultiplier> <ns1:timeAttribute>0</ns1:timeAttribute> <ns1:uom>38</ns1:uom> </ns1:ReadingType> </ns0:content> <ns0:updated>2025-11-07T12:34:00-05:00</ns0:updated> </ns0:entry> , including by default