Additional column for battery type
Opened this issue · 4 comments
Can you add an additional column in your map for the battery type that then needs to be replaced. For example: “1x CR 2032” or “3x AAA” or “2x LR 44”.
At the moment I'm using Andrew's "HA-Battery-Notes" card to enter the data, but I can't query it quickly. This would of course fit perfectly with your card.
see print screens
Best regards,
Mario
https://github.com/andrew-codechimp/HA-Battery-Notes
I guess it adds another entity in HA which stores the battery type value right?
This means that you can add it to the secondary_info by using "KString" eg
secondary_info: "Battery type: {sensor.your_device_battery_type}"
Unfortunately it is not possible to put there the relative time additionally (date will be rendered instead). This will be changed/fixed in the future.
There is no way now to use the "KString" in the name - I will change this in the future as well. So you will be able to have a name like e.g. "Buro FB 1 (CR 2032)"
I'll think about the second column too.
Thank you for pointing out this integration which you use - I will mention it in my docs
Is there a way to add the secondary_info as a new column rather than appear under the battery name?
No, at least not yet. That is why the issue is still open
Battery Notes recently got a new Battery+ sensor that provides the basic battery along with battery notes attributes to make it easier to use in dashboards. See the docs here for a basic example