Open harvey637 opened 10 months ago
Thanks for reporting a new issue @harvey637!
Otherwise this issue will be closed.
Hi Mr. Bot, you are very active! This also is a feature request, I did not find anything around this topic yet. And yes, IF You start covering this in a beta version I am glad to install and help you. cu Harvey PS: I think, a human being is also reading this :-)
Some additional info: You already used the type (boolean/number) to present different options for statistics. If it is a number WITH units copy the units into a field, otherwise use an empty field for entering a unit, or leave this field blank for no unit. (Do all number s have units? I guess yes, may be some are minutes or counts or percent ...)
Make the "costs/unit" mandatory to conform with calculated units to save the hassle from converting. But this might end up in trouble if different magnitudes of datapoints are put into one group, eg. consumption which is nativly in "Wh" togather with data which is nativly in "kWh". No too easy :-)
just thinking ...
Hi, Example to describe my request: I activate a statistics datapoint to a datasource with the unit "kWh". In the statistics dialog there is no "feature" to manually add units nor is the unit taken from the origination datasource. So I have all the new data in the saved/temp tree with numbers, but no units.
New Feature (kind of important, because units are used eg. in echarts): Take the unit from the originating datasource, so activating statistics for eg. "Compressor Energy Consumption" with unit "kWh" actually knows about the units for the received numbers.
Second part of the request: the defaults definintion for groups units of "e/kWh" or "€/m³" are shown for he costs, which is correct here.
But in the statistics datapoints for data in this group this unit is simply repeated. But the calculated value is not the unit of the definition but the costs. Example: "Energy Costs" are "0.42" "€/kWh" Than a member of the group with a consmption of eg. 2 kW will have costs of "0.84" "€" in the hourly calculation, and not "0.84 €/kWh"
New feature: check weather the "consumtion part" of the costs are equal to the units of the datasource, if not You need to convert. eg. units are in "Wh", costs in "€/kWh" -> value(Wh) 1000 costs_unit(€/kWh) = costs(€)
If units are equal only the units in the group timeslots needs to be corrected ("€/kWh" -> "€")
Now You simply assume, that the numbers (which by now have no unit) are exactly the units of the costs_per_unit.
If anything is unclear please simply ask for clarification - Thank You!
cu Harvey