I've read a few different sources that suggest you can replace a lost or broken device with a new one by using the same entity IDs. I'm pretty new to HA and still wrapping my head around the terminology. Let's use an example of 2 contact sensors, 1 each for two garage doors (East and West). When I setup my contact sensor they have default entity IDs like binary_sensor.open_close_xs_sensor_window_door_is_open_in_tilt_position - there is nothing in that entity ID that indicates what device it is, is it the East or the West door. I'm wondering if the best practice is to include some device identifier as a prefix, so using a format like <device_identifier>_<entitiy_identifier>, e.g., west_garage_door_is_open_tilt_position.
I'm not seeing a way to set a device ID in HA so I'm assuming this is mean to be left as-is, is that correct?
While I'm at it: How do you handle easily and consistently identifying real-world devices with their HA representation? Again, using my two door contact example... if I had them removed for some reason and lost track of which went with what door, how would I figure out which is which? without interacting and obersving indicators in HA. Maybe not a great example, let's try another example: I have a bin with 10 of the same smart plugs and I want to grab one that is already setup for an automation. How would I indentify it? The only thing I've come up with is to write some unique ID on the device itself with a sharpie and use that same ID in HA when I name the device. This seems effective, but not terribly clever. How do you all handle this?
I've generally been thinking a lot about these types of policies before I add too many more devices to my setup. I would like to have these policies established and in use so things are consistent and setup correctly.