Compact mixing valves for sanitary heating and solar applications