It would seem logical to name them for where they are and what they do. “Bathroom motion sensor”, “Bedroom lamp”, etc. However, I’ve found that, if it can move, it ends up moving sooner or later. My “bathroom” motion sensor is now in the upstairs family room, for example.


I found someone a while ago that used this
floor - type - subtype - room - thing
You end up with a name like
00 - switch - plug - living room - lamp