andrew-codechimp/HA-Battery-Notes — reverse-engineered prompt
Reverse engineered prompt
Build me a Home Assistant custom integration called Battery Notes.
I want it to help me keep track of batteries for my devices and entities. It should automatically discover supported devices from a built in battery library, figure out the battery type when possible, and let me add notes manually for anything it cannot identify. For each battery, I want to store things like battery type, when it was last replaced, whether it is low based on either device specific or global thresholds, and whether the device has stopped reporting for too long.
Please make it create a useful battery plus sensor with attributes that work well in dashboards, with the option to hide the normal battery sensor if that makes sense. I also want events or actions for battery low, battery replaced, and not reported states so I can hook up my own notifications and automations.
Make it feel like a proper Home Assistant integration that can be installed through HACS or manually. Check current Home Assistant integration docs online if you need to.
Want more depth? Deep Reverse