You don’t need to unplug anything, just re-pair the device with Homey.
Regarding the behavior of the MS315 plug, it appears to be an issue with the device itself. I tested it with both Homey and Home Assistant using Matter, and in both cases, it resets its values after losing power. It seems the data is stored in volatile memory.