Briefly on the topic of photovoltaics and heat pump tariffs: Yes, it is possible. The keyword is cascade measurement, and any solar technician can install it this way (without an additional meter). This allows the photovoltaic electricity to be used for both the household and the heat pump while still being billed separately. It only means half an hour of extra work for the electrician.
BUT: many heat pump tariffs then naturally become less profitable, so one should recalculate beforehand. If it was only barely profitable before, the second meter can be removed. If it was a few hundred euros cheaper per year before (with high consumption and/or very cheap heat pump electricity), then it should be kept.