Power monitoring plug reports UNKNOWN after device stops

I’m using N4003 by NewOne. And it seems to work fine except that after the device that it’s powering stops running. The current value first drops to zero (good) and then reports “unknown”.

While the graph looks fine, this messes up my automations.

Appreciate any help.