In Home Assistant, I need to store a value long term. There is a sensor that exists which keeps track of daily runtime for something. Just before the day ends, I want to take that value via automation and add it to another sensor or something so I can keep track of it.
What is the best approach here?