Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Air conditioner showing wrong temperature in celsius but fahrenheit is correct #352

Open
ethanllewis opened this issue Aug 13, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@ethanllewis
Copy link

ethanllewis commented Aug 13, 2021

The integration is showing wrong value for temp_current and temp_set. These wrong values are reflected in the entity state. In the logs, temp_current_f and temp_set_f are showing the correct values but that is not showing in the entity state.

HA: Home Assistant OS 6.2
Core: core-2021.8.6

"result": {
"access_token": "",
"expire_time": 7200,
"platform_url": "https://openapi.tuyaus.com",
"refresh_token": "
",
"uid": ""
},
"success": true,
"t": 1628883774908
}
2021-08-13 12:42:56 DEBUG (MainThread) [tuya iot] start
2021-08-13 12:42:56 DEBUG (Thread-3) [tuya iot] Request: method = POST, url = https://openapi.tuyaus.com/v1.0/iot-03/open-hub/access-config, params = None, body = {'uid': '
', 'link_id': '', 'link_type': 'mqtt', 'topics': 'device', 'msg_encrypted_version': '1.0'}, t = 1628883776780
2021-08-13 12:42:56 DEBUG (SyncWorker_6) [tuya iot] Request: method = GET, url = https://openapi.tuyaus.com/v1.0/users/az1619309316078s0tjn/devices, params = None, body = None, t = 1628883776781
2021-08-13 12:42:56 DEBUG (SyncWorker_6) [tuya iot] Response: {
"result": [
{
"active_time": 1628880367,
"biz_type": 0,
"category": "kt",
"create_time": 1628663557,
"icon": "smart/icon/ay1566508499521KjKCN/431513b3b6e4c1fb681911c28e63dc0d.png",
"id": "ebd25edb1f8a51473fo0sh",
"ip": "
",
"lat": "",
"local_key": "
",
"lon": "",
"model": "",
"name": "Windmill AC",
"online": true,
"owner_id": "39871938",
"product_id": "u8iolvwcrnginqzr",
"product_name": "Windmill AC",
"status": [
{
"code": "switch",
"value": true
},
{
"code": "temp_set",
"value": 16
},
{
"code": "temp_current",
"value": 0
},
{
"code": "mode",
"value": "wind"
},
{
"code": "fan_speed_enum",
"value": "low"
},
{
"code": "temp_unit_convert",
"value": "c"
},
{
"code": "temp_current_f",
"value": 71
},
{
"code": "temp_set_f",
"value": 65
}
],
"sub": false,
"time_zone": "-07:00",
"uid": "
",
"update_time": 1628882292,
"uuid": "1f1b538735b113b4"
}
],
"success": true,
"t": 1628883776881

@ethanllewis ethanllewis added the bug Something isn't working label Aug 13, 2021
@tsutsuku
Copy link
Collaborator

The "temp_unit_convert" is "c", which means the current temperature unit is "℃", so I think using temp_set and temp_current is correct.
Or you mean your device current temperature unit is "℉"?

@ethanllewis
Copy link
Author

In the logs you see "code": "temp_current", "value": 0" which is incorrect for ℃. "code": "temp_current_f", "value": 71 is showing the right value for ℉ but the entity is not using temp_current_f to show current temperature in ℉. instead, it is doing a calculation based on temp_current which is showing a value of 0 (or I think null) and it's saying the current temperature is 32°F [(0°C × 9/5) + 32 = 32°F].
Screen Shot 2021-08-16 at 8 57 02 AM

@tsutsuku
Copy link
Collaborator

After check the background data, the device only updates temp_current_f without temp_current, I suggest you should create a ticket.
https://service.console.tuya.com/8/2/create?step=1&source=content_feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants