How to add back deleted template sensor created from configure.yaml

Doesn’t tell anyone much about what you actually did, also not a related query. You should open a separate thread with a lot more detail as to what you actually did after reading How to help us help you - or How to ask a good question.