# Tuya Problem PIR / motion detector

**URL:** <https://community.homey.app/t/tuya-problem-pir-motion-detector/118279>\
**Category:** Devices\
**Created:** [October 16, 2024, 7:12am UTC](https://community.homey.app/t/tuya-problem-pir-motion-detector/118279 "2024-10-16T07:12:54Z")\
**Posts on this page:** 19\
**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, 7:12am UTC](https://community.homey.app/t/tuya-problem-pir-motion-detector/118279/1 "2024-10-16T07:12:54Z")

</div>

Good morning everyone, I have a question about Tuya. I have already integrated wifi door contacts via the smartlife amm on my cell phone and on the tuya development platform and then integrated them into homey via the tuya app and it works great! I have now bought a motion detector that is also in the smarlife app and here in the tuya app. However, I cannot get it integrated into homey. does anyone know that? isn’t that possible? Alternatively, can you ask the question via the Tuya platform when the motion detector detects movement and sends a webhook? I would be grateful for help!

> **[WiFi Bewegungssensor, intelligenter Bewegungsmelder für die Heimsicherheit,...](https://www.amazon.de/WiFi-Bewegungssensor-Bewegungsmelder-Heimsicherheit-Fern%C3%BCberwachungs/dp/B0CLY2H1H6)**
>
> WiFi Bewegungssensor, intelligenter Bewegungsmelder für die Heimsicherheit, drahtloser Bewegungssensor mit Fernüberwachungs App, Sprachbefehl kompatibel mit Alexa. 1 Pack : Amazon.de: Baumarkt

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/4/a4bdf874762ef128dc37b0601d136ba0c0d76b00.png)  
[https://de.aliexpress.com/item/1005007582271872.html?src=google&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=de1005007582271872&ds\_e\_product\_merchant\_id=5351398402&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=EAIaIQobChMIiJG5iqySiQMV\_qWDBx2\_OATyEAQYAyABEgJDsvD\_BwE](https://de.aliexpress.com/item/1005007582271872.html?src=google&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=de1005007582271872&ds_e_product_merchant_id=5351398402&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=EAIaIQobChMIiJG5iqySiQMV_qWDBx2_OATyEAQYAyABEgJDsvD_BwE)

---

<div class="post-metadata">

**Author:** ![marccie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marccie/32/109765_2.png) [@marccie](https://community.homey.app/u/marccie)\
**Post date:** [October 16, 2024, 11:28am UTC](https://community.homey.app/t/tuya-problem-pir-motion-detector/118279/2 "2024-10-16T11:28:28Z")

</div>

Hi @Stefan_Beck ,

I use several motion detectors with Tuya and the official Tuya app [Tuya App voor Homey | Homey](https://homey.app/nl-nl/app/com.tuya/Tuya/) there was a bug the last days, but now it’s working again. It’s easier to use the official (new) app of Tuya for using the motion sensors.

---

<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, 11:49am UTC](https://community.homey.app/t/tuya-problem-pir-motion-detector/118279/3 "2024-10-16T11:49:07Z")

</div>

Are you using exactly this types which i have?

---

<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, 12:32pm UTC](https://community.homey.app/t/tuya-problem-pir-motion-detector/118279/4 "2024-10-16T12:32:35Z")

</div>

I installed the new tuya version. Here it just shows in the dashboard that the device is okay but has no value or something like that. then if I want to select a flow you have to enter a code as an example for a movement or person = pir but if I write PIR or pir in the field there is an error… how do I do that?

 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/c/5c63ea9ef8d5a4ed43043b406b51c474f02f4eb4.png)  
 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/a/cad89ffabeecd5162380751b3b306075149950db.png)

---

<div class="post-metadata">

**Author:** ![marccie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marccie/32/109765_2.png) [@marccie](https://community.homey.app/u/marccie)\
**Post date:** [October 16, 2024, 2:21pm UTC](https://community.homey.app/t/tuya-problem-pir-motion-detector/118279/5 "2024-10-16T14:21:22Z")

</div>

Hi @Stefan_Beck,

Is it not possible to set the device up as sensor? When adding a new device with Tuya go to Motion Sensor?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/0/c031f317d1a9c4d96d8c641b6f44f4762f8564ca.png)

Otherwise you have go to the settings/einstellungen of the device, and look for device specification voor the JSON to use.

---

<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, 3:44pm UTC](https://community.homey.app/t/tuya-problem-pir-motion-detector/118279/6 "2024-10-16T15:44:56Z")

</div>

> [@marccie](#):
>
> Otherwise you have go to the settings/einstellungen of the device, and look for device specification voor the JSON to use.

Can you please explain this to me in more detail please?

---

<div class="post-metadata">

**Author:** ![marccie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marccie/32/109765_2.png) [@marccie](https://community.homey.app/u/marccie)\
**Post date:** [October 16, 2024, 4:59pm UTC](https://community.homey.app/t/tuya-problem-pir-motion-detector/118279/7 "2024-10-16T16:59:09Z")

</div>

Could you give me information in de **device specification** block?

1. ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/4/844f4ed58cec4284e03179114f892d56fffe4a34.png) go to the devices
2. ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/4/d46d5ea30e43c4ed21b5851b84471f2436ac552d.png) Right click your device tile
3. then select **settings/einstellungen**
4. scroll down and take the data of this block ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/1/314212ebef2ba3b01721b32618818ab92de4599b.png)
5. Analyze the data on [https://jsonlint.com/](https://jsonlint.com/) (beautifies the JSON data) which object value you want to use with your flows.

But what I personally think you should do is the first step, maybe you have to delete the old device you’ve allready made with the Tuya logo  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/1/e13f21b21770e8a7281f81f4194b0c8ac032593c.png)

---

<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, 7:18pm UTC](https://community.homey.app/t/tuya-problem-pir-motion-detector/118279/8 "2024-10-16T19:18:52Z")

</div>

Okay, I did that, now I have listed the data in a more orderly manner. what do I do with it now?

However, I personally think you should take the first step. Maybe you need to delete the old device that you already created with Tuya logo? Delete? then the device is gone from homey! I don’t understand… please explain that to me again. also what do I do with the beautiful data from json? thanks!

---

<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, 7:22pm UTC](https://community.homey.app/t/tuya-problem-pir-motion-detector/118279/9 "2024-10-16T19:22:19Z")

</div>

> [@marccie](#):
>
> it not possible to set the device up as sensor? When adding a new device with Tuya go to Motion Sensor?

now I have it! devices deleted and added as a sensor and there it is! Class! Thanks

now it´s okay 🙂 i ca

---

<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, 7:22pm UTC](https://community.homey.app/t/tuya-problem-pir-motion-detector/118279/10 "2024-10-16T19:22:32Z")

</div>

now I have it! devices deleted and added as a sensor and there it is! Class! Thanks

---

<div class="post-metadata">

**Author:** ![marccie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marccie/32/109765_2.png) [@marccie](https://community.homey.app/u/marccie)\
**Post date:** [October 16, 2024, 8:16pm UTC](https://community.homey.app/t/tuya-problem-pir-motion-detector/118279/11 "2024-10-16T20:16:57Z")

</div>

Perfect Stefan, enjoy. The other way wasnt working either, I’ve tested it later on myself. Perfect!

---

<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 17, 2024, 6:08pm UTC](https://community.homey.app/t/tuya-problem-pir-motion-detector/118279/12 "2024-10-17T18:08:17Z")

</div>

Who can help me here, the device says in the status that the motion detector has been on for 3 hours or has detected a movement. In the history, however, it has been off for a long time. The movement has long since disappeared. How can such an error happen?

 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/d/dd447828536329449c59180f302d63a5a2334da0.jpeg)  
 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/2/e2398df4804dbfee0f1d6529ef481bc3d998d9e9.png)

---

<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 22, 2024, 2:02pm UTC](https://community.homey.app/t/tuya-problem-pir-motion-detector/118279/13 "2024-10-22T14:02:16Z")

</div>

@marccie : I need help again. I added a siren from Tuya / Smartlife. This can also be done directly via the siren selection. However, I want a flow. For example, if a device has tripped, an alarm should go off. that is not available to choose from. what did I do wrong when adding? how can I fix this?

 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/5/551ddc217c7ae6eb34281946840546269d046f14.png)

---

<div class="post-metadata">

**Author:** ![marccie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marccie/32/109765_2.png) [@marccie](https://community.homey.app/u/marccie)\
**Post date:** [October 23, 2024, 8:51am UTC](https://community.homey.app/t/tuya-problem-pir-motion-detector/118279/14 "2024-10-23T08:51:41Z")

</div>

Hi Stefan,

do you have the current version of the Tuya app? You can see the options when you select “Then” here [Tuya App for Homey | Homey](https://homey.app/en-gb/app/com.tuya/Tuya/)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/b/2bb77fac868bbe44180951947e1c93e6b679f889.png)

But what strange is that you don’t see the options

- Turn on
- Turn off
- Toggle on or off

So my question is which version do you have of Tuya? Version v1.4.1?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/e/be4c5920fa1fc20fa0a0b5e9bc5557166ec5f44d.jpeg)

---

<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 23, 2024, 9:33am UTC](https://community.homey.app/t/tuya-problem-pir-motion-detector/118279/15 "2024-10-23T09:33:04Z")

</div>

Yes, here:

 ![IMG_5576](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/d/5d0c4be63c784e1a190dca52c4613e2727a911b5.jpeg)

---

<div class="post-metadata">

**Author:** ![marccie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marccie/32/109765_2.png) [@marccie](https://community.homey.app/u/marccie)\
**Post date:** [October 23, 2024, 11:14am UTC](https://community.homey.app/t/tuya-problem-pir-motion-detector/118279/16 "2024-10-23T11:14:36Z")

</div>

Which siren do you use?

---

<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 23, 2024, 11:50am UTC](https://community.homey.app/t/tuya-problem-pir-motion-detector/118279/17 "2024-10-23T11:50:50Z")

</div>

![IMG_5583](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/4/d4ce940f475b92c9585d7a1eee984be559954f54.jpeg)

---

<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 23, 2024, 6:04pm UTC](https://community.homey.app/t/tuya-problem-pir-motion-detector/118279/18 "2024-10-23T18:04:02Z")

</div>

you have a idea? You have a other one?

---

<div class="post-metadata">

**Author:** ![marccie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marccie/32/109765_2.png) [@marccie](https://community.homey.app/u/marccie)\
**Post date:** [October 24, 2024, 5:11pm UTC](https://community.homey.app/t/tuya-problem-pir-motion-detector/118279/19 "2024-10-24T17:11:56Z")

</div>

No sorry I don’t have that one sorry.
