Batterie minimum value at first charge per day

Hello,

how can I determine the minimum value of the battery (“sensor.h3_6kw_battery_soc”) as soon as the first charge (“sensor.h3_6kw_battery_charge_today”) takes place during the day and write this value to a helper “input_number.battery_min”?

Thank you

Why do you want to do this?

What problem are you trying to solve?

https://xyproblem.info/