taylorfinnell/petlibro-esphome

plwf105 - Water Level graphing in Home Assistant

Closed this issue · 3 comments

Thank you for the work on this project!

When using the current dashboard, it displays the Water Level as a set of strings and doesn't allow it to show up in a graph.

By adding the following to the Water Level sensor template, home assistant displays the historic values as a graph. Due to the string processing previously, older records before this gets changed will be incorrect, but they age out over time.

    state_class: measurement
    unit_of_measurement: '%'
    accuracy_decimals: 1

Nice! Would you make a PR? Or maybe that’s not a good idea since we would lose history. WDYT?

PR created in #8

I think the utility is worth the loss of history, but understand if you don't agree.

I agree, the tracking ability outweighs the loss of history.