Power metering from connected devices

I do something like this directly on my devices. But that only works if not only the hardware is owned but also full access to the software is given. I use esphome on my (esp based) devices and this custom component allows easy power metering for lights or switches:

If you don’t have full control over your devices you still should be able to do something like that in ha. For example with power calc: