Track a daily number between 1 and 10 over time

I want to track a number that I’ll manually set daily. Values will be 1-10. I just want to be able to see what the actual number is over the course of a month. I don’t need to do any counting or other math to it.
I’ve created an input_number to set daily. I’ve tried using both a trend and historical stats helper along with it, but the former only wants to work on a sensor, and the latter wants a state to track.
This seems like something with an obvious answer, but I’m not seeing it.

Not sure what your question is. An input_number has a state: its value. You can build a template sensor off of your input_number, if you need a sensor that reflects the value of the input_number.

I want to manually set a number between 1-10 every day, then look back at how that number changes over time.
My experience w/ Home Assistant so far has relied on others doing the work for me. I’m kinda lost when it comes to configuring even simple things like this. I don’t mind RTFM if you could point me where I need to look.

The DB only holds discreet state values for a set amount of time based on the purge_keep_days set in the Recorder. By default that value is 10 days. Sensors can be set up to hold values in Long Term Statistics, but the data is not held as discreet values.

Hmm, maybe HA isn’t the right place to keep this, then. Thanks for your help. I’ll look elsewhere.

Excel sheet?

Or Google sheets integration

As stated, just set the purge_keep_days to 30 to accomplish what you want. The DB will be larger but may not be a concern, depending on how many entities you have configured.

Why, though.

OP did not tie the issue to any aspect of Home Assistant, other than its ability to remember a number and remember its value.

Unless the number is coming from some actual Home Assistant entity, there is absolutely no point in using Home Assistant to track it. Use a spreadsheet, a database, or whatever tool is useful. Home Assistant is meant for home automation, not for tracking arbitrary values.

lol, sure. But the OP asked the question how to do it in HA, hence the answer.

1 Like