The sensor’s entity_id is now being derived from unique_id
The sensor’s friendly_name is still derived from the name option, same as it was before you added unique_id.
You want to dynamically change the sensor’s entity_id via its name option and I don’t believe that’s possible. I’m led to that conclusion because there are only two sensor options available for controlling the sensor’s naming and you’re now using both of them.
It took me a minute or two to figure out what’s going on here. So basically, this is trying to blueprint sensors, right? Very interesting. Since we have blueprints for scripts and automations, it might be valuable to create an FR for this.