Tuya Integration

@Tovrin I have a couple of Brilliant smart plugs working with Tuya. My configuration is the same as yours except I have added platform: tuya. I think I originally registered with Tuya using the Tuya app to get the username and password. They show up in HA as switch.<biglongnumber>. I don’t know if the downlights would work the same but I assume they would.

@keilorca Did you add the platform: tuya under tuya: or as a separate “level 1” thing?

Under tuya. Like this:

tuya:
  username: xxxxx
  password: xxxxx
  country_code: 61
  platform: tuya

@keilorca Sadly … nope. Didn’t work. The tuya.force_update and tuya.pull_devices events appear, but I’m not getting the devices appearing as light.<whatever>.

Thanks anyway.

if the tuya integration itself works, it might be the lights are not supported (yet/ever)

@walaj The lights work in Tuya. Why wouldn’t they work in HASSIO?

Did you check the registered entities?
Also check the logs …and
The debugger log to your configuration.yaml

Logger:
Default: error
Logs:
Tuya: debug
Homeassistant.components.tuya: debug

@tik83

  1. Yes. The devices are not there.
  2. Yes. Nothing unusual.
  3. I’ll give that a try. I take it the stuff after your third line is what I need to put into the configuration .yaml?

because the API doens’t support all the devices supported by the Tuya App.

From logger:

Check https://www.home-assistant.io/components/logger/

Dumb guy here. What would it take to get them supported? I have the brilliant outdoor sensor light

not much less dumb here - not sure. The integration is currently managed here - https://github.com/PaulAnnekov/tuyaha

If they are the brilliant plugs from Bunnings in Australia, then use tuya-convert and flash with either esphome or tasmota. Many people have done this and there are Configs for them. This way you do away with reliance on the tuya cloud

I might do that one day if I get around to it. For now they work as is so I’m not too bothered.

Hi All
I’ve an issue with my Tuya power outlet ((https://www.aliexpress.com/item/32959513789.html) since a couple days. Everything was working fine since almost a year
Upon a HA restart (Hass.io 97.2), the power state is good for a minute, then go off, and stay off whatever I try to do.
No error or logs showing an issue with the tuya integration
It’s working in tuyasmart app, and in google home.
I tried to delete a create tuya integration again, add tuya platform in configuration yawl, I still can’t manage th outlet with HA

Thanks for your help

Tuya have change the API by the looks of it, till the TUYAHA component is updated to work with it, its not functioning correctly
This isnt because you updated HA

@topilouff, I believe @aidbish is correct and your problem is related to a recent Tuya API change. There are a couple issues submitted about this problem, so when you have a moment you may want to go comment to help bring more awareness to the problem.

https://github.com/home-assistant/home-assistant/issues/25992

https://github.com/PaulAnnekov/tuyaha/issues/3

thanks for your quick answers, I’ll take a look to these issues

Hi

Is this heater device supported by the home assistant tuya integration?

I can control the heater (link) perfectly within the tuya smart app, everything works fine.

My configuration entry is:

tuya:
  username: [email protected]
  password: xxxx
  country_code: 86 # I initially registered the app with NZ (64) as well, but that didn't work.
  platform: tuya

I ran the service tuya.pull_devices

I can’t see the heater / climate entity in the states page.

Tuya devices still don’t work. HA seems to go backwards sometime not forwards.