openhab / openhab-js

openHAB JavaScript Library for JavaScript Scripting Automation
https://www.openhab.org/addons/automation/jsscripting/
Eclipse Public License 2.0
38 stars 31 forks source link

[Quantity] Initial contribution: Support UoM handling by wrapping QuantityType #206

Closed florian-h05 closed 1 year ago

florian-h05 commented 1 year ago

Replaces #201. Fixes #102. Closes #200. Fixes https://github.com/openhab/openhab-webui/issues/836.

Description

This implementation of a Units of Measurement/Quantity handling functionality wraps the QuantityType from openHAB instead of introducing a new library.

I’ll add the docs later if this one gets accepted.

To Do

@digitaldan @jpg0 Can you please review this one?

The *.d.ts files can be ignored, they are autogenerated by the typescript compiler.