Skip to content

Commit

Permalink
Fix PTX Smart Quadruple Switch (090615.switch.sk4k) #1512
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Dec 25, 2024
1 parent fa7d118 commit d3517d7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions custom_components/xiaomi_gateway3/core/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -3601,8 +3601,14 @@
MapConv("effect", mi="2.p.4", map={0: "Default", 1: "Daily", 2: "Leisure", 3: "Comfortable", 4: "Night", 5: "SY"})
]
}, {
# https://home.miot-spec.com/spec?type=urn:miot-spec-v2:device:switch:0000A003:090615-sk4k:1:0000C810
6435: ["PTX", "PTX Smart Quadruple Switch", "090615.switch.sk4k"],
"spec": [
BaseConv("action", "sensor"),
ConstConv("action", mi="6.e.1", value=BUTTON_1_SINGLE),
ConstConv("action", mi="6.e.2", value=BUTTON_2_SINGLE),
ConstConv("action", mi="6.e.3", value=BUTTON_3_SINGLE),
ConstConv("action", mi="6.e.4", value=BUTTON_4_SINGLE),
BaseConv("switch_1", "switch", mi="2.p.1"),
BaseConv("switch_2", "switch", mi="3.p.1"),
BaseConv("switch_3", "switch", mi="4.p.1"),
Expand Down

0 comments on commit d3517d7

Please sign in to comment.