-
Notifications
You must be signed in to change notification settings - Fork 503
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 TS0202 motion sensor - _TZ3000_mcxw5ehu #6379
Comments
Hello, and if you edit this file https://github.com/dresden-elektronik/deconz-rest-plugin/blob/master/devices/tuya/ts0202_presence_sensor.json
Like you said, it s realy seem a clone. |
Something's not working, with the json edit i can pair the sensor in phoscon app (previously couldn't pair but it would show up in deconz), i can rename the sensor, i can see if motion is detected or not, but phoscon shows this: Also, home assistant pick it up, but it doesn't work. I'll test it with some lights using phoscon sensor control and report back. |
I think you have a problem with config/reachable, you can take a look in phoscon/help/API Information/sensor But this value need to become true after a device report and for 24 h. Perhjpas the device have problem wih enrollement (can be solved with time) |
You have "reachable" = true, so not logic you have as error "not recheable" .... Alamr sensor only trigger when detection, you have a new notification but the state don't change, like for switch. Try to use the legacy code, in the DDF
Only, remove all lines for "state/presence" (and the comma) And why the state is updated but not the "lastupdated" ... |
I'm sorry, i tried to understand what you meant to say but i can't. Where do i check what cluster does the sensor use? How do i change that?
I think i understand, and that behavior would change if the tuya would use "presence" cluster instead of "alarm" cluster, but how do i change that?
Do you mean from this (from the file you told me to edit) :
To this:
What do you mean by that? |
You can't change that ^^, it s the device firmware, it's visible on cluster list, your second capture on the first post, this one have the cluster 0x0500, I think the other have the cluster 0x0406
On your device json you have
and "lastupdated need to be updated in same time than "presence"
Yep exaclty, like that you will use the legacy code insteaof the DDF one, can have a difference. |
After some trying and failing, I'm still not able to use the sensor. Changing the DDF did make it appear on phoscon and home assistant, but due to the use of "alarm" cluster instead of "presence" it seems like this won't work. The question is then, how are the other sensors that have a bit of a different name but still use the alarm cluster work? |
The 2 others are working with the same DDF. |
Wonder if your issues are related to: |
Ha fuck, right, try using this DDF
|
.. and if that works, then #6398 may well fix an events/enrolement problem (after the DDF has been updated to include _TZ3000_mcxw5ehu, which the above does). :-) |
for me its working fine with the above ddf including #6367 |
Ok, soo DDf added here #6244 |
Hello, I have the very same motion sensor and it doesn't work anymore. I have two (maybe noobie) questions, can anyobody elaborate please, and dont mind my asking:
|
Your device don't use DDF, so it's not the same issue. |
How come it doesn't use DDF and where can I change it? |
DDF are something news. Your device is an old one. DDF can overwrite legacy code, so yes if your device is relay broked a DDF can help.
DDF for this device
|
I finally tried the DDF above, i was away for work, sorry. Also, and i confirmed this now because it was a bit weird, the sensor doesn't report the state correctly, it only refreshes on reloading the Deconz integration in Home Assistant: And in Deconz, when viewing the device map, the sensor isn't connected to anywhere (highlighted in blue): Has anyone had this issue with anything, where the sensor "works" but "isn't" connected? I'll try to add sensor control to some lights via Phoscon to see if that part is working, will report back. |
Just had it on sensor control in Phoscon for about 15 minutes, the sensor control doesn't work, maybe it's the same problem as with the no reports on Home Assistant. Somehow Phoscon can see the status changing from Detected to Cleared, but nothing happens after that. |
Hi, a newbie here. To be honest I'm still struggling to understand DDF and Github/branches/pull requests. So I've read this issue completely but still a bit lost what to do. I've bought a similar sensor as in the first post but with a different manufacturer number: Model ID: TS0202 I've tried to pair it via Phoscon webinterface, but no result. Although the sensor indicated that is was connected. And indeed in the deconz-gui it is visible. Same story as above. But the id's and numbers are different. What are my next steps to get it working? Latest stable versions of conbee2 firmware and deconz are installed. |
Hello, but the DDF in the PR you submitted haven't worked ? Just for information if you device is a clone, and 80% of tuya are, you can just add your manufacture name on an existing DDF (the clone), can use this one for exemple There is already 2 manufacture name on it. |
No idea, i moved on, using ZHA now, everything works. |
I wasn't sure if I modified the DDF file properly, so I removed it. I tried it again, but still am a novice at github, pull-requests, etc. I actually don't understand the workflow and how I'm able to get a modified file on my Raspberry Pi. |
Depend of the OS, if you don't have HA.
So you just need to create a text file called what_you_want.json with this contain
Then restart deconz and re-include the device (can too select the node "edit DDF" load the file, save and make a "hot reload" with permit join enabled "add new sensor") |
Thanks, that helped me a step further. In my case (Domoticz - Raspbian - RPi3b+) the location is: /home/pi/.local/share/dresden-elektronik/deCONZ/devices Created a text file there with the script above followed by the procedure "edit DDF", load file and save. Hot reload did not work. But rebooting the pi and then re-pairing the sensor made it visible. Next thing is testing it in Domoticz. Update: test in Domoticz also was successfull, thanks for the help! |
Have added the device here #6244 |
As there has not been any response in 21 days, this issue has been automatically marked as stale. At OP: Please either close this issue or keep it active It will be closed in 7 days if no further activity occurs. |
As there has not been any response in 28 days, this issue will be closed. @ OP: If this issue is solved post what fixed it for you. If it is not solved, request to get this opened again. |
Device
(https://www.aliexpress.com/item/1005003187399208.html)
Screenshots
I believe it's the same sensor as in the issue #5584
That had a pull request #6098
And got released in Yama Yama Yama Yama v2.17.0-beta
It would be great if we can have support for this one, i tried adding it manually but didn't succeed.
The text was updated successfully, but these errors were encountered: