Structures
tsSE_PricePublishPriceCmdPayload
This structure is used to hold price information to be added to a price list of a Price cluster:
typedef struct {
uint8 u8UnitOfMeasure;
uint8 u8PriceTrailingDigitAndPriceTier;
uint8 u8NumberOfPriceTiersAndRegisterTiers;
uint8 u8PriceRatio;
uint8 u8GenerationPriceRatio;
uint8 u8AlternateCostUnit;
uint8 u8AlternateCostTrailingDigit;
uint8 u8NumberOfBlockThresholds;
uint8 u8PriceControl;
uint16 u16Currency;
uint16 u16DurationInMinutes;
uint32 u32ProviderId;
uint32 u32IssuerEventId;
uint32 u32StartTime;
uint32 u32Price;
uint32 u32GenerationPrice;
uint32 u32AlternateCostDelivered;
tsZCL_OctetString sRateLabel;
} tsSE_PricePublishPriceCmdPayload;
where:
u8UnitOfMeasure
indicates the resource (e.g. electricity) and unit of measure (e.g. kWh) for the pricing (see Section 42.10.3)u8PriceTrailingDigitAndPriceTier
is an 8-bit bitmap indicating the price tier and the number of digits after the decimal point in the price:The 4 most significant bits give the number of digits to the right of the decimal point in the price
The 4 least significant bits give the price tier in the range 1 to 6
u8NumberOfPriceTiersAndRegisterTiers
is an 8-bit bitmap indicating the number of price tiers available and the particular tier that the price information in the structure relates to:The 4 most significant bits give the number of available price tiers in the range 0 to 6
The 4 least significant bits give the price tier used in the range 1 to 6
(this value must be less than or equal to the value in the 4 leading bits)
u8PriceRatio
(optional) is the ratio of the price quoted inu32Price
to the ‘normal’ price offered by the utility company. The actual price ratio should be multiplied by 10 for encoding this field, so that a field value of 0x01 represents 0.1 and 0xFE represents 25.4, while 0xFF indicates that the field is not usedu8GenerationPriceRatio
(optional) is the ratio of the price quoted inu32GenerationPrice
to the ‘normal’ price offered by the utility company. The actual price ratio should be multiplied by 10 for encoding this field, so that a field value of 0x01 represents 0.1 and 0xFE represents 25.4, while 0xFF is reserved to indicate that the field is not usedu8AlternateCostUnit
(optional) is an 8-bit bitmap indicating the unit for the alternative cost inu32AlternateCostDelivered
. Currently, the only supported unit is kilograms of CO2, indicated by the value 0x01u8AlternateCostTrailingDigit
(optional) is an 8-bit bitmap in which the 4 most significant bits indicate the number of digits after the decimal point inu32AlternateCostDelivered
(the 4 least significant bits are reserved)u8NumberOfBlockThresholds
is reserved for future use (for Block mode)u8PriceControl
is reserved for future use (for Block mode)u16Currency
indicates the currency (e.g. Euro) used for the price - this field should be set to the appropriate value defined by ISO 4217u16DurationInMinutes
indicates the duration, in minutes, for which the price will be valid (0xFFFF indicates that price will remain valid until changed)u32ProviderId
is an identifier for the utility companyu``32IssuerEventId
is a unique identifier for the price information - the higher its value, the more recently the price information was issued (a UTC time-stamp could be used in this field)u``32StartTime
indicates the start-time (UTC) for the price, in seconds. The special value 0x00000000 denotes a start-time of ‘now’u``32Price
is the resource price per unit indicated inu8UnitOfMeasure
, expressed in the currency indicated inu16Currency
, with the position of the decimal point as indicated inu8PriceTrailingDigitAndPriceTie``r
u``32GenerationPrice
(optional) is the resource price per unit indicated inu8UnitOfMeasure
, expressed in the currency indicated inu16Currency
and with the position of the decimal point as indicated inu8PriceTrailingDigitAndPriceTier
, for a resource that is generated on the customer premises and supplied to the utility company (e.g. solar-sourced electric power supplied to the national grid). A value of 0xFFFFFFFF indicates that this field is not usedu32AlternateCostDelivered
(optional) indicates an alternative cost (per resource consumption unit) which is measured by a means other than monetary - for example, the amount of CO2 emitted per unit of gas consumed This alternative cost is interpreted as specified byu8AlternateCostUnit
andu8AlternateCostTrailingDigit
sRateLabel
is a string of up to 12 characters containing a label for the price information in the structure
Parent topic:Structures
tsSE_PricePublishConversionCmdPayload
This structure is used to hold information to be added to a conversion factor list of a Price cluster:
typedef struct {
uint32 u32IssuerEventId;
uint32 u32StartTime;
uint32 u32ConversionFactor;
zbmap8 u8ConversionFactorTrailingDigit;
}tsSE_PricePublishConversionCmdPayload;
where:
u32IssuerEventId
is a unique identifier for the conversion factor information - the higher the value, the more recently the information was issuedu32StartTime
is the start-time of the conversion factor value. This is the time at which the conversion factor value is scheduled to become activeu32ConversionFactor
is used only for gas and accounts for the variation in the volume of gas with temperature and pressure (the value is dimensionless)u8ConversionFactorTrailingDigit
is an 8-bit bitmap which indicates the location of the decimal point in theu32ConversionFactor
field. The most significant 4 bits indicate the number of digits after the decimal point. The remaining bits are reserved
Parent topic:Structures
tsSE_PricePublishCalorificValueCmdPayload
This structure is used to hold information to be added to a calorific value list of the Price cluster:
typedef struct {
zenum8 u8CalorificValueUnit;
zbmap8 u8CalorificValueTrailingDigit;
uint32 u32IssuerEventId;
uint32 u32StartTime;
uint32 u32CalorificValue;
}tsSE_PricePublishCalorificValueCmdPayload;
where:
u8CalorificValueUnit
is an 8-bit enumerated value which defines the unit for theu32CalorificValue
field (below). It indicates whether the calorific value is quantified per unit volume or per unit mass - see Section 40.12.3.u8CalorificValueTrailingDigit
is an 8-bit bitmap which indicates the location of the decimal point in theu32CalorificValue
field (below). The most significant 4 bits indicate the number of digits after the decimal point. The remaining bits are reservedu32IssuerEventId
is a unique identifier for the calorific value information - the higher the value, the more recently the information was issuedu32StartTime
is the start-time of the calorific value. This is the time at which the conversion factor value is scheduled to become activeu32CalorificValue
is used only for gas and indicates the quantity of energy in MJ that is generated per unit volume or unit mass of gas burned (seeu8CalorificValueUnit
). The position of the decimal point is indicated byu8CalorificValueTrailingDigit
described above
Parent topic:Structures
Parent topic:Price Cluster