Tuya Official Home Assistant Integration on Github now!

But your integration still relies on the tuya cloud platform, we want local control without the need to be connected to the tuya platform
If your platform goes offline or our internet is offline, all devices are dead in the water and a smarthome becomes a dumbhome

3 Likes

I wish I can do that :slight_smile:
But I will wait until a real professional fix it.

I’m interested but how do we actually sign up for the beta test? When I go to the cloud thing it wants me to pay for a subscription - are we supposed to pay to be able to use this integration? I don’t intend to do that. The built in one is free and if I have to pay I will just move over to using all Lutron…

Hi Rob!
The APIs for the HA integration are on trial 0 fee, which you don’t need to pay. And the valid time has no limit actually, which could be continuously used for free.

If you have Tuya account already, pls send it to [email protected] will provide technical support and development gifts for you.

I don’t think local control is a must have feature and a blocker for trying the new integration, as nowadays, almost every family has internet access, no one can live comfortable without internet, similar to electricity.

I also heard that the old Tuya integration will be deprecated by the end of 2021, so looks like we should try and migrate to the new Tuya integration ASAP.

Open source home automation that puts local control and privacy first
Home assistants opening statement
i don’t want my data going to places i have no control over with what they do with it.

If their servers go offline for any reason (and they do) were left with dumb devices

Plus i do question a new profile being created and whose first posting and only view so far is on some cloud providers post encouraging me to migrate to their new integration. Call me sceptical, but why do they want our data so badly

3 Likes

I have a similar opinion. My home, my automation and if something goes wrong it’s usually my fault and I know how to fix it. If I have to rely on the cloud and something goes wrong then it is not in my power.
As I already wrote, if Tuya will work in a local LAN I can think about it, fortunately there are other devices that can do it and it keeps me cool.

sorry, not clear… when tuya integration will be released we’re going to pay to use it?! i just purchased tuya plugs but i’m sending them back in this case… thanks

As it’s said in the tutorial, it’s free, not need to pay to use it: https://developer.tuya.com/en/docs/iot/Home_Assistant_Integration?id=Kamcjcbvk2mu8

Q: Will I be billed after the 1-year free trial of the API product expires?

A: After expiration, you can renew the subscription for free. The Trial Edition allows you to use all free API products but puts limits on the quota of API calls. For more information about the quota, see the Pricing.

ok, joining and testing… hoping trial remains free… but could have been called “free plan” …

i subscribe the petition for a offline fallback +1 … i understand you have to make money on plans but the fallback can stay on 24h just in case of a severe internet downtime and then use default behaviour… i should be able to choose what to do: imagine a radiathor or a fridge connected to a plug. thanks.

so… done… test plug is working, integration easy to use… but, energy monitoring entity is missing

1 Like

using the api explorer is easy to read energy values, so we have just to wait an integration update or build our sensors… very nice

1 Like

@Oleok @zlinoliver I’ve been trying to use this integration for hours with no success. I bought myself a portable AC unit which uses tuya, it works with Tuya Smart app. Made a tuya-iot account, created a paas project, paired my tuya account to it, i can see the device listed on the project as well. Then i startup the integration, put all the data in - and all I get is “Invalid authentication”. Both my tuya and tuya-iot accounts use the same username and password, both are in the USA. I have no idea what’s wrong, but I would very much like to make it work. Do I contact devops or what? I see on github I’m not the only one with this problem, but there’s absolutely no debugging data to be seen

After some wrestling i managed to get some debugging info out

TuyaConfigFlow.async_step_user start, is_import= None
TuyaConfigFlow.async_step_user start, is_import= {'password': 'CENSORED', 'endpoint': 'https://openapi.tuyaus.com', 'access_id': 'CENSORED', 'access_secret': 'CENSORED', 'tuya_app_type': 'tuyaSmart', 'country_code': '1', 'username': 'CENSORED}
TuyaConfigFlow._try_login start, user_input: {'password': 'CENSORED', 'endpoint': 'https://openapi.tuyaus.com', 'access_id': 'CENSORED', 'access_secret': 'CENSORED', 'tuya_app_type': 'tuyaSmart', 'country_code': '1', 'username': 'CENSORED', 'tuya_project_type': 0}
[tuya-openapi] Request: method = POST, url = https://openapi.tuyaus.com/v1.0/iot-01/associated-users/actions/authorized-login, params = None, body = {'username': 'CENSORED', 'password': 'CENSORED', 'country_code': '1', 'schema': 'tuyaSmart'}, headers = {'client_id': 'CENSORED', 'sign': '970A1A2A605618C9C24011301CA5C22B472B36F61105512173734BDF94EA7898', 'sign_method': 'HMAC-SHA256', 'access_token': '', 't': '1624477851121', 'lang': 'en', 'dev_lang': 'python', 'dev_version': '0.2.2', 'dev_channel': 'hass'}
[tuya-openapi] Response: {
  "code": 2406,
  "msg": "skill id invalid",
  "success": false,
  "t": 1624477851701
}


Pls see the FAQ for trouble shooting
How to use Tuya Official Integration

You are welcomed to feedback to [email protected]

Yes, I’ve seen this, and I’ve got those points covered, because as I’ve said:
I created the project yesterday
I can see my AC unit in the project
I am entering my credentials correctly


My region is set to Australia but its not available to choose in the integration. Is it possible to add Australia?

1 Like

Same issue - Region set to Australia not available to choose in the integration. Authentication fails.

After poking around in the Tuya IOT platform I worked out that my devices show up under the “Europe” availability zone. I still can’t successfully auth using this zone though.