I have numerous sensor.battery entities but they are not visible in the Logbook. I had excluded entity glob sensor.battery from recorder but have recently removed that exclusion and I am now seeing History for them but the logbook still cannot find them. Logbook in configuration.yaml is simply logbook:
https://www.home-assistant.io/integrations/logbook Right at the bottom of the page:
If they did not do this your logbook would be unusable due to spamming by numeric changes.
Use the history page to investigate numeric sensors.
Thank you sir! I’ve never read the very bottom of that page! Perhaps that note should be at the top!!
I have an automation that writes an attrubute to sensor.batteries_replaced
using hass_variables with the name of the sensor as the attribute and value of the current date/time when the battery changes to 100%. It’s been adding attributes willy-nilly but the logbook did not list them so I added an email notification. The most recent addition was my sensor.phillips_hue_switch_battery
(Z2M) and the trigger from state was 85 and trigger to state 100, but I have not replaced the battery! An item for discussion elsewhere though. Thanks for the feedback!
Now to figure if I want those entities in my logbook, and how to achieve that, if it’s even possible…
In hindsight, rather than a triggered automation, perhaps I should devise a manual service call to record the date changed.
Take a look in Blueprints Exchange, a battery alert tool was recently posted there.
That’s cool, thanks! That also led me to discover the HACS Battery Notes integration, which supersedes my recently developed, crude method of keeping track of battery replacement dates in HA. The new integration is cool, exactly what I wanted!