home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.75k stars 28.91k forks source link

Tuya integration for AC control - control works but climate indication is not updated until clicking again or reloading integration #120394

Open larryb31 opened 1 week ago

larryb31 commented 1 week ago

The problem

Tuya integration for AC control - Turning the AC on or off works, but the indication in the climate card or entity does not update until clicking a 2nd time or reloading the integration. Sometimes in the other direction, need to click once to see the updated status and then again to change status from on to off or vice versa. In Smart Life app, the device updates correctly.

What version of Home Assistant Core has the issue?

core-2024.6.4

What was the last working version of Home Assistant Core?

Never worked

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-1eb4cf5dfdbb5e1fe8d0d4607d2f73b8 (1).json

Example YAML snippet

type: custom:mushroom-climate-card
show_temperature_control: true
hvac_modes:
  - heat
  - cool
  - 'off'
  - auto
fill_container: true
layout: horizontal
collapsible_controls: true
hold_action:
  action: more-info
name: AC
secondary_info: state
double_tap_action:
  action: none
entity: climate.tadiran_ac
icon: mdi:air-conditioner
tap_action:
  action: toggle

Anything in the logs that might be useful for us?

No response

Additional information

AC is newish, tested on at least 3 latest Core versions, never worked. Other Tuya devices working as designed.

home-assistant[bot] commented 1 week ago

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)

larryb31 commented 1 day ago

Some more info and clarifications: Calling the 'Cool' mode does work (AC starts cooling) but no indication and error message. For other modes like Heat/Cool, it's all working including indication.

image