From 256e2e9c17682aefa7ec5ac19e07c8c494331085 Mon Sep 17 00:00:00 2001 From: Rising-Sun Date: Sat, 25 Jan 2025 21:43:53 +0100 Subject: [PATCH] fix TZE200/TZE204_ya4ft0w4 forgetting settings Should fix that the device loses settings: https://github.com/Koenkk/zigbee2mqtt/issues/24049 minimum presence and detection sensivity must be at least 1 see values from: https://github.com/wzwenzhi/Wenzhi-ZigBee2mqtt/blob/main/M100-ya4ft0-V3-20240907.js --- src/devices/tuya.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devices/tuya.ts b/src/devices/tuya.ts index 7ec7459822170..c849a9fbf6974 100644 --- a/src/devices/tuya.ts +++ b/src/devices/tuya.ts @@ -10905,8 +10905,8 @@ const definitions: DefinitionWithExtend[] = [ e.numeric('distance', ea.STATE).withDescription('Target distance'), e.binary('find_switch', ea.STATE_SET, 'ON', 'OFF').withDescription('distance switch'), e.illuminance().withDescription('Illuminance sensor'), - e.numeric('move_sensitivity', ea.STATE_SET).withValueMin(0).withValueMax(10).withValueStep(1).withDescription('Motion Sensitivity'), - e.numeric('presence_sensitivity', ea.STATE_SET).withValueMin(0).withValueMax(10).withValueStep(1).withDescription('Presence Sensitivity'), + e.numeric('move_sensitivity', ea.STATE_SET).withValueMin(1).withValueMax(10).withValueStep(1).withDescription('Motion Sensitivity'), + e.numeric('presence_sensitivity', ea.STATE_SET).withValueMin(1).withValueMax(10).withValueStep(1).withDescription('Presence Sensitivity'), e .numeric('detection_distance_min', ea.STATE_SET) .withValueMin(0)