Thermostat/hardware

Goodmorning everyone.
I would like to know if there are compatible and can be controlled with programmable thermostats openhab.
In practice I would handle 4 programmable thermostats, set them and monitor them from openhab and if certain rules (eg. Achieving a given temperature in a time slot, closing off a solenoid or open) In fact, the thermostat should submit only the temperature at openhab and in turn the openhab can send commands to open or close a valve).