zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

ZY-M100-24G - Unable to change presence sensitivity setting.

Open DuncanRae opened this issue 2 years ago β€’ 20 comments

What happened?

When changing the Presence Sensitivity value for the ZY-M100-24G Presence Sensor from the default 2.5, it changes for a few seconds then goes back to 2.5.

There is no indication as to why in the logs. The value just changes back to 2.5.

The other slider values like Motion Sensitivity and Radar range are exhibiting the same behavior, so it’s not just one setting.

This setting used to work, (in the last two or 2 months) but now doesn't. I don't often change these settings and have done a few Z2M updates so can't be sure which update broke it. It was definitely working in the mid-January time frame though.

What did you expect to happen?

The Presence Sensitivity value would be set to what I tried to set it to.

How to reproduce it (minimal and precise)

Move the Presence Sensitivity value to anything other than 2.5

Zigbee2MQTT version

1.35.3

Adapter firmware version

20230507

Adapter

Sonoff Zigbee 3.0 USB

Setup

Addon to Home Assistant

Debug log

Debug 2024-02-07 13:41:46Received MQTT message on 'zigbee2mqtt/Main Bedroom Presence Sensor/set/presence_sensitivity' with data '4' Debug 2024-02-07 13:41:46Publishing 'set' 'presence_sensitivity' to 'Main Bedroom Presence Sensor'

