home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.75k stars 28.91k forks source link

Motion sensors don't work after 2024.02 update #110996

Open MrZaibot opened 4 months ago

MrZaibot commented 4 months ago

The problem

Motion sensors don't work after 2024.02 update. Newer gets any status change, always detect motion. Skärmklipp

What version of Home Assistant Core has the issue?

core-2024.2.2

What was the last working version of Home Assistant Core?

core-2024.1.6

What type of installation are you running?

Home Assistant OS

Integration causing the issue

tuya

Link to integration documentation on our website

https://www.home-assistant.io/integrations/tuya

Diagnostics information

tuya-7b4422a6dbfc734e96de7ec1b76b31ec-Rörelsesensor badrum-a650da1456072ede1bafc2e3c7e7c23f.json

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 4 months ago

Hey there @tuya, @zlinoliver, @frenck, mind taking a look at this issue as it has been labeled with an integration (tuya) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `tuya` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign tuya` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


tuya documentation tuya source (message by IssueLinks)

esotere commented 4 months ago

Any updates on this issue? Been having the same problem since the 2024.2 update, So far the only lasting solution is downgrading the update to 2024.1.~ otherwise one would have to keep reloading the integration or restart HA continuously.

sereda-oleg commented 4 months ago

Having the same problem since the 2024.2 update

andylitt commented 4 months ago

109972 opened 3 weeks ago is same issue.

Bad2dabone commented 4 months ago

Same issue since 2024.2 update Sensor is working fine in smartlife app Seems an issue since app integration instead of iot.tuya.com

MrZaibot commented 4 months ago

My motion sensors is WiFi

MrZaibot commented 4 months ago

Still don't work in 2024.2.5

esotere commented 4 months ago

My motion sensors is WiFi

Mine are Zigbee. They work fine with the tuya app, however on HA it just refuses to work how it use to. So my guess is the issue lies with HA and the upgrade as it relates to tuya integration.

Also forgot to add: my workaround was to create an automation to reload integrations when the sensors are stuck in a particular state for a period of time. So far so good, still monitoring the situation.

MrZaibot commented 3 months ago

Still don't work in 2024.3.0

tjwilliams29 commented 3 months ago

My sensors and switches seem to be working again 2024.3.1

andylitt commented 3 months ago

Upgraded to 2024.3.1 Tuya motion detector state now changed from "Detected" to "Clear", probably because of HA restart after upgrade, however they now do not register detections. Constantly show "clear". Detections are registering in Tuya but not HA. Have reloaded Tuya integration. No difference. Anything else I can try? EDIT: Nope I stand corrected. One of my detectors just registered a detection, but is now stuck on "detected" again. So no change to original issue, except that exchange of info between Tuya and HA seems to be patchy? EDIT AGAIN: Both PIRs now stuck on "Detected" again. Issue remains.

CL0SeY commented 3 months ago

Maybe related? https://github.com/home-assistant/core/issues/113955

MacJoSch commented 3 months ago

I can confirm that. I still have my TUYA Developer account and I can see that it reports the correct state. I changed the integration to the SmartLife API (QR-Code method). Within HA, the "motion detected" state has been remaining for the last 22 hours now.

My solution: kick out the TUYA PIRs and install the new Aqara. Dwell time can be set as short as 10s.

Core 2024.3.1 Frontend 20240307.0 Docker on Synology NAS

Bildschirmfoto 2024-03-22 um 13 03 26

bilalhp commented 1 month ago

Problem still not fixed. Is there a plan to fix it?

steverumsby commented 4 weeks ago

I have this problem to - TUYA PIR sensors getting stuck in the "motion detected" state and never clearing. And it still exists in 2024.6.0. I have a pyscript-based workaround that clears the state after a while, but this isn't perfect and doesn't really allow me to use the PIR sensors to control lighting. I've had to move those automations back over to Alexa, where everything works properly.

If there's anything I can do to help figure out the problem and ideally to fix it, I'm happy to help...

MrZaibot commented 2 weeks ago

Motion sensors still don't work in 2024.6.3