Well, you could do that, but if you'd prefer to have it on a ceiling, there's nothing wrong with what you proposed. I would merely say that, if you do put a 13A socket on the lighting circuit (in the loft) for the Echo Dot, it would be advisable to label the socket in some way to warn people that it was not suitable for large loads.It's my bathroom sorry. The shaver socket is on the wall. Wondering if it would be better to get a cable of some sort and have the Echo dot on the cabinet and not the ceiling.
Kind Regards, John