That is correct. If the device have an unique ID, then they will reoccupy the old device.
The problem is that you do not really control what devices that get suddenly re-added.
for Battery Types, I would recommend the custom component “Battery Notes”
This will provide the relevant entities for all “known” devices, but you can also configure your own, individual ones.
For other cases, I would also appreciate the option to be available in the UI, just similar to the current Labels and Tags.
Using customization will be a lot of work, if you want to implement it not just for a single entitiy or device.
Also, it would be great, if “Notes” would be shown in the UI / more Info dialog.
I have been looking for a way to do this for some time now. Around three to four years, actually. So much that I created a separate excel document to catalog changes, unique characteristics of each device, troubleshooting tips for each device, etc. For example, I add smart switches/outlets/plugs as I come across great deals from the brands I trust. Trying to remember what brand each switch is can be difficult as not all of them have a visible logo (and I prefer it that way as I don’t want advertisements on every little thing around the home). But then when a smart switch isn’t responding and the status LED is doing something, it would be nice to know the exact make and model so I can match it to its manual quickly. Or simply look at a note for what I did last time it might have happened. So many possibilities for a visual notes system. Maybe someone will be able to make a HACS for it or something.
I just looking something like this to write documentaion or special use of entities oraz devices.
Create feature request but have been closed and linking to this one. I wrote there this:
====================
Asking to add new field of sensor entity with (long) text description.
Right now according documentation of fields of entity definition missing field helping recognize is for what if you are not a developer. For example I have about 1k entities and choose correct entity many times is very hard to decide what is correct due to similar names and units of measurements and time to time very similar device names too (in my cause for example I have many the same devices from the same manufacturer measuring energy is sockets).
Therefore asking for add new field description that hover the cursor for 3s in UI will display in small popup window current value and description. Or just appear in new column with description.
Together with the change should be implemented possibility changing description in UI.
Link for documentation about current fields of entity:
========================
In not sure can I connect or extend my entity with custom attributes, maybe some explain please.
You can, but it’s limited to 255 characters (unless I’m misremembering) and you won’t be able to see it on hover. See my post in this very thread
So if I have entity:
sensor.heatmeter_kamheat_co_4_power_kw
and adding to configuratio.yaml below
homeassistant:
customize:
sensor.heatmeter_kamheat_co_4_power_kw
notes: my some notes here
then appear error in notes position. What I doing wrong?
You’re not telling me what error it is you’re seeing, so how can I help you?
homeassistant:
customize:
sensor.heatmeter_kamheat_co_4_power_kw: ##<--- you forgot the : here
notes: my some notes here
Thank you, yes missing colon. However after restart can you please explain when I can found the note “my some notes here” ?
Searching eg. here but no in attributes:
I don’t think the sensor will have any added attributes if the sensor itself is unavailable. You’ll have to get that figured out first.