Debug 2024-02-07 13:41:53Received Zigbee message from 'Main Bedroom Presence Sensor', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0],"type":"Buffer"},"datatype":1,"dp":2}],"seq":62464}' from endpoint 1 with groupID 0 Debug 2024-02-07 13:41:53Received Zigbee message from 'Main Bedroom Presence Sensor', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0],"type":"Buffer"},"datatype":4,"dp":105}],"seq":62720}' from endpoint 1 with groupID 0 Info 2024-02-07 13:41:53MQTT publish: topic 'zigbee2mqtt/Main Bedroom Presence Sensor', payload '{"detection_distance_max":3.5,"distance":0,"fading_time":10,"illuminance_lux":693,"linkquality":47,"motion_sensitivity":2,"move_sensitivity":2,"presence":false,"presence_sensitivity":4,"presence_state":"none","presence_timeout":10,"radar_range":3.5,"state":"none","target_distance":0}' Debug 2024-02-07 13:41:53Received Zigbee message from 'Main Bedroom Presence Sensor', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0],"type":"Buffer"},"datatype":4,"dp":112}],"seq":62976}' from endpoint 1 with groupID 0 Info 2024-02-07 13:41:53MQTT publish: topic 'zigbee2mqtt/Main Bedroom Presence Sensor', payload '{"detection_distance_max":3.5,"distance":0,"fading_time":10,"illuminance_lux":693,"linkquality":43,"motion_sensitivity":2,"move_sensitivity":2,"presence":false,"presence_sensitivity":4,"presence_state":"none","presence_timeout":10,"radar_range":3.5,"state":"none","target_distance":0}' Debug 2024-02-07 13:41:53Received Zigbee message from 'Main Bedroom Presence Sensor', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,0],"type":"Buffer"},"datatype":2,"dp":109}],"seq":63232}' from endpoint 1 with groupID 0 Info 2024-02-07 13:41:53MQTT publish: topic 'zigbee2mqtt/Main Bedroom Presence Sensor', payload '{"detection_distance_max":3.5,"distance":0,"fading_time":10,"illuminance_lux":693,"linkquality":47,"motion_sensitivity":2,"move_sensitivity":2,"presence":false,"presence_sensitivity":4,"presence_state":"none","presence_timeout":10,"radar_range":3.5,"state":"none","target_distance":0}' Debug 2024-02-07 13:41:54Received Zigbee message from 'Main Bedroom Presence Sensor', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,2,178],"type":"Buffer"},"datatype":2,"dp":104}],"seq":63488}' from endpoint 1 with groupID 0 Info 2024-02-07 13:41:54MQTT publish: topic 'zigbee2mqtt/Main Bedroom Presence Sensor', payload '{"detection_distance_max":3.5,"distance":0,"fading_time":10,"illuminance_lux":690,"linkquality":43,"motion_sensitivity":2,"move_sensitivity":2,"presence":false,"presence_sensitivity":4,"presence_state":"none","presence_timeout":10,"radar_range":3.5,"state":"none","target_distance":0}' Debug 2024-02-07 13:41:54Received Zigbee message from 'Main Bedroom Presence Sensor', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,20],"type":"Buffer"},"datatype":2,"dp":106}],"seq":63744}' from endpoint 1 with groupID 0 Info 2024-02-07 13:41:54MQTT publish: topic 'zigbee2mqtt/Main Bedroom Presence Sensor', payload '{"detection_distance_max":3.5,"distance":0,"fading_time":10,"illuminance_lux":690,"linkquality":47,"motion_sensitivity":2,"move_sensitivity":2,"presence":false,"presence_sensitivity":4,"presence_state":"none","presence_timeout":10,"radar_range":3.5,"state":"none","target_distance":0}' Debug 2024-02-07 13:41:54Received Zigbee message from 'Main Bedroom Presence Sensor', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,25],"type":"Buffer"},"datatype":2,"dp":111}],"seq":64000}' from endpoint 1 with groupID 0 Info 2024-02-07 13:41:54MQTT publish: topic 'zigbee2mqtt/Main Bedroom Presence Sensor', payload '{"detection_distance_max":3.5,"distance":0,"fading_time":10,"illuminance_lux":690,"linkquality":43,"motion_sensitivity":2,"move_sensitivity":2,"presence":false,"presence_sensitivity":2.5,"presence_state":"none","presence_timeout":10,"radar_range":3.5,"state":"none","target_distance":0}' Debug 2024-02-07 13:41:54Received Zigbee message from 'Main Bedroom Presence Sensor', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,1,94],"type":"Buffer"},"datatype":2,"dp":107}],"seq":64256}' from endpoint 1 with groupID 0 Info 2024-02-07 13:41:54MQTT publish: topic 'zigbee2mqtt/Main Bedroom Presence Sensor', payload '{"detection_distance_max":3.5,"distance":0,"fading_time":10,"illuminance_lux":690,"linkquality":40,"motion_sensitivity":2,"move_sensitivity":2,"presence":false,"presence_sensitivity":2.5,"presence_state":"none","presence_timeout":10,"radar_range":3.5,"state":"none","target_distance":0}' Debug 2024-02-07 13:41:54Received Zigbee message from 'Main Bedroom Presence Sensor', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,10],"type":"Buffer"},"datatype":2,"dp":110}],"seq":64512}' from endpoint 1 with groupID 0 Info 2024-02-07 13:41:54MQTT publish: topic 'zigbee2mqtt/Main Bedroom Presence Sensor', payload '{"detection_distance_max":3.5,"distance":0,"fading_time":10,"illuminance_lux":690,"linkquality":43,"motion_sensitivity":2,"move_sensitivity":2,"presence":false,"presence_sensitivity":2.5,"presence_state":"none","presence_timeout":10,"radar_range":3.5,"state":"none","target_distance":0}'

DuncanRae avatar Feb 07 '24 12:02 DuncanRae

