Cap should be in the return water pipe, not in the tub.
Why not a low volt t'stat and a relay? Usually, the temp is 'set' and not adjusted; theory being it's cheaper to maintain a set temp, then 'heat' the water to the desired temp from ambient.



John