Home Assistant integration for controlling Powered by Tuya (PBT) devices using Tuya Open API, maintained by the Home Assistant Community and Tuya Developer Team.
MIT License
879
stars
207
forks
source link
Blitzwolf BW-SHP6/ SP111 smart plug power and voltage wrong value (wrong scaling) #359
Describe the bug Blitzwolf BW-SHP6/ SP111 smart plug power and voltage wrong value (wrong scaling)
Screenshots https://prnt.sc/1oo3h35
Home Assistant Version 2021.8.6
Device info { "active_time": 1627306266, "biz_type": 18, "category": "cz", "create_time": 1627306266, "icon": "smart/icon/ay1519551146071pEnBd/f3fca8ef65c979cb1aed14fc878c9107.jpg", "id": "6517635070039f5da8ff", "ip": "**", "lat": "", "local_key": "", "lon": "", "name": "BW-SHP6 8", "online": true, "owner_id": "11448855", "product_id": "ab4kwxlrok0yvxuo", "product_name": "BW-SHP6", "status": [ { "code": "switch", "value": true }, { "code": "countdown_1", "value": 0 }, { "code": "cur_current", "value": 29 }, { "code": "cur_power", "value": 70 }, { "code": "cur_voltage", "value": 2347 } ], "sub": false, "time_zone": "+02:00", "uid": "***", "update_time": 1628453644, "uuid": "6517635070039f5da8ff" },
Devise details
2021-08-11 16:52:47 DEBUG (SyncWorker_6) [tuya iot] Request: method = GET, url = https://openapi.tuyaeu.com/v1.0/devices/6517635070039f5da8ff/specifications, params = None, body = None, t = 162xxxxxxxxxxxxx 2021-08-11 16:52:47 DEBUG (SyncWorker_6) [tuya iot] Response: { "result": { "category": "cz", "functions": [ { "code": "switch", "type": "Boolean", "values": "{}" }, { "code": "countdown_1", "type": "Integer", "values": "{\"min\":0,\"scale\":0,\"unit\":\"s\",\"max\":86400,\"step\":1}" } ], "status": [ { "code": "countdown_1", "type": "Integer", "values": "{\"min\":0,\"scale\":0,\"unit\":\"s\",\"max\":86400,\"step\":1}" }, { "code": "cur_current", "type": "Integer", "values": "{\"min\":0,\"scale\":0,\"unit\":\"mA\",\"max\":30000,\"step\":1}" }, { "code": "cur_voltage", "type": "Integer", "values": "{\"min\":0,\"unit\":\"V\",\"scale\":0,\"max\":2500,\"step\":1}" }, { "code": "cur_power", "type": "Integer", "values": "{\"min\":0,\"scale\":0,\"unit\":\"W\",\"max\":50000,\"step\":1}" }, { "code": "switch", "type": "Boolean", "values": "{}" } ] }, "success": true, "t": 162xxxxxxxxxx }