Skip to content

Commit 38d5a49

Browse files
authored
fix: Tuya TS0726_4_gang_switch_and_2_scene: support backlight (#9013)
1 parent 66072f4 commit 38d5a49

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/devices/tuya.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -7524,13 +7524,14 @@ export const definitions: DefinitionWithExtend[] = [
75247524
fingerprint: tuya.fingerprint("TS0726", ["_TZ3000_qhyadm57"]),
75257525
model: "TS0726_4_gang_switch_and_2_scene",
75267526
vendor: "Tuya",
7527-
description: "4 gang switch and 2 scene",
7527+
description: "4 gang switch and 2 scene with backlight",
75287528
fromZigbee: [fz.on_off, tuya.fz.power_on_behavior_2, fz.ignore_basic_report, fzLocal.TS0726_action],
7529-
toZigbee: [tz.on_off, tuya.tz.power_on_behavior_2, tzLocal.TS0726_switch_mode],
7529+
toZigbee: [tz.on_off, tuya.tz.power_on_behavior_2, tzLocal.TS0726_switch_mode, tuya.tz.backlight_indicator_mode_2],
75307530
exposes: [
75317531
...[1, 2, 3, 4].map((ep) => e.switch().withEndpoint(`l${ep}`)),
75327532
...[1, 2, 3, 4].map((ep) => e.power_on_behavior().withEndpoint(`l${ep}`)),
75337533
...[1, 2, 3, 4].map((ep) => e.enum("switch_mode", ea.STATE_SET, ["switch", "scene"]).withEndpoint(`l${ep}`)),
7534+
tuya.exposes.backlightModeOffOn().withAccess(ea.STATE_SET),
75347535
e.action(["scene_1", "scene_2", "scene_3", "scene_4", "scene_5", "scene_6"]),
75357536
],
75367537
endpoint: (device) => {

0 commit comments

Comments
 (0)