Adding custom fields to devices

Is it possible to add m own fields to devices? My system runs tens of gadgets, most of them battery driven. I would like to add a field to each device which tells me when I last changed its battery. Doing so in a detached spreadsheet would be somewhat clumsy and error prone, I think, and attaching printed or pencilled stickers to each gadget seems a bit old fashioned.

UI-created template sensors associated with devices?


In your case - state is taken from some input_datetime.

Have a look at Battery Notes from HACS.

https://andrew-codechimp.github.io/HA-Battery-Notes/

Thanks. With some 40 battery-driven devices (and several more to come), this seems a bit unwieldy.

I now write the date with pencil on one of the outer surfaces of each device whenever I replace the battery.

@popch, How about using Labels? I did a quick example with my system. Within the Entities view, it will show labels. If you create a label called “Battery” that you apply to all of your batteries, then create additional labels for the month names, you can then filter on the battery label to show just your batteries and the month label will appear to show you which month you changed the battery.