Add a "Battery Changed Date" to all ZHA/ZWAVE battery operated devices

Add an attribute called “Battery Changed Date” to all ZHA/ZWAVE battery operated device along with an event “Set Battery Changed”. This would give an estimate on how long battery lasts on each device.

Functionality is straight forward:

  • On pairing the device the battery changed date is set to today
  • Service “Set Battery Changed” will take two parameters entity_id and custom_date(optional,default to today)

This kind of assumes a consistent drain rate across all devices.

Not if the attribute is available on each entity/device…

You can achieve this with input_number using the date/time option. I do this when I change my AC Filter:

image

Yes I know. I use customisation to add custom field/attribute to each device.

The request is to make the functionality default. I have approx 40 battery operated devices (motion sensors, temp/humid sensors, door sensors etc). It would be nice if we could make this a default system capability not having to use input_helpers or customisation…