I have 2 values that are produced from a binding (DSMR)
Number:Energy Sensor_VH_Meterkast_Smartmeter_emeter_production_tariff1 "Laag tarief [%.3f %unit%]" <poweroutlet> (gPersist_2359u)
{channel="dsmr:electricity_v5_0:myDSMRDevice:electricityV5:emeter_production_tariff1"}
Number:Energy Sensor_VH_Meterkast_Smartmeter_emeter_production_tariff2 "Laag tarief [%.3f %unit%]" <poweroutlet> (gPersist_2359u)
{channel="dsmr:electricity_v5_0:myDSMRDevice:electricityV5:emeter_production_tariff2"}
I want to add these numbers together but how to keep the unit of measurement?
When using:
Sensor_VH_Meterkast_Smartmeter_emeter_delivery_total.postUpdate(Sensor_VH_Meterkast_Smartmeter_emeter_delivery_tariff1.getStateAs (DecimalType) + Sensor_VH_Meterkast_Smartmeter_emeter_delivery_tariff2.getStateAs (DecimalType))
the total is correct but the UoM is lost…