Skip to content

Commit 7762b00

Browse files
authored
Add Linptech Wall Switch E3S 2 Key support
1 parent 8804a0d commit 7762b00

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

custom_components/xiaomi_gateway3/core/devices.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4435,6 +4435,27 @@
44354435
ConstConv("action", mi="7.e.3", value=BUTTON_3_HOLD),
44364436
BaseConv("occupy", "binary_sensor", mi="10.p.13"),
44374437
],
4438+
}, {
4439+
29442: ["Linptech", "Linptech Wall Switch E3S 2 Key", "linp.switch.e3sbw2"],
4440+
"spec": [
4441+
BaseConv("channel_1", "switch", mi="2.p.1"),
4442+
BaseConv("channel_2", "switch", mi="3.p.1"),
4443+
MapConv("working_mode_1", "select", mi="2.p.2", map={0: "Wired And Wireless", 1: "Wireless"}),
4444+
MapConv("working_mode_2", "select", mi="3.p.2", map={0: "Wired And Wireless", 1: "Wireless"}),
4445+
MapConv("fast_mode_1", "select", mi="5.p.1", map={0: "Multiple Click", 1: "Quick Single Click"}),
4446+
MapConv("fast_mode_2", "select", mi="6.p.1", map={0: "Multiple Click", 1: "Quick Single Click"}),
4447+
BaseConv("action", "sensor"),
4448+
ConstConv("action", mi="5.e.1", value=BUTTON_1_SINGLE),
4449+
ConstConv("action", mi="5.e.2", value=BUTTON_1_DOUBLE),
4450+
ConstConv("action", mi="5.e.3", value=BUTTON_1_HOLD),
4451+
ConstConv("action", mi="6.e.1", value=BUTTON_2_SINGLE),
4452+
ConstConv("action", mi="6.e.2", value=BUTTON_2_DOUBLE),
4453+
ConstConv("action", mi="6.e.3", value=BUTTON_2_HOLD),
4454+
MapConv("white_indicator", "select", mi="10.p.3", map={0: "Off", 100: "On"}),
4455+
MapConv("orange_indicator", "select", mi="10.p.4", map={0: "Off", 100: "On"}),
4456+
MapConv("anti_flicker", "select", mi="10.p.11", map={0: "Middle", 1: "High", 2: "Low"}),
4457+
4458+
],
44384459
}, {
44394460
16854: ["ZNSN", "Mesh Six-Key Oled Wall Switch", "znsn.switch.oled6"],
44404461
"spec": [

0 commit comments

Comments
 (0)