REST thermostat

Is this possible to add a generic thermostat with all features controlled with API calls? This way it could be easier to adapt REST thermostat implementations into the new components

Is there a workaround, or is it somehow possible to manage a non-mqtt thermostat from another running instance?