-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tuya PIR sensor does not report motion state #58634
Comments
tuya documentation |
Hey there @tuya, @zlinoliver, @METISU, @frenck, mind taking a look at this issue as it has been labeled with an integration ( |
You can help us with this issue by providing some information about your device. To do that, please follow the next steps:
From this debugger, we can get some information that can be useful. From the "Basic Information" tab, please provide:
Next, click on the "Device Debugging" tag. Once on that tab, you will find a small link called "JSON Editing", click on that link. It will now show a text field called Copy and share that code from that text field into this issue. Additional, the model of the device as shown in Home Assistant might be helpful too! That will help a lot! Thanks already! ../Frenck |
Meh ok, that is odd, the debugger not debugging is not going to help us I guess... Could you enable debug logging for the Tuya integration? https://www.home-assistant.io/integrations/logger logger:
homeassistant.components.tuya: debug And see if you get any debug logs when the device triggers motion. |
Only i can see in the log is that the battery is sending data: noting about the movement status. or should i look elsewhere? |
There is no state indeed, so it cannot reflect the state in Home Assistant either. I'll try the Action tomorrow, see if I can get my hand on one / if they are in stock again. |
Action doesn;t sell them anymore, On Bol.com you can find the same sensors with a diffrent name: Calex. OK. i'll unpair and pair again a pir sensor in tuya app, see if that is a solution. |
That is interesting! |
Aah I see, the implemented a "fake" PIR. if self._code == DPCODE_PIR:
pir_range = json.loads(
self.tuya_device.status_range.get(DPCODE_PIR, {}).values
).get("range")
if len(pir_range) == 1 and self.tuya_device.status[DPCODE_PIR] == "pir":
timer = Timer(10, lambda: self.reset_pir())
timer.start() Hmmm not sure yet how to handle that, ideally this becomes an event Do you also get a debug log when there isn't movement anymore? |
Got a PR opened for a suggested fix in #58673 |
Hey Frenck, |
Let's see if it gets approved, if so, it will probably be in one of the next beta's for you to test out. |
The solution isn't accepted by the reviewers, therefore it won't be fixed. |
I saw it. too bad. |
Same problem here, following device info requested Device 1 Device 2 |
@antoweb As you can read above, the reason why was already clear. No additional logs or debugs are needed. |
This comment has been minimized.
This comment has been minimized.
I have the same issue but not constant. The motion sensor works fine right after I reload the Tuya integration. At some point in time it seems to stop reporting motion to home assistant (or home assistant stops receiving), not clear yet what breaks the communication. I don't tamper a lot but when I do I immediately get an home assistant notification (because of an automation i made) so it seems to be limited to reporting motion. So I reload the Tuya integration from time to time. In the mean time I use a trick to get motion reported (in my case only if the sun is down); in the Smartlife app I have a simple automation that turns on a light if motion is detected. In home assistant I have an automation that detects this light being on and then turns on a boolean that stands for 'motion detected'. Another automation checks for a difference in time between motion sensor last_updated en boolean_motion last_updated and lets me know I have to reload. I don't do this automatically (yet) because it triggers an tampering critical notification which could get me worried without reason. |
@JeeWee65 Same issue here. I notice it since version 2021.12.2. It was working well before. The status is always reported in SmartLife App. If I restart HA (or the integration) it will work correctly for approx. an hour or two. Then the PIR sensor statis is no longer received by Home Assistant. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
I have updated HA to the newest version and verified issue with LSC PIR Sensors. Nothing changed. Issue is still not fixed. Showing "Detected" status all the time after first detection. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Updated to the newest version, but issue is not fixed. |
stale-proof comment for abandoned Tuya issues |
stale-proof comment |
1 similar comment
stale-proof comment |
I just installed the Tuya PIR sensors and have the same problem! Are there any known working Zigbee PIR sensors? The one on the bottom of my stairs works, but not the top. |
@DaleJP have you checked the Black Adder Zigbee database? |
stale-proof comment |
Hello, having the same problem with the infamous PIR from SLC ( ACTION). |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Updated to the newest version, but issue is not fixed. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Not fixed yet. |
I've recently upgraded from Hass core 2024.1.6 to 2024.6.3 and this Tuya Zigbee PIR sensor is working fine: Also this Smart Led Night Light PIR is working fine: However this Zigbee PIR sensors works only with "set_state.py" workaround: This WIFi PIR and Light sensor also working only with "set_state.py" workaround: |
As mentioned several times. his is a bug of the WiFi PIR device itself and won't fix. The manufacturer has to fix it but doesn't react for years because it is working in the Tuya apps. But just write an automation wich resets the state to 'undetected' with a few seconds delay on HA Startup and when triggered (sunset for paranoja) and the WiFi PIR will work fine. 'set_state' is a python script. May be there is a more elegant way nowdays. `alias: PIR Carport set state normal
|
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
The problem
Hello hard working devs and testers,
I installed Home Assistant 2021.11.0b0 today, and specially for the Tuya integration.
I deleted V2 and started over with the build in integration. And i must say, AWESOME.
But, there is always a but :-) the PIR sensors doesn’t update. It doesn’t release detected status. The door sensors works as it should.



Next test: Tuya Water Cooker 😀
What version of Home Assistant Core has the issue?
Home Assistant 2021.11.0b0
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Tuya
Link to integration documentation on our website
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: