Replacing "zigbee switch" driver with small changes for a frient smart plug with power consumption, help needed

Hmmm…if it’s the model above, it looks like @Diegocampy has those and has been using them with the custom edge driver here:

You might check to see if that has the same problem you are seeing.