tuya / tuya-homebridge

Homebridge custom plugin for controlling Powered by Tuya (PBT) devices in HomeKit. This plugin is officially maintained by the Tuya Developer Team.
MIT License
332 stars 168 forks source link

Device status does not update #369

Closed Papa-pp closed 5 months ago

Papa-pp commented 8 months ago

Describe the bug When the device status is changed manually, it does not update in HomeKit. Version 1.6 is not updating device statue. Using version 1.6 works fine.

Expected behavior For example then a lamp is turned on, It remains off in the Home app. On version 1.7. The older version works fine.

Screenshots If applicable, add screenshots to help explain your problem.

Device info (please complete the following information, which can be found in log): request path = /v1.0/iot-01/associated-users/devices

like this: { "active_time": 1623229189, "biz_type": 18, "category": "cz", "create_time": 1560491945, "icon": "smart/product_icon/cz.png", "id": "aaaaaaaaaaa", "ip": "xxxxxxxxxxxxxxxx", "lat": "30.30286857361191", "local_key": "xxxxxxxxxxxxx", "lon": "120.0639743842656", "model": "", "name": "Living Room Socket", "online": false, "owner_id": "34794909", "product_id": "yfemiswbgjhddhcf", "product_name": "Switch Product", "status": [ { "code": "switch", "value": false }, { "code": "countdown_1", "value": 0 }, { "code": "cur_current", "value": 0 }, { "code": "cur_power", "value": 0 }, { "code": "cur_voltage", "value": 2343 } ], "sub": false, "time_zone": "+08:00", "uid": "xxxxxxxxxxxxxxxxxxx", "update_time": 1625101929, "uuid": "xxxxxxxxxxxxxxxxxx" }

Device functions (please complete the following information, which can be found in log): request path = /v1.0/devices/functions Same device Id, like this: { "category":"cl", "devices":[ "aaaaaaaaaaa" ], "functions":[ { "code":"control", "desc":"control", "name":"control", "type":"Enum", "values":"{\"range\":[\"open\",\"stop\",\"close\"]}" }, { "code":"percent_control", "desc":"percent control", "name":"percent control", "type":"Integer", "values":"{\"unit\":\"%\",\"min\":0,\"max\":100,\"scale\":0,\"step\":1}" }, { "code":"control_back", "desc":"control back", "name":"control back", "type":"Boolean", "values":"{}" } ], "product_id":"xaabybja" }

Additional context Add any other context or logs about the problem here.

github-actions[bot] commented 8 months ago

Thank you for your feedback, we will solve this issue soon

Papa-pp commented 8 months ago

Is this fixed yet?

jat80 commented 7 months ago

still not fixed.

github-actions[bot] commented 5 months ago

Stale issue. we will close the issue soon. If this issue has not been resolved, please update the issue and contact us in time.