For the calculation of VAT, the market price must be used, there are no options. This is also stated on the page you mentioned.
For the calculation of income tax, it is different.
The German Craft Newspaper writes:
"From an income tax perspective, the withdrawal for self-consumed electricity must be valued at the partial value according to § 6 Abs. 1 Nr. 4 Einkommensteuergesetz. There are the following possibilities to determine it:
a) Determination of the partial value based on the costs incurred
b) Determination of the partial value derived from the sale price likely to be achieved on the market
c) For simplification reasons, the tax authorities have in the past recognized 20 cents per kWh as the value of self-consumption. In newer guidelines, nothing can be found about this simplification rule anymore, but many tax offices still grant it."
a) (calculated from electricity generation costs) would probably be the cheapest, about 10 cents/kWh
b) (calculated from feed-in tariff) would be about 12 cents/kWh
c) (calculated from market price) would be about 25 cents/kWh