Skip to content

Commit

Permalink
Merge pull request #1186 from al-one/patch-2
Browse files Browse the repository at this point in the history
Add support for bean.switch.bln04
  • Loading branch information
AlexxIT authored Oct 26, 2023
2 parents 74a79c3 + d5b6e00 commit 7ed3be8
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion custom_components/xiaomi_gateway3/core/converters/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -3012,8 +3012,25 @@
Action,
ButtonMIConv("button_1", mi="5.e.1", value=1),
ButtonMIConv("button_2", mi="6.e.1", value=1),
ButtonMIConv("button_2", mi="7.e.1", value=1),
ButtonMIConv("button_3", mi="7.e.1", value=1),
]
}, {
10147: ["Unkown", "Mesh Four-Key Wall Switch", "bean.switch.bln04"],
"spec": [
Converter("switch_1", "switch", mi="2.p.1"),
Converter("switch_2", "switch", mi="3.p.1"),
Converter("switch_3", "switch", mi="4.p.1"),
Converter("switch_4", "switch", mi="5.p.1"),
MapConv("mode_1", "select", mi="2.p.2", map={0: "off", 1: "wireless", 2: "flex", 3: "scene"}),
MapConv("mode_2", "select", mi="3.p.2", map={0: "off", 1: "wireless", 2: "flex", 3: "scene"}),
MapConv("mode_3", "select", mi="4.p.2", map={0: "off", 1: "wireless", 2: "flex", 3: "scene"}),
MapConv("mode_4", "select", mi="5.p.2", map={0: "off", 1: "wireless", 2: "flex", 3: "scene"}),
Action,
ButtonMIConv("button_1", mi="6.e.1", value=1),
ButtonMIConv("button_2", mi="7.e.1", value=1),
ButtonMIConv("button_3", mi="8.e.1", value=1),
ButtonMIConv("button_4", mi="9.e.1", value=1),
],
}, {
14431: ["Xiaomi", "Xiaomi Smart Wall Switch Pro (1 Gang)", "XMQBKG04LM"],
"spec": [
Expand Down

0 comments on commit 7ed3be8

Please sign in to comment.