The local way is to use the P1 port . It's originally a Dutch thing, but most smart meters across Europe have it:

https://www.tinytronics.nl/en/home-automation/sensors/energy...