Skip to content

Commit 256e2e9

Browse files
authored
fix TZE200/TZE204_ya4ft0w4 forgetting settings
Should fix that the device loses settings: Koenkk/zigbee2mqtt#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
1 parent 46d86e8 commit 256e2e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/devices/tuya.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10905,8 +10905,8 @@ const definitions: DefinitionWithExtend[] = [
1090510905
e.numeric('distance', ea.STATE).withDescription('Target distance'),
1090610906
e.binary('find_switch', ea.STATE_SET, 'ON', 'OFF').withDescription('distance switch'),
1090710907
e.illuminance().withDescription('Illuminance sensor'),
10908-
e.numeric('move_sensitivity', ea.STATE_SET).withValueMin(0).withValueMax(10).withValueStep(1).withDescription('Motion Sensitivity'),
10909-
e.numeric('presence_sensitivity', ea.STATE_SET).withValueMin(0).withValueMax(10).withValueStep(1).withDescription('Presence Sensitivity'),
10908+
e.numeric('move_sensitivity', ea.STATE_SET).withValueMin(1).withValueMax(10).withValueStep(1).withDescription('Motion Sensitivity'),
10909+
e.numeric('presence_sensitivity', ea.STATE_SET).withValueMin(1).withValueMax(10).withValueStep(1).withDescription('Presence Sensitivity'),
1091010910
e
1091110911
.numeric('detection_distance_min', ea.STATE_SET)
1091210912
.withValueMin(0)

0 commit comments

Comments
 (0)