It took me some time to figure out how to get the current, power, voltage setup as sensors rather than the default attributes with Tuya Loca with the Arlec Grid connect plug-in sockets. A step by step guide;
Setup Tuya local - refer details elsewhere.
-
from the integration select configure
-
add new device
-
Select a discovered device
-
Configure Tuya device
-
Select entity type switch
-
configure entity - ID 1, give it a name. leave the current, consumption and voltage fields blank
-
next entity type selection. Select sensor, ensure ‘do not add any more entities’ is not checked.
-
setup Power - ensure scaling factor is correct.
-
repeat step 7.
-
setup Voltage. Ensure scaling factor is correct.
-
repeat step 7.
-
Setup current
-
finish adding entities by ticking ‘do not add any more entities’
-
End result should be a switch control entity and three sensor entities.