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
69.82k stars 28.95k forks source link

Tuya Smart IR and its integrated device shows as unsupported #66866

Open auliarshad opened 2 years ago

auliarshad commented 2 years ago

The problem

Hi, I use Tuya app to integrate with my smart devices from BARDI (local smart home company from Indonesia, https://bardi.co.id/ ). Currently I can control my Air Conditioner and TV via their Smart IR device

Image from iOS

However, integrating my HA with Tuya integration shows that the devices is unsupported and have no entities to be controlled. Pardon i'm quite new in HA. Kindly guide me on this. I already provided the diagnostic log above. Thank you

image

What version of Home Assistant Core has the issue?

core-2022.2.9

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Core

Integration causing the issue

tuya

Link to integration documentation on our website

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

Diagnostics information

config_entry-tuya-c32dce7ad5ee18ff3f68cf4ad092f4f1.json.txt

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

probot-home-assistant[bot] commented 2 years ago

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)

jocamane commented 2 years ago

any news about this ?

rodsolmi commented 2 years ago

+1 I'm in exactly the same situation, I guess if tuya have no interest on solving this we'll just have to flash the devices...

Mocheto commented 2 years ago

+1, same situation since tuya v2 was deprecated for direct integration in HA core

DeanoAus commented 2 years ago

+1!

DeanoAus commented 2 years ago

Looking at the tuya dev platform, the IR blaster is online. I can control it fine via the tuya app and home assistant picks it up as being a valid device, but won't give me any entities to control.

elad-bar commented 2 years ago

+1

jayadic commented 2 years ago

+1, i have smart IR + temperature and humidity sensor from Almo. Also detected as unsupported in ha.

luizaq commented 2 years ago
Ayo91 commented 2 years ago

same issue with "Smart IR (unsupported) by Tuya". Still not supported? what a pity

ztanming commented 2 years ago

+1 is there any update?

kielstr commented 2 years ago

Same issue. Any updates?

Ayo91 commented 2 years ago

It seems is a limitation in the Tuya api because I tried to use api calls and not able to execute any command with the IR device....

I also used Local Tuya integration and I was not able to setup the IR device. Other sensors were setup correctly.

Mocheto commented 2 years ago

Local tuya has no implementation for that, I hope HA back support those devices.

please priorize this issue/feature!

arcaneiceman commented 2 years ago

Same issue. Not sure if it helps but if I download diagnostics from this screen : image I can see a json with these values : "status": { "va_temperature": 248, "va_humidity": 44 } Which is correct so perhaps if we had a way of polling this...

albertruizalonso commented 2 years ago

I join this topic. Let's see if someone finds a solution! Thank you!

Mocheto commented 2 years ago

I've found a workarround:

You can create scenarios to run, will you create within the app not from Home Assistant. once a scenario is being created it will show up in HA. They are all transferred to HA official Tuya integration. You can find them under scenes section.

strozl commented 2 years ago

i have same problem with perenio red atom (ir device) and climate device

Diacoin commented 1 year ago

I did it a scenario in Smart Life and it works fine but no scenes appear in HA I can also activate the scenario via Alexa and works fine but not in HA

AdrianTindeche commented 1 year ago

I don't know why I have the feeling that nobody is working lately (in the last maybe 6 month or more) to add new Tuya devices support in HA. I also have a Smart IR Tuya device which is working fine in the Tuya app, though it's shown as " Smart IR (unsupported) by Tuya" in the device info, same as many of you are reporting.

My Smart IR device seems to be reporting the temp and humidity, as I can see them in the diagnostics json txt file, but no entities shown. It's category is "wnykq", which does not appear in the HA official list of the Tuya Supported Device Category so obviously nobody from Tuya or HA worked on adding additional Tya supported devices since Release 2021.11.

