I am wondering if it would be possible to build a photovoltaic cell that kept track of the electricity it generated (perhaps with a built-in meter), such that you could not trick the meter without destroying it.
The idea would be to make cheating the meter (by pumping electricity from a different source through it) pretty much impossible.
Does anything similar in a different context (maybe electric meters on the sides of houses) already exist?
EDIT: Sorry for posting an XY question — that wasn’t intentional. But I did not see the value of stating the underlying motive, which is something along the lines of what was pointed out in the comments. I have the idea that in certain contexts where owners of PV cells get paid for the electricity they generate, they could get electricity cheaper somewhere else and fool the wattmeter. My question was meant to be simple and general. Since I know very little about EE I thought something like this might already exist or be known to be impossible.