For heating, photovoltaics supplying a heat pump is starting to give direct thermal a run for the money (well, not actually for the money yet, direct thermal is still cheaper, but at least in terms of how much you could harvest from a given roof area)
If money isn't an objection at all, e.g. if you strive for that sense of achievement of a good setup, there are hybrid modules that pick up the 20% or so photovoltaics achieves and still funnel the remaining energy into heating a liquid medium.
I had all the thermodynamics worked out and it would have been something like 5x as cost effective as photovoltaic. Then the cost of photovoltaic panels dropped 10x in a year. C'est la vie, at least my roof is covered in PV now. I've thought of running some tubing under the panels to pre-heat water for our solar hot water system but these days it's scarcely worth the bother (at least where I live which is pretty much perfect for solar power.)
Some example: https://www.convertenergy.co.uk https://dualsun.com/
(I spent quite a lot of time on an idea for rooftop solar thermal power and was trying to build a prototype when the solar panel prices started crashing. It pretty soon became inescapable fact that small scale solar thermal with all its moving parts just wasn't viable any more. I'd be surprised if even the large mirror-farm CSP is competitive these days.)