Skip to content

Prepare persistence to be ready for QuantityTypes #1954

Open
@cweitkamp

Description

@cweitkamp

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


Metadata

Metadata

Assignees

No one assigned

    Labels

    UoMUnits of MeasurementenhancementAn enhancement or new feature of the Corepersistence

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions