Trigger HA automation by activating a Tuya "tap-to-run" automation

Hello, guys.

I have at home many Tuya devices integrated into Home Assistant supervised, running in a TVBox with armdebian.

Most of the devices are wall switches, which work really well with Tuya integration and LocalTuya.
One of the devices, however, is a Tuya wifi smart lock, which is not recognized in HA. I would like to set an automation up in a way that when a specific user unlocks the door, my Google mini says a welcome message and some lights are turned on.

I have already managed to do that indirectly by using an unused switch (each wall device has 4 switches, and some are not yet directed to anything) as a way to trigger HA automation (a Tuya automation turns the switch on, when the user unlocks the door, then turns the switch off again, then the switch triggers a HA automation and it does what I wanted). But this is not a very good solution, because I don’t have as much unused switches as I have users to set these automations.

Is there a way to directly trigger a HA automation via a Tuya scene (tap-to-run or Tuya automation)?
Or is there another indirect solution that wouldn’t occupy all my switches? Maybe some kind of virtual Tuya device (I have already searched for that with no success, but maybe someone knows better)?

Thank you very much just for reading until this point!

Did you end up working anything out?

Hi guys,

tl;dr;
You can add a tuya virtual smart switch scanning this qr using the Tuya Smart App (haven’t tested with other apps):

tuya virtual device

I bumped with the same issue recently after buying a doorbell. The doorbell call event is not published to HASS but it can start a scene.

Looking around on the Tuya IoT platform, I found out that on Cloud > Development > All Devices, you can create a virtual device.

There, you have a list of devices that can be added to your account.
Once you have the virtual device, you can create the scene and hook the event on HASS.

Cheers.

Hello, I have created virtual device and in tuya web, in tab “Authorized users” I have added user email that I use for Smart Life. But still, I do not see it in list of devices in my Smart Life app. What have I missed?

Buenos dias,
Sabes si hay alguna solucion a este problema.
No he visto en el hilo del tema ninguna novedad o forma de solucionarlo.
Tengo scenas creadas en tuya que si las activas no se refleja en integracion de HA tuya
Gracias

Hello Jonathan,
Thank you for sending us the details with the virtual devices.
I managed to add a Virtual-Thermostat and then created Automation (NOT tap-to-run) that linked the State of the Real-Thermostat with the Virtual-Thermostat.
I was then able to read in HA the State of the Virtual-Thermostat.

Thank you!