Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small Fix on Linptech Wall Switch Name and Entity Category #1143

Merged
merged 2 commits into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion custom_components/xiaomi_gateway3/core/converters/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -2198,7 +2198,7 @@
]
}, {
# https://home.miot-spec.com/s/5045
5045: ["Linptech", "Mesh Triple Wall Switch (no L)", "QE1SB-W3(MI)"],
5045: ["Linptech", "Mesh Triple Wall Switch (no N)", "QE1SB-W3(MI)"],
"spec": [
Converter("channel_1", "switch", mi="2.p.1"),
Converter("channel_2", "switch", mi="3.p.1"),
Expand All @@ -2211,6 +2211,11 @@
Converter("led", "switch", mi="5.p.1"),

Converter("compatible_mode", "switch", mi="7.p.4"),

Action,
ButtonMIConv("button_1", mi="7.e.1", value=1), # button_1_single
ButtonMIConv("button_2", mi="7.e.2", value=1), # button_2_single
ButtonMIConv("button_3", mi="7.e.3", value=1), # button_3_single
],
}, {
# https://home.miot-spec.com/s/5045
Expand Down
2 changes: 2 additions & 0 deletions custom_components/xiaomi_gateway3/core/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@
"turn_off_transit_sec": EntityCategory.CONFIG,
"change_transit_sec": EntityCategory.CONFIG,
"min_brightness": EntityCategory.CONFIG,
# Linptech Mesh Triple Wall Switch (no N)
"compatible_mode": EntityCategory.CONFIG,
}

STATE_TIMEOUT = timedelta(minutes=10)
Expand Down
Loading