Thanks butâŚ
Shouldnât the calculated value to be considered NUMERIC since there were all entities numbers?
I cannot assign unit measure to the result of a group. There is no such option.
I understand everything can be created using yaml text code (for those understanding the code), I even considered using template yaml instead of helper GUI but there are a lot of tipsânâtricks, keywords and other chars to be used.
I chose the easy way because It was already there.
I didnât think of writing complex formulas in the âtemplate stateâ box.
What I wonder, nobody seems to complain about the resulted/calculated helper values are not numeric.
I will try to recreate âtemplatesâ instead of âgroup:productâ keeping the sensor name.
Thatâs because the elements of your group have incompatible units, and you probably have an error message about this. Try giving your first element a unit of kWh too.
None of what I posted is YAML. Itâs Jinja templates, all within the UI.
Designed capacity has already set kwh units.
Divider is a number.
SOH is set as %
All three are seen in graphs as numbers.
Where is the incompatibility?
Probably if I create SOH as simple number, it may work.
Thanks for the help.
I will take the template approach these days.
System simply isnât that clever to âmultiplyâ the units. Iâve never come across anyone trying to do the maths with this method â would strongly recommend the template sensor I showed which is a single entity (plus the input number, if you choose to use that).
It does not need to be clever.
It calculates it and I expect to be considered numeric by default not a string.
It is a simple use case. Take 3 numeric entities and make a product (multiply). The displayed result is correct but is not usable as a number in a graph.
(I work in sw testing by the way)
There is no system in place outside of templates that does what you want. Use a template sensor. Set the device class, unit of measure, and state class. It will then be represented as a numerical entity in the ui.
Keep in mind that what troon says is still correct. All states in HA are strings.