core icon indicating copy to clipboard operation
core copied to clipboard

Tuya: Contact Sensor (unsupported) (p6sqiuesvhmhvv4f)

Open 404invalid-user opened this issue 1 year ago • 14 comments

The problem

contact sensor added trough tuya shows up but is unsupported and has no entity

What version of Home Assistant Core has the issue?

core-2024.11.1

What was the last working version of Home Assistant Core?

na

What type of installation are you running?

Home Assistant OS

Integration causing the issue

tuya

Link to integration documentation on our website

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

Diagnostics information

tuya-01JCE65HKC1MCFXVTRS45N1F8F-Contact Sensor 3-3b524edf2a5f36d7f5045fea3e41a442.json

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

404invalid-user avatar Dec 02 '24 19:12 404invalid-user

Hey there @tuya, @zlinoliver, @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!

Code owner commands

Code owners of tuya can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign tuya Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


tuya documentation tuya source (message by IssueLinks)

home-assistant[bot] avatar Dec 02 '24 19:12 home-assistant[bot]

Hi, same device type here. Using HA 2024.12.0 still not supported.

Please add this contact sensor.

Thanks Marcus

mmmchen avatar Dec 06 '24 14:12 mmmchen

Hi, have the same problem, please add this contact sensor.

Thanks Sebastian

SebastianCismar avatar Jan 08 '25 18:01 SebastianCismar

I have a few of these sensors, I'd very much love to see these become supported please.

lunaticds avatar Feb 04 '25 18:02 lunaticds

Same for me. I would also very much love to see these device to be supported please. Thanks !

papou-github avatar Feb 08 '25 10:02 papou-github

Unfortunately I'm facing the same Problem 3x tuya Contact Sensor p6sqiuesvhmhvv4f unsupported,... only able to use them with the SmartLife/ Tuya App :-(

HA Version Core 2025.2.5 python_version 3.13.1 Supervisor 2025.02.1 Operating System 14.2 Frontend 20250221.0

GigaGremlin avatar Feb 25 '25 17:02 GigaGremlin

hi @frenck did you happen to have time to look into this? Thanks 👍

Ghannes avatar Mar 31 '25 14:03 Ghannes

Hi, i am facing the same issue, will this request be merged in future releases?

marcuuuuuuuus96 avatar Apr 15 '25 08:04 marcuuuuuuuus96

Same here, contact sensor isn't working with Home assistant, shows 0 entities + unsupported.

Alcarinq avatar Apr 15 '25 10:04 Alcarinq

Same here :(

Fivesz avatar Apr 19 '25 05:04 Fivesz

Might be the same problem as in https://github.com/home-assistant/core/issues/142137#issuecomment-2810383199

antonio1475 avatar Apr 19 '25 14:04 antonio1475

Same, I hope it is implemented with

IG-BB avatar Apr 26 '25 22:04 IG-BB

Same here.

mowdep avatar May 05 '25 09:05 mowdep

PLUS ONE

SmallScreenDesign avatar May 12 '25 12:05 SmallScreenDesign

Plus one. Same here

ideczynieide avatar May 16 '25 14:05 ideczynieide

plus one

jbriffautj avatar May 17 '25 15:05 jbriffautj

Same for me.

plus one

CLawSec avatar May 25 '25 14:05 CLawSec

Same here.

CarlosLB avatar May 26 '25 14:05 CarlosLB

I'm having the same problem :(

mariocondesantos avatar May 31 '25 09:05 mariocondesantos

+1 Just bought a load of door sensors and now trying to install them, HA says unsupported

LondonJammo avatar Jun 14 '25 19:06 LondonJammo

frrr me too londonjammo

patrykat avatar Jun 23 '25 17:06 patrykat

+1 Just bought a load of door sensors and now trying to install them, HA says unsupported

yeah I had a bunch kind of sucks ha doesn't support them considering getting some small esp32s to see if I can put them in the case yeah it won't run of 2 AAAs but at least it will be useful.

although with some researching it looks like people have had luck with node red so I might try that

404invalid-user avatar Jun 24 '25 19:06 404invalid-user

Hi, I am still waiting for the real HA integration of these sensors.

But as I had iobroker running anyways, I added TUYA integration there and have a script which publishes the state of these sensors to my HA instance via MQTT. you need:

  • iobroker
  • mqtt (iobroker somehow connect to HA, I have standalone mosquitto broker running)
  • tuya adapter (in iobroker)

the script is from https://forum.iobroker.net/topic/78685/iobroker-mqtt-homeassistent-autodiscovery but I modified it to send the contact state as binary sensor. And it might not work for anything else....

You need to mark the states to be published with the function "homeassistent_enabled", really the object doorcontact_state (has name 101 in my case) Image

Script: script-makedevicesHADiscovery.txt

In HA, I see the sensor twice, TUYA unsupported: Image

But the MQTT device works :-)

Yes, you need iobroker in addition to HA, but it should be fine to install just the tuya and mqtt adapters.

This is definitely a workaround and might be the node-red way is easier. As mentioned, I had iobroker running anyways, including mqtt and tuya, so this was quick :-)

Hope this helps Marcus

mmmchen avatar Jun 25 '25 07:06 mmmchen

@mmmchen never heard of iobroker before I'll have to take a look at it and see if I can get this setup

404invalid-user avatar Jun 26 '25 13:06 404invalid-user

Hi @404invalid-user ,

might be setting up iobroker just for this is a bit heavy weight.

good luck

mmmchen avatar Jun 26 '25 16:06 mmmchen

+1 tried different setups, also LocalTuya config but the issue still there even though having client-id and client-secret

ericandrer avatar Jul 14 '25 16:07 ericandrer

We would still like to see these contact sensors supported in HA directly.

mmmchen avatar Jul 17 '25 10:07 mmmchen

I built a small bridge Tuya Cloud to MQTT to support these devices. Just a temporary patch until they get supported in the official integration. Runs as local add on

HA-n00b-alt avatar Aug 11 '25 05:08 HA-n00b-alt

Hi, Plus one to integrate these devices please. Meanwhile I have just tried a simple workaround... I have other tuya devices that are working in HA, I chose a smart plug that includes a child lock setting, which I don't use, so: Create an scene in smartlife app that turns on the child lock when contact is closed Create a second scene that turns off when contact is open. I can now use the child lock sensor in HA to represent the Contact 🙂. Hth Octo

octoplayer2 avatar Aug 18 '25 11:08 octoplayer2

Also having this problem

jpredman26 avatar Sep 03 '25 03:09 jpredman26