The ERR must be deactivated and the overcurrent valve closed to the maximum. Only in this way do you ensure that all the heat produced by the heat pump ends up exclusively in the underfloor heating.
Regarding legionella protection. This is a very controversial and much-discussed topic. If you observe a few points, legionella do not play a role in single-family houses. The most important point is no dead pipes with standing water. Consequently, if a circulation is installed, it should be flushed at least once a day, 5 minutes is sufficient. Secondly, the hot water storage tank should be adapted to the needs and regularly completely renewed with fresh water. A 600l hot water storage tank for one person would, for example, be problematic. For a family, 200-300l is not a problem. Even better is, of course, a fresh water station. A legionella switch actually only makes sense if not only the storage tank is heated to over 60°C, but this temperature is simultaneously reached at all points in the system, so all hot water taps must also be opened at the same time. Otherwise, in the event of an infestation, only heat-resistant lines are selectively favored, and there are also studies on this. If you look at it closely, you need significantly more than 60 °C in the system. During my clinical work for over 10 years in a pulmonary department, which also manages the internal intensive care unit of the hospital, there was not a single case of legionella pneumonia among residents of a single-family house.