Tuya LOCAL with energy monitoring and without tuya-convert

can you share your yaml code for local tuya or if done from UI then how?