Home Assistant team guys, is anybody from your team working on the Tuya integration, or it's left in between the chairs? as I see in several posts that there is a ping-pong between HA team pointing to Tuya IoT and Tuya IoT pointing back to HA? Any further development to support new Tuya devices not present in the Tuya supported devices official list?

Mocheto commented 1 year ago

it can be said more loudly but not so clear.

I see a lot of new features but not fixes for "new tuya integration".

I prefer the old integration working with all tuya devices... than the newer. Please, can you fix it?... is a lost feature

macabrismix commented 1 year ago

I add to the post. Please react

Biztactix-Ryan commented 1 year ago

"I don't know what you're talking about... There's no unsupported features" All but 1 Tuya device is unsupported

image
ausfas commented 1 year ago

Same here, unsupported by Tuya. Any solution yet ?

Ayo91 commented 1 year ago

Same here, unsupported by Tuya. Any solution yet ?

working with scenes solved my the problems with not supported devices...!

Mocheto commented 1 year ago

Yes, that's a solution but it is not a final solution. Please we are still waiting for a lost feature in HA

fabriciolb commented 1 year ago

Same here, looking for being supported one day.

CristhoferAlencar commented 1 year ago

same here, waiting for solution

TWei-1101 commented 1 year ago

same problem~

Bobsilvio commented 1 year ago

same problem

stoyanmarinov commented 1 year ago

I have the same problems with my tuya smart ir / thermometer devices. I have posted my "solution" to use the temp and humidity readings in #75711. For controlling devices with the IR remote I use the tuya app scenes. I'd love to see it properly integrated but to be honest, it works for me the way i have it set up.

Rimadius commented 1 year ago

I have added only AC over tuya IR remote. It says that it is unsupported in HA, but I have created Tap-to-Run automation, and reloaded integration in HA. Looks like it finds the automations. So that is a pretty good workaround for the first hand until we get the support

Mieoin commented 1 year ago

I have the same problems with my tuya smart ir / thermometer devices. I have posted my "solution" to use the temp and humidity readings in #75711. For controlling devices with the IR remote I use the tuya app scenes. I'd love to see it properly integrated but to be honest, it works for me the way i have it set up.

Thank you! This looks like the solution I've been searching for.

How did you get to homeassistant/components/tuya/sensor.py ?

MenaYassa commented 1 year ago

I have exactly the same problem, Could anybody help?!

stoyanmarinov commented 1 year ago

How did you get to homeassistant/components/tuya/sensor.py ?

What I did was I fetched the git code and then put homeassistant/components/tuya in /config/custom_components. In order to override the default module, you have to add a version in manifest.json file. Mine looks like this:

{
  "domain": "tuya",
  "name": "Tuya",
  "documentation": "https://www.home-assistant.io/integrations/tuya",
  "requirements": ["tuya-iot-py-sdk==0.6.6"],
  "dependencies": ["ffmpeg"],
  "codeowners": ["@Tuya", "@zlinoliver", "@frenck"],
  "config_flow": true,
  "iot_class": "cloud_push",
  "dhcp": [
    { "macaddress": "105A17*" },
    { "macaddress": "10D561*" },
    { "macaddress": "1869D8*" },
    { "macaddress": "381F8D*" },
    { "macaddress": "508A06*" },
    { "macaddress": "68572D*" },
    { "macaddress": "708976*" },
    { "macaddress": "7CF666*" },
    { "macaddress": "84E342*" },
    { "macaddress": "D4A651*" },
    { "macaddress": "D81F12*" }
  ],
  "loggers": ["tuya_iot"],
  "version": "2.0.0"
}

After this you can modify the contents of the component (like add support for devices). Changes will apply upon restart.

MosheTzvi commented 1 year ago

+1 for native support in the Tuya extension please

Mieoin commented 1 year ago

How did you get to homeassistant/components/tuya/sensor.py ?

What I did was I fetched the git code and then put homeassistant/components/tuya in /config/custom_components. In order to override the default module, you have to add a version in manifest.json file. Mine looks like this:

