I created a new custom integration for #HomeAssistant that allows you to attach a note to an existing device to indicate the battery type it takes, which then shows up in the Diagnostic section of the device. This allows me to go pre-armed with the right battery when a battery is getting low, which shows up using an auto-entities list on my main dashboard.
Full details here on how to add it either via a HACS custom repository or manually
I’ve started adopting it, and do have a couple requests for consideration in the add-on:
Just to reduce to reduce the sense of “one-way / no way back”, it might be nice to include de-install info in the docs.
I’d really prefer it not to change the device icon when I config Battery Notes onto an existing device. (E.g., no longer knowing whether it’s Zigbee or Z-Wave.) Or maybe an option whether icon is to be changed?
My biggest request: Is it possible to change the Battery Notes on a device after that device has been initially configured?
Again, many thanks for a very useful tool addition.
I guess now it’s getting a little popular I should start an FAQ but to answer your questions directly.
You can always remove a battery note, just go into the Settings > Integrations > Battery Notes, use the menu on the right of a device and select Delete, this will only delete the battery note, not the whole device.
That bugs me as well, unfortunately where there are multiple integrations associated with a device HA seems to choose an icon at random, the same is evident with PowerCalc.
Yes you can edit a note, Go into Settings > Integrations > Battery Notes and click Configure on the device you want to edit.
Andrew- I’ve matched up my battery devices with the DB, and have an additional 8 or 9 devices that I can add. But I also found a couple unusual cases:
-I have one device (Mopeka Pro Plus propane monitor) which uses Lithium battery chemistry in AAA form factor. Not sure how to specify battery type.
-I have a device (HomeSeer FS-1000+) that I can install in two different ways: with or without battery. When powered by USB 5V, it does its sensing thing & also serves as Z-Wave repeater. When powered by batteries, it’s just a Z-Wave endpoint sensor. I’m thinking to just do DB entry for battery option. And manually adjust my device info on the USB-powered ones.
-Just FYI, Switchbot has two very different devices which show up in Home Assistant as the exact same character string. (Indoor temp / humid. sensor w display, & Indoor/Outdoor waterproof Hygrometer -which I use in freezers & fridges.) Fortunately for Battery Notes purposes, both devices use exact same batteries.
Do you prefer that device additions be submitted in separate requests, or bundled up into single one?
If it absolutely requires a very specific battery I’d suggest AAA Lithium as the battery type.
I’d maybe leave out the HomeSeer if it’s an optional battery and let people add it it manually if they use it battery powered as I guess most will prefer the repeater functionality.
If it’s got the same manufacturer/model/battery that’s all good, I wouldn’t be able to cope with something that didn’t have the same battery so would have to leave that out.
I’m happy for submissions to be bundled or separate, go with what you feel comfortable with, those damn commas and brackets throw so many people, including me!
With version 1.3.3 just released you can now track when batteries were replaced.
A manual button and a service are available for you to reset the replaced date.
Thanks, it’s been good to have a week off of work and get to play with this.
Not without hacking away at some horrible hidden file. I don’t think many will go and guess when they put a battery in so went for the easier approach of letting it be set when you next replace a battery.
A lot of people are talking about making automations that detect a device going to 100% battery and setting the replaced via the service automatically.
OK, thanks; I understand. I had started doing some battery tracking in my manual device-by-device documentation. But only had a few change dates so far. I’ll just hit “Set” on them, & let it treat today as last-change date.
I sort of like the idea to set date automatically when battery level goes to 100%. But I’ll continue to set mine manually, as I’ve seen too much flakiness in device battery level reporting.
This is a great custom component. Did you or anyone else come up with a card that can display all the information and allow the battery change date? I would like to add it to my system monitor tab.