This is one of the reasons I am working on an enclosure-compatible open-source version of the 2nd gen Nest thermostat over at https://sett.homes/ . It reuses the enclosure, encoder ring, display, and mounts of the Nest but replaces the "thinking" part with an open-source PCB that can interact with Home Assistant. Nest has been pretty-badly supported in Home Assistant for over a year anyway, missing important connected features.
I bet the same approach would work for the Kevo lock that I've got too...