core icon indicating copy to clipboard operation
core copied to clipboard

Tuya A/C calculating incorrect temperature value

Open chasebolt opened this issue 1 year ago • 8 comments
trafficstars

The problem

I have the A/C set to 78F and Tuya cloud is reporting that correctly. But HA is setting the value as 172F. I believe it is assuming this reported value is in C and calculating 78C, which is 172F.

image

What version of Home Assistant Core has the issue?

core-2024.4.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Tuya

Link to integration documentation on our website

https://www.home-assistant.io/integrations/tuya/

Diagnostics information

config_entry-tuya-5e4e0f35f4c999c63b84d219eb169eb5.json

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2024-04-29 15:47:29.844 DEBUG (Thread-28 (_thread_main)) [homeassistant.components.tuya] Received update for device 41742628483fda389ea0: {'switch': True, 'temp_set': 780, 'temp_current': 24, 'mode': 'cold', 'humidity_current': 0, 'temp_set_f': 61}

^ in the Tuya app the device is on, set to cool, with a set temp of 78F

Additional information

No response

chasebolt avatar Apr 29 '24 22:04 chasebolt

Hey there @tuya, @zlinoliver, @frenck, mind taking a look at this issue as it has been labeled with an integration (tuya) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of tuya can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign tuya Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


tuya documentation tuya source (message by IssueLinks)

home-assistant[bot] avatar Apr 29 '24 22:04 home-assistant[bot]

same here for Celsius: Tuya Mobile App reports 17º internal and 5º programmed HA instead reports 3.4º and 1º respectively

pferronato avatar Apr 30 '24 07:04 pferronato

Same issue here. Here is what my current state shows. hvac_modes:

  • "off"
  • cool min_temp: 61 max_temp: 187 target_temp_step: 1 fan_modes:
  • "1"
  • "2" current_temperature: 158 temperature: 151 fan_mode: null friendly_name: Pro Breeze Smart PAC PB-AC01 supported_features: 393

insomnia23z avatar May 01 '24 02:05 insomnia23z

I have the same issue but only for the set temp, the current temp is reported correctly.

hvac_modes: off, cool, heat, dry, fan_only, heat_cool min_temp: 61 max_temp: 190 target_temp_step: 0.5 current_temperature: 77 temperature: 169 current_humidity: 0 friendly_name: Air conditioner supported_features: 385

2024-06-23 10:41:21.240 DEBUG (Thread-12792 (_thread_main)) [homeassistant.components.tuya] Received update for device 7250307448e7296182e7: {'switch': True, 'temp_set': 760, 'temp_current': 25, 'mode': 'cold', 'humidity_current': 0, 'temp_set_f': 61}

The Tuya Smart app shows set point of 76 F

jppawlak avatar Jun 23 '24 14:06 jppawlak

@jppawlak i switched to using this HACS repo and the dev fixed it for my device. it would probably be fixed for you as well.

https://github.com/xZetsubou/hass-localtuya

chasebolt avatar Jun 23 '24 16:06 chasebolt

Hi! I'm running into the same issue as well.

JoeCotellese avatar Jul 14 '24 16:07 JoeCotellese

What @chasebolt suggested with HACS repo for localtuya did work

jppawlak avatar Jul 15 '24 15:07 jppawlak

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.