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

Tuya RGBCCT bulb not switching to color mode from Google Home / Assistant #60476

Closed
Alfiegerner opened this issue Nov 28, 2021 · 15 comments
Closed

Comments

@Alfiegerner
Copy link

Alfiegerner commented Nov 28, 2021

The problem

I have a RGBCCT Tuya bulb exposed to Google Assistant via Nabu Casa.

If I am in White mode, asking Assistant to select a color like Blue or Red (or trying to see a color within the Google Home UI) does not work, Google responds as if successful.

If I am in Color mode in HA color selection works fine, I can change color in Assistant, but if White is selected only white temperatures selections are effective.

What version of Home Assistant Core has the issue?

core-2021.11.5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Tuya, Google Assistant, NabuCasa

Link to integration documentation on our website

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

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No errors.

Additional information

No response

@probot-home-assistant
Copy link

Hey there @tuya, @zlinoliver, @METISU, @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!
(message by CodeOwnersMention)


tuya documentation
tuya source
(message by IssueLinks)

@github-actions github-actions bot added the stale label Dec 28, 2021
@MrKittenK
Copy link

MrKittenK commented Jan 2, 2022

I can confirm this happens to me also.

The problem

G125 RGB+CCT bulb and Smart Bulb RGBCW using the Tuya integration, if in white/colour temp mode no colour options do anything via google home voice commands or the colour picker in the google home app.
If I am in Colour mode in HA color selection works fine, I can change color in Assistant, but if White is selected only white temperatures selections are effective.

What version of Home Assistant Core has the issue?

core-2021.12.7

What type of installation are you running?

Home Assistant OS on VM (Proxmox)

Integration causing the issue

Tuya, Google Assistant, NabuCasa

@github-actions github-actions bot removed the stale label Jan 2, 2022
@jtolar
Copy link

jtolar commented Jan 12, 2022

@tuya @zlinoliver @METISU @frenck

The problem

LePower RGBCW Flood Light (catagory cs) using the Tuya integration. When running a scene or automation and the previous work mode DP state of the light is "white" then the work mode will not change to "colour". The integration sends the correct value to the api but when it comes back the work mode is still white.

If you use the color selector in the device selector then the work mode is correct. I am attaching a logs showing this behaviour.

`
2022-01-12 19:53:59 DEBUG (SyncWorker_2) [homeassistant.components.tuya] Sending commands for device *****: [{'code': <DPCode.SWITCH_LED: 'switch_led'>, 'value': True}, {'code': <DPCode.WORK_MODE: 'work_mode'>, 'value': <WorkMode.COLOUR: 'colour'>}, {'code': <DPCode.COLOUR_DATA_V2: 'colour_data_v2'>, 'value': '{"h": 330, "s": 1000, "v": 176}'}, {'code': <DPCode.BRIGHT_VALUE_V2: 'bright_value_v2'>, 'value': 185}]

2022-01-12 19:55:47 DEBUG (Thread-10) [homeassistant.components.tuya] Received update for device *****: {'switch_led': True, 'work_mode': 'white', 'bright_value_v2': 185, 'temp_value_v2': 438, 'colour_data_v2': '{"h":330,"s":1000,"v":176}', 'scene_data_v2': '{"scene_num":8,"scene_units":[{"bright":0,"h":0,"s":1000,"temperature":0,"unit_change_mode":"gradient","unit_gradient_duration":70,"unit_switch_duration":70,"v":1000},{"bright":0,"h":120,"s":1000,"temperature":0,"unit_change_mode":"gradient","unit_gradient_duration":70,"unit_switch_duration":70,"v":1000},{"bright":0,"h":240,"s":1000,"temperature":0,"unit_change_mode":"gradient","unit_gradient_duration":70,"unit_switch_duration":70,"v":1000},{"bright":0,"h":61,"s":1000,"temperature":0,"unit_change_mode":"gradient","unit_gradient_duration":70,"unit_switch_duration":70,"v":1000},{"bright":0,"h":174,"s":1000,"temperature":0,"unit_change_mode":"gradient","unit_gradient_duration":70,"unit_switch_duration":70,"v":1000},{"bright":0,"h":275,"s":1000,"temperature":0,"unit_change_mode":"gradient","unit_gradient_duration":70,"unit_switch_duration":70,"v":1000}]}', 'countdown_1': 0, 'music_data': '', 'control_data': '', 'sleep_mode': 'AAA=', 'wakeup_mode': 'AAA='}
`

What version of Home Assistant Core has the issue?

core-2021.12.9

What type of installation are you running?

