# Tuya webhook possible?

**URL:** <https://community.homey.app/t/tuya-webhook-possible/118285>\
**Category:** Devices\
**Created:** [October 16, 2024, 8:57am UTC](https://community.homey.app/t/tuya-webhook-possible/118285 "2024-10-16T08:57:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefan\_Beck](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/stefan_beck/32/80078_2.png) [@Stefan\_Beck](https://community.homey.app/u/Stefan_Beck)\
**Post date:** [October 16, 2024, 8:57am UTC](https://community.homey.app/t/tuya-webhook-possible/118285/1 "2024-10-16T08:57:43Z")

</div>

Hello everyone, I have a question about a Smartlife or tuya wifi product that I cannot integrate into the homey app. Is it possible to send a command from the Tuya cloud or as an https webhook? e.g. the sensor has detected a movement, then send a webhook command? or can you somehow integrate an ifttt here? Thanks for the help!

> **[Tuya Smart - Global Cloud Platform Service Provider](https://www.tuya.com/)**
>
> Tuya Inc. (NYSE: TUYA; HKEX: 2391) is a global leading cloud platform service provider with a mission to build a smart solutions developer ecosystem and enable everything to be smart.

[https://de.aliexpress.com/item/1005006443940035.html?src=google&pdp\_npi=4%40dis!EUR!10.56!10.56!!!!!0.9387%40!12000037186312671!ppc!!!&src=google&albch=shopping&acnt=272-267-0231&isdl=y&slnk=&plac=&mtctp=&albbt=Google\_7\_shopping&aff\_platform=google&aff\_short\_key=UneMJZVf&gclsrc=aw.ds&&albagn=888888&&ds\_e\_adid=&ds\_e\_matchtype=&ds\_e\_device=c&ds\_e\_network=x&ds\_e\_product\_group\_id=&ds\_e\_product\_id=de1005006443940035&ds\_e\_product\_merchant\_id=675280104&ds\_e\_product\_country=DE&ds\_e\_product\_language=de&ds\_e\_product\_channel=online&ds\_e\_product\_store\_id=&ds\_url\_v=2&albcp=20542169885&albag=&isSmbAutoCall=false&needSmbHouyi=false&gad\_source=1&gclid=Cj0KCQjwyL24BhCtARIsALo0fSBLOxXDOteRAsGV5TyH4KAyke2dwYz6SjITER7QDPDm2LXhip96q3YaAk8IEALw\_wcB](https://de.aliexpress.com/item/1005006443940035.html?src=google&pdp_npi=4%40dis%21EUR%2110.56%2110.56%21%21%21%21%210.9387%40%2112000037186312671%21ppc%21%21%21&src=google&albch=shopping&acnt=272-267-0231&isdl=y&slnk=&plac=&mtctp=&albbt=Google_7_shopping&aff_platform=google&aff_short_key=UneMJZVf&gclsrc=aw.ds&&albagn=888888&&ds_e_adid=&ds_e_matchtype=&ds_e_device=c&ds_e_network=x&ds_e_product_group_id=&ds_e_product_id=de1005006443940035&ds_e_product_merchant_id=675280104&ds_e_product_country=DE&ds_e_product_language=de&ds_e_product_channel=online&ds_e_product_store_id=&ds_url_v=2&albcp=20542169885&albag=&isSmbAutoCall=false&needSmbHouyi=false&gad_source=1&gclid=Cj0KCQjwyL24BhCtARIsALo0fSBLOxXDOteRAsGV5TyH4KAyke2dwYz6SjITER7QDPDm2LXhip96q3YaAk8IEALw_wcB)

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [October 18, 2024, 9:51pm UTC](https://community.homey.app/t/tuya-webhook-possible/118285/4 "2024-10-18T21:51:09Z")

</div>

Tuya wifi PIR’s not ending the motion alarm is a very old issue, ignored by Athom unfortunately.

You’d best use this workaround, Stefan:

Add virtual sockets with a [iot.tuya.com](http://iot.tuya.com) developer account, [go to this site](https://developer.tuya.com/en/docs/iot/manage-virtual-devices?id=Ka4725tiyfhg0),  
Now with Tuya phone app, have the PIR switch the virtual socket on, and after a few seconds off again, using an automation;  
now you can use that socket as ‘sensor’ in Homey.

> ![1000036135](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/7/17a846b9542113850e32d68432c5d09181cdadde.jpeg)

Source:

> <https://github.com/athombv/com.tuya/issues/5>
>
> When LSC PIR is added as new Homey device, the motion alarm is on right away. 
> N…othing changes when motion is detected. 
> (Note: exact same behaviour as in Home Assistant
> \[Tuya integration\](https://github.com/home-assistant/core/issues/58634); it records motion events however, but never gets cleared)
> 
> Temp fix: add virtual sockets with a iot.tuya.com developer account, \[go to this site\](https://developer.tuya.com/en/docs/iot/manage-virtual-devices?id=Ka4725tiyfhg0), 
> with Tuya phone app, have the PIR switch the socket on/off, now you can use that socket as 'sensor' in HA / Homey.
> 
> !\[Screenshot\_20240605-231427\_Homey.jpg\](https://github.com/athombv/com.tuya/assets/74005072/b5b8ce8b-c25e-42ba-befb-854fbd22f738)
> 
> !\[Screenshot\_20240605-231444\_Homey.jpg\](https://github.com/athombv/com.tuya/assets/74005072/aa46bf80-5185-4309-a1ad-1e98e32409a5)
> 
> The mobile TuyaSmart app registers motion correctly
> !\[Screenshot\_20240605-232326\_Tuya Smart.jpg\](https://github.com/athombv/com.tuya/assets/74005072/608f39d5-4265-423f-b320-10db1ef20462)

\_

Oh and some info about these crazy long webshop URL’s:  
you can omit everything after `html`.  
This URL below will bring you to the same page, without sending all kinds of who-knows-what info along:  
[https://de.aliexpress.com/item/1005006443940035.html](https://de.aliexpress.com/item/1005006443940035.html)