I have the same problem with device "[ZY-M100-24G]" (I have this device twice, the other one does not have this problem.

AlfAlex avatar Feb 07 '24 16:02 AlfAlex

I also have 2 devices. Both exhibit the same behavior. They sometimes take a few seconds to go back to 2.5, and I had it once on one device seem to stick for a few minutes, but then went back to 2.5 again.

DuncanRae avatar Feb 07 '24 17:02 DuncanRae

I’ve done a bit more testing. All of the sliders are behaving in the same way. Presence Sensitivity, Move Sensitivity and Radar Range. They are all returning to default values a few seconds after changing them.

DuncanRae avatar Feb 08 '24 07:02 DuncanRae

Not sure if I'm barking up the wrong tree here, and would appreciate input from someone more experienced, but when comparing the converter file (tuya.ts) in an older version that worked (pretty sure) to now, I see the following difference:

Worked (from version 18.10.0 of Herdsman) e.numeric('presence_sensitivity', ea.STATE_SET).withValueMin(1).withValueMax(10).withValueStep(1).withDescription('Presence sensitivity'),

Doesn't work (18.28.3 of Herdsman): e.numeric('presence_sensitivity', ea.STATE_SET).withValueMin(1) .withValueMax(10) .withValueStep(1) .withDescription('Presence sensitivity'),

The not working one seems to be missing the withValueMin piece. I don't have a way to make this change and test so if this helps point someone who can in the right direction, that is great.

DuncanRae avatar Feb 08 '24 14:02 DuncanRae

For me these lines do look identical... ;)

I did not recongize any problem with version 1.34.0 besides frequently crashes (the reason why I did the upgrade, also I had some prblems with another sensor). I do have these problems now with version 1.35.2 and also with 1.35.1. I will try 1.35.0 and 1.35.3 now

AlfAlex avatar Feb 08 '24 14:02 AlfAlex

For me these lines do look identical... ;)

I did not recongize any problem with version 1.34.0 besides frequently crashes (the reason why I did the upgrade, also I had some prblems with another sensor). I do have these problems now with version 1.35.2 and also with 1.35.1. I will try 1.35.0 and 1.35.3 now

You're right! Sorry. They were laid out differently, and I missed it. Wrong tree. :(

There is also this line:

multiEndpoint: true,

Seems to be in the one that doesn't work and not in the one that does. Not sure what this does.

Thanks for the help.

DuncanRae avatar Feb 08 '24 15:02 DuncanRae

1.35.3: same bug 1.35.0: same bug 1.34.0: same bug

So it looks like I had this problem before but did not reconize it

AlfAlex avatar Feb 08 '24 15:02 AlfAlex

Same problem for me - values revert to default after a few seconds.

gustjoha avatar Feb 09 '24 08:02 gustjoha

Almost the same problem for me. I also mentioned it here: https://github.com/Koenkk/zigbee2mqtt/discussions/21180

For me, the Presence sensitivity value always jumps back to the highest level (10)

As a result, my network is completely spammed because someone in the room is constantly and erroneously detected at this sensitivity level

SonTypda avatar Feb 09 '24 10:02 SonTypda

See #19448 Once I switched to the external converter in Fehuz's comment all my issues were resolved regarding not being able to change any settings as well as the many issues running multiple presence sensors at the same time. Would definitely recommend giving it a try and hope that it can be added natively within Z2M

Thanks. I have done this and is seems to be all good now. I change presence sensitivity from 2.5 to 4, and it went to 0.4, but then changed to 4 a few seconds later and it seems to have stuck!

DuncanRae avatar Feb 09 '24 13:02 DuncanRae

Working for me too. For me it looks like a serious bug in this deviiveBy10 converter stuff.

AlfAlex avatar Feb 09 '24 14:02 AlfAlex

Integrated the fix!

Changes will be available in the dev branch in a few hours from now.

Koenkk avatar Feb 10 '24 15:02 Koenkk

It seems that in version z2m 1.39.1 (zigbee-herdsman-converters version 19.72.0) the error persists. If you set the presence sensitivity parameter to 8 it changes to 0.8. Same behavior with move sensitivity.

monqui-ulia avatar Aug 08 '24 10:08 monqui-ulia

Move and presence sensitivity reset to 0 on the Tuya ZY-M100-24GV2 using z2m 1.40.1-dev

inertia666 avatar Sep 10 '24 08:09 inertia666

I am having the same issues on my ZY-M100-L

201505409 avatar Sep 20 '24 11:09 201505409

Same issue here, I have 6 ZY-M100-24GV3 and randomly reset their values and every time there is a power lost.

