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
73.04k stars 30.55k forks source link

Tuya brightness and scenes not working #123487

Open warmfire540 opened 2 months ago

warmfire540 commented 2 months ago

The problem

Brightness changes in home assistant aren't affecting dimmers in the Smart Life app. Smart bulbs I can dim. Also the docs state that scenes would show up in Home Assistant - is this just for the TUYA app exactly - not Smart Life?

What version of Home Assistant Core has the issue?

core-2024.8.0

What was the last working version of Home Assistant Core?

never

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

home-assistant_tuya_2024-02-22T23-54-17.738Z.log

Example YAML snippet

I am just using the UI (slider when clicking the entity).  However service does not work (using pct or value).

service: light.turn_on
data:
  brightness_pct: 47
  brightness: 163
target:
  device_id: 8a97ebc676b4f2b05000d2cf4d677044

Anything in the logs that might be useful for us?

Here's what is sent from HA, as well as an update from the device itself (through Smart Life)

2024-02-22 18:54:06.984 DEBUG (SyncWorker_38) [homeassistant.components.tuya] Sending commands for device 38460632d8f15bc3d309: [{'code': <DPCode.SWITCH_LED: 'switch_led'>, 'value': True}, {'code': <DPCode.BRIGHT_VALUE: 'bright_value'>, 'value': 80}]
2024-02-22 18:54:07.564 DEBUG (SyncWorker_39) [homeassistant.components.tuya] Sending commands for device 38460632d8f15bc3d309: [{'code': <DPCode.SWITCH_LED: 'switch_led'>, 'value': True}, {'code': <DPCode.BRIGHT_VALUE: 'bright_value'>, 'value': 151}]
2024-02-22 18:54:08.125 DEBUG (SyncWorker_54) [homeassistant.components.tuya] Sending commands for device 38460632d8f15bc3d309: [{'code': <DPCode.SWITCH_LED: 'switch_led'>, 'value': True}, {'code': <DPCode.BRIGHT_VALUE: 'bright_value'>, 'value': 103}]
2024-02-22 18:54:08.491 DEBUG (SyncWorker_41) [homeassistant.components.tuya] Sending commands for device 38460632d8f15bc3d309: [{'code': <DPCode.SWITCH_LED: 'switch_led'>, 'value': True}, {'code': <DPCode.BRIGHT_VALUE: 'bright_value'>, 'value': 31}]
2024-02-22 18:54:08.932 DEBUG (SyncWorker_56) [homeassistant.components.tuya] Sending commands for device 38460632d8f15bc3d309: [{'code': <DPCode.SWITCH_LED: 'switch_led'>, 'value': True}, {'code': <DPCode.BRIGHT_VALUE: 'bright_value'>, 'value': 92}]
2024-02-22 18:54:09.295 DEBUG (SyncWorker_45) [homeassistant.components.tuya] Sending commands for device 38460632d8f15bc3d309: [{'code': <DPCode.SWITCH_LED: 'switch_led'>, 'value': True}, {'code': <DPCode.BRIGHT_VALUE: 'bright_value'>, 'value': 158}]
2024-02-22 18:54:16.232 DEBUG (Thread-7710 (_thread_main)) [homeassistant.components.tuya] Received update for device 38460632d8f15bc3d309: {'switch_led': True, 'bright_value': 188}

Additional information

https://github.com/home-assistant/core/issues/111171

home-assistant[bot] commented 2 months 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)