There was some talk about this back in the day about the UniFi Door Access Control system.
That’d be nice to have TBH