I have my smoke / CO detectors, KIdde Z-Wave units, tied to my Home Assistant setup. HA will push a notifier to my phone if the smoke or CO alarm goes off and it’s able to track the battery life and let me know I need to change them before they start beeping.
It’s similar to using Deep Freeze on Windows where outside of specific writeable directories anything that shouldn’t be changed isn’t allowed to change.