Continuing the discussion from August 27, 2025 - Strict validation of unit values in the measurement fragments:
thin-edge doesn’t currently support units.
I couldn’t really believe this, but checking it out, this really is the case. Units are such a fundamental part of Cumulocity that I didn’t even think of this as a possibility. We even ran into bugs in Cumulocity because we currently don’t send units with our measurements (using Thin Edge). And the response in that ticket included the statement:
Note there is a value, but no unit - what use is a value without a unit?
The only way I currently found to include units that are delivered to Cumulocity is to use the static SmartRest templates 200/201.
As far as I can tell, using data types and adding units to those data types using the “telemetry type metadata” doesn’t lead to units being included in Cumulocity.
So two questions:
- Is using the SmartREST template the only way to include units when using Cumulocity (and when will that change)?
- Is there a big performance difference between using the SmartREST templates and using the thin-edge json? Are there other follow-on effects of using SmartREST instead of thin-edge json?