Well, that depends on your view. I setup PbtH to keep track of the ‘benefit’ of your solar panels in a solar summarizer. So if you ALSO set the charging tariff in the battery summarizer to 0, you are actually counting the same solar benefit twice.
So the battery summarizer uses grid tarifs as ‘cost’ during charging. And at the same time the solar panels uses the same grid tariff as ‘benefit’. IMO that is the most clean way of doing the bookkeeping.