Make sure your smart plug is measuring power usage accurately.
More details here on how:
https://tasmota.github.io/docs/Power-...
I got my smart plug flashed with Tasmota following these instructions:
• Tuya Convert 2.3 Flash Tuya Smartlife Devi...