core: Certain Tuya bulbs not showing up.

Operating environment (Hass.io/Docker/Windows/etc.): Hass.io running on a docker on Ubuntu

Component/platform: https://www.home-assistant.io/components/tuya/

Description of problem: I’ve just purchased 3 tuya bulbs that do not show up with the tuya component. All of my other tuyas things work properly.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

tuya:
  username: ********
  password: ******
  country_code: 1

Additional information: The bulbs in question: https://www.costco.ca/Globe-Electric-LED-A19-RGB-Smart-Wi-Fi-Bulb.product.100483522.html

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 58 (1 by maintainers)

Most upvoted comments

I got a very weird situation. Since you guys report the bulb start working. Then I check the unused entities and I saw my tuya bulb shows there. But after I change the entity ID and set a name for it. Then go to UI and trying to add it, I failed. After that I can not see my bulb shows there any more.

And I got this error in terminal

Traceback (most recent call last):                                                                                       
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 275, in async_update_ha_state                      
    self._async_write_ha_state()                                                                                         
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 316, in _async_write_ha_state                      
    attr.update(self.state_attributes or {})                                                                             
  File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 477, in state_attributes                
    data[ATTR_BRIGHTNESS] = self.brightness                                                                              
  File "/usr/src/homeassistant/homeassistant/components/tuya/light.py", line 43, in brightness                           
    if self.tuya.brightness() is None:                                                                                   
  File "/usr/local/lib/python3.7/site-packages/tuyaha/devices/light.py", line 16, in brightness                          
    brightness = int(self.data.get('color').get('brightness') * 255 / 100)                                               
AttributeError: 'NoneType' object has no attribute 'get'

Is there anyone can help? I run my HA under docker.

Woah, ignore my last update … now a bigger one! I sorta fabricated a story about wanting to buy hundreds of Gosund Bulbs for a project… but since they wont be supporting HA i will be returning my test bulbs and going with another vendor’s products.

And so they replied with this HAHA

Tuya an hour ago Hello, we expect to support your product on HA this Thursday, and you will be able to use it normally.

So maybe I won’t be converting my other bulbs to Tasmota just yet. Lets see if they come through!

From Tuya on support ticket:

Hello, this will be scheduled as soon as possible, I will not close this ticket, the new version of the lighting support HA still takes a while.

There’s hope!

Is there a guide you followed to accomplish this? Can you change colors after the flash? I have the same issue as everyone else, my bulbs show up (if they are off during the reboot) but no color change option so thinking about doing the flash

yes you can control color after converting. At least on my Gosund bulbs it was no problem. I did have to figure out which channels were which PWMs myself but it wasnt so hard, just a few minutes of trial and error.

After that I only went so-far as to confirm there is a nice place in Home Assistant to adjust the color. then I unscrewed my bulb and havent used it yet, was waiting on Tuya to come around but I am getting impatient now so I’m likely to convert my others too. You are just sending numerical color values for each brightness; W R G B so they can be automated via Tasmota/MQTT/HA like anything else.

I did an OTA upgrade so I didnt even need to take the bulb apart.

Here are some guides you can follow

There are newer/updated tutorials out there just give tuya-convert a google

You will need Raspbian Stretch Light and Raspi to follow most of the guides. Its nice because you will need both the ethernet and the Wifi. You will probably want to dedicate a microSD card to it so you can just shutdown your HA, swap the card in, convert, and boot HA back up.

I would like to figure out a way to toggle the brightness and temperature for a group of bulbs in HA.

Have you tried setting up a light.group?

https://www.home-assistant.io/integrations/light.group/

Everyone open tickets with tuya to help raise the priority!

On Sun, Oct 20, 2019, 4:00 PM ryaske notifications@github.com wrote:

same issue with these bulbs by gusound. Damn, I wished to use them as visual indicators. Guess I’ll be waiting along with everyone else…

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/home-assistant/home-assistant/issues/25163?email_source=notifications&email_token=AAETIJ7ZHACS3Q4LD26OQS3QPPQWFA5CNFSM4IDYSVBKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBYCNPI#issuecomment-544220861, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAETIJ3BUVXU2IHUZFIUJGDQPPQWFANCNFSM4IDYSVBA .

Also posting this here:

I found a small work around… You can make scenes that turns a device on and off. These scenes are found in HA and can be used to be intergrated in automations and scripts. The only thing one can´t control is the color of RGBW devices…

Can we get some support for this? Still not working.