In this paper, an innovative system combining a heat pump (HP) and an organic Rankine cycle (ORC) process is proposed. This system is integrated with a solar roof, which is used as a thermal source to provide heat in winter months (HP mode) and electricity in summer months (ORC mode) when an excess irradiation is available on the solar roof. The main advantage of the proposed unit is its similarity with a traditional HP: the HP/ORC unit only requires the addition of a pump and four-way valves compared to a simple HP, which can be achieved at a low cost. A methodology for the optimal sizing and design of the system is proposed, based on the optimization of both continuous parameters such as heat exchanger size or discrete variables such as working fluid. The methodology is based on yearly simulations, aimed at optimizing the system performance (the net yearly power generation) over its whole operating range instead of just nominal sizing operating conditions. The simulations allow evaluating the amount of thermal energy and electricity generated throughout the year, yielding a net electric power output of 3496 kWh throughout the year.