Tuya Local use of Attributes in gauges

A couple of points. I am using tuya Local and I add the switch but it puts the “Power” information in an attribute called “Current consumption”. Is there some way to change this?

The second thing I want to do is use this attribute in a gauge on the screen. I can’t seem to figure this out. I have seen some code for this, but I added to the configuration.yaml and it didn’t work, does it need to go in the actual gauge code editor?

I have been using the cloud figure, but I want to make it more responsive.