dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.89k stars 496 forks source link

Human Presence Detector - ZY-M100-S - not working properly #7566

Closed DIYtechie closed 6 months ago

DIYtechie commented 7 months ago

Does the issue really belong here?

Is there already an existing issue for this?

Describe the bug

Product name: Human Presence Detector - ZY-M100-S
Manufacturer: _TZE200_ztc6ggyl
Model identifier: TS0601
Device type : Sensor

Just installed the deCONZ add-on in Home Assistant version 6.22 (2.22.02). As I read the release notes, manually adding a DDF should no longer be necessary for this device, correct? I see no DFFs in the folder: /data/core_deconz/.local/share/dresden-elektronik/deCONZ/devices

Skærmbillede 2024-01-25 kl  21 34 58

And when I add the sensor, it now (mis)behaves as it did before I added the DFF in my old setup (separate docker container - not running as add-on) (cf. my old comment in this thread: https://github.com/dresden-elektronik/deconz-rest-plugin/issues/6517#issuecomment-1554318835).

In other words, the current behaivior is that it is spamming my zigbee network with updates every second and sends false negative shortly after detecting motion. What to do? The default DFF appears to be set to gold:

Skærmbillede 2024-01-25 kl  21 33 40

I tried deleting and re-pairing without it solving the issue.

Steps to reproduce the behavior

Add the sensor via the deCONZ add-on in Home Assistant.

Expected behavior

Keep detecting presence as long as someone is in the room. Not spamming the zigbee network constantly. On the non-add-on version of deCONZ the sensor was working properly after adding the DDF.

Screenshots

No response

Environment

deCONZ Logs

No response

Additional context

No response

BabaIsYou commented 7 months ago

It seems that you're not using the latest DDF because item "config/duration" has been replaced by "config/fadingtime" to avoid this kind of behavior (https://github.com/dresden-elektronik/deconz-rest-plugin/blob/master/devices/tuya/ZY-M100_human_breathing_presence.json)

DIYtechie commented 7 months ago

But do I need to manually edit the DDF, when I’m running the latest version of deconz? Isn’t it part of the package?

(Changing/adding DDF via the add-on seems complicated and risky)

BabaIsYou commented 7 months ago

But do I need to manually edit the DDF, when I’m running the latest version of deconz? Isn’t it part of the package?

You don't if you have the version containing the fix (2.24 and above). But you have version 2.22 installed.

DIYtechie commented 7 months ago

But do I need to manually edit the DDF, when I’m running the latest version of deconz? Isn’t it part of the package?

You don't if you have the version containing the fix (2.24 and above). But you have version 2.22 installed.

Any idea when that version will be available to deCONZ add-on users?

DIYtechie commented 6 months ago

New version 6.23.0 (add-on) solved this issue. Thanks!