zimgui avatar Oct 22 '24 05:10 zimgui

@Koenkk I recognized the same behavior with my ZY-M100-24G. The sensitivity values are set to 20 and 40 (out of range) instead of 2 and 4 and I am unable to change it. Is it possible to check this issue again?

dasEtwasmitPunkten avatar Nov 06 '24 21:11 dasEtwasmitPunkten

ZY-M100-24G, same behaviour, set sensitivity to X and few seconds later it jumps to 10 times X (2->20, 8->80 etc) please check, tx

Servizio-R avatar Nov 24 '24 10:11 Servizio-R

few seconds later it jumps to 10 times X Same here

Machaeon avatar Nov 28 '24 09:11 Machaeon

i have the same problem and own 2 devices. I found out, that if the "linkquality" variable reported from ZY-M100-24GV3 jumps very often, so much "traffic" is on the MQTT link also the ZY-M100-24G hangs after a while and stay on "presence": true,. Is there any way to reduce the amount of reporting, esp. "linkquality": 132, to 1 -3 seconds .. this will reduce the reporting .. and the device get more stable. from 1 sec. log:

info 2024-11-30 11:56:18z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/response/options', payload '{"data":{"restart_required":false},"status":"ok","transaction":"yok70-2"}'
info 2024-11-30 11:56:18z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Praesenzmelder -2-', payload '{"detection_distance_max":4.5,"detection_distance_min":1.5,"distance":0,"find_switch":"ON","illuminance_lux":1239,"linkquality":136,"move_sensitivity":2,"presence":false,"presence_sensitivity":2,"presence_timeout":300,"state":"none"}'
info 2024-11-30 11:56:18z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Praesenzmelder -2-', payload '{"detection_distance_max":4.5,"detection_distance_min":1.5,"distance":0,"find_switch":"ON","illuminance_lux":1245,"linkquality":136,"move_sensitivity":2,"presence":false,"presence_sensitivity":2,"presence_timeout":300,"state":"none"}'
info 2024-11-30 11:56:18z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Praesenzmelder -1-', payload '{"detection_distance_max":3,"detection_distance_min":0.75,"distance":1.4,"find_switch":"ON","illuminance_lux":303,"last_seen":"2024-11-28T12:48:09+01:00","linkquality":255,"move_sensitivity":4,"presence":true,"presence_sensitivity":4,"presence_timeout":120,"state":"presence"}'
info 2024-11-30 11:56:19z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Praesenzmelder -2-', payload '{"detection_distance_max":4.5,"detection_distance_min":1.5,"distance":0,"find_switch":"ON","illuminance_lux":1245,"linkquality":136,"move_sensitivity":2,"presence":false,"presence_sensitivity":2,"presence_timeout":300,"state":"none"}'
info 2024-11-30 11:56:19z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Praesenzmelder -1-', payload '{"detection_distance_max":3,"detection_distance_min":0.75,"distance":1.4,"find_switch":"ON","illuminance_lux":303,"last_seen":"2024-11-28T12:48:09+01:00","linkquality":255,"move_sensitivity":4,"presence":true,"presence_sensitivity":4,"presence_timeout":120,"state":"presence"}'
info 2024-11-30 11:56:20z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Praesenzmelder -2-', payload '{"detection_distance_max":4.5,"detection_distance_min":1.5,"distance":0,"find_switch":"ON","illuminance_lux":1245,"linkquality":132,"move_sensitivity":2,"presence":false,"presence_sensitivity":2,"presence_timeout":300,"state":"none"}'
info 2024-11-30 11:56:22z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Praesenzmelder -1-', payload '{"detection_distance_max":3,"detection_distance_min":0.75,"distance":1.2,"find_switch":"ON","illuminance_lux":303,"last_seen":"2024-11-28T12:48:09+01:00","linkquality":255,"move_sensitivity":4,"presence":true,"presence_sensitivity":4,"presence_timeout":120,"state":"presence"}'
info 2024-11-30 11:56:22z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Praesenzmelder -2-', payload '{"detection_distance_max":4.5,"detection_distance_min":1.5,"distance":0,"find_switch":"ON","illuminance_lux":1245,"linkquality":132,"move_sensitivity":2,"presence":false,"presence_sensitivity":2,"presence_timeout":300,"state":"none"}'
info 2024-11-30 11:56:22z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Praesenzmelder -1-', payload '{"detection_distance_max":3,"detection_distance_min":0.75,"distance":1.2,"find_switch":"ON","illuminance_lux":303,"last_seen":"2024-11-28T12:48:09+01:00","linkquality":255,"move_sensitivity":4,"presence":true,"presence_sensitivity":4,"presence_timeout":120,"state":"presence"}'
info 2024-11-30 11:56:23z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Praesenzmelder -2-', payload '{"detection_distance_max":4.5,"detection_distance_min":1.5,"distance":0,"find_switch":"ON","illuminance_lux":1245,"linkquality":132,"move_sensitivity":2,"presence":false,"presence_sensitivity":2,"presence_timeout":300,"state":"none"}'
info 2024-11-30 11:56:23z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Praesenzmelder -1-', payload '{"detection_distance_max":3,"detection_distance_min":0.75,"distance":1.2,"find_switch":"ON","illuminance_lux":303,"last_seen":"2024-11-28T12:48:09+01:00","linkquality":255,"move_sensitivity":4,"presence":true,"presence_sensitivity":4,"presence_timeout":120,"state":"presence"}'
info 2024-11-30 11:56:24z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Praesenzmelder -2-', payload '{"detection_distance_max":4.5,"detection_distance_min":1.5,"distance":0,"find_switch":"ON","illuminance_lux":1245,"linkquality":132,"move_sensitivity":2,"presence":false,"presence_sensitivity":2,"presence_timeout":300,"state":"none"}'
info 2024-11-30 11:56:24z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Praesenzmelder -1-', payload '{"detection_distance_max":3,"detection_distance_min":0.75,"distance":1.2,"find_switch":"ON","illuminance_lux":303,"last_seen":"2024-11-28T12:48:09+01:00","linkquality":255,"move_sensitivity":4,"presence":true,"presence_sensitivity":4,"presence_timeout":120,"state":"presence"}'
info 2024-11-30 11:56:24z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Praesenzmelder -2-', payload '{"detection_distance_max":4.5,"detection_distance_min":1.5,"distance":0,"find_switch":"ON","illuminance_lux":1245,"linkquality":132,"move_sensitivity":2,"presence":false,"presence_sensitivity":2,"presence_timeout":300,"state":"none"}'
info 2024-11-30 11:56:25z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Praesenzmelder -1-', payload '{"detection_distance_max":3,"detection_distance_min":0.75,"distance":1.2,"find_switch":"ON","illuminance_lux":303,"last_seen":"2024-11-28T12:48:09+01:00","linkquality":255,"move_sensitivity":4,"presence":true,"presence_sensitivity":4,"presence_timeout":120,"state":"presence"}'
info 2024-11-30 11:56:26z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Praesenzmelder -2-', payload '{"detection_distance_max":4.5,"detection_distance_min":1.5,"distance":0,"find_switch":"ON","illuminance_lux":1245,"linkquality":132,"move_sensitivity":2,"presence":false,"presence_sensitivity":2,"presence_timeout":300,"state":"none"}'
info 2024-11-30 11:56:26z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Praesenzmelder -1-', payload '{"detection_distance_max":3,"detection_distance_min":0.75,"distance":1.2,"find_switch":"ON","illuminance_lux":303,"last_seen":"2024-11-28T12:48:09+01:00","linkquality":255,"move_sensitivity":4,"presence":true,"presence_sensitivity":4,"presence_timeout":120,"state":"presence"}'
info 2024-11-30 11:56:27z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Praesenzmelder -2-', payload

Mark-Muc avatar Nov 30 '24 10:11 Mark-Muc