Add support for Xiaomi Smart Wall Switch (2 Gang)#1614
Merged
AlexxIT merged 2 commits intoAlexxIT:masterfrom Aug 14, 2025
Merged
Add support for Xiaomi Smart Wall Switch (2 Gang)#1614AlexxIT merged 2 commits intoAlexxIT:masterfrom
AlexxIT merged 2 commits intoAlexxIT:masterfrom
Conversation
{
# https://home.miot-spec.com/spec/xiaomi.switch.w2
21607: ["Xiaomi", "Xiaomi Smart Wall Switch (2 Gang)", "XMS01BXS", "xiaomi.switch.w2"],
"spec": [
BaseConv("action", "sensor"),
ConstConv("action", mi="4.e.1", value=BUTTON_1_SINGLE),
ConstConv("action", mi="4.e.2", value=BUTTON_1_DOUBLE),
ConstConv("action", mi="4.e.3", value=BUTTON_1_HOLD),
ConstConv("action", mi="5.e.1", value=BUTTON_2_SINGLE),
ConstConv("action", mi="5.e.2", value=BUTTON_2_DOUBLE),
ConstConv("action", mi="5.e.3", value=BUTTON_2_HOLD),
BaseConv("switch_1", "switch", mi="2.p.1"),
BaseConv("switch_2", "switch", mi="3.p.1"),
BaseConv("indicator_light", "switch", mi="7.p.1"),
MapConv("switch_mode_1", "select", mi="2.p.2", map={0: "Wired And Wireless", 1: "Wireless"}),
MapConv("switch_mode_2", "select", mi="3.p.2", map={0: "Wired And Wireless", 1: "Wireless"}),
MapConv("sensor_mode_1", "select", mi="4.p.1", map={0: "Quick Singel Click", 1: "Multiple Click"}),
MapConv("sensor_mode_2", "select", mi="5.p.1", map={0: "Quick Singel Click", 1: "Multiple Click"}),
],
},
AlexxIT
approved these changes
Jul 7, 2025
007adde to
a1ab25b
Compare
Owner
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://home.miot-spec.com/spec/xiaomi.switch.w2

小米智能开关(双开)