Skip to content

Conversation

@d-allin
Copy link

@d-allin d-allin commented Feb 3, 2026

https://topgreener.com/product/round-smart-wi-fi-plug-in-10a-with-energy-monitoring-white/

Definitions from tuya currently missing scale=1 for cur_power and cur_voltage (see home-assistant/core#152295) so scaling by 10 in yaml.

[{"id": 1, "name": "switch_on", "type": "Boolean", "format": "{}", "enumMap": {}}, {"id": 2, "name": "countdown", "type": "Integer", "format": "{\"unit\":\"\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}", "enumMap": {}}, {"id": 4, "name": "cur_current", "type": "Integer", "format": "{\"unit\":\"mA\",\"min\":0,\"max\":30000,\"scale\":0,\"step\":1}", "enumMap": {}}, {"id": 5, "name": "cur_power", "type": "Integer", "format": "{\"unit\":\"W\",\"min\":0,\"max\":50000,\"scale\":0,\"step\":1}", "enumMap": {}}, {"id": 6, "name": "cur_voltage", "type": "Integer", "format": "{\"unit\":\"V\",\"min\":0,\"max\":2500,\"scale\":0,\"step\":1}", "enumMap": {}}]

As this is an upstream thing being corrected in a dirty way downstream via this method, it may be preferable to leave the scaling alone and have users correct with template sensors. Otherwise I'll update the scaling when (if) Tuya ever fixes the problem on their end.

@make-all
Copy link
Owner

make-all commented Feb 3, 2026

It is OK to put correct scaling in if you are certain it is incorrect in the documentation. The actual scaling seems consistent with other smartplugs, so any "correction" in future is likely to be to the documentation rather than the firmare.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 👀 In review

Development

Successfully merging this pull request may close these issues.

2 participants