Heat Pump Ducted Airconditioning controller

I’m looking for ways to run my Sonoff R2 and TH16 thermostat as an AC controller to replace the old style wall controller with capacity to switch fan,compressor,Reversing valve to replicate a Penn style wall control
I have a working system with the current Sonoff arrangement but its clunky
Anyone done one?