If you rename an entity, you have to manually adjust all the automations etc. that are related to it. It would be great if home assistant was able to adjust the automations automatically so that they continue to work with the renamed entity.
Closing duplicate. Please vote and follow here: WTH is there no "refactor" functionality when changing an entity name?