Control a digital potentiometer

I would like to control the heating thermostat of the house from openhab.
What I need is a digital potentiometer to replace the manual one and then connect it to a esp8266 board and some code.

Is there any ready to clone solution out there that I can use like esphome with digital potentiometer support that works with openhab?