Instead I found it easier to buy a power plug with tasmota already installed (German language):Get a cheap smart switch with power monitoring for that you can put tasmota or similar on it ...
https://www.amazon.de/dp/B0054PSIPA
Image may be NSFW.
Clik here to view.

The advantage of that plug is that it does not need internet access to work.
I only use on/off feature, but it can do measurements as well.
Statistics: Posted by HermannSW — Mon May 13, 2024 10:30 pm