I have an old custom Hot water controller that controls the pump. and Shelly Timers on elements

 

My folks Solar HW system using  SR81Q from china, that can control pump and turn on 1 of the elements in system.

 

Are there any Smarter Solar HWC controllers? that I can

 

- control both elements independantly

 

- hook into my Home-Assistant system?

 

I was thinking of using ESP32 to measure temps into system, and maybe shelly controller for pump. and using Home-assistant scripts etc?