Hello Haze,
You can set a ‘global’ variable as text that you can template into your stuff. You can use a helper for that
Or this: Trigger based template sensor to store global variables.
There is also some magic I think if you name the new entity_id exactly the same as the old entity_id that the new one might just work. I haven’t tried that, but heard about it.