Really nice video guide on augmenting OctoPrint with ESPHome, MQTT and NodeRED for some automated energy saving setup, by Andreas Spiess ("the guy with the Swiss accent").
Nice, I've watched a few of his videos like the one comparing ESPHome and Tasmota. I've done something similar with my power related plugins. I should look into forking my Tasmota plugin for ESPHome.
I've got a much simpler solution:
relay between the PSU & printer controlled by Pi / PSU Control plugin.
Pi is "always on", but that's only ~5W -> https://www.pidramble.com/wiki/benchmarks/power-consumption