Skip to content

Commit

Permalink
Add support PTX Smart Single Wall Switch(090615.switch.x6kw1) #1513
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Dec 25, 2024
1 parent 95cf888 commit fa7d118
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions custom_components/xiaomi_gateway3/core/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -4055,6 +4055,17 @@
ConstConv("action", mi="3.e.2", value=BUTTON_DOUBLE),
ConstConv("action", mi="3.e.3", value=BUTTON_HOLD),
],
}, {
# https://home.miot-spec.com/spec?type=urn:miot-spec-v2:device:switch:0000A003:090615-x6kw1:1:0000C808
11652: ["PTX", "Smart Single Wall Switch", "PTX-X61-NMIMC1", "090615.switch.x6kw1"],
"spec": [
BaseConv("action", "sensor"),
ConstConv("action", mi="8.e.1", value=BUTTON_SINGLE),
ConstConv("action", mi="8.e.2", value=BUTTON_HOLD),
BaseConv("switch", "switch", mi="2.p.1"),
BaseConv("backlight", "switch", mi="9.p.1"), # config
BoolConv("wireless", "switch", mi="2.p.2"),
]
}, {
# https://home.miot-spec.com/spec?type=urn:miot-spec-v2:device:switch:0000A003:090615-x6kw2:1:0000C809
11653: ["PTX", "Smart Double Wall Switch", "PTX-X62-NMIMC1", "090615.switch.x6kw2"],
Expand Down

0 comments on commit fa7d118

Please sign in to comment.