DeerMaximum / Technische-Alternative-CoE

Custom Home Assistant integration to read data from a C.M.I. via CoE
MIT License
11 stars 2 forks source link

l vs. L for water consumption #16

Closed molelightn closed 12 months ago

molelightn commented 1 year ago

The integration report water consumption in following way:

image

to be allowed to use water consumption for energy dashboard the reported value need to be L

image

May you find time to change this. Much appreciated.

br mole

DeerMaximum commented 1 year ago

Can you install the dev-17-1 version and see if the error is fixed?

molelightn commented 1 year ago

shown as L now but not available as water consumption sensor in energy dashboard.

DeerMaximum commented 1 year ago

I have adjusted state_class and in my test environment I am now able to add the sensors in the energy dashboard. Can you install the dev-17-2 version and see if the bug is fixed for you as well?

molelightn commented 1 year ago

Hi,

sorry for long delay. Unit is now stated in "L" instead of "l" but i still cannot choose the entinity for water consumption in energy dashboard.

image

br

DeerMaximum commented 1 year ago

I tested this with two sensors, one with total and the other with total_increasing as state_class. Otherwise they are not different from yours. I can add both to the dashboard.

sensor dashboard

molelightn commented 1 year ago

ok thank you for cross check. Still not working for me, but i guess there is somewhere else a problem on my end.

molelightn commented 1 year ago

Hi there,

looks like i wanted something changed that is wrong now. Please see HA's newest complain about the unit for water. Not 100% sure if it is because of the changed unit for same entity or if "L" is not wanted at all. What do you think?

image

thanks

PS: the initial idea to change it from "l" to "L" was because longterm statistic did never show these entitys available. As we discussed earlier this thread you got it working and for me it wasn't in both units...... Anyway it would be nice to change it to an official unit supported from HA

DeerMaximum commented 1 year ago

The warning occurs because the unit has been changed within the history. To remove the warning you need to delete the history of the entity. Here is how to to it: Recorder - Home Assistant