Next: flags attribute, Previous: output, Up: Inputs, Outputs, and Bindings [Contents]
The unit attribute is the lowercase token returned by
st_unit_to_string / accepted by st_unit_from_string in
libstarter-core. Parsing is case-insensitive; surrounding
whitespace is stripped. Unknown tokens are a hard config error.
nullDimensionless / unspecified.
celsius / fahrenheit / kelvinTemperature.
percentPercentage.
bar / pa / hpa / kpa / mpa / mbar / psi / atmPressure.
onoffBinary 0/1.
enumDiscrete enumerated value (numeric index).
v / mv / kvVoltage.
a / ma / kaCurrent.
ohmResistance.
hzFrequency.
w / kw / mwActive power.
var / kvarReactive power.
va / kvaApparent power.
wh / kwhEnergy (watt-hour family).
j / kj / mjEnergy (joule family).
seconds / minutes / hours / ms / daysTime.
mm / cm / m / kmLength.
m2Area (square metre).
ml / l / m3Volume.
g / kg / tMass.
m_s / km_hSpeed.
rpmRotational speed.
l_min / m3_hVolumetric flow.
degree / radianAngle.
luxIlluminance.
ppm / ppbConcentration.
db / dbaLevel / A-weighted sound level.
phAcidity.
count / ratioDimensionless count or ratio.
bps / kbps / mbpsBit rate.
byte / kib / mib / gibData size.