{
  "domain": "tuya",
  "name": "Tuya",
  "documentation": "https://www.home-assistant.io/integrations/tuya",
  "requirements": ["tuya-iot-py-sdk==0.6.6"],
  "dependencies": ["ffmpeg"],
  "codeowners": ["@Tuya", "@zlinoliver", "@frenck"],
  "config_flow": true,
  "iot_class": "cloud_push",
  "dhcp": [
    { "macaddress": "105A17*" },
    { "macaddress": "10D561*" },
    { "macaddress": "1869D8*" },
    { "macaddress": "381F8D*" },
    { "macaddress": "508A06*" },
    { "macaddress": "68572D*" },
    { "macaddress": "708976*" },
    { "macaddress": "7CF666*" },
    { "macaddress": "84E342*" },
    { "macaddress": "D4A651*" },
    { "macaddress": "D81F12*" }
  ],
  "loggers": ["tuya_iot"],
  "version": "2.0.0"
}

After this you can modify the contents of the component (like add support for devices). Changes will apply upon restart.

Thanks for the reply! I haven't been able to make the custom component override the original module (not seeing the updated version in the diagnostics) but I'll keep poking at it :)

Edit: I was missing a comma in the manifest... Works like a charm now. Thanks again for your work on this stoyanmarinov

stoyanmarinov commented 1 year ago

Yep, just add version to the manifest to override it.

viv-design commented 1 year ago

The patch to sensors.py didn't work for me, in the diagnostics json of the device nothing is reported, but in the tuya cloud I can see log of temperature and humidity changes. In the smart life app I can create automations with these sensors but not in HA. Any ideas if this is ever going to be fixed?

swisslb commented 1 year ago

+1 for me. Please ! Thank you :-)

TheInfamousToTo commented 1 year ago

same problem

elad-bar commented 1 year ago

I'm working on solution for the unsupported devices, it csn be caused by 2 eeasons, HA integrstion does not support category (adding the support require development within the integration, do a PR and wait for the review which will take long time because of the load on HA reviewers) or that Tuya device is using custom DPS (datapoints) that are not recognized, My solution address both issues, first I found a way to make the custom DPS code as standard so the HA will be aware from them, then extracted the configurations from code to JSON, With that solution HA integration will find the JSON as the source which will reduce the time until we will get new devices and we can test it locally.

Below is a link to that solution that forked out by the original code of Tuya integration and at some point hopefully will get remerged https://github.com/elad-bar/ha-tuya-ce

ausfas commented 1 year ago

That's good at someone is looking into this but can't the actual Tuya integration be fixed as with data point one has to manually add functions :( , however, if that's not possible, still thanks for doing something for us :)

elad-bar commented 1 year ago

In parallel i'm working on automating that flow, managed to extract all dps of all devices without the manual change Tuya developer portal, but the translation of dps to name requires manual login (once to developer portal and extract cookie to set it as part of the project), once I have it I can get all devices and all the functionality of both custom and standard instructions, It has the potential to become Tuya2MQTT solution like Zigbee2MQTT, but I need more hands (nodejs) or time to promote it, Tuya CE is a step towards the full solution

scriptpigeon commented 1 year ago

+1 for Tuya CE and ability to add my Proscenic T22 Air Fryer to HA. Great work so far. Wish I could help.

elad-bar commented 1 year ago

Please open an issue for that device in Tuya CE with diagnostic details of the specific device, I will see if I can add it or need additional action from your end

JohnSmithOfThor commented 1 year ago

Any solutions to this?

johnkingtooo commented 1 year ago

I found a service "IR Control Hub Open Service" in tuya IOT platform, but it doesn't work in HA. somebody know how to activate it?

stepir commented 1 year ago

will be auto closed otherwise

arcaneiceman commented 1 year ago

Problem has been solved from my end. Thank you to the team developing the integration. I have full access to temperature and humidity along in my Smart IR + Temp/Humidity sensor