Use Variable in Name

Hey there

quick and dirty, guess because of the random “name” search term i cant find what im looking for:

Is it possible to change the way things get named (friendly and entity id)? Change the name pattern for new devices?

Like:

Friendly name: TV <room>
becomes TV Living Room. When i change the room, the name changes automaticly.

AND

change how new devices get named. There seem to be a pattern… tasmota gets friendly name, ble monitor gets mac adress…