Description
Most methods provided by PersistenceExtension
e.g. sumSince()
, averageSince()
or deltaSince()
are calculating results by simply casting everything to DecimalType
internally. But some queryable persistence services return QuantityType
values too. The calculations on the one hand should be able to deal with unit conversion on the other hand should not return a DecimalType
result.
See eclipse-archived/smarthome#5675 (comment)
Related issues which will be fixed once this feature has been implemented in all persistence add-ons: #669 and #1379
-
RRD4J: PR [rrd4j] Correctly identify Number items with dimensions and persist them in the defined unit openhab-addons#8866 and [rrd4j] Return QuantityTypes for number items with dimension openhab-addons#8938
-
JDBC: PR [jdbc] Return QuantityTypes for number items with dimension openhab-addons#9426
-
DynamoDB: PR [dynamodb] Dynamodb QuantityType and data expiration (TTL) support. AWS SDK updated openhab-addons#9937
-
INFULXDB: open issue [influxdb] OH3.0.0 Persisted values are restored from Influx without UoM openhab-addons#9578
-
Changes in
PersistenceExtension