Tuya Smart WiFi Door Sensor PST-WD002 with localtuya sensor status UNAVAILABLE

Hello,

I have problems with the following configurations.
For the moment I have 2 binary magnetic sensors which are monitoring one door and one window, no automations created yet based on this sensors, I will like only to see in my dashboard which window/door are opened or closed.
Sensors was integrated well and its functioning perfectly until they are going to sleep mode, then the sensors appear in my Glance card as unavailable.
I will like to ignore this status and keep only status Closed or Open.
Did somebody experience this problems? How it was solved?

Thank you
Marius

Hi,

I have a wifi door sensor that is configured in tuya integration. But it’s not getting auto detected by local tuya integration and I am not able to integrate it manually via local tuya as well.

Please guide me, how can I integrate in local tuya integration.

Regards.

Hi buddy, did you fixed it?

After wasting some time, I figured out a way to get around the tuya wifi door sensors problem.

Due to the integration in HA, sometimes the status did not update and only updated after restarting the integration, or if through Local Tuya, it was in an unavailable state.

I did the following to solve this problem:

1- Remove the Tuya integration.

2- Add the devices through Local Tuya.

3- To avoid the appearance of the unavailable state:
3.1- I created an auxiliary entity defined as input.boolean switch…
3.2- I created 4 automatisms:
3.2.1- when changing state from unavailable to open = set the entity created in 3.1 to on
3.2.2- when changing state from closed to open = set the entity created in 3.1 to on
3.2.3- when changing state from unavailable to closed = put the entity created in 3.1 off
3.2.4- when changing state from open to closed = put off the entity created in 3.1

Now in lovelace, I’m using the input.Boolean instead the sensor entity and the door icons show the current state correctly.

2 Likes