I think this should be part of HA itself. Maybe one day it will be
I had a similar issue, so I put a bit of time in and made the following blueprint just yesterday actually. It’s in “Beta”, but try it out let me know how it works for you?
Currently it’s limited to battery devices (Zigbee/Zwave), and smart switches, not lightbulbs. But I might change that.