Home Assistant OS on VM (kvm on Ubuntu)

Integration causing the issue

Tuya, Home Assistant

@jtolar
Copy link

jtolar commented Jan 18, 2022

Sorry Category is dj

@CalvinBroadhurst
Copy link

CalvinBroadhurst commented Jan 31, 2022

Same for me also

The problem

Four RGB+White Tuya downlights linked to Tuya integration in Home Assistant
I can control them directly through HA and change between White and Color modes but if I configure two scenes where one has white (warm white) and the other has colours then switching from white to colour doesn't work. If I have two scenes which both use colour then it does correctly change colours
Google Assistant (not through HA) will change between white/colour modes without a problem.

EDIT - Weirdly it seems that sometimes I can change between color_temp mode and color mode IF I don't specify a brightness. I originally thought it was down to using a colour_name rather than hs, rgb, rgbww etc values but that may have been coincidence.

What version of Home Assistant Core has the issue?

core-2021.12.10

What type of installation are you running?

Home Assistant OS on Raspberry Pi

Integration causing the issue

Tuya

@DjehutiC
Copy link

Exact same issue for me. Glad to see I'm not the only one with this issue, but on the other hand, there doesn't seem to be a lot happening to solve this ...

@Alfiegerner
Copy link
Author

I ended up moving to localTuya custom component, works great

@mattlward
Copy link

mattlward commented Mar 16, 2022

I am having the same problem as others, if I set a color and brightness in the same action the light always turns on white.
I have several Tuya lights and this is a common problem with all of them.

Here is my full automation and a work around that works most of the time.

In this case the problem section is conditions[0]conditions[1]
`

  • id: Matt_orb_dell_control
    alias: 'Matt orb dell control'
    trigger:
    • platform: state
      entity_id: switch.dell
      from:
      • 'on'
        to:
      • 'off'
    • platform: state
      entity_id: switch.dell
      from:
      • 'off'
        to:
      • 'on'
        mode: single
        action:
    • choose:
      • conditions:
        • condition: state
          entity_id: switch.dell
          state: 'off'
          sequence:
        • service: light.turn_off
          entity_id: light.matt_orb
      • conditions:
        • condition: state
          entity_id: switch.dell
          state: 'on'
          sequence:
        • service: light.turn_on
          entity_id: light.matt_orb
          data:
          brightness: 1
        • service: light.turn_on
          entity_id: light.matt_orb
          data:
          color_name: deepskyblue
        • service: light.turn_on
          entity_id: light.lamp1
          data:
          brightness_pct: 30
          `

device info:
min_mireds: 153 max_mireds: 500 supported_color_modes: brightness, color_temp, hs, onoff color_mode: hs brightness: 255 hs_color: 195, 100 rgb_color: 0, 191, 255 xy_color: 0.146, 0.238 friendly_name: Matt_orb supported_features: 0

@mattlward
Copy link

I to can confirm that device status:
{
"code": "work_mode",
"value": "white"
},

Is not changing when going from white to color in HA, but it does when using the Tuya app.

@santivanic
Copy link

Having same issues with tuya integrator on AH
Also same behavior using "Smart Life" app
I ended up using localTuya as @Alfiegerner suggested and color change is working as expected now.

@mattlward
Copy link

This is to bad, seems that Tuya cloud has become unsupported. These are the one set of devices I really do not care if I bring in local and localTuya is going to be a pain to set up from what I can tell.

@Phil-m-pinto
Copy link

Phil-m-pinto commented Mar 26, 2022

Colour mode works fine in HA for me but if a light is in colour temperature mode, I can't pick a colour with Google home. Which means I can't walk into my kitchen and say hey Google lights turquoise. My light bulbs do not turn turquoise but my LED strips on my WT5 work file. I agree with a previous poster. There doesn't seem to be any response as to why this is. I'm on the most up-to-date version of home Assistant and using the latest tuya integration.

@danielyc
Copy link

I'm having the same issue but can work around it by creating a script that first changes the color and then changes the brightness.
Once i've got more time i will look into this issue and creating a pull request to fix it if i'm able to

@findel
Copy link

findel commented Apr 26, 2022

I'm having this problem now too. Has any progress been made?

I'm thinking of switching to Tuya Local (which I wanted to do anyway) to see if that fixes the issue. Anyone know if it does?

Maybe this should be labelled integration: google_assistant also?

@github-actions
Copy link

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.

@github-actions github-actions bot added the stale label Jul 27, 2022
@github-actions github-actions bot closed this as completed Aug 3, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Sep 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

10 participants