Yes, as I said you can (this only really works for utility_meter and is a bit of a hack for non utility meter sensors) but this WTH is why not, by default, add an attribute for resetting sensors of the last value before reset?
HA doesn’t know that a total_increasing or total sensor is resetting daily.
They could just go up indefinitely or reset weekly or monthly.
The resets are done by the integration providing the sensor, or in most cases the integration just pushes a new value through an API and some (cloud) service determines that there is a reset at 0:00. HA just receives a new value.
last_reset is only needed for state_class: total. For state_class: total_increasing any value which is lower than the previous value is seen as a reset.
But also the last_reset needs to be provided by the integration. HA just receives a new value for that attribute from the integration. In case of an integration providing a sensor with state_class: total there is probably some code which provides a new timestamp for last_reset in case the new value seems to be reset (where this was not expected).
Of course an integration could also provide the previous value in an attribute, or maybe a separate sensor, but that would be something which needs to created for each integration.