Home Assistant integration for controlling Powered by Tuya (PBT) devices using Tuya Open API, maintained by the Home Assistant Community and Tuya Developer Team.
Describe the bug
Blinds opener not reporting correct state. I'm able to issue commands to open and close after editing the cover.py slightly but it won't report back its open/close state unless a specific position has been specified.
Expected behavior
Ha reporting back correct position
I think this may be an issue with Tuya itself. On the Tuya device debugging page, the value of percent_control doesn't update unless you set it to a specific value.
Describe the bug Blinds opener not reporting correct state. I'm able to issue commands to open and close after editing the cover.py slightly but it won't report back its open/close state unless a specific position has been specified.
Expected behavior Ha reporting back correct position
Home Assistant Version
Device info: { "active_time": 1626911267, "biz_type": 18, "category": "cl", "create_time": 1623980250, "icon": "smart/icon/ay15253387844269Sg99/3dfd5063e7f76ed2e686a78d1c68f510.png", "id": "5303671024a160230bc2", "ip": "**", "lat": "", "local_key": "", "lon": "", "name": "Smart Blinds", "online": true, "owner_id": "10881494", "product_id": "ebt12ypvexnixvtf", "product_name": "Smart Blinds", "status": [ { "code": "percent_control", "value": 61 } ],
Device specifications:
2021-08-25 17:19:38 DEBUG (SyncWorker_0) [tuya iot] Request: method = GET, url = https://openapi.tuyaeu.com/v1.0/devices/5303671024a160230bc2/specifications, params = None, body = None, t = 1629875978858 2021-08-25 17:19:39 DEBUG (SyncWorker_0) [tuya iot] Response: { "result": { "category": "cl", "functions": [ { "code": "switch_1", "type": "Enum", "values": "{\"range\":[\"open\",\"stop\",\"close\",\"continue\"]}" }, { "code": "percent_control", "type": "Integer", "values": "{\"unit\":\"%\",\"min\":0,\"max\":100,\"scale\":0,\"step\":1}" } ], "status": [ { "code": "percent_control", "type": "Integer", "values": "{\"unit\":\"%\",\"min\":0,\"max\":100,\"scale\":0,\"step\":1}" }, { "code": "switch_1", "type": "Boolean", "values": "{}" }