system.mes.meter.getAllMeterTypes
Description
Retrieves a list of all Meter Type records in the system.
Permissions
This method requires the METERING.READ.GET permission.
Syntax
system.mes.meter.getAllMeterTypes()
Parameters
| Parameter | Type | Nullable | Description |
|---|---|---|---|
| None | - | - | This method does not take any parameters. |
Returns
Returns a list of JSON objects representing all Meter Types. Each object in the list has the following properties:
| Name | Type | Description |
|---|---|---|
id | String (ULID) | The ULID of the Meter Type. |
name | String | Display name for this meter type (e.g., Water, Electricity, Gas). |
usageUnitOfMeasureId | String (ULID) | The ULID of the unit of measure for usage values. |
usageUnitOfMeasureName | String | Display name of the usage unit of measure. |
usageUnitOfMeasureSymbol | String | Symbol of the usage unit of measure (e.g., kWh). |
cost | Double | Default cost per unit of measure. |
costUnitOfMeasureId | String (ULID) | The ULID of the unit of measure for cost values. |
costUnitOfMeasureName | String | Display name of the cost unit of measure. |
costUnitOfMeasureSymbol | String | Symbol of the cost unit of measure (e.g., USD). |
notes | String | Notes related to the meter type. |
enabled | Boolean | Indicates if the meter type is active and enabled. |
spare1 | String | Additional field for user-defined context. |
spare2 | String | Additional field for user-defined context. |
spare3 | String | Additional field for user-defined context. |
Code Examples
# Retrieve all Meter Types
meterTypes = system.mes.meter.getAllMeterTypes()
# Output the list of Meter Types
print(meterTypes)