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
351 stars 180 forks source link

Wrong temperature showing #187

Closed tomwilson3 closed 2 years ago

tomwilson3 commented 2 years ago

Describe the bug I have a smart radiator connected to Tuya but it is stuck on saying current temp is 16, when it is actually 21 (which it has heated up to), the Tuya app shows the correct temperature.

Expected behavior The current temperature to match the same in app.

Screenshots Capture

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 2 years ago

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

tomwilson3 commented 2 years ago

A restart of HomeBridge does update the temp, but looks like it does not do it automatically.

tomwilson3 commented 2 years ago

My fault. I did not enable